/*! 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<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\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></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});
/*!
 * jQuery blockUI plugin
 * Version 2.70.0-2014.11.23
 * Requires jQuery v1.7 or later
 *
 * Examples at: http://malsup.com/jquery/block/
 * Copyright (c) 2007-2013 M. Alsup
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 * Thanks to Amir-Hossein Sobhi for some excellent contributions!
 */
!function(){"use strict";function e(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},o=/MSIE/.test(navigator.userAgent),n=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,"function"==typeof document.createElement("div").style.setExpression&&document.createElement("div").style.setExpression);e.blockUI=function(e){d(window,e)},e.unblockUI=function(e){a(window,e)},e.growlUI=function(t,o,n,i){var s=e('<div class="growlUI"></div>');t&&s.append("<h1>"+t+"</h1>"),o&&s.append("<h2>"+o+"</h2>"),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.on("mouseover",function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).on("mouseout",function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var o=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);o.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,d(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){a(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var s=null,l=[];function d(d,c){var u,b,h=d==window,k=c&&c.message!==undefined?c.message:undefined;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(d).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),u=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),b=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),k=k===undefined?c.message:k,h&&s&&a(window,{fadeOut:0}),k&&"string"!=typeof k&&(k.parentNode||k.jquery)){var y=k.jquery?k[0]:k,m={};e(d).data("blockUI.history",m),m.el=y,m.parent=y.parentNode,m.display=y.style.display,m.position=y.style.position,m.parent&&m.parent.removeChild(y)}e(d).data("blockUI.onUnblock",c.onUnblock);var g,v,I,w,U=c.baseZ;g=o||c.forceIframe?e('<iframe class="blockUI" style="z-index:'+U+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),v=c.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+U+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+U+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),c.theme&&h?(w='<div class="blockUI '+c.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(U+10)+';display:none;position:fixed">',c.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):c.theme?(w='<div class="blockUI '+c.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(U+10)+';display:none;position:absolute">',c.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):w=h?'<div class="blockUI '+c.blockMsgClass+' blockPage" style="z-index:'+(U+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+c.blockMsgClass+' blockElement" style="z-index:'+(U+10)+';display:none;position:absolute"></div>',I=e(w),k&&(c.theme?(I.css(b),I.addClass("ui-widget-content")):I.css(u)),c.theme||v.css(c.overlayCSS),v.css("position",h?"fixed":"absolute"),(o||c.forceIframe)&&g.css("opacity",0);var x=[g,v,I],C=e(h?"body":d);e.each(x,function(){this.appendTo(C)}),c.theme&&c.draggable&&e.fn.draggable&&I.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var S=i&&(!e.support.boxModel||e("object,embed",h?null:d).length>0);if(n||S){if(h&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(n||!e.support.boxModel)&&!h)var E=p(d,"borderTopWidth"),O=p(d,"borderLeftWidth"),T=E?"(0 - "+E+")":0,M=O?"(0 - "+O+")":0;e.each(x,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)h?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),h?o.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),M&&o.setExpression("left",M),T&&o.setExpression("top",T);else if(c.centerY)h&&o.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),o.marginTop=0;else if(!c.centerY&&h){var n="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';o.setExpression("top",n)}})}if(k&&(c.theme?I.find(".ui-widget-content").append(k):I.append(k),(k.jquery||k.nodeType)&&e(k).show()),(o||c.forceIframe)&&c.showOverlay&&g.show(),c.fadeIn){var B=c.onBlock?c.onBlock:t,j=c.showOverlay&&!k?B:t,H=k?B:t;c.showOverlay&&v._fadeIn(c.fadeIn,j),k&&I._fadeIn(c.fadeIn,H)}else c.showOverlay&&v.show(),k&&I.show(),c.onBlock&&c.onBlock.bind(I)();if(r(1,d,c),h?(s=I[0],l=e(c.focusableElements,s),c.focusInput&&setTimeout(f,20)):function(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-p(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-p(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0");o&&(i.top=l>0?l+"px":"0")}(I[0],c.centerX,c.centerY),c.timeout){var z=setTimeout(function(){h?e.unblockUI(c):e(d).unblock(c)},c.timeout);e(d).data("blockUI.timeout",z)}}}function a(t,o){var n,i,d=t==window,a=e(t),u=a.data("blockUI.history"),f=a.data("blockUI.timeout");f&&(clearTimeout(f),a.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),r(0,t,o),null===o.onUnblock&&(o.onUnblock=a.data("blockUI.onUnblock"),a.removeData("blockUI.onUnblock")),i=d?e(document.body).children().filter(".blockUI").add("body > .blockUI"):a.find(">.blockUI"),o.cursorReset&&(i.length>1&&(i[1].style.cursor=o.cursorReset),i.length>2&&(i[2].style.cursor=o.cursorReset)),d&&(s=l=null),o.fadeOut?(n=i.length,i.stop().fadeOut(o.fadeOut,function(){0==--n&&c(i,u,o,t)})):c(i,u,o,t)}function c(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function r(t,o,n){var i=o==window,l=e(o);if((t||(!i||s)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).on(d,n,u):e(document).off(d,u)}}function u(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&s&&t.data.constrainTabKey){var o=l,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){f(i)},10),!1}var d=t.data,a=e(t.target);return a.hasClass("blockOverlay")&&d.onOverlayClick&&d.onOverlayClick(t),a.parents("div."+d.blockMsgClass).length>0||0===a.parents().children().filter("div.blockUI").length}function f(e){if(l){var t=l[!0===e?l.length-1:0];t&&t.trigger("focus")}}function p(t,o){return parseInt(e.css(t,o),10)||0}}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}();
jQuery(function(t){if("undefined"==typeof wc_add_to_cart_params)return!1;var a=function(){this.requests=[],this.addRequest=this.addRequest.bind(this),this.run=this.run.bind(this),this.$liveRegion=this.createLiveRegion(),t(document.body).on("click",".add_to_cart_button:not(.wc-interactive)",{addToCartHandler:this},this.onAddToCart).on("click",".remove_from_cart_button",{addToCartHandler:this},this.onRemoveFromCart).on("added_to_cart",{addToCartHandler:this},this.onAddedToCart).on("removed_from_cart",{addToCartHandler:this},this.onRemovedFromCart).on("ajax_request_not_sent.adding_to_cart",this.updateButton)};a.prototype.addRequest=function(t){this.requests.push(t),1===this.requests.length&&this.run()},a.prototype.run=function(){var a=this,e=a.requests[0].complete;a.requests[0].complete=function(){"function"==typeof e&&e(),a.requests.shift(),a.requests.length>0&&a.run()},t.ajax(this.requests[0])},a.prototype.onAddToCart=function(a){var e=t(this);if(e.is(".ajax_add_to_cart")){if(!e.attr("data-product_id"))return!0;if(a.data.addToCartHandler.$liveRegion.text("").removeAttr("aria-relevant"),a.preventDefault(),e.removeClass("added"),e.addClass("loading"),!1===t(document.body).triggerHandler("should_send_ajax_request.adding_to_cart",[e]))return t(document.body).trigger("ajax_request_not_sent.adding_to_cart",[!1,!1,e]),!0;var r={};t.each(e.data(),function(t,a){r[t]=a}),t.each(e[0].dataset,function(t,a){r[t]=a}),t(document.body).trigger("adding_to_cart",[e,r]),a.data.addToCartHandler.addRequest({type:"POST",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","add_to_cart"),data:r,success:function(a){a&&(a.error&&a.product_url?window.location=a.product_url:"yes"!==wc_add_to_cart_params.cart_redirect_after_add?t(document.body).trigger("added_to_cart",[a.fragments,a.cart_hash,e]):window.location=wc_add_to_cart_params.cart_url)},dataType:"json"})}},a.prototype.onRemoveFromCart=function(a){var e=t(this),r=e.closest(".woocommerce-mini-cart-item");a.data.addToCartHandler.$liveRegion.text("").removeAttr("aria-relevant"),a.preventDefault(),r.block({message:null,overlayCSS:{opacity:.6}}),a.data.addToCartHandler.addRequest({type:"POST",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","remove_from_cart"),data:{cart_item_key:e.data("cart_item_key")},success:function(a){a&&a.fragments?t(document.body).trigger("removed_from_cart",[a.fragments,a.cart_hash,e]):window.location=e.attr("href")},error:function(){window.location=e.attr("href")},dataType:"json"})},a.prototype.updateButton=function(a,e,r,d){(d=void 0!==d&&d)&&(d.removeClass("loading"),e&&d.addClass("added"),e&&!wc_add_to_cart_params.is_cart&&0===d.parent().find(".added_to_cart").length&&d.after('<a href="'+wc_add_to_cart_params.cart_url+'" class="added_to_cart wc-forward" title="'+wc_add_to_cart_params.i18n_view_cart+'">'+wc_add_to_cart_params.i18n_view_cart+"</a>"),t(document.body).trigger("wc_cart_button_updated",[d]))},a.prototype.updateFragments=function(a,e){e&&(t.each(e,function(a){t(a).addClass("updating").fadeTo("400","0.6").block({message:null,overlayCSS:{opacity:.6}})}),t.each(e,function(a,e){t(a).replaceWith(e),t(a).stop(!0).css("opacity","1").unblock()}),t(document.body).trigger("wc_fragments_loaded"))},a.prototype.alertCartUpdated=function(t,a,e,r){if(r=void 0!==r&&r){var d=r.data("success_message");if(!d)return;t.data.addToCartHandler.$liveRegion.delay(1e3).text(d).attr("aria-relevant","all")}},a.prototype.createLiveRegion=function(){var a=t(".widget_shopping_cart_live_region");return a.length?a:t('<div class="widget_shopping_cart_live_region screen-reader-text" role="status"></div>').appendTo("body")},a.prototype.onAddedToCart=function(t,a,e,r){t.data.addToCartHandler.updateButton(t,a,e,r),t.data.addToCartHandler.updateFragments(t,a),t.data.addToCartHandler.alertCartUpdated(t,a,e,r)},a.prototype.onRemovedFromCart=function(t,a,e,r){t.data.addToCartHandler.updateFragments(t,a),t.data.addToCartHandler.alertCartUpdated(t,a,e,r)},new a});
jQuery(function(t){if("undefined"==typeof wc_single_product_params)return!1;t("body").on("init",".wc-tabs-wrapper, .woocommerce-tabs",function(){t(this).find(".wc-tab, .woocommerce-tabs .panel:not(.panel .panel)").hide();var e=window.location.hash,i=window.location.href,o=t(this).find(".wc-tabs, ul.tabs").first();e.toLowerCase().indexOf("comment-")>=0||"#reviews"===e||"#tab-reviews"===e?o.find("li.reviews_tab a").trigger("click"):i.indexOf("comment-page-")>0||i.indexOf("cpage=")>0?o.find("li.reviews_tab a").trigger("click"):"#tab-additional_information"===e?o.find("li.additional_information_tab a").trigger("click"):o.find("li:first a").trigger("click")}).on("click",".wc-tabs li a, ul.tabs li a",function(e){e.preventDefault();var i=t(this),o=i.closest(".wc-tabs-wrapper, .woocommerce-tabs"),r=o.find(".wc-tabs, ul.tabs");r.find("li").attr("aria-selected","false"),r.find("li").removeClass("active"),o.find(".wc-tab, .panel:not(.panel .panel)").hide(),i.closest("li").attr("aria-selected","true"),i.closest("li").addClass("active"),o.find("#"+i.attr("href").split("#")[1]).show()}).on("click","a.woocommerce-review-link",function(){return t(".reviews_tab a").trigger("click"),!0}).on("init","#rating",function(){t("#rating").hide().before('<p class="stars">\t\t\t\t\t\t<span>\t\t\t\t\t\t\t<a class="star-1" href="#">1</a>\t\t\t\t\t\t\t<a class="star-2" href="#">2</a>\t\t\t\t\t\t\t<a class="star-3" href="#">3</a>\t\t\t\t\t\t\t<a class="star-4" href="#">4</a>\t\t\t\t\t\t\t<a class="star-5" href="#">5</a>\t\t\t\t\t\t</span>\t\t\t\t\t</p>')}).on("click","#respond p.stars a",function(){var e=t(this),i=t(this).closest("#respond").find("#rating"),o=t(this).closest(".stars");return i.val(e.text()),e.siblings("a").removeClass("active"),e.addClass("active"),o.addClass("selected"),!1}).on("click","#respond #submit",function(){var e=t(this).closest("#respond").find("#rating"),i=e.val();if(e.length>0&&!i&&"yes"===wc_single_product_params.review_rating_required)return window.alert(wc_single_product_params.i18n_required_rating_text),!1}),t(".wc-tabs-wrapper, .woocommerce-tabs, #rating").trigger("init");var e=function(e,i){this.$target=e,this.$images=t(".woocommerce-product-gallery__image",e),0!==this.$images.length?(e.data("product_gallery",this),this.flexslider_enabled="function"==typeof t.fn.flexslider&&wc_single_product_params.flexslider_enabled,this.zoom_enabled="function"==typeof t.fn.zoom&&wc_single_product_params.zoom_enabled,this.photoswipe_enabled="undefined"!=typeof PhotoSwipe&&wc_single_product_params.photoswipe_enabled,i&&(this.flexslider_enabled=!1!==i.flexslider_enabled&&this.flexslider_enabled,this.zoom_enabled=!1!==i.zoom_enabled&&this.zoom_enabled,this.photoswipe_enabled=!1!==i.photoswipe_enabled&&this.photoswipe_enabled),1===this.$images.length&&(this.flexslider_enabled=!1),this.initFlexslider=this.initFlexslider.bind(this),this.initZoom=this.initZoom.bind(this),this.initZoomForTarget=this.initZoomForTarget.bind(this),this.initPhotoswipe=this.initPhotoswipe.bind(this),this.onResetSlidePosition=this.onResetSlidePosition.bind(this),this.getGalleryItems=this.getGalleryItems.bind(this),this.openPhotoswipe=this.openPhotoswipe.bind(this),this.flexslider_enabled?(this.initFlexslider(i.flexslider),e.on("woocommerce_gallery_reset_slide_position",this.onResetSlidePosition)):this.$target.css("opacity",1),this.zoom_enabled&&(this.initZoom(),e.on("woocommerce_gallery_init_zoom",this.initZoom)),this.photoswipe_enabled&&this.initPhotoswipe()):this.$target.css("opacity",1)};e.prototype.initFlexslider=function(e){var i=this.$target,o=this,r=t.extend({selector:".woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image",start:function(){i.css("opacity",1)},after:function(t){o.initZoomForTarget(o.$images.eq(t.currentSlide))}},e);i.flexslider(r),t(".woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:eq(0) .wp-post-image").one("load",function(){var e=t(this);e&&setTimeout(function(){var t=e.closest(".woocommerce-product-gallery__image").height(),i=e.closest(".flex-viewport");t&&i&&i.height(t)},100)}).each(function(){this.complete&&t(this).trigger("load")})},e.prototype.initZoom=function(){this.initZoomForTarget(this.$images.first())},e.prototype.initZoomForTarget=function(e){if(!this.zoom_enabled)return!1;var i=this.$target.width(),o=!1;if(t(e).each(function(e,r){if(t(r).find("img").data("large_image_width")>i)return o=!0,!1}),o){var r=t.extend({touch:!1,callback:function(){var t=this;setTimeout(function(){t.removeAttribute("role"),t.setAttribute("alt",""),t.setAttribute("aria-hidden","true")},100)}},wc_single_product_params.zoom_options);"ontouchstart"in document.documentElement&&(r.on="click"),e.trigger("zoom.destroy"),e.zoom(r),setTimeout(function(){e.find(":hover").length&&e.trigger("mouseover")},100)}},e.prototype.initPhotoswipe=function(){this.zoom_enabled&&this.$images.length>0?(this.$target.prepend('<a href="#" class="woocommerce-product-gallery__trigger">🔍</a>'),this.$target.on("click",".woocommerce-product-gallery__trigger",this.openPhotoswipe),this.$target.on("click",".woocommerce-product-gallery__image a",function(t){t.preventDefault()}),this.flexslider_enabled||this.$target.on("click",".woocommerce-product-gallery__image a",this.openPhotoswipe)):this.$target.on("click",".woocommerce-product-gallery__image a",this.openPhotoswipe)},e.prototype.onResetSlidePosition=function(){this.$target.flexslider(0)},e.prototype.getGalleryItems=function(){var e=this.$images,i=[];return e.length>0&&e.each(function(e,o){var r=t(o).find("img");if(r.length){var a=r.attr("data-large_image"),s=r.attr("data-large_image_width"),n=r.attr("data-large_image_height"),l={alt:r.attr("alt"),src:a,w:s,h:n,title:r.attr("data-caption")?r.attr("data-caption"):r.attr("title")};i.push(l)}}),i},e.prototype.openPhotoswipe=function(e){e.preventDefault();var i,o=t(".pswp")[0],r=this.getGalleryItems(),a=t(e.target);i=0<a.closest(".woocommerce-product-gallery__trigger").length?this.$target.find(".flex-active-slide"):a.closest(".woocommerce-product-gallery__image");var s=t.extend({index:t(i).index(),addCaptionHTMLFn:function(t,e){return t.title?(e.children[0].textContent=t.title,!0):(e.children[0].textContent="",!1)}},wc_single_product_params.photoswipe_options);new PhotoSwipe(o,PhotoSwipeUI_Default,r,s).init()},t.fn.wc_product_gallery=function(t){return new e(this,t||wc_single_product_params),this},t(".woocommerce-product-gallery").each(function(){t(this).trigger("wc-product-gallery-before-init",[this,wc_single_product_params]),t(this).wc_product_gallery(wc_single_product_params),t(this).trigger("wc-product-gallery-after-init",[this,wc_single_product_params])})});
/*! js-cookie v3.0.5 | MIT */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}return function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+c}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break}catch(f){}}return e?o[e]:o}},remove:function(t,n){r(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})});
jQuery(function(o){o(".woocommerce-ordering").on("change","select.orderby",function(){o(this).closest("form").trigger("submit")}),o("input.qty:not(.product-quantity input.qty)").each(function(){var e=parseFloat(o(this).attr("min"));e>=0&&parseFloat(o(this).val())<e&&o(this).val(e)});var e="store_notice"+(o(".woocommerce-store-notice").data("noticeId")||"");"hidden"===Cookies.get(e)?o(".woocommerce-store-notice").hide():o(".woocommerce-store-notice").show(),o(".woocommerce-store-notice__dismiss-link").on("click",function(t){Cookies.set(e,"hidden",{path:"/"}),o(".woocommerce-store-notice").hide(),t.preventDefault()}),o(".woocommerce-input-wrapper span.description").length&&o(document.body).on("click",function(){o(".woocommerce-input-wrapper span.description:visible").prop("aria-hidden",!0).slideUp(250)}),o(".woocommerce-input-wrapper").on("click",function(o){o.stopPropagation()}),o(".woocommerce-input-wrapper :input").on("keydown",function(e){var t=o(this).parent().find("span.description");if(27===e.which&&t.length&&t.is(":visible"))return t.prop("aria-hidden",!0).slideUp(250),e.preventDefault(),!1}).on("click focus",function(){var e=o(this).parent(),t=e.find("span.description");e.addClass("currentTarget"),o(".woocommerce-input-wrapper:not(.currentTarget) span.description:visible").prop("aria-hidden",!0).slideUp(250),t.length&&t.is(":hidden")&&t.prop("aria-hidden",!1).slideDown(250),e.removeClass("currentTarget")}),o.scroll_to_notices=function(e){e.length&&o("html, body").animate({scrollTop:e.offset().top-100},1e3)},o('.woocommerce form .woocommerce-Input[type="password"]').wrap('<span class="password-input"></span>'),o(".woocommerce form input").filter(":password").parent("span").addClass("password-input"),o(".password-input").append('<span class="show-password-input"></span>'),o(".show-password-input").on("click",function(){o(this).hasClass("display-password")?o(this).removeClass("display-password"):o(this).addClass("display-password"),o(this).hasClass("display-password")?o(this).siblings(['input[type="password"]']).prop("type","text"):o(this).siblings('input[type="text"]').prop("type","password")}),o("a.coming-soon-footer-banner-dismiss").on("click",function(e){var t=o(e.target);o.ajax({type:"post",url:t.data("rest-url"),data:{woocommerce_meta:{coming_soon_banner_dismissed:"yes"}},beforeSend:function(o){o.setRequestHeader("X-WP-Nonce",t.data("rest-nonce"))},complete:function(){o("#coming-soon-footer-banner").hide()}})})}),document.addEventListener("DOMContentLoaded",function(){var o=["woocommerce-message","woocommerce-error","wc-block-components-notice-banner"].map(function(o){return"."+o+'[role="alert"]'}).join(", "),e=document.querySelectorAll(o);if(0!==e.length){var t=e[0];t.setAttribute("tabindex","-1");var n=setTimeout(function(){t.focus(),clearTimeout(n)},500)}});
(function($){'use strict';$(document).ready(function(){$('body').on('adding_to_cart',function(event,$button,data){if($button&&$button.hasClass('vc_gitem-link')){$button.addClass('vc-gitem-add-to-cart-loading-btn').parents('.vc_grid-item-mini').addClass('vc-woocommerce-add-to-cart-loading').append($('<div class="vc_wc-load-add-to-loader-wrapper"><div class="vc_wc-load-add-to-loader"></div></div>'));}}).on('added_to_cart',function(event,fragments,cart_hash,$button){if('undefined'===typeof($button)){$button=$('.vc-gitem-add-to-cart-loading-btn');}
if($button&&$button.hasClass('vc_gitem-link')){$button.removeClass('vc-gitem-add-to-cart-loading-btn').parents('.vc_grid-item-mini').removeClass('vc-woocommerce-add-to-cart-loading').find('.vc_wc-load-add-to-loader-wrapper').remove();}});});})(window.jQuery);
jQuery(function(e){if("undefined"==typeof wc_cart_fragments_params)return!1;var t=!0,r=wc_cart_fragments_params.cart_hash_key;try{t="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wc","test"),window.sessionStorage.removeItem("wc"),window.localStorage.setItem("wc","test"),window.localStorage.removeItem("wc")}catch(f){t=!1}function n(){t&&sessionStorage.setItem("wc_cart_created",(new Date).getTime())}function o(e){t&&(localStorage.setItem(r,e),sessionStorage.setItem(r,e))}var a={url:wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%","get_refreshed_fragments"),type:"POST",data:{time:(new Date).getTime()},timeout:wc_cart_fragments_params.request_timeout,success:function(r){r&&r.fragments&&(e.each(r.fragments,function(t,r){e(t).replaceWith(r)}),t&&(sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(r.fragments)),o(r.cart_hash),r.cart_hash&&n()),e(document.body).trigger("wc_fragments_refreshed"))},error:function(){e(document.body).trigger("wc_fragments_ajax_error")}};function s(){e.ajax(a)}if(t){var i=null;e(document.body).on("wc_fragment_refresh updated_wc_div",function(){s()}),e(document.body).on("added_to_cart removed_from_cart",function(e,t,a){var s=sessionStorage.getItem(r);null!==s&&s!==undefined&&""!==s||n(),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(t)),o(a)}),e(document.body).on("wc_fragments_refreshed",function(){clearTimeout(i),i=setTimeout(s,864e5)}),e(window).on("storage onstorage",function(e){r===e.originalEvent.key&&localStorage.getItem(r)!==sessionStorage.getItem(r)&&s()}),e(window).on("pageshow",function(t){t.originalEvent.persisted&&(e(".widget_shopping_cart_content").empty(),e(document.body).trigger("wc_fragment_refresh"))});try{var c=JSON.parse(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),_=sessionStorage.getItem(r),g=Cookies.get("woocommerce_cart_hash"),m=sessionStorage.getItem("wc_cart_created");if(null!==_&&_!==undefined&&""!==_||(_=""),null!==g&&g!==undefined&&""!==g||(g=""),_&&(null===m||m===undefined||""===m))throw"No cart_created";if(m){var d=1*m+864e5,w=(new Date).getTime();if(d<w)throw"Fragment expired";i=setTimeout(s,d-w)}if(!c||!c["div.widget_shopping_cart_content"]||_!==g)throw"No fragment";e.each(c,function(t,r){e(t).replaceWith(r)}),e(document.body).trigger("wc_fragments_loaded")}catch(f){s()}}else s();Cookies.get("woocommerce_items_in_cart")>0?e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show():e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").hide(),e(document.body).on("adding_to_cart",function(){e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show()}),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.widgetsPreview&&wp.customize.widgetsPreview.WidgetPartial&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){s()})});
(()=>{"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=/^(?<name>[a-z][-a-z0-9_:]*)(?<array>(?:\[(?:[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:()=>f,dayofweek:()=>u,email:()=>r,enum:()=>h,file:()=>m,maxdate:()=>z,maxfilesize:()=>$,maxitems:()=>v,maxlength:()=>x,maxnumber:()=>b,mindate:()=>A,minfilesize:()=>j,minitems:()=>w,minlength:()=>g,minnumber:()=>y,number:()=>c,required:()=>n,requiredfile:()=>a,tel:()=>l,time:()=>d,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).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).every((t=>{if((t=t.trim()).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);if(!e.every((t=>{if(""===(t=t.trim()))return!1;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).every((t=>(t=(t=t.trim()).replaceAll(/[()/.*#\s-]+/g,""),/^[+]?[0-9]+$/.test(t)))))throw new o(this)},c=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)))))throw new o(this)},f=function(t){if(!t.getAll(this.field).every((t=>{if(t=t.trim(),!/^[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)},d=function(t){if(!t.getAll(this.field).every((t=>{const e=t.trim().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)},m=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(/^(?<toplevel>[a-z]+)\/(?<sub>[*]|[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).every((t=>this.accept?.some((e=>t===String(e))))))throw new o(this)},u=function(t){if(!t.getAll(this.field).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).length<parseInt(this.threshold))throw new o(this)},v=function(t){const e=t.getAll(this.field);if(parseInt(this.threshold)<e.length)throw new o(this)},g=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),0!==i&&i<parseInt(this.threshold))throw new o(this)},x=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),parseInt(this.threshold)<i)throw new o(this)},y=function(t){if(!t.getAll(this.field).every((t=>!(parseFloat(t)<parseFloat(this.threshold)))))throw new o(this)},b=function(t){if(!t.getAll(this.field).every((t=>!(parseFloat(this.threshold)<parseFloat(t)))))throw new o(this)},A=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&t<this.threshold)))))throw new o(this)},z=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!(/^[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)))))throw new o(this)},j=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),i<parseInt(this.threshold))throw new o(this)},$=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),parseInt(this.threshold)<i)throw new o(this)},I=({ruleObj:t,options:i})=>{const{rule:s,...o}=t;return"function"==typeof e[s]&&("function"!=typeof e[s].matches||e[s].matches(o,i))},O=({ruleObj:t,formDataTree:i,options:s})=>{const{rule:o}=t;e[o].call(t,i,s)},E=[],k=t=>[...E].reduce(((t,e)=>i=>e(i,t)),t),D=function(t,e={}){const i=(this.rules??[]).filter((t=>I({ruleObj:t,options:e}))),s=k(O);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=>I({ruleObj:t,options:e}))),s=k(O);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 F;window.swv={validators:e,validate:(t,e,i={})=>{const n=(t.rules??[]).filter((t=>I({ruleObj:t,options:i})));if(!n.length)return new Map;const a=k(O),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=>{E.push(t)},...null!==(F=window.swv)&&void 0!==F?F:{}}})();
(()=>{"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 o.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:o,path:c,endpoint:s,headers:i,body:l,data:p,...d}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),c=r?n+"/"+r:n),"string"==typeof c&&(-1!==t.indexOf("?")&&(c=c.replace("?","&")),c=c.replace(/^\//,""),o=t+c),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(o||c||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)},o=[];function c(e,t={}){const{target:a,scope:r=e,...o}=t;if(void 0===e.wpcf7?.schema)return;const c={...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(c,d,t);for(const t of p){if(void 0===t.dataset.name)continue;const o=t.dataset.name;if(n.has(o)){const{error:t,validInputs:a}=n.get(o);i(e,o),void 0!==t&&s(e,o,t,{scope:r}),l(e,o,null!=a?a:[])}if(t.contains(a))break}}})).finally((()=>{n(e,f)}))}r.use=e=>{o.unshift(e)};const s=(e,t,a,n)=>{const{scope:r=e,...o}=null!=n?n:{},c=`${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",c),s&&s.id?t.insertAdjacentHTML("beforeend",`<a href="#${s.id}">${a}</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",c),"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 o=new FormData(e);t.submitter&&t.submitter.name&&o.append(t.submitter.name,t.submitter.value);const 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(o,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:o};r({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:o,wpcf7:{endpoint:"feedback",form:e,detail:c}}).then((t=>{const r=n(e,t.status);return c.status=t.status,c.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,c):["sent","failed"].includes(r)&&a(e,`mail${r}`,c),a(e,"submit",c),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),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(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:o}}).then((t=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,n(e,"mail_sent")):n(e,"init"),o.apiResponse=t,a(e,"reset",o)})).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",'<span class="wpcf7-spinner"></span>')})),(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")),o=t(e.getAttribute("data-minimum-value")),c=e.classList.contains("down")?n-a.value.length:a.value.length;e.setAttribute("data-current-value",c),e.innerText=c,r&&r<a.value.length?e.classList.add("too-long"):e.classList.remove("too-long"),o&&a.value.length<o?e.classList.add("too-short"):e.classList.remove("too-short")},n=t=>{t={init:!1,...t},e.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),o=e.querySelector(`[name="${r}"]`);o&&(o.value=o.defaultValue,a(n,o),t.init&&o.addEventListener("keyup",(e=>{a(n,o)})))}))};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:c,schemas:new Map,...null!==(a=wpcf7)&&void 0!==a?a:{}},document.querySelectorAll("form .wpcf7").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.")}))})();
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports&&"function"==typeof require?require("jquery"):jQuery)}((function(e){"use strict";function t(n,o){var s=this;s.element=n,s.el=e(n),s.suggestions=[],s.badQueries=[],s.selectedIndex=-1,s.currentValue=s.element.value,s.timeoutId=null,s.cachedResponse={},s.onChangeTimeout=null,s.onChange=null,s.isLocal=!1,s.suggestionsContainer=null,s.noSuggestionsContainer=null,s.options=e.extend(!0,{},t.defaults,o),s.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},s.hint=null,s.hintValue="",s.selection=null,s.initialize(),s.setOptions(o)}var n={escapeRegExChars:function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(e){var t=document.createElement("div");return t.className=e,t.style.position="absolute",t.style.display="none",t}},o=27,s=9,i=13,a=38,r=39,u=40,l=e.noop;t.utils=n,e.Autocomplete=t,t.defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:function(e,t){if(!t)return e.value;var o="("+n.escapeRegExChars(t)+")";return e.value.replace(new RegExp(o,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")},formatGroup:function(e,t){return'<div class="autocomplete-group">'+t+"</div>"},delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:l,onSearchComplete:l,onSearchError:l,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(e,t,n){return-1!==e.value.toLowerCase().indexOf(n)},paramName:"query",transformResult:function(e){return"string"==typeof e?JSON.parse(e):e},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1},t.prototype={initialize:function(){var n,o=this,s="."+o.classes.suggestion,i=o.classes.selected,a=o.options;o.element.setAttribute("autocomplete","off"),o.noSuggestionsContainer=e('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),o.suggestionsContainer=t.utils.createNode(a.containerClass),(n=e(o.suggestionsContainer)).appendTo(a.appendTo||"body"),"auto"!==a.width&&n.css("width",a.width),n.on("mouseover.autocomplete",s,(function(){o.activate(e(this).data("index"))})),n.on("mouseout.autocomplete",(function(){o.selectedIndex=-1,n.children("."+i).removeClass(i)})),n.on("click.autocomplete",s,(function(){o.select(e(this).data("index"))})),n.on("click.autocomplete",(function(){clearTimeout(o.blurTimeoutId)})),o.fixPositionCapture=function(){o.visible&&o.fixPosition()},e(window).on("resize.autocomplete",o.fixPositionCapture),o.el.on("keydown.autocomplete",(function(e){o.onKeyPress(e)})),o.el.on("keyup.autocomplete",(function(e){o.onKeyUp(e)})),o.el.on("blur.autocomplete",(function(){o.onBlur()})),o.el.on("focus.autocomplete",(function(){o.onFocus()})),o.el.on("change.autocomplete",(function(e){o.onKeyUp(e)})),o.el.on("input.autocomplete",(function(e){o.onKeyUp(e)}))},onFocus:function(){var e=this;e.fixPosition(),e.el.val().length>=e.options.minChars&&e.onValueChange()},onBlur:function(){var e=this;e.blurTimeoutId=setTimeout((function(){e.hide()}),200)},abortAjax:function(){var e=this;e.currentRequest&&(e.currentRequest.abort(),e.currentRequest=null)},setOptions:function(t){var n=this,o=e.extend({},n.options,t);n.isLocal=Array.isArray(o.lookup),n.isLocal&&(o.lookup=n.verifySuggestionsFormat(o.lookup)),o.orientation=n.validateOrientation(o.orientation,"bottom"),e(n.suggestionsContainer).css({"max-height":o.maxHeight+"px",width:o.width+"px","z-index":o.zIndex}),this.options=o},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var e=this;e.disabled=!0,clearTimeout(e.onChangeTimeout),e.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var t=this,n=e(t.suggestionsContainer),o=n.parent().get(0);if(o===document.body||t.options.forceFixPosition){var s=t.options.orientation,i=n.outerHeight(),a=t.el.outerHeight(),r=t.el.offset(),u={top:r.top,left:r.left};if("auto"===s){var l=e(window).height(),c=e(window).scrollTop(),g=-c+r.top-i,d=c+l-(r.top+a+i);s=Math.max(g,d)===g?"top":"bottom"}if(u.top+="top"===s?-i:a,o!==document.body){var p,h=n.css("opacity");t.visible||n.css("opacity",0).show(),p=n.offsetParent().offset(),u.top-=p.top,u.top+=o.scrollTop,u.left-=p.left,t.visible||n.css("opacity",h).hide()}"auto"===t.options.width&&(u.width=t.el.outerWidth()+"px"),n.css(u)}},isCursorAtEnd:function(){var e,t=this.el.val().length,n=this.element.selectionStart;return"number"==typeof n?n===t:!document.selection||((e=document.selection.createRange()).moveStart("character",-t),t===e.text.length)},onKeyPress:function(e){var t=this;if(t.disabled||t.visible||e.which!==u||!t.currentValue){if(!t.disabled&&t.visible){switch(e.which){case o:t.el.val(t.currentValue),t.hide();break;case r:if(t.hint&&t.options.onHint&&t.isCursorAtEnd()){t.selectHint();break}return;case s:if(t.hint&&t.options.onHint)return void t.selectHint();if(-1===t.selectedIndex)return void t.hide();if(t.select(t.selectedIndex),!1===t.options.tabDisabled)return;break;case i:if(-1===t.selectedIndex)return void t.hide();t.select(t.selectedIndex);break;case a:t.moveUp();break;case u:t.moveDown();break;default:return}e.stopImmediatePropagation(),e.preventDefault()}}else t.suggest()},onKeyUp:function(e){var t=this;if(!t.disabled){switch(e.which){case a:case u:return}clearTimeout(t.onChangeTimeout),t.currentValue!==t.el.val()&&(t.findBestHint(),t.options.deferRequestBy>0?t.onChangeTimeout=setTimeout((function(){t.onValueChange()}),t.options.deferRequestBy):t.onValueChange())}},onValueChange:function(){if(!this.ignoreValueChange){var t=this,n=t.options,o=t.el.val(),s=t.getQuery(o);return t.selection&&t.currentValue!==s&&(t.selection=null,(n.onInvalidateSelection||e.noop).call(t.element)),clearTimeout(t.onChangeTimeout),t.currentValue=o,t.selectedIndex=-1,n.triggerSelectOnValidInput&&t.isExactMatch(s)?void t.select(0):void(s.length<n.minChars?t.hide():t.getSuggestions(s))}this.ignoreValueChange=!1},isExactMatch:function(e){var t=this.suggestions;return 1===t.length&&t[0].value.toLowerCase()===e.toLowerCase()},getQuery:function(e){var t,n=this.options.delimiter;return n?(t=e.split(n))[t.length-1].trim():e},getSuggestionsLocal:function(t){var n,o=this.options,s=t.toLowerCase(),i=o.lookupFilter,a=parseInt(o.lookupLimit,10);return n={suggestions:e.grep(o.lookup,(function(e){return i(e,t,s)}))},a&&n.suggestions.length>a&&(n.suggestions=n.suggestions.slice(0,a)),n},getSuggestions:function(t){var n,o,s,i,a=this,r=a.options,u=r.serviceUrl;if(r.params[r.paramName]=t,!1!==r.onSearchStart.call(a.element,r.params)){if(o=r.ignoreParams?null:r.params,"function"==typeof r.lookup)return void r.lookup(t,(function(e){a.suggestions=e.suggestions,a.suggest(),r.onSearchComplete.call(a.element,t,e.suggestions)}));a.isLocal?n=a.getSuggestionsLocal(t):("function"==typeof u&&(u=u.call(a.element,t)),s=u+"?"+e.param(o||{}),n=a.cachedResponse[s]),n&&Array.isArray(n.suggestions)?(a.suggestions=n.suggestions,a.suggest(),r.onSearchComplete.call(a.element,t,n.suggestions)):a.isBadQuery(t)?r.onSearchComplete.call(a.element,t,[]):(a.abortAjax(),i={url:u,data:o,type:r.type,dataType:r.dataType},e.extend(i,r.ajaxSettings),a.currentRequest=e.ajax(i).done((function(e){var n;a.currentRequest=null,n=r.transformResult(e,t),a.processResponse(n,t,s),r.onSearchComplete.call(a.element,t,n.suggestions)})).fail((function(e,n,o){r.onSearchError.call(a.element,t,e,n,o)})))}},isBadQuery:function(e){if(!this.options.preventBadQueries)return!1;for(var t=this.badQueries,n=t.length;n--;)if(0===e.indexOf(t[n]))return!0;return!1},hide:function(){var t=this,n=e(t.suggestionsContainer);"function"==typeof t.options.onHide&&t.visible&&t.options.onHide.call(t.element,n),t.visible=!1,t.selectedIndex=-1,clearTimeout(t.onChangeTimeout),e(t.suggestionsContainer).hide(),t.signalHint(null)},suggest:function(){if(this.suggestions.length){var t,n=this,o=n.options,s=o.groupBy,i=o.formatResult,a=n.getQuery(n.currentValue),r=n.classes.suggestion,u=n.classes.selected,l=e(n.suggestionsContainer),c=e(n.noSuggestionsContainer),g=o.beforeRender,d="",p=function(e,n){var i=e.data[s];return t===i?"":(t=i,o.formatGroup(e,t))};return o.triggerSelectOnValidInput&&n.isExactMatch(a)?void n.select(0):(e.each(n.suggestions,(function(e,t){s&&(d+=p(t,0)),d+='<div class="'+r+'" data-index="'+e+'">'+i(t,a,e)+"</div>"})),this.adjustContainerWidth(),c.detach(),l.html(d),"function"==typeof g&&g.call(n.element,l,n.suggestions),n.fixPosition(),l.show(),o.autoSelectFirst&&(n.selectedIndex=0,l.scrollTop(0),l.children("."+r).first().addClass(u)),n.visible=!0,void n.findBestHint())}this.options.showNoSuggestionNotice?this.noSuggestions():this.hide()},noSuggestions:function(){var t=this,n=t.options.beforeRender,o=e(t.suggestionsContainer),s=e(t.noSuggestionsContainer);this.adjustContainerWidth(),s.detach(),o.empty(),o.append(s),"function"==typeof n&&n.call(t.element,o,t.suggestions),t.fixPosition(),o.show(),t.visible=!0},adjustContainerWidth:function(){var t,n=this,o=n.options,s=e(n.suggestionsContainer);"auto"===o.width?(t=n.el.outerWidth(),s.css("width",t>0?t:300)):"flex"===o.width&&s.css("width","")},findBestHint:function(){var t=this,n=t.el.val().toLowerCase(),o=null;n&&(e.each(t.suggestions,(function(e,t){var s=0===t.value.toLowerCase().indexOf(n);return s&&(o=t),!s})),t.signalHint(o))},signalHint:function(t){var n="",o=this;t&&(n=o.currentValue+t.value.substr(o.currentValue.length)),o.hintValue!==n&&(o.hintValue=n,o.hint=t,(this.options.onHint||e.noop)(n))},verifySuggestionsFormat:function(t){return t.length&&"string"==typeof t[0]?e.map(t,(function(e){return{value:e,data:null}})):t},validateOrientation:function(t,n){return t=(t||"").trim().toLowerCase(),-1===e.inArray(t,["auto","bottom","top"])&&(t=n),t},processResponse:function(e,t,n){var o=this,s=o.options;e.suggestions=o.verifySuggestionsFormat(e.suggestions),s.noCache||(o.cachedResponse[n]=e,s.preventBadQueries&&!e.suggestions.length&&o.badQueries.push(t)),t===o.getQuery(o.currentValue)&&(o.suggestions=e.suggestions,o.suggest())},activate:function(t){var n,o=this,s=o.classes.selected,i=e(o.suggestionsContainer),a=i.find("."+o.classes.suggestion);return i.find("."+s).removeClass(s),o.selectedIndex=t,-1!==o.selectedIndex&&a.length>o.selectedIndex?(n=a.get(o.selectedIndex),e(n).addClass(s),n):null},selectHint:function(){var t=this,n=e.inArray(t.hint,t.suggestions);t.select(n)},select:function(e){this.hide(),this.onSelect(e)},moveUp:function(){var t=this;if(-1!==t.selectedIndex)return 0===t.selectedIndex?(e(t.suggestionsContainer).children("."+t.classes.suggestion).first().removeClass(t.classes.selected),t.selectedIndex=-1,t.ignoreValueChange=!1,t.el.val(t.currentValue),void t.findBestHint()):void t.adjustScroll(t.selectedIndex-1)},moveDown:function(){var e=this;e.selectedIndex!==e.suggestions.length-1&&e.adjustScroll(e.selectedIndex+1)},adjustScroll:function(t){var n=this,o=n.activate(t);if(o){var s,i,a,r=e(o).outerHeight();s=o.offsetTop,a=(i=e(n.suggestionsContainer).scrollTop())+n.options.maxHeight-r,s<i?e(n.suggestionsContainer).scrollTop(s):s>a&&e(n.suggestionsContainer).scrollTop(s-n.options.maxHeight+r),n.options.preserveInput||(n.ignoreValueChange=!0,n.el.val(n.getValue(n.suggestions[t].value))),n.signalHint(null)}},onSelect:function(e){var t=this,n=t.options.onSelect,o=t.suggestions[e];t.currentValue=t.getValue(o.value),t.currentValue===t.el.val()||t.options.preserveInput||t.el.val(t.currentValue),t.signalHint(null),t.suggestions=[],t.selection=o,"function"==typeof n&&n.call(t.element,o)},getValue:function(e){var t,n,o=this.options.delimiter;return o?1===(n=(t=this.currentValue).split(o)).length?e:t.substr(0,t.length-n[n.length-1].length)+e:e},dispose:function(){var t=this;t.el.off(".autocomplete").removeData("autocomplete"),e(window).off("resize.autocomplete",t.fixPositionCapture),e(t.suggestionsContainer).remove()}},e.fn.devbridgeAutocomplete=function(n,o){var s="autocomplete";return arguments.length?this.each((function(){var i=e(this),a=i.data(s);"string"==typeof n?a&&"function"==typeof a[n]&&a[n](o):(a&&a.dispose&&a.dispose(),a=new t(this,n),i.data(s,a))})):this.first().data(s)},e.fn.autocomplete||(e.fn.autocomplete=e.fn.devbridgeAutocomplete)})),jQuery(document).ready((function(e){"use strict";e(".searchform").each((function(){var t=e(this),n=t.find(".live-search-list"),o=t.find("#cat"),s="undefined"!=typeof theme&&theme.ajax_url?theme.ajax_url:"undefined"!=typeof js_porto_vars&&js_porto_vars.ajax_url?js_porto_vars.ajax_url:ajaxurl,i=s+"?action=porto_ajax_search_posts&nonce="+porto_live_search.nonce;o.length&&o.val()&&"0"!=o.val()&&(i+="&cat="+o.val()),t.find('input[name="post_type"]').length&&t.find('input[name="post_type"]').val()&&(i+="&post_type="+t.find('input[name="post_type"]').val()),t.find('input[type="text"]').on("focus keyup",(function(){var a=e(this);if(!a.hasClass("porto-search-init")){if(a.devbridgeAutocomplete({minChars:3,appendTo:n,triggerSelectOnValidInput:!1,serviceUrl:i,deferRequestBy:300,onSearchStart:function(){t.find("button").addClass("loading")},onSelect:function(e){-1!=e.id&&"undefined"!=typeof theme&&(window.location.href=e.url)},onHide:function(){n.removeClass("porto-opened")},onSearchComplete:function(){t.find("button").removeClass("loading")},beforeRender:function(t){e(t).removeAttr("style")},formatResult:function(t,o){var s="("+e.Autocomplete.utils.escapeRegExChars(o)+")",i="";return t.img&&"undefined"!=typeof theme&&(i+='<img class="search-image" src="'+t.img+'">'),i+='<div class="search-name">'+t.value.replace(new RegExp(s,"gi"),"<strong>$1</strong>")+"</div>",t.price&&"undefined"!=typeof theme&&(i+='<span class="search-price">'+t.price+"<span>"),n.addClass("porto-opened"),i}}),o.length){var r=a.devbridgeAutocomplete();o.on("change",(function(e){o.val()&&"0"!=o.val()?r.setOptions({serviceUrl:s+"?action=porto_ajax_search_posts&cat="+o.val()}):r.setOptions({serviceUrl:s+"?action=porto_ajax_search_posts"}),r.hide(),r.onValueChange()}))}a.addClass("porto-search-init")}}))}))}));
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.sbjs=e()}}(function(){return function e(t,r,n){function a(s,o){if(!r[s]){if(!t[s]){var c="function"==typeof require&&require;if(!o&&c)return c(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var p=r[s]={exports:{}};t[s][0].call(p.exports,function(e){var r=t[s][1][e];return a(r||e)},p,p.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)a(n[s]);return a}({1:[function(e,t,r){"use strict";var n=e("./init"),a={init:function(e){this.get=n(e),e&&e.callback&&"function"==typeof e.callback&&e.callback(this.get)}};t.exports=a},{"./init":6}],2:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/utils"),i={containers:{current:"sbjs_current",current_extra:"sbjs_current_add",first:"sbjs_first",first_extra:"sbjs_first_add",session:"sbjs_session",udata:"sbjs_udata",promocode:"sbjs_promo"},service:{migrations:"sbjs_migrations"},delimiter:"|||",aliases:{main:{type:"typ",source:"src",medium:"mdm",campaign:"cmp",content:"cnt",term:"trm",id:"id",platform:"plt",format:"fmt",tactic:"tct"},extra:{fire_date:"fd",entrance_point:"ep",referer:"rf"},session:{pages_seen:"pgs",current_page:"cpg"},udata:{visits:"vst",ip:"uip",agent:"uag"},promo:"code"},pack:{main:function(e){return i.aliases.main.type+"="+e.type+i.delimiter+i.aliases.main.source+"="+e.source+i.delimiter+i.aliases.main.medium+"="+e.medium+i.delimiter+i.aliases.main.campaign+"="+e.campaign+i.delimiter+i.aliases.main.content+"="+e.content+i.delimiter+i.aliases.main.term+"="+e.term+i.delimiter+i.aliases.main.id+"="+e.id+i.delimiter+i.aliases.main.platform+"="+e.platform+i.delimiter+i.aliases.main.format+"="+e.format+i.delimiter+i.aliases.main.tactic+"="+e.tactic},extra:function(e){return i.aliases.extra.fire_date+"="+a.setDate(new Date,e)+i.delimiter+i.aliases.extra.entrance_point+"="+document.location.href+i.delimiter+i.aliases.extra.referer+"="+(document.referrer||n.none)},user:function(e,t){return i.aliases.udata.visits+"="+e+i.delimiter+i.aliases.udata.ip+"="+t+i.delimiter+i.aliases.udata.agent+"="+navigator.userAgent},session:function(e){return i.aliases.session.pages_seen+"="+e+i.delimiter+i.aliases.session.current_page+"="+document.location.href},promo:function(e){return i.aliases.promo+"="+a.setLeadingZeroToInt(a.randomInt(e.min,e.max),e.max.toString().length)}}};t.exports=i},{"./helpers/utils":5,"./terms":9}],3:[function(e,t,r){"use strict";var n=e("../data").delimiter;t.exports={useBase64:!1,setBase64Flag:function(e){this.useBase64=e},encodeData:function(e){return encodeURIComponent(e).replace(/\!/g,"%21").replace(/\~/g,"%7E").replace(/\*/g,"%2A").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")},decodeData:function(e){try{return decodeURIComponent(e).replace(/\%21/g,"!").replace(/\%7E/g,"~").replace(/\%2A/g,"*").replace(/\%27/g,"'").replace(/\%28/g,"(").replace(/\%29/g,")")}catch(t){try{return unescape(e)}catch(r){return""}}},set:function(e,t,r,n,a){var i,s;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),i="; expires="+o.toGMTString()}else i="";s=n&&!a?";domain=."+n:"";var c=this.encodeData(t);this.useBase64&&(c=btoa(c).replace(/=+$/,"")),document.cookie=this.encodeData(e)+"="+c+i+s+"; path=/"},get:function(e){for(var t=this.encodeData(e)+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var a=r[n];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t)){var i=a.substring(t.length,a.length);if(/^[A-Za-z0-9+/]+$/.test(i))try{i=atob(i.padEnd(4*Math.ceil(i.length/4),"="))}catch(s){}return this.decodeData(i)}}return null},destroy:function(e,t,r){this.set(e,"",-1,t,r)},parse:function(e){var t=[],r={};if("string"==typeof e)t.push(e);else for(var a in e)e.hasOwnProperty(a)&&t.push(e[a]);for(var i=0;i<t.length;i++){var s;r[this.unsbjs(t[i])]={},s=this.get(t[i])?this.get(t[i]).split(n):[];for(var o=0;o<s.length;o++){var c=s[o].split("="),u=c.splice(0,1);u.push(c.join("=")),r[this.unsbjs(t[i])][u[0]]=this.decodeData(u[1])}}return r},unsbjs:function(e){return e.replace("sbjs_","")}}},{"../data":2}],4:[function(e,t,r){"use strict";t.exports={parse:function(e){for(var t=this.parseOptions,r=t.parser[t.strictMode?"strict":"loose"].exec(e),n={},a=14;a--;)n[t.key[a]]=r[a]||"";return n[t.q.name]={},n[t.key[12]].replace(t.q.parser,function(e,r,a){r&&(n[t.q.name][r]=a)}),n},parseOptions:{strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},getParam:function(e){for(var t={},r=(e||window.location.search.substring(1)).split("&"),n=0;n<r.length;n++){var a=r[n].split("=");if("undefined"==typeof t[a[0]])t[a[0]]=a[1];else if("string"==typeof t[a[0]]){var i=[t[a[0]],a[1]];t[a[0]]=i}else t[a[0]].push(a[1])}return t},getHost:function(e){return this.parse(e).host.replace("www.","")}}},{}],5:[function(e,t,r){"use strict";t.exports={escapeRegexp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},setDate:function(e,t){var r=e.getTimezoneOffset()/60,n=e.getHours(),a=t||0===t?t:-r;return e.setHours(n+r+a),e.getFullYear()+"-"+this.setLeadingZeroToInt(e.getMonth()+1,2)+"-"+this.setLeadingZeroToInt(e.getDate(),2)+" "+this.setLeadingZeroToInt(e.getHours(),2)+":"+this.setLeadingZeroToInt(e.getMinutes(),2)+":"+this.setLeadingZeroToInt(e.getSeconds(),2)},setLeadingZeroToInt:function(e,t){for(var r=e+"";r.length<t;)r="0"+r;return r},randomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e}}},{}],6:[function(e,t,r){"use strict";var n=e("./data"),a=e("./terms"),i=e("./helpers/cookies"),s=e("./helpers/uri"),o=e("./helpers/utils"),c=e("./params"),u=e("./migrations");t.exports=function(e){var t,r,p,f,m,d,l,g,h,y,_,v,b,x=c.fetch(e),k=s.getParam(),w=x.domain.host,q=x.domain.isolate,I=x.lifetime;function j(e){switch(e){case a.traffic.utm:t=a.traffic.utm,r="undefined"!=typeof k.utm_source?k.utm_source:"undefined"!=typeof k.gclid?"google":"undefined"!=typeof k.yclid?"yandex":a.none,p="undefined"!=typeof k.utm_medium?k.utm_medium:"undefined"!=typeof k.gclid?"cpc":"undefined"!=typeof k.yclid?"cpc":a.none,f="undefined"!=typeof k.utm_campaign?k.utm_campaign:"undefined"!=typeof k[x.campaign_param]?k[x.campaign_param]:"undefined"!=typeof k.gclid?"google_cpc":"undefined"!=typeof k.yclid?"yandex_cpc":a.none,m="undefined"!=typeof k.utm_content?k.utm_content:"undefined"!=typeof k[x.content_param]?k[x.content_param]:a.none,l=k.utm_id||a.none,g=k.utm_source_platform||a.none,h=k.utm_creative_format||a.none,y=k.utm_marketing_tactic||a.none,d="undefined"!=typeof k.utm_term?k.utm_term:"undefined"!=typeof k[x.term_param]?k[x.term_param]:function(){var e=document.referrer;if(k.utm_term)return k.utm_term;if(!(e&&s.parse(e).host&&s.parse(e).host.match(/^(?:.*\.)?yandex\..{2,9}$/i)))return!1;try{return s.getParam(s.parse(document.referrer).query).text}catch(t){return!1}}()||a.none;break;case a.traffic.organic:t=a.traffic.organic,r=r||s.getHost(document.referrer),p=a.referer.organic,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.referral:t=a.traffic.referral,r=r||s.getHost(document.referrer),p=p||a.referer.referral,f=a.none,m=s.parse(document.referrer).path,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.typein:t=a.traffic.typein,r=x.typein_attributes.source,p=x.typein_attributes.medium,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;default:t=a.oops,r=a.oops,p=a.oops,f=a.oops,m=a.oops,d=a.oops,l=a.oops,g=a.oops,h=a.oops,y=a.oops}var i={type:t,source:r,medium:p,campaign:f,content:m,term:d,id:l,platform:g,format:h,tactic:y};return n.pack.main(i)}function R(e){var t=document.referrer;switch(e){case a.traffic.organic:return!!t&&H(t)&&function(e){var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp("yandex")+"\\..{2,9}$"),n=new RegExp(".*"+o.escapeRegexp("text")+"=.*"),a=new RegExp("^(?:www\\.)?"+o.escapeRegexp("google")+"\\..{2,9}$");if(s.parse(e).query&&s.parse(e).host.match(t)&&s.parse(e).query.match(n))return r="yandex",!0;if(s.parse(e).host.match(a))return r="google",!0;if(!s.parse(e).query)return!1;for(var i=0;i<x.organics.length;i++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.organics[i].host)+"$","i"))&&s.parse(e).query.match(new RegExp(".*"+o.escapeRegexp(x.organics[i].param)+"=.*","i")))return r=x.organics[i].display||x.organics[i].host,!0;if(i+1===x.organics.length)return!1}}(t);case a.traffic.referral:return!!t&&H(t)&&function(e){if(!(x.referrals.length>0))return r=s.getHost(e),!0;for(var t=0;t<x.referrals.length;t++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.referrals[t].host)+"$","i")))return r=x.referrals[t].display||x.referrals[t].host,p=x.referrals[t].medium||a.referer.referral,!0;if(t+1===x.referrals.length)return r=s.getHost(e),!0}}(t);default:return!1}}function H(e){if(x.domain){if(q)return s.getHost(e)!==s.getHost(w);var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp(w)+"$","i");return!s.getHost(e).match(t)}return s.getHost(e)!==s.getHost(document.location.href)}function D(){i.set(n.containers.current_extra,n.pack.extra(x.timezone_offset),I,w,q),i.get(n.containers.first_extra)||i.set(n.containers.first_extra,n.pack.extra(x.timezone_offset),I,w,q)}return i.setBase64Flag(x.base64),u.go(I,w,q),i.set(n.containers.current,function(){var e;if("undefined"!=typeof k.utm_source||"undefined"!=typeof k.utm_medium||"undefined"!=typeof k.utm_campaign||"undefined"!=typeof k.utm_content||"undefined"!=typeof k.utm_term||"undefined"!=typeof k.utm_id||"undefined"!=typeof k.utm_source_platform||"undefined"!=typeof k.utm_creative_format||"undefined"!=typeof k.utm_marketing_tactic||"undefined"!=typeof k.gclid||"undefined"!=typeof k.yclid||"undefined"!=typeof k[x.campaign_param]||"undefined"!=typeof k[x.term_param]||"undefined"!=typeof k[x.content_param])D(),e=j(a.traffic.utm);else if(R(a.traffic.organic))D(),e=j(a.traffic.organic);else if(!i.get(n.containers.session)&&R(a.traffic.referral))D(),e=j(a.traffic.referral);else{if(i.get(n.containers.first)||i.get(n.containers.current))return i.get(n.containers.current);D(),e=j(a.traffic.typein)}return e}(),I,w,q),i.get(n.containers.first)||i.set(n.containers.first,i.get(n.containers.current),I,w,q),i.get(n.containers.udata)?(_=parseInt(i.parse(n.containers.udata)[i.unsbjs(n.containers.udata)][n.aliases.udata.visits])||1,_=i.get(n.containers.session)?_:_+1,v=n.pack.user(_,x.user_ip)):(_=1,v=n.pack.user(_,x.user_ip)),i.set(n.containers.udata,v,I,w,q),i.get(n.containers.session)?(b=parseInt(i.parse(n.containers.session)[i.unsbjs(n.containers.session)][n.aliases.session.pages_seen])||1,b+=1):b=1,i.set(n.containers.session,n.pack.session(b),x.session_length,w,q),x.promocode&&!i.get(n.containers.promocode)&&i.set(n.containers.promocode,n.pack.promo(x.promocode),I,w,q),i.parse(n.containers)}},{"./data":2,"./helpers/cookies":3,"./helpers/uri":4,"./helpers/utils":5,"./migrations":7,"./params":8,"./terms":9}],7:[function(e,t,r){"use strict";var n=e("./data"),a=e("./helpers/cookies");t.exports={go:function(e,t,r){var i,s=this.migrations,o={l:e,d:t,i:r};if(a.get(n.containers.first)||a.get(n.service.migrations)){if(!a.get(n.service.migrations))for(i=0;i<s.length;i++)s[i].go(s[i].id,o)}else{var c=[];for(i=0;i<s.length;i++)c.push(s[i].id);var u="";for(i=0;i<c.length;i++)u+=c[i]+"=1",i<c.length-1&&(u+=n.delimiter);a.set(n.service.migrations,u,o.l,o.d,o.i)}},migrations:[{id:"1418474375998",version:"1.0.0-beta",go:function(e,t){var r=e+"=1",i=e+"=0",s=function(e,t,r){return t||r?e:n.delimiter};try{var o=[];for(var c in n.containers)n.containers.hasOwnProperty(c)&&o.push(n.containers[c]);for(var u=0;u<o.length;u++)if(a.get(o[u])){var p=a.get(o[u]).replace(/(\|)?\|(\|)?/g,s);a.destroy(o[u],t.d,t.i),a.destroy(o[u],t.d,!t.i),a.set(o[u],p,t.l,t.d,t.i)}a.get(n.containers.session)&&a.set(n.containers.session,n.pack.session(0),t.l,t.d,t.i),a.set(n.service.migrations,r,t.l,t.d,t.i)}catch(f){a.set(n.service.migrations,i,t.l,t.d,t.i)}}}]}},{"./data":2,"./helpers/cookies":3}],8:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/uri");t.exports={fetch:function(e){var t=e||{},r={};if(r.lifetime=this.validate.checkFloat(t.lifetime)||6,r.lifetime=parseInt(30*r.lifetime*24*60),r.session_length=this.validate.checkInt(t.session_length)||30,r.timezone_offset=this.validate.checkInt(t.timezone_offset),r.base64=t.base64||!1,r.campaign_param=t.campaign_param||!1,r.term_param=t.term_param||!1,r.content_param=t.content_param||!1,r.user_ip=t.user_ip||n.none,t.promocode?(r.promocode={},r.promocode.min=parseInt(t.promocode.min)||1e5,r.promocode.max=parseInt(t.promocode.max)||999999):r.promocode=!1,t.typein_attributes&&t.typein_attributes.source&&t.typein_attributes.medium?(r.typein_attributes={},r.typein_attributes.source=t.typein_attributes.source,r.typein_attributes.medium=t.typein_attributes.medium):r.typein_attributes={source:"(direct)",medium:"(none)"},t.domain&&this.validate.isString(t.domain)?r.domain={host:t.domain,isolate:!1}:t.domain&&t.domain.host?r.domain=t.domain:r.domain={host:a.getHost(document.location.hostname),isolate:!1},r.referrals=[],t.referrals&&t.referrals.length>0)for(var i=0;i<t.referrals.length;i++)t.referrals[i].host&&r.referrals.push(t.referrals[i]);if(r.organics=[],t.organics&&t.organics.length>0)for(var s=0;s<t.organics.length;s++)t.organics[s].host&&t.organics[s].param&&r.organics.push(t.organics[s]);return r.organics.push({host:"bing.com",param:"q",display:"bing"}),r.organics.push({host:"yahoo.com",param:"p",display:"yahoo"}),r.organics.push({host:"about.com",param:"q",display:"about"}),r.organics.push({host:"aol.com",param:"q",display:"aol"}),r.organics.push({host:"ask.com",param:"q",display:"ask"}),r.organics.push({host:"globososo.com",param:"q",display:"globo"}),r.organics.push({host:"go.mail.ru",param:"q",display:"go.mail.ru"}),r.organics.push({host:"rambler.ru",param:"query",display:"rambler"}),r.organics.push({host:"tut.by",param:"query",display:"tut.by"}),r.referrals.push({host:"t.co",display:"twitter.com"}),r.referrals.push({host:"plus.url.google.com",display:"plus.google.com"}),r},validate:{checkFloat:function(e){return!(!e||!this.isNumeric(parseFloat(e)))&&parseFloat(e)},checkInt:function(e){return!(!e||!this.isNumeric(parseInt(e)))&&parseInt(e)},isNumeric:function(e){return!isNaN(e)},isString:function(e){return"[object String]"===Object.prototype.toString.call(e)}}}},{"./helpers/uri":4,"./terms":9}],9:[function(e,t,r){"use strict";t.exports={traffic:{utm:"utm",organic:"organic",referral:"referral",typein:"typein"},referer:{referral:"referral",organic:"organic",social:"social"},none:"(none)",oops:"(Houston, we have a problem)"}},{}]},{},[1])(1)});
!function(t){"use strict";const e=t.params,n=(document.querySelector.bind(document),(t,e)=>e.split(".").reduce((t,e)=>t&&t[e],t)),i=()=>null,s=t=>null===t||t===undefined?"":t,o="wc/store/checkout";function a(t){window.wp&&window.wp.data&&window.wp.data.dispatch&&window.wc&&window.wc.wcBlocksData&&window.wp.data.dispatch(window.wc.wcBlocksData.CHECKOUT_STORE_KEY).__internalSetExtensionData("woocommerce/order-attribution",t,!0)}function r(){return"undefined"!=typeof sbjs}function c(){if(window.wp&&window.wp.data&&"function"==typeof window.wp.data.subscribe){const e=window.wp.data.subscribe(function(){e(),a(t.getAttributionData())},o)}}t.getAttributionData=function(){const s=e.allowTracking&&r()?n:i,o=r()?sbjs.get:{},a=Object.entries(t.fields).map(([t,e])=>[t,s(o,e)]);return Object.fromEntries(a)},t.setOrderTracking=function(n){if(e.allowTracking=n,n){if(!r())return;sbjs.init({lifetime:Number(e.lifetime),session_length:Number(e.session),base64:Boolean(e.base64),timezone_offset:"0"})}else!function(){const t=window.location.hostname;["sbjs_current","sbjs_current_add","sbjs_first","sbjs_first_add","sbjs_session","sbjs_udata","sbjs_migrations","sbjs_promo"].forEach(e=>{document.cookie=`${e}=; path=/; max-age=-999; domain=.${t};`})}();const i=t.getAttributionData();!function(t){for(const e of document.querySelectorAll("wc-order-attribution-inputs"))e.values=t}(i),a(i)},t.setOrderTracking(e.allowTracking),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",c):c(),window.customElements.define("wc-order-attribution-inputs",class extends HTMLElement{constructor(){if(super(),this._fieldNames=Object.keys(t.fields),this.hasOwnProperty("_values")){let t=this.values;delete this.values,this.values=t||{}}}connectedCallback(){this.innerHTML="";const t=new DocumentFragment;for(const n of this._fieldNames){const i=document.createElement("input");i.type="hidden",i.name=`${e.prefix}${n}`,i.value=s(this.values&&this.values[n]||""),t.appendChild(i)}this.appendChild(t)}set values(t){if(this._values=t,this.isConnected)for(const t of this._fieldNames){const n=this.querySelector(`input[name="${e.prefix}${t}"]`);n?n.value=s(this.values[t]):console.warn(`Field "${t}" not found. `+"Most likely, the '<wc-order-attribution-inputs>' element was manipulated.")}}get values(){return this._values}})}(window.wc_order_attribution);
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.postscribe=o():e.postscribe=o()}(this,function(){return function(e){function o(r){if(t[r])return t[r].exports;var n=t[r]={exports:{},id:r,loaded:!1};return e[r].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}var t={};return o.m=e,o.c=t,o.p="",o(0)}([function(e,o,t){"use strict";var r=t(1),n=function(e){return e&&e.__esModule?e:{default:e}}(r);e.exports=n.default},function(e,o,t){"use strict";function r(){}function n(){var e=f.shift();if(e){var o=_.last(e);o.afterDequeue(),e.stream=i.apply(void 0,e),o.afterStreamStart()}}function i(e,o,t){function i(e){e=t.beforeWrite(e),u.write(e),t.afterWrite(e)}u=new c.default(e,t),u.id=g++,u.name=t.name||u.id,s.streams[u.name]=u;var d=e.ownerDocument,p={close:d.close,open:d.open,write:d.write,writeln:d.writeln};a(d,{close:r,open:r,write:function(){for(var e=arguments.length,o=Array(e),t=0;t<e;t++)o[t]=arguments[t];return i(o.join(""))},writeln:function(){for(var e=arguments.length,o=Array(e),t=0;t<e;t++)o[t]=arguments[t];return i(o.join("")+"\n")}});var _=u.win.onerror||r;return u.win.onerror=function(e,o,r){t.error({msg:e+" - "+o+": "+r}),_.apply(u.win,[e,o,r])},u.write(o,function(){a(d,p),u.win.onerror=_,t.done(),u=null,n()}),u}function s(e,o,t){if(_.isFunction(t))t={done:t};else if("clear"===t)return f=[],u=null,void(g=0);t=_.defaults(t,l),e=/^#/.test(e)?window.document.getElementById(e.substr(1)):e.jquery?e[0]:e;var i=[e,o,t];return e.postscribe={cancel:function(){i.stream?i.stream.abort():i[1]=r}},t.beforeEnqueue(i),f.push(i),u||n(),e.postscribe}o.__esModule=!0;var a=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var t=arguments[o];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e};o.default=s;var d=t(2),c=function(e){return e&&e.__esModule?e:{default:e}}(d),p=t(4),_=function(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t]);return o.default=e,o}(p),l={afterAsync:r,afterDequeue:r,afterStreamStart:r,afterWrite:r,autoFix:!0,beforeEnqueue:r,beforeWriteToken:function(e){return e},beforeWrite:function(e){return e},done:r,error:function(e){throw new Error(e.msg)},releaseAsync:!1},g=0,f=[],u=null;a(s,{streams:{},queue:f,WriteStream:c.default})},function(e,o,t){"use strict";function r(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function n(e,o){var t=_+o,r=e.getAttribute(t);return p.existy(r)?String(r):r}function i(e,o){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=_+o;p.existy(t)&&""!==t?e.setAttribute(r,t):e.removeAttribute(r)}o.__esModule=!0;var s=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var t=arguments[o];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},a=t(3),d=function(e){return e&&e.__esModule?e:{default:e}}(a),c=t(4),p=function(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t]);return o.default=e,o}(c),_="data-ps-",l="ps-style",g="ps-script",f=function(){function e(o){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.root=o,this.options=t,this.doc=o.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new d.default("",{autoFix:t.autoFix}),this.actuals=[o],this.proxyHistory="",this.proxyRoot=this.doc.createElement(o.nodeName),this.scriptStack=[],this.writeQueue=[],i(this.proxyRoot,"proxyof",0)}return e.prototype.write=function(){var e;for((e=this.writeQueue).push.apply(e,arguments);!this.deferredRemote&&this.writeQueue.length;){var o=this.writeQueue.shift();p.isFunction(o)?this._callFunction(o):this._writeImpl(o)}},e.prototype._callFunction=function(e){var o={type:"function",value:e.name||e.toString()};this._onScriptStart(o),e.call(this.win,this.doc),this._onScriptDone(o)},e.prototype._writeImpl=function(e){this.parser.append(e);for(var o=void 0,t=void 0,r=void 0,n=[];(o=this.parser.readToken())&&!(t=p.isScript(o))&&!(r=p.isStyle(o));)(o=this.options.beforeWriteToken(o))&&n.push(o);n.length>0&&this._writeStaticTokens(n),t&&this._handleScriptToken(o),r&&this._handleStyleToken(o)},e.prototype._writeStaticTokens=function(e){var o=this._buildChunk(e);return o.actual?(o.html=this.proxyHistory+o.actual,this.proxyHistory+=o.proxy,this.proxyRoot.innerHTML=o.html,this._walkChunk(),o):null},e.prototype._buildChunk=function(e){for(var o=this.actuals.length,t=[],r=[],n=[],i=e.length,s=0;s<i;s++){var a=e[s],d=a.toString();if(t.push(d),a.attrs){if(!/^noscript$/i.test(a.tagName)){var c=o++;r.push(d.replace(/(\/?>)/," "+_+"id="+c+" $1")),a.attrs.id!==g&&a.attrs.id!==l&&n.push("atomicTag"===a.type?"":"<"+a.tagName+" "+_+"proxyof="+c+(a.unary?" />":">"))}}else r.push(d),n.push("endTag"===a.type?d:"")}return{tokens:e,raw:t.join(""),actual:r.join(""),proxy:n.join("")}},e.prototype._walkChunk=function(){for(var e=void 0,o=[this.proxyRoot];p.existy(e=o.shift());){var t=1===e.nodeType;if(!(t&&n(e,"proxyof"))){t&&(this.actuals[n(e,"id")]=e,i(e,"id"));var r=e.parentNode&&n(e.parentNode,"proxyof");r&&this.actuals[r].appendChild(e)}o.unshift.apply(o,p.toArray(e.childNodes))}},e.prototype._handleScriptToken=function(e){var o=this,t=this.parser.clear();t&&this.writeQueue.unshift(t),e.src=e.attrs.src||e.attrs.SRC,(e=this.options.beforeWriteToken(e))&&(e.src&&this.scriptStack.length?this.deferredRemote=e:this._onScriptStart(e),this._writeScriptToken(e,function(){o._onScriptDone(e)}))},e.prototype._handleStyleToken=function(e){var o=this.parser.clear();o&&this.writeQueue.unshift(o),e.type=e.attrs.type||e.attrs.TYPE||"text/css",e=this.options.beforeWriteToken(e),e&&this._writeStyleToken(e),o&&this.write()},e.prototype._writeStyleToken=function(e){var o=this._buildStyle(e);this._insertCursor(o,l),e.content&&(o.styleSheet&&!o.sheet?o.styleSheet.cssText=e.content:o.appendChild(this.doc.createTextNode(e.content)))},e.prototype._buildStyle=function(e){var o=this.doc.createElement(e.tagName);return o.setAttribute("type",e.type),p.eachKey(e.attrs,function(e,t){o.setAttribute(e,t)}),o},e.prototype._insertCursor=function(e,o){this._writeImpl('<span id="'+o+'"/>');var t=this.doc.getElementById(o);t&&t.parentNode.replaceChild(e,t)},e.prototype._onScriptStart=function(e){e.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(e)},e.prototype._onScriptDone=function(e){return e!==this.scriptStack[0]?void this.options.error({msg:"Bad script nesting or script finished twice"}):(this.scriptStack.shift(),this.write.apply(this,e.outerWrites),void(!this.scriptStack.length&&this.deferredRemote&&(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)))},e.prototype._writeScriptToken=function(e,o){var t=this._buildScript(e),r=this._shouldRelease(t),n=this.options.afterAsync;e.src&&(t.src=e.src,this._scriptLoadHandler(t,r?n:function(){o(),n()}));try{this._insertCursor(t,g),t.src&&!r||o()}catch(e){this.options.error(e),o()}},e.prototype._buildScript=function(e){var o=this.doc.createElement(e.tagName);return p.eachKey(e.attrs,function(e,t){o.setAttribute(e,t)}),e.content&&(o.text=e.content),o},e.prototype._scriptLoadHandler=function(e,o){function t(){e=e.onload=e.onreadystatechange=e.onerror=null}function r(){t(),null!=o&&o(),o=null}function n(e){t(),a(e),null!=o&&o(),o=null}function i(e,o){var t=e["on"+o];null!=t&&(e["_on"+o]=t)}var a=this.options.error;i(e,"load"),i(e,"error"),s(e,{onload:function(){if(e._onload)try{e._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(o){n({msg:"onload handler failed "+o+" @ "+e.src})}r()},onerror:function(){if(e._onerror)try{e._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(o){return void n({msg:"onerror handler failed "+o+" @ "+e.src})}n({msg:"remote script failed "+e.src})},onreadystatechange:function(){/^(loaded|complete)$/.test(e.readyState)&&r()}})},e.prototype._shouldRelease=function(e){return!/^script$/i.test(e.nodeName)||!!(this.options.releaseAsync&&e.src&&e.hasAttribute("async"))},e}();o.default=f},function(e,o,t){!function(o,t){e.exports=function(){return function(e){function o(r){if(t[r])return t[r].exports;var n=t[r]={exports:{},id:r,loaded:!1};return e[r].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}var t={};return o.m=e,o.c=t,o.p="",o(0)}([function(e,o,t){"use strict";var r=t(1),n=function(e){return e&&e.__esModule?e:{default:e}}(r);e.exports=n.default},function(e,o,t){"use strict";function r(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t]);return o.default=e,o}function n(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}o.__esModule=!0;var i=t(2),s=r(i),a=t(3),d=r(a),c=t(6),p=function(e){return e&&e.__esModule?e:{default:e}}(c),_=t(5),l={comment:/^<!--/,endTag:/^<\//,atomicTag:/^<\s*(script|style|noscript|iframe|textarea)[\s\/>]/i,startTag:/^</,chars:/^[^<]/},g=function(){function e(){var o=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,e),this.stream=t;var i=!1,a={};for(var d in s)s.hasOwnProperty(d)&&(r.autoFix&&(a[d+"Fix"]=!0),i=i||a[d+"Fix"]);i?(this._readToken=(0,p.default)(this,a,function(){return o._readTokenImpl()}),this._peekToken=(0,p.default)(this,a,function(){return o._peekTokenImpl()})):(this._readToken=this._readTokenImpl,this._peekToken=this._peekTokenImpl)}return e.prototype.append=function(e){this.stream+=e},e.prototype.prepend=function(e){this.stream=e+this.stream},e.prototype._readTokenImpl=function(){var e=this._peekTokenImpl();if(e)return this.stream=this.stream.slice(e.length),e},e.prototype._peekTokenImpl=function(){for(var e in l)if(l.hasOwnProperty(e)&&l[e].test(this.stream)){var o=d[e](this.stream);if(o)return"startTag"===o.type&&/script|style/i.test(o.tagName)?null:(o.text=this.stream.substr(0,o.length),o)}},e.prototype.peekToken=function(){return this._peekToken()},e.prototype.readToken=function(){return this._readToken()},e.prototype.readTokens=function(e){for(var o=void 0;o=this.readToken();)if(e[o.type]&&!1===e[o.type](o))return},e.prototype.clear=function(){var e=this.stream;return this.stream="",e},e.prototype.rest=function(){return this.stream},e}();o.default=g,g.tokenToString=function(e){return e.toString()},g.escapeAttributes=function(e){var o={};for(var t in e)e.hasOwnProperty(t)&&(o[t]=(0,_.escapeQuotes)(e[t],null));return o},g.supports=s;for(var f in s)s.hasOwnProperty(f)&&(g.browserHasFlaw=g.browserHasFlaw||!s[f]&&f)},function(e,o){"use strict";o.__esModule=!0;var t=!1,r=!1,n=window.document.createElement("div");try{var i="<P><I></P></I>";n.innerHTML=i,o.tagSoup=t=n.innerHTML!==i}catch(e){o.tagSoup=t=!1}try{n.innerHTML="<P><i><P></P></i></P>",o.selfClose=r=2===n.childNodes.length}catch(e){o.selfClose=r=!1}n=null,o.tagSoup=t,o.selfClose=r},function(e,o,t){"use strict";function r(e){var o=e.indexOf("--\x3e");if(o>=0)return new c.CommentToken(e.substr(4,o-1),o+3)}function n(e){var o=e.indexOf("<");return new c.CharsToken(o>=0?o:e.length)}function i(e){if(-1!==e.indexOf(">")){var o=e.match(p.startTag);if(o){var t=function(){var e={},t={},r=o[2];return o[2].replace(p.attr,function(o,n){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(e[arguments[5]]="",t[arguments[5]]=!0):e[n]=arguments[2]||arguments[3]||arguments[4]||p.fillAttr.test(n)&&n||"":e[n]="",r=r.replace(o,"")}),{v:new c.StartTagToken(o[1],o[0].length,e,t,!!o[3],r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))}}();if("object"===(void 0===t?"undefined":d(t)))return t.v}}}function s(e){var o=i(e);if(o){var t=e.slice(o.length);if(t.match(new RegExp("</\\s*"+o.tagName+"\\s*>","i"))){var r=t.match(new RegExp("([\\s\\S]*?)</\\s*"+o.tagName+"\\s*>","i"));if(r)return new c.AtomicTagToken(o.tagName,r[0].length+o.length,o.attrs,o.booleanAttrs,r[1])}}}function a(e){var o=e.match(p.endTag);if(o)return new c.EndTagToken(o[1],o[0].length)}o.__esModule=!0;var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};o.comment=r,o.chars=n,o.startTag=i,o.atomicTag=s,o.endTag=a;var c=t(4),p={startTag:/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,endTag:/^<\/([\-A-Za-z0-9_]+)[^>]*>/,attr:/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,fillAttr:/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i}},function(e,o,t){"use strict";function r(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}o.__esModule=!0,o.EndTagToken=o.AtomicTagToken=o.StartTagToken=o.TagToken=o.CharsToken=o.CommentToken=o.Token=void 0;var n=t(5),i=(o.Token=function e(o,t){r(this,e),this.type=o,this.length=t,this.text=""},o.CommentToken=function(){function e(o,t){r(this,e),this.type="comment",this.length=t||(o?o.length:0),this.text="",this.content=o}return e.prototype.toString=function(){return"\x3c!--"+this.content},e}(),o.CharsToken=function(){function e(o){r(this,e),this.type="chars",this.length=o,this.text=""}return e.prototype.toString=function(){return this.text},e}(),o.TagToken=function(){function e(o,t,n,i,s){r(this,e),this.type=o,this.length=n,this.text="",this.tagName=t,this.attrs=i,this.booleanAttrs=s,this.unary=!1,this.html5Unary=!1}return e.formatTag=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t="<"+e.tagName;for(var r in e.attrs)if(e.attrs.hasOwnProperty(r)){t+=" "+r;var i=e.attrs[r];void 0!==e.booleanAttrs&&void 0!==e.booleanAttrs[r]||(t+='="'+(0,n.escapeQuotes)(i)+'"')}return e.rest&&(t+=" "+e.rest),t+=e.unary&&!e.html5Unary?"/>":">",void 0!==o&&null!==o&&(t+=o+"</"+e.tagName+">"),t},e}());o.StartTagToken=function(){function e(o,t,n,i,s,a){r(this,e),this.type="startTag",this.length=t,this.text="",this.tagName=o,this.attrs=n,this.booleanAttrs=i,this.html5Unary=!1,this.unary=s,this.rest=a}return e.prototype.toString=function(){return i.formatTag(this)},e}(),o.AtomicTagToken=function(){function e(o,t,n,i,s){r(this,e),this.type="atomicTag",this.length=t,this.text="",this.tagName=o,this.attrs=n,this.booleanAttrs=i,this.unary=!1,this.html5Unary=!1,this.content=s}return e.prototype.toString=function(){return i.formatTag(this,this.content)},e}(),o.EndTagToken=function(){function e(o,t){r(this,e),this.type="endTag",this.length=t,this.text="",this.tagName=o}return e.prototype.toString=function(){return"</"+this.tagName+">"},e}()},function(e,o){"use strict";function t(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?e.replace(/([^"]*)"/g,function(e,o){return/\\/.test(o)?o+'"':o+'\\"'}):o}o.__esModule=!0,o.escapeQuotes=t},function(e,o){"use strict";function t(e){return e&&"startTag"===e.type&&(e.unary=a.test(e.tagName)||e.unary,e.html5Unary=!/\/>$/.test(e.text)),e}function r(e,o){var r=e.stream,n=t(o());return e.stream=r,n}function n(e,o){var t=o.pop();e.prepend("</"+t.tagName+">")}function i(){var e=[];return e.last=function(){return this[this.length-1]},e.lastTagNameEq=function(e){var o=this.last();return o&&o.tagName&&o.tagName.toUpperCase()===e.toUpperCase()},e.containsTagName=function(e){for(var o,t=0;o=this[t];t++)if(o.tagName===e)return!0;return!1},e}function s(e,o,s){function a(){var o=r(e,s);o&&p[o.type]&&p[o.type](o)}var c=i(),p={startTag:function(t){var r=t.tagName;"TR"===r.toUpperCase()&&c.lastTagNameEq("TABLE")?(e.prepend("<TBODY>"),a()):o.selfCloseFix&&d.test(r)&&c.containsTagName(r)?c.lastTagNameEq(r)?n(e,c):(e.prepend("</"+t.tagName+">"),a()):t.unary||c.push(t)},endTag:function(t){c.last()?o.tagSoupFix&&!c.lastTagNameEq(t.tagName)?n(e,c):c.pop():o.tagSoupFix&&(s(),a())}};return function(){return a(),t(s())}}o.__esModule=!0,o.default=s;var a=/^(AREA|BASE|BASEFONT|BR|COL|FRAME|HR|IMG|INPUT|ISINDEX|LINK|META|PARAM|EMBED)$/i,d=/^(COLGROUP|DD|DT|LI|OPTIONS|P|TD|TFOOT|TH|THEAD|TR)$/i}])}()}()},function(e,o){"use strict";function t(e){return void 0!==e&&null!==e}function r(e){return"function"==typeof e}function n(e,o,t){var r=void 0,n=e&&e.length||0;for(r=0;r<n;r++)o.call(t,e[r],r)}function i(e,o,t){for(var r in e)e.hasOwnProperty(r)&&o.call(t,r,e[r])}function s(e,o){return e=e||{},i(o,function(o,r){t(e[o])||(e[o]=r)}),e}function a(e){try{return Array.prototype.slice.call(e)}catch(t){var o=function(){var o=[];return n(e,function(e){o.push(e)}),{v:o}}();if("object"===(void 0===o?"undefined":l(o)))return o.v}}function d(e){return e[e.length-1]}function c(e,o){return!(!e||"startTag"!==e.type&&"atomicTag"!==e.type||!("tagName"in e)||!~e.tagName.toLowerCase().indexOf(o))}function p(e){return c(e,"script")}function _(e){return c(e,"style")}o.__esModule=!0;var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};o.existy=t,o.isFunction=r,o.each=n,o.eachKey=i,o.defaults=s,o.toArray=a,o.last=d,o.isTag=c,o.isScript=p,o.isStyle=_}])}),function(e,o){e.gdpr_lightbox=function(e,o){"use strict";function t(e){var o=I();return U&&e.length?(e.one(U,o.resolve),setTimeout(o.resolve,500)):o.resolve(),o.promise()}function r(e,t,r){if(1===arguments.length)return o.extend({},e);if("string"==typeof t){if(void 0===r)return void 0===e[t]?null:e[t];e[t]=r}else o.extend(e,t);return this}function n(e){for(var o,t=decodeURI(e.split("#")[0]).split("&"),r={},n=0,i=t.length;n<i;n++)t[n]&&(o=t[n].split("="),r[o[0]]=o[1]);return r}function i(e,t){return e+(e.indexOf("?")>-1?"&":"?")+o.param(t)}function s(e,o){var t=e.indexOf("#");return-1===t?o:(t>0&&(e=e.substr(t)),o+e)}function a(e){return o('<span class="gdpr_lightbox-error"></span>').append(e)}function d(e,t){var r=t.opener()&&t.opener().data("gdpr_lightbox-desc")||"Image with no description",n=o('<img src="'+e+'" alt="'+r+'"/>'),i=I(),s=function(){i.reject(a("Failed loading image"))};return n.on("load",function(){if(0===this.naturalWidth)return s();i.resolve(n)}).on("error",s),i.promise()}function c(e,t){var r,n,i;try{r=o(e)}catch(e){return!1}return!!r.length&&(n=o('<i style="display:none !important"></i>'),i=r.hasClass("gdpr_lightbox-hide"),t.element().one("gdpr_lightbox:remove",function(){n.before(r).remove(),i&&!r.closest(".gdpr_lightbox-content").length&&r.addClass("gdpr_lightbox-hide")}),r.removeClass("gdpr_lightbox-hide").after(n))}function p(e){var t=P.exec(e);return!!t&&f(s(e,i("https://www.youtube"+(t[2]||"")+".com/embed/"+t[4],o.extend({autoplay:1},n(t[5]||"")))))}function _(e){var t=R.exec(e);return!!t&&f(s(e,i("https://player.vimeo.com/video/"+t[3],o.extend({autoplay:1},n(t[4]||"")))))}function l(e){var t=F.exec(e);return!!t&&(0!==e.indexOf("http")&&(e="https:"+e),f(s(e,i("https://www.facebook.com/plugins/video.php?href="+e,o.extend({autoplay:1},n(t[4]||""))))))}function g(e){var o=M.exec(e);return!!o&&f(s(e,i("https://www.google."+o[3]+"/maps?"+o[6],{output:o[6].indexOf("layer=c")>0?"svembed":"embed"})))}function f(e){return'<div class="gdpr_lightbox-iframe-container"><iframe frameborder="0" allowfullscreen allow="autoplay; fullscreen" src="'+e+'"/></div>'}function u(){return C.documentElement.clientHeight?C.documentElement.clientHeight:Math.round(S.height())}function v(e){var o=k();o&&(27===e.keyCode&&o.options("esc")&&o.close(),9===e.keyCode&&m(e,o))}function m(e,o){var t=o.element().find(E),r=t.index(C.activeElement);e.shiftKey&&r<=0?(t.get(t.length-1),e.preventDefault()):e.shiftKey||r!==t.length-1||(t.get(0),e.preventDefault())}function h(){o.each(O,function(e,o){o.resize()})}function b(e){1===O.unshift(e)&&(N.addClass("gdpr_lightbox-active"),S.on({resize:h,keydown:v})),o("body > *").not(e.element()).addClass("gdpr_lightbox-hidden").each(function(){var e=o(this);void 0===e.data(D)&&e.data(D,e.attr(j)||null)}).attr(j,"true")}function y(e){var t;e.element().attr(j,"true"),1===O.length&&(N.removeClass("gdpr_lightbox-active"),S.off({resize:h,keydown:v})),O=o.grep(O,function(o){return e!==o}),t=O.length?O[0].element():o(".gdpr_lightbox-hidden"),t.removeClass("gdpr_lightbox-hidden").each(function(){var e=o(this),t=e.data(D);t?e.attr(j,t):e.removeAttr(j),e.removeData(D)})}function k(){return 0===O.length?null:O[0]}function w(e,t,r,n){var i,s="inline",a=o.extend({},r);return n&&a[n]?(i=a[n](e,t),s=n):(o.each(["inline","iframe"],function(e,o){delete a[o],a[o]=r[o]}),o.each(a,function(o,r){return!r||(!(!r.test||r.test(e,t))||(i=r(e,t),!1!==i?(s=o,!1):void 0))})),{handler:s,content:i||""}}function x(e,n,i,s){function a(e){p=o(e).css("max-height",u()+"px"),c.find(".gdpr_lightbox-loader").each(function(){var e=o(this);t(e).always(function(){e.remove()})}),c.removeClass("gdpr_lightbox-loading").find(".gdpr_lightbox-content").empty().append(p),l=!0,p.trigger("gdpr_lightbox:ready",[_])}var d,c,p,_=this,l=!1,g=!1;n=o.extend({},A,n),c=o(n.template),_.element=function(){return c},_.opener=function(){return i},_.options=o.proxy(r,_,n),_.handlers=o.proxy(r,_,n.handlers),_.resize=function(){l&&!g&&p.css("max-height",u()+"px").trigger("gdpr_lightbox:resize",[_])},_.close=function(){if(l&&!g){g=!0,y(_);var e=I();return s&&(C.activeElement===c[0]||o.contains(c[0],C.activeElement)),p.trigger("gdpr_lightbox:close",[_]),c.removeClass("gdpr_lightbox-opened").addClass("gdpr_lightbox-closed"),t(p.add(c)).always(function(){p.trigger("gdpr_lightbox:remove",[_]),c.remove(),c=void 0,e.resolve()}),e.promise()}},d=w(e,_,n.handlers,n.handler),c.attr(j,"false").addClass("gdpr_lightbox-loading gdpr_lightbox-opened gdpr_lightbox-"+d.handler).appendTo("body").on("click","[data-gdpr_lightbox-close]",function(e){o(e.target).is("[data-gdpr_lightbox-close]")&&_.close()}).trigger("gdpr_lightbox:open",[_]),b(_),o.when(d.content).always(a)}function T(e,t,r){e.preventDefault?(e.preventDefault(),r=o(this),e=r.data("gdpr_lightbox-target")||r.attr("href")||r.attr("src")):r=o(r);var n=new x(e,o.extend({},r.data("gdpr_lightbox-options")||r.data("gdpr_lightbox"),t),r,C.activeElement);if(!e.preventDefault)return n}var C=e.document,S=o(e),I=o.Deferred,N=o("html"),O=[],j="aria-hidden",D="gdpr_lightbox-"+j,E='a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable],[tabindex]:not([tabindex^="-"])',A={esc:!0,handler:null,handlers:{image:d,inline:c,youtube:p,vimeo:_,googlemaps:g,facebookvideo:l,iframe:f},template:'<div class="gdpr_lightbox" role="dialog" aria-label="Dialog Window (Press escape to close)" tabindex="-1"><div class="gdpr_lightbox-wrap" data-gdpr_lightbox-close role="document"><div class="gdpr_lightbox-loader" aria-hidden="true">Loading...</div><div class="gdpr_lightbox-container"><div class="gdpr_lightbox-content"></div><button class="gdpr_lightbox-close" type="button" aria-label="Close (Press escape to close)" data-gdpr_lightbox-close>&times;</button></div></div></div>'},J=/(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i,P=/(youtube(-nocookie)?\.com|youtu\.be)\/(watch\?v=|v\/|u\/|embed\/?)?([\w-]{11})(.*)?/i,R=/(vimeo(pro)?.com)\/(?:[^\d]+)?(\d+)\??(.*)?$/,M=/((maps|www)\.)?google\.([^\/\?]+)\/?((maps\/?)?\?)(.*)/i,F=/(facebook\.com)\/([a-z0-9_-]*)\/videos\/([0-9]*)(.*)?$/i,U=function(){var e=C.createElement("div"),o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in o)if(void 0!==e.style[t])return o[t];return!1}();return d.test=function(e){return J.test(e)},T.options=o.proxy(r,T,A),T.handlers=o.proxy(r,T,A.handlers),T.current=k,o(C).on("click.gdpr_lightbox","[data-gdpr_lightbox]",T),T}(e,e.jQuery||e.Zepto)}("undefined"!=typeof window?window:this),function(e){var o={common:{init:function(){"use strict";function o(e){var o;try{o=new URL(e)}catch(e){return!1}return"http:"===o.protocol||"https:"===o.protocol}function t(e){try{new URLSearchParams(window.location.search).has("gdpr_dbg")&&console.warn(e)}catch(e){console.warn(e)}}function r(){"true"===(void 0!==moove_frontend_gdpr_scripts.ajax_cookie_removal?moove_frontend_gdpr_scripts.ajax_cookie_removal:"false")&&e.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_remove_php_cookies"},function(e){t("dbg - cookies removed")})}function n(){r();var o=void 0!==moove_frontend_gdpr_scripts.wp_lang?moove_frontend_gdpr_scripts.wp_lang:"";"true"===(void 0!==moove_frontend_gdpr_scripts.ajax_cookie_removal?moove_frontend_gdpr_scripts.ajax_cookie_removal:"false")?e.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_get_scripts",strict:0,thirdparty:0,advanced:0,wp_lang:o},function(e){var o={};o.strict=1,o.thirdparty=0,o.advanced=0,h(),i("script_inject",o),_(o)}):h()}function i(e,o){try{jQuery().gdpr_cookie_compliance_analytics(e,o)}catch(e){}}function s(e){try{jQuery().gdpr_cookie_compliance_consent_log(e)}catch(e){}}function a(){var e=u("moove_gdpr_popup"),o={};return o.strict="0",o.thirdparty="0",o.advanced="0",e&&(e=JSON.parse(e),o.strict=e.strict,o.thirdparty=e.thirdparty,o.advanced=e.advanced,_(o),i("script_inject",e)),void 0!==moove_frontend_gdpr_scripts.ifbc?("strict"===moove_frontend_gdpr_scripts.ifbc&&e&&1===parseInt(e.strict)&&d(),"thirdparty"===moove_frontend_gdpr_scripts.ifbc&&e&&1===parseInt(e.thirdparty)&&d(),"advanced"===moove_frontend_gdpr_scripts.ifbc&&e&&1===parseInt(e.advanced)&&d()):"1"!==moove_frontend_gdpr_scripts.strict_init&&d(),o}function d(){e(document).find("iframe[data-gdpr-iframesrc]").each(function(){e(this).attr("src",e(this).attr("data-gdpr-iframesrc"))})}function c(e){w=!0,i("accept_all",""),f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"1",advanced:"1"}),y),p("enabled-all")}function p(r){var n=!1;try{void 0!==moove_frontend_gdpr_scripts.force_reload&&"true"===moove_frontend_gdpr_scripts.force_reload&&(n=!0)}catch(e){}var s=a(),d=moove_frontend_gdpr_scripts.enabled_default.third_party,c=moove_frontend_gdpr_scripts.enabled_default.advanced;if(document.cookie.indexOf("moove_gdpr_popup")>=0||1==d||1==c){var p=u("moove_gdpr_popup");1==d&&(N.strict=1,N.thirdparty=d),1==c&&(N.strict=1,N.advanced=c),N&&(parseInt(s.strict)-parseInt(N.strict)<0&&(n=!0),parseInt(s.thirdparty)-parseInt(N.thirdparty)<0&&(n=!0),parseInt(s.advanced)-parseInt(N.advanced)<0&&(n=!0))}if(n)if(p={strict:0,thirdparty:0,advanced:0},i("script_inject",p),void 0!==moove_frontend_gdpr_scripts.scripts_defined)setTimeout(function(){location.reload(!0)},800);else{var _=e(document).find('script[src*="googletagmanager.com"]');_.length>0&&_.each(function(){var t=e(this).attr("src");if(t&&o(t)){var r=new URL(t),n=r.searchParams.get("id");n&&(document.cookie="woocommerce_"+n+"=true; expires=Thu, 31 Dec 1970 23:59:59 UTC; path=/",window["ga-disable-"+n]=!0),window.gtag&&window.gtag("remove"),e(this).remove()}});var g=void 0!==moove_frontend_gdpr_scripts.ajax_cookie_removal?moove_frontend_gdpr_scripts.ajax_cookie_removal:"true";if("function"==typeof navigator.sendBeacon)if("true"===g){var f=new FormData;f.append("action","moove_gdpr_remove_php_cookies"),navigator.sendBeacon(moove_frontend_gdpr_scripts.ajaxurl,f),location.reload(!0)}else location.reload(!0);else"true"===g?e.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_remove_php_cookies"},function(e){location.reload(!0)}).fail(function(){location.reload(!0)}):location.reload(!0)}else{var m=u("moove_gdpr_popup");t("dbg - inject - 4"),v(m),l(),e("#moove_gdpr_save_popup_settings_button").show()}}function _(o){o&&(i("script_inject",o),1===parseInt(o.strict)?(e("#moove_gdpr_strict_cookies").is(":checked")||(e("#moove_gdpr_strict_cookies").prop("checked",!0).trigger("change"),e("#third_party_cookies fieldset, #third_party_cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#moove_gdpr_performance_cookies").prop("disabled",!1),e("#third_party_cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#advanced-cookies fieldset, #advanced-cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#advanced-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#moove_gdpr_advanced_cookies").prop("disabled",!1)),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("functional","allow")):(e("#moove_gdpr_strict_cookies").is(":checked")&&(e("#moove_gdpr_strict_cookies").prop("checked",!0).trigger("change"),e("#third_party_cookies fieldset, #third_party_cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_performance_cookies").prop("disabled",!0).prop("checked",!1),e("#advanced-cookies fieldset, #advanced-cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_advanced_cookies").prop("disabled",!0).prop("checked",!1)),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("functional","deny")),1===parseInt(o.thirdparty)?(e("#moove_gdpr_performance_cookies").is(":checked")||e("#moove_gdpr_performance_cookies").prop("checked",!0).trigger("change"),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("statistics","allow")):(e("#moove_gdpr_performance_cookies").is(":checked")&&e("#moove_gdpr_performance_cookies").prop("checked",!1).trigger("change"),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("statistics","deny")),1===parseInt(o.advanced)?(e("#moove_gdpr_advanced_cookies").is(":checked")||e("#moove_gdpr_advanced_cookies").prop("checked",!0).trigger("change"),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("marketing","allow")):(e("#moove_gdpr_advanced_cookies").is(":checked")&&e("#moove_gdpr_advanced_cookies").prop("checked",!1).trigger("change"),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("marketing","deny")),e('input[data-name="moove_gdpr_performance_cookies"]').prop("checked",e("#moove_gdpr_performance_cookies").is(":checked")),e('input[data-name="moove_gdpr_strict_cookies"]').prop("checked",e("#moove_gdpr_strict_cookies").is(":checked")),e('input[data-name="moove_gdpr_advanced_cookies"]').prop("checked",e("#moove_gdpr_advanced_cookies").is(":checked")))}function l(){e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide())}function g(){var o=!0;if("undefined"!=typeof sessionStorage&&1===parseInt(sessionStorage.getItem("gdpr_infobar_hidden"))&&(o=!1),void 0!==moove_frontend_gdpr_scripts.display_cookie_banner&&o){if("true"===moove_frontend_gdpr_scripts.display_cookie_banner)e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").removeClass("moove-gdpr-info-bar-hidden"),e("#moove_gdpr_save_popup_settings_button:not(.button-visible)").hide(),e("body").addClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").show(),i("show_infobar",""));else if(e("#moove_gdpr_cookie_info_bar").length>0){e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide();var r={strict:1,thirdparty:1,advanced:1};t("dbg - inject - 5"),v(JSON.stringify(r))}}else e("#moove_gdpr_cookie_info_bar").length>0&&o&&(e("#moove_gdpr_cookie_info_bar").removeClass("moove-gdpr-info-bar-hidden"),e("#moove_gdpr_save_popup_settings_button:not(.button-visible)").hide(),e("body").addClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").show(),i("show_infobar",""))}function f(e,o,r){var n;if(r>0){var i=new Date;i.setTime(i.getTime()+24*r*60*60*1e3),n="; expires="+i.toGMTString()}else n="";try{var a="SameSite=Lax";void 0!==moove_frontend_gdpr_scripts.cookie_attributes&&(a=moove_frontend_gdpr_scripts.cookie_attributes),void 0!==moove_frontend_gdpr_scripts.gdpr_consent_version&&(o=JSON.parse(o),o.version=moove_frontend_gdpr_scripts.gdpr_consent_version,o=JSON.stringify(o)),"moove_gdpr_popup"===e&&0===parseInt(o.strict)?void 0!==moove_frontend_gdpr_scripts.gdpr_scor&&"false"===moove_frontend_gdpr_scripts.gdpr_scor?document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(o)+n+"; path=/; "+a:document.cookie=encodeURIComponent(e)+"=; Path=/;":document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(o)+n+"; path=/; "+a,o!==A&&(A=o,s(o))}catch(e){t("error - moove_gdpr_create_cookie: "+e)}}function u(e){for(var o=encodeURIComponent(e)+"=",t=document.cookie.split(";"),r=0;r<t.length;r++){for(var n=t[r];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(o)){var i=decodeURIComponent(n.substring(o.length,n.length)),s=JSON.parse(i);if(void 0!==s.version){if(void 0!==moove_frontend_gdpr_scripts.gdpr_consent_version){var a=moove_frontend_gdpr_scripts.gdpr_consent_version;if(parseFloat(a)>parseFloat(s.version))return document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;",null}}else if(void 0!==moove_frontend_gdpr_scripts.gdpr_consent_version&&parseFloat(moove_frontend_gdpr_scripts.gdpr_consent_version)>1)return document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;",null;return i}}return null}function v(o){if(N=a(),o){var t=o;o=JSON.parse(o);a();if(!1!==O){var r=JSON.parse(O);1===parseInt(r.thirdparty)&&1===parseInt(o.thirdparty)&&(o.thirdparty="0"),1===parseInt(r.advanced)&&1===parseInt(o.advanced)&&(o.advanced="0")}if(i("script_inject",o),j=!0,void 0!==moove_frontend_gdpr_scripts.ifbc?("strict"===moove_frontend_gdpr_scripts.ifbc&&o&&1===parseInt(o.strict)&&d(),"thirdparty"===moove_frontend_gdpr_scripts.ifbc&&o&&1===parseInt(o.thirdparty)&&d(),"advanced"===moove_frontend_gdpr_scripts.ifbc&&o&&1===parseInt(o.advanced)&&d()):1===parseInt(o.strict)&&d(),void 0!==moove_frontend_gdpr_scripts.scripts_defined)try{var s=JSON.parse(moove_frontend_gdpr_scripts.scripts_defined);if(1===parseInt(o.strict))1===parseInt(o.thirdparty)&&void 0===k.thirdparty&&(s.thirdparty.header&&postscribe(document.head,s.thirdparty.header),s.thirdparty.body&&e(s.thirdparty.body).prependTo(document.body),s.thirdparty.footer&&postscribe(document.body,s.thirdparty.footer),k.thirdparty=!0),1===parseInt(o.advanced)&&void 0===k.advanced&&(s.advanced.header&&postscribe(document.head,s.advanced.header),s.advanced.body&&e(s.advanced.body).prependTo(document.body),s.advanced.footer&&postscribe(document.body,s.advanced.footer),k.advanced=!0);else{var o=u("moove_gdpr_popup");o&&(h(),n())}}catch(e){console.error(e)}else if(void 0===k.thirdparty||void 0===k.advanced){1===o.thirdparty&&(k.thirdparty=!0),1===o.advanced&&(k.advanced=!0);var c=void 0!==moove_frontend_gdpr_scripts.wp_lang?moove_frontend_gdpr_scripts.wp_lang:"";0===parseInt(o.thirdparty)&&0===parseInt(o.advanced)&&h(),e.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_get_scripts",strict:o.strict,thirdparty:o.thirdparty,advanced:o.advanced,wp_lang:c},function(r){O=t,i("script_inject",o);var n=JSON.parse(r);n.header&&postscribe(document.head,n.header),n.body&&e(n.body).prependTo(document.body),n.footer&&postscribe(document.body,n.footer)})}}else g()}function m(){var o=!0;e(document).find("#moove_gdpr_cookie_modal input[type=checkbox]").each(function(){e(this).is(":checked")||(o=!1)})}function h(o){try{e(document).find("script[data-gdpr]").each(function(){t("script_removed: "+e(this).attr("src"))});for(var r=document.cookie.split(";"),n=window.location.hostname,i=0;i<r.length;i++){var s=r[i],a=s.indexOf("="),d=a>-1?s.substr(0,a):s;d.includes("woocommerce")||d.includes("wc_")||d.includes("moove_gdpr_popup")||d.includes("wordpress")||(document.cookie=d+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;domain="+n,document.cookie=d+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;domain=."+n,t("cookie removed: "+d+" - "+n))}}catch(e){t("error in gdpr_delete_all_cookies: "+e)}"undefined"!=typeof sessionStorage&&sessionStorage.removeItem("gdpr_session")}function b(o){var t=u("moove_gdpr_popup");o&&(h(),r());var n="0",i="0",s="0",a=!1;t&&(t=JSON.parse(t),n=t.strict,i=t.advanced,s=t.thirdparty),e("#moove_gdpr_strict_cookies").length>0?e("#moove_gdpr_strict_cookies").is(":checked")?(n="1",a=!0):n="0":(a=!0,n="1"),e("#moove_gdpr_performance_cookies").is(":checked")?(s="1",a=!0):s="0",e("#moove_gdpr_advanced_cookies").is(":checked")?(i="1",a=!0):i="0",!t&&a?(f("moove_gdpr_popup",JSON.stringify({strict:n,thirdparty:s,advanced:i}),y),l(),e("#moove_gdpr_save_popup_settings_button").show()):t&&(w||f("moove_gdpr_popup",JSON.stringify({strict:n,thirdparty:s,advanced:i}),y));var t=u("moove_gdpr_popup");t&&(t=JSON.parse(t),"0"==t.strict&&"0"==t.advanced&&"0"==t.thirdparty&&h())}var y=365,k=[],w=!1;void 0!==moove_frontend_gdpr_scripts.cookie_expiration&&(y=moove_frontend_gdpr_scripts.cookie_expiration),e(document).on("click","#moove_gdpr_cookie_modal .moove-gdpr-modal-content.moove_gdpr_modal_theme_v1 .main-modal-content .moove-gdpr-tab-main:not(#privacy_overview) .tab-title",function(o){window.innerWidth<768&&(e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-tab-main-content").is(":visible")?e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-tab-main-content").slideUp(300):e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-tab-main-content").slideDown(300))}),e(document).on("click tap",'#moove_gdpr_cookie_info_bar .moove-gdpr-infobar-reject-btn, [href*="#gdpr-reject-cookies"], .moove-gdpr-modal-reject-all',function(o){o.preventDefault(),h(),n(),e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide(),e("#moove_gdpr_save_popup_settings_button").show()),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close(),void 0!==moove_frontend_gdpr_scripts.gdpr_scor&&"false"===moove_frontend_gdpr_scripts.gdpr_scor||(f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0"}),y),setTimeout(function(){f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0"}),y)},500)),p("reject-btn")});var x=!1,T=e(".moove_gdpr_modal_theme_v2 .moove-gdpr-tab-main").first(),C=e(".moove_gdpr_modal_theme_v2 .moove-gdpr-tab-main").first(),S=0,I=!1;e(document).on("keydown",function(o){if(e("body").hasClass("moove_gdpr_overflow")&&e(".moove-gdpr-modal-content").hasClass("moove_gdpr_modal_theme_v1")){if(38==o.keyCode){o.preventDefault();var t=e("#moove-gdpr-menu li.menu-item-selected"),r=t.prev();0===r.length&&(r=e("#moove-gdpr-menu li").last()),r.find(".moove-gdpr-tab-nav:visible").trigger("click"),e(".moove-gdpr-tab-main:visible").trigger("focus")}if(40==o.keyCode)if(o.preventDefault(),I){var t=e("#moove-gdpr-menu li.menu-item-selected"),r=t.prev();0===r.length&&(r=e("#moove-gdpr-menu li").last()),r.find(".moove-gdpr-tab-nav:visible").trigger("click"),e(".moove-gdpr-tab-main:visible").trigger("focus")}else{var t=e("#moove-gdpr-menu li.menu-item-selected"),n=t.next();0===n.length&&(n=e("#moove-gdpr-menu li").first()),n.find(".moove-gdpr-tab-nav:visible").trigger("click"),e(".moove-gdpr-tab-main:visible").trigger("focus")}if(9==o.keyCode){o.preventDefault();var i=e("#moove_gdpr_cookie_modal .mgbutton, #moove_gdpr_cookie_modal .moove-gdpr-modal-close, #moove_gdpr_cookie_modal #moove-gdpr-menu > li");if(i.length>0){var s=!1;if(S<=i.length?(I?S--:S++,s=i[S],e(s).is(":visible")||(I?S--:S++,s=i[S])):(S=0,s=i[S]),e("#moove_gdpr_cookie_modal .focus-g").removeClass("focus-g"),S<0&&I&&(S=i.length),!s&&S>i.length&&(S=0,s=i[S]),e(s).addClass("focus-g").trigger("focus"),(e(s).hasClass("menu-item-on")||e(s).hasClass("menu-item-off"))&&e(s).find("button").trigger("click"),e(s).length>0)try{e(s)[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}else{e(".cookie-switch").removeClass("focus-g");var n=T.next();if(T=n,0===n.length&&(n=C,T=C),n.find(".cookie-switch").trigger("focus").addClass("focus-g"),n.find(".cookie-switch").length>0)try{n.find(".cookie-switch")[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}}if(32==o.keyCode){o.preventDefault();e(".moove-gdpr-tab-main:visible").find(".moove-gdpr-status-bar input[type=checkbox]").trigger("click")}13==o.keyCode&&(o.preventDefault(),e(document).find(".focus-g").length>0?e(document).find(".focus-g").trigger("click"):e(".moove-gdpr-modal-save-settings").trigger("click"))}if(e("body").hasClass("moove_gdpr_overflow")&&e(".moove-gdpr-modal-content").hasClass("moove_gdpr_modal_theme_v2")){if(38==o.keyCode){o.preventDefault();var t=e("#moove-gdpr-menu li.menu-item-selected"),r=t.prev();0===r.length&&(r=e("#moove-gdpr-menu li").last()),r.find(".moove-gdpr-tab-nav:visible").trigger("click"),e(".moove-gdpr-tab-main:visible").trigger("focus")}if(40==o.keyCode){o.preventDefault();var t=e("#moove-gdpr-menu li.menu-item-selected"),n=t.next();0===n.length&&(n=e("#moove-gdpr-menu li").first()),n.find(".moove-gdpr-tab-nav:visible").trigger("click"),e(".moove-gdpr-tab-main:visible").trigger("focus")}if(32==o.keyCode){o.preventDefault();e("#moove_gdpr_cookie_modal").find(".focus-g").trigger("click")}if(9==o.keyCode){o.preventDefault();var i=e("#moove_gdpr_cookie_modal .cookie-switch, #moove_gdpr_cookie_modal .mgbutton, #moove_gdpr_cookie_modal a:not(.moove-gdpr-branding), #moove_gdpr_cookie_modal .moove-gdpr-modal-close");if(i.length>0){var s=!1;if(S<=i.length?(I?S--:S++,s=i[S],e(s).is(":visible")||(I?S--:S++,s=i[S])):(S=0,s=i[S]),e("#moove_gdpr_cookie_modal .focus-g").removeClass("focus-g"),S<0&&I&&(S=i.length),!s&&S>i.length&&(S=0,s=i[S]),e(s).addClass("focus-g").trigger("focus"),e(s).length>0)try{e(s)[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}else{e(".cookie-switch").removeClass("focus-g");var n=T.next();if(T=n,0===n.length&&(n=C,T=C),n.find(".cookie-switch").trigger("focus").addClass("focus-g"),n.find(".cookie-switch").length>0)try{n.find(".cookie-switch")[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}}13==o.keyCode&&(e("#moove_gdpr_cookie_modal .focus-g").length>0&&(e("#moove_gdpr_cookie_modal .focus-g").hasClass("mgbutton")||e("#moove_gdpr_cookie_modal .focus-g").hasClass("moove-gdpr-modal-close")||e("#moove_gdpr_cookie_modal .focus-g").attr("href"))?e("#moove_gdpr_cookie_modal .focus-g").attr("href")?e("#moove_gdpr_cookie_modal .focus-g").trigger("click"):(o.preventDefault(),e("#moove_gdpr_cookie_modal .focus-g").trigger("click")):(o.preventDefault(),e(".moove-gdpr-modal-save-settings").trigger("click")))}}),e(document).on("keyup",function(e){16==e.keyCode&&(I=!1),17!=e.keyCode&&18!=e.keyCode&&13!=e.keyCode||(I=!1)}),document.addEventListener("visibilitychange",function(e){I=!1}),e(document).on("keydown",function(o){if(16==o.keyCode&&(I=!0),e("body").hasClass("gdpr-infobar-visible")&&!e("body").hasClass("moove_gdpr_overflow")&&e("#moove_gdpr_cookie_info_bar").hasClass("gdpr-full-screen-infobar")){if(9==o.keyCode){o.preventDefault(),console.warn("fsw-tab");var t=e('#moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar span.change-settings-button, #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar button.change-settings-button, #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar [data-target="third_party_cookies"] label, #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar [data-target="advanced-cookies"] label, #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar .mgbutton');if(t.length>0){var r=!1;if(S<=t.length?(I?S--:S++,r=t[S],e(r).is(":visible")||(I?S--:S++,r=t[S])):(S=0,r=t[S]),e("#moove_gdpr_cookie_info_bar .focus-g").removeClass("focus-g"),S<0&&I&&(S=t.length),!r&&S>t.length&&(S=0,r=t[S]),e(document).find("*").blur(),e(r).addClass("focus-g").trigger("focus"),e(r).length>0)try{e(r)[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}else{e(".cookie-switch").removeClass("focus-g");var n=T.next();if(T=n,0===n.length&&(n=C,T=C),n.find(".cookie-switch").trigger("focus").addClass("focus-g"),n.find(".cookie-switch").length>0)try{n.find(".cookie-switch")[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}}if(32==o.keyCode){o.preventDefault();var i=e("#moove_gdpr_cookie_info_bar").find(".gdpr-shr-switch.focus-g input[type=checkbox]");console.warn("space"),i.trigger("click")}}13==o.keyCode&&e(document.activeElement).length>0&&e(document.activeElement).closest("#moove_gdpr_cookie_info_bar").length>0&&(o.preventDefault(),e(document.activeElement).trigger("click"))}),e.fn.moove_gdpr_read_cookies=function(e){var o=u("moove_gdpr_popup"),t={};return t.strict="0",t.thirdparty="0",t.advanced="0",o&&(o=JSON.parse(o),t.strict=parseInt(o.strict),t.thirdparty=parseInt(o.thirdparty),t.advanced=parseInt(o.advanced)),t};var N=a(),O=!1,j=!1,D="",E=!1,A="";e(document).on("click tap","#moove_gdpr_cookie_info_bar .moove-gdpr-infobar-close-btn",function(o){if(o.preventDefault(),void 0!==moove_frontend_gdpr_scripts.close_btn_action){var t=parseInt(moove_frontend_gdpr_scripts.close_btn_action);1===t&&(l(),e("#moove_gdpr_save_popup_settings_button").show(),"undefined"!=typeof sessionStorage&&sessionStorage.setItem("gdpr_infobar_hidden",1)),2===t&&(h(),n(),e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide(),e("#moove_gdpr_save_popup_settings_button").show()),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close(),void 0!==moove_frontend_gdpr_scripts.gdpr_scor&&"false"===moove_frontend_gdpr_scripts.gdpr_scor||(f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0"}),y),setTimeout(function(){f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0"}),y)},500)),p("reject-btn")),3===t&&c("enable_all close-btn"),4===t&&(h(),n(),e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide(),e("#moove_gdpr_save_popup_settings_button").show()),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close(),void 0!==moove_frontend_gdpr_scripts.gdpr_scor&&"false"===moove_frontend_gdpr_scripts.gdpr_scor||(f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0"}),y),setTimeout(function(){f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0"}),y)},500)),void 0!==moove_frontend_gdpr_scripts.close_btn_rdr&&""!==moove_frontend_gdpr_scripts.close_btn_rdr?window.parent.location.href=moove_frontend_gdpr_scripts.close_btn_rdr:p("reject-btn"))}else l(),e("#moove_gdpr_save_popup_settings_button").show(),"undefined"!=typeof sessionStorage&&sessionStorage.setItem("gdpr_infobar_hidden",1)}),e.fn.moove_gdpr_save_cookie=function(o){var t=u("moove_gdpr_popup"),r=t,s=e(window).scrollTop();if(!t){if(o.thirdParty)var a="1";else var a="0";if(o.advanced)var c="1";else var c="0";if(o.scrollEnable){var p=o.scrollEnable;e(window).scroll(function(){!j&&e(this).scrollTop()-s>p&&("undefined"===o.thirdparty&&"undefined"===o.advanced||(f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:a,advanced:c}),y),t=JSON.parse(t),_(t)))})}else"undefined"===o.thirdparty&&"undefined"===o.advanced||(f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:a,advanced:c}),y),t=JSON.parse(t),_(t));if(t=u("moove_gdpr_popup"))if(t=JSON.parse(t),i("script_inject",t),j=!0,void 0!==moove_frontend_gdpr_scripts.ifbc?("strict"===moove_frontend_gdpr_scripts.ifbc&&t&&1===parseInt(t.strict)&&d(),"thirdparty"===moove_frontend_gdpr_scripts.ifbc&&t&&1===parseInt(t.thirdparty)&&d(),"advanced"===moove_frontend_gdpr_scripts.ifbc&&t&&1===parseInt(t.advanced)&&d()):1===parseInt(t.strict)&&d(),void 0!==moove_frontend_gdpr_scripts.scripts_defined)try{var l=JSON.parse(moove_frontend_gdpr_scripts.scripts_defined);if(1===parseInt(t.strict))1===parseInt(t.thirdparty)&&void 0===k.thirdparty&&(l.thirdparty.header&&postscribe(document.head,l.thirdparty.header),l.thirdparty.body&&e(l.thirdparty.body).prependTo(document.body),l.thirdparty.footer&&postscribe(document.body,l.thirdparty.footer),k.thirdparty=!0),1===parseInt(t.advanced)&&void 0===k.advanced&&(l.advanced.header&&postscribe(document.head,l.advanced.header),l.advanced.body&&e(l.advanced.body).prependTo(document.body),l.advanced.footer&&postscribe(document.body,l.advanced.footer),k.advanced=!0);else{var t=u("moove_gdpr_popup");t&&(h(),n())}}catch(e){console.error(e)}else if(void 0===k.thirdparty||void 0===k.advanced){1===t.thirdparty&&(k.thirdparty=!0),1===t.advanced&&(k.advanced=!0);var g=void 0!==moove_frontend_gdpr_scripts.wp_lang?moove_frontend_gdpr_scripts.wp_lang:"";0===parseInt(t.thirdparty)&&0===parseInt(t.advanced)&&h(),e.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_get_scripts",strict:t.strict,thirdparty:t.thirdparty,advanced:t.advanced,wp_lang:g},function(o){O=r,i("script_inject",t);var n=JSON.parse(o);n.header&&postscribe(document.head,n.header),n.body&&e(n.body).prependTo(document.body),n.footer&&postscribe(document.body,n.footer)})}}},function(){var o=(location.pathname,e(window).scrollTop());e("#moove_gdpr_save_popup_settings_button").show();var r=moove_frontend_gdpr_scripts.enabled_default.third_party,n=moove_frontend_gdpr_scripts.enabled_default.advanced;if(void 0!==moove_frontend_gdpr_scripts.enable_on_scroll&&"true"===moove_frontend_gdpr_scripts.enable_on_scroll&&1!==parseInt(r)&&1!==parseInt(n)&&(r=1,n=1),document.cookie.indexOf("moove_gdpr_popup")>=0||1==r||1==n){var i=u("moove_gdpr_popup");if(i){var s=a();"0"==s.strict&&"0"==s.advanced&&"0"==s.thirdparty&&(h(),g())}else{var d=!1;if("undefined"!=typeof sessionStorage&&(d=sessionStorage.getItem("gdpr_session")),void 0!==moove_frontend_gdpr_scripts.enable_on_scroll&&"true"===moove_frontend_gdpr_scripts.enable_on_scroll){if(d)try{_(JSON.parse(d)),j=!0,t("dbg - inject - 1"),v(d),f("moove_gdpr_popup",d,y),l()}catch(e){}else if((!j&&1==moove_frontend_gdpr_scripts.enabled_default.third_party||!j&&1==moove_frontend_gdpr_scripts.enabled_default.advanced)&&(i={strict:1,thirdparty:r,advanced:n},_(i),i=JSON.stringify(i),x=!0,g(),t("dbg - default scroll inject")),void 0!==moove_frontend_gdpr_scripts.gdpr_aos_hide&&("1"===moove_frontend_gdpr_scripts.gdpr_aos_hide||"true"===moove_frontend_gdpr_scripts.gdpr_aos_hide||"object"==typeof moove_frontend_gdpr_scripts.gdpr_aos_hide&&moove_frontend_gdpr_scripts.gdpr_aos_hide.includes("1"))&&(t("dbg - enable on scroll - enter"),e(window).scroll(function(){if((!j||x)&&e(this).scrollTop()-o>200){i={strict:1,thirdparty:r,advanced:n},u("moove_gdpr_popup")||"undefined"!=typeof sessionStorage&&((d=sessionStorage.getItem("gdpr_session"))||(sessionStorage.setItem("gdpr_session",JSON.stringify(i)),d=sessionStorage.getItem("gdpr_session")));try{_(i),i=JSON.stringify(i),g(),j=!0,t("dbg - inject - 2 - accept on scroll"),x||v(i),x=!1,f("moove_gdpr_popup",i,y),l(),p("check reload on scroll"),e("#moove_gdpr_save_popup_settings_button").show()}catch(e){}}})),void 0!==moove_frontend_gdpr_scripts.gdpr_aos_hide&&("2"===moove_frontend_gdpr_scripts.gdpr_aos_hide||"object"==typeof moove_frontend_gdpr_scripts.gdpr_aos_hide&&moove_frontend_gdpr_scripts.gdpr_aos_hide.includes("2"))){var c=30;if(void 0!==moove_frontend_gdpr_scripts.gdpr_aos_hide_seconds)var c=parseInt(moove_frontend_gdpr_scripts.gdpr_aos_hide_seconds);t("dbg - hidetimer - enter, seconds: "+c),setTimeout(function(){if(t("dbg - hidetimer - is_created: "+j),!j){i={strict:1,thirdparty:r,advanced:n};var o=u("moove_gdpr_popup");t("dbg - hidetimer - cookies_stored: "+o),o||"undefined"!=typeof sessionStorage&&((d=sessionStorage.getItem("gdpr_session"))||(sessionStorage.setItem("gdpr_session",JSON.stringify(i)),d=sessionStorage.getItem("gdpr_session")));try{_(i),i=JSON.stringify(i),g(),j=!0,t("dbg - inject - 2a"),v(i),f("moove_gdpr_popup",i,y),p("check reload hidetimer")}catch(e){}}l(),e("#moove_gdpr_save_popup_settings_button").show()},1e3*c)}}else i={strict:1,thirdparty:r,advanced:n},_(i),i=JSON.stringify(i),g()}t("dbg - inject - 3"),v(i)}else g()}(),e(document).on("click",'[data-href*="#moove_gdpr_cookie_modal"],[href*="#moove_gdpr_cookie_modal"]',function(o){o.preventDefault(),e("#moove_gdpr_cookie_modal").length>0&&(E=!0,D=gdpr_lightbox("#moove_gdpr_cookie_modal"),e(".gdpr_lightbox").addClass("moove_gdpr_cookie_modal_open"),e(document).moove_gdpr_lightbox_open(),i("opened_modal_from_link",""))}),e(document).on("click",'[data-href*="#gdpr_cookie_modal"],[href*="#gdpr_cookie_modal"]',function(o){o.preventDefault(),e("#moove_gdpr_cookie_modal").length>0&&(E=!0,D=gdpr_lightbox("#moove_gdpr_cookie_modal"),e(".gdpr_lightbox").addClass("moove_gdpr_cookie_modal_open"),e(document).moove_gdpr_lightbox_open(),i("opened_modal_from_link",""))}),e(document).on("click tap","#moove_gdpr_cookie_info_bar .moove-gdpr-close-modal-button a, #moove_gdpr_cookie_info_bar .moove-gdpr-close-modal-button button",function(e){e.preventDefault()}),e(document).on("click tap",".moove-gdpr-modal-close",function(o){o.preventDefault(),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close()}),e(document).on("click","#moove-gdpr-menu .moove-gdpr-tab-nav",function(o){o.preventDefault(),o.stopPropagation(),e("#moove-gdpr-menu li").removeClass("menu-item-selected"),e(this).parent().addClass("menu-item-selected"),e(".moove-gdpr-tab-content .moove-gdpr-tab-main").hide(),e(e(this).attr("href")).show(),e(e(this).attr("data-href")).show(),i("clicked_to_tab",e(this).attr("data-href"))}),e(document).on("gdpr_lightbox:close",function(o,t){e(document).moove_gdpr_lightbox_close()}),e.fn.moove_gdpr_lightbox_close=function(o){E&&(e("body").removeClass("moove_gdpr_overflow"),E=!1)},e.fn.moove_gdpr_lightbox_open=function(o){if(E){e("body").addClass("moove_gdpr_overflow");var t=u("moove_gdpr_popup");document.activeElement.blur(),"none"===moove_frontend_gdpr_scripts.show_icons&&e("body").addClass("gdpr-no-icons"),e(".moove-gdpr-status-bar input[type=checkbox]").each(function(){e(this).is(":checked")?e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideUp():e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideDown()}),t?(t=JSON.parse(t),_(t)):e("#moove_gdpr_strict_cookies").is(":checked")||(e("#advanced-cookies .gdpr-cc-form-fieldset").addClass("fl-disabled"),e("#third_party_cookies .gdpr-cc-form-fieldset").addClass("fl-disabled")),void 0!==moove_frontend_gdpr_scripts.hide_save_btn&&"true"===moove_frontend_gdpr_scripts.hide_save_btn?e(".moove-gdpr-modal-save-settings").removeClass("button-visible").hide():e(".moove-gdpr-modal-save-settings").addClass("button-visible").show(),m()}},e(document).on("gdpr_lightbox:open",function(o,t){e(document).moove_gdpr_lightbox_open()}),e(document).on("click tap",".fl-disabled",function(o){e("#moove_gdpr_cookie_modal .moove-gdpr-modal-content").is(".moove_gdpr_modal_theme_v2")?e("#moove_gdpr_strict_cookies").length>0&&(e("#moove_gdpr_strict_cookies").trigger("click"),e(this).trigger("click")):e(this).closest(".moove-gdpr-tab-main-content").find(".moove-gdpr-strict-secondary-warning-message").slideDown()}),e(document).on("change",".moove-gdpr-status-bar input[type=checkbox]",function(o){e(".moove-gdpr-modal-save-settings").addClass("button-visible").show();var t=e(this).closest(".moove-gdpr-tab-main").attr("id");e(this).closest(".moove-gdpr-status-bar").toggleClass("checkbox-selected"),e(this).closest(".moove-gdpr-tab-main").toggleClass("checkbox-selected"),e("#moove-gdpr-menu .menu-item-"+t).toggleClass("menu-item-off"),e(this).is(":checked")?e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideUp():e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideDown(),e(this).is("#moove_gdpr_strict_cookies")&&(e(this).is(":checked")?(e("#third_party_cookies fieldset, #third_party_cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#moove_gdpr_performance_cookies").prop("disabled",!1),e("#third_party_cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#advanced-cookies fieldset, #advanced-cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#advanced-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#moove_gdpr_advanced_cookies").prop("disabled",!1)):(e(".gdpr_cookie_settings_shortcode_content").find("input").each(function(){e(this).prop("checked",!1)}),e("#third_party_cookies fieldset, #third_party_cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_performance_cookies").prop("disabled",!0).prop("checked",!1),e("#advanced-cookies fieldset, #advanced-cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_advanced_cookies").prop("disabled",!0).prop("checked",!1))),e('input[data-name="'+e(this).attr("name")+'"]').prop("checked",e(this).is(":checked")),m()}),e(document).on("click tap",".gdpr_cookie_settings_shortcode_content a.gdpr-shr-save-settings",function(o){o.preventDefault(),b(!0),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close(),p("modal-save-settings")}),e(document).on("change",".gdpr_cookie_settings_shortcode_content input[type=checkbox]",function(o){var t=e(this).attr("data-name"),r=e("#"+t);e(this).is(":checked")?(e('input[data-name="'+t+'"]').prop("checked",!0),"moove_gdpr_strict_cookies"!==e(this).attr("data-name")&&(e(this).closest(".gdpr_cookie_settings_shortcode_content").find('input[data-name="moove_gdpr_strict_cookies"]').is(":checked")||(e('input[data-name="'+t+'"]').prop("checked",!1),e('.gdpr_cookie_settings_shortcode_content input[data-name="moove_gdpr_strict_cookies"]').closest(".gdpr-shr-switch").css("transform","scale(1.2)"),setTimeout(function(){e('.gdpr_cookie_settings_shortcode_content input[data-name="moove_gdpr_strict_cookies"]').closest(".gdpr-shr-switch").css("transform","scale(1)")},300)))):(e('input[data-name="'+t+'"]').prop("checked",e(this).is(":checked")),"moove_gdpr_strict_cookies"===e(this).attr("data-name")&&e(".gdpr_cookie_settings_shortcode_content").find('input[type="checkbox"]').prop("checked",!1)),r.trigger("click")}),e(document).on("click tap",'.moove-gdpr-modal-allow-all, [href*="#gdpr-accept-cookies"]',function(o){o.preventDefault(),e("#moove_gdpr_cookie_modal").find("input[type=checkbox]").each(function(){var o=e(this);o.is(":checked")||o.trigger("click")}),c("enable_all enable-all-button"),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),l(),b(!1),e(document).moove_gdpr_lightbox_close()}),e(document).on("click tap",".moove-gdpr-infobar-allow-all",function(o){o.preventDefault(),e("#moove_gdpr_cookie_modal").find("input[type=checkbox]").each(function(){var o=e(this);o.is(":checked")||o.trigger("click")}),c("enable_all allow-btn"),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),l(),b(!1)}),e(document).on("click tap",".moove-gdpr-modal-save-settings",function(o){o.preventDefault(),b(!0),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close(),p("modal-save-settings")});if(window.location.hash){var J=window.location.hash.substring(1);J=J.replace(/\/$/,""),"moove_gdpr_cookie_modal"!==J&&"gdpr_cookie_modal"!==J||(E=!0,i("opened_modal_from_link",""),setTimeout(function(){e("#moove_gdpr_cookie_modal").length>0&&(D=gdpr_lightbox("#moove_gdpr_cookie_modal"),e(".gdpr_lightbox").addClass("moove_gdpr_cookie_modal_open"),e(document).moove_gdpr_lightbox_open())},500)),"gdpr-accept-cookies"===J&&(e("#moove_gdpr_cookie_modal").find("input[type=checkbox]").each(function(){var o=e(this);o.is(":checked")||o.trigger("click")}),c("enable_all enable-all-button"),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),l(),b(!0),e(document).moove_gdpr_lightbox_close()),"gdpr-reject-cookies"===J&&(h(),n(),e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide(),e("#moove_gdpr_save_popup_settings_button").show()),g(),f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0"}),y),setTimeout(function(){f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0"}),y)},500))}},finalize:function(){}}},t={fire:function(e,t,r){var n,i=o;t=void 0===t?"init":t,n=""!==e,n=n&&i[e],(n=n&&"function"==typeof i[e][t])&&i[e][t](r)},loadEvents:function(){var o=!1,r=!1;if(void 0!==moove_frontend_gdpr_scripts.gpc&&1===parseInt(moove_frontend_gdpr_scripts.gpc)&&void 0!==navigator.globalPrivacyControl&&(gpcValue=navigator.globalPrivacyControl,gpcValue&&(r=!0,console.warn("GDPR Cookie Compliance - Blocked by Global Policy Control (GPC)"))),!r)if(void 0!==moove_frontend_gdpr_scripts.geo_location&&"true"===moove_frontend_gdpr_scripts.geo_location)jQuery.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_localize_scripts"},function(e){var r=JSON.parse(e);void 0!==r.display_cookie_banner&&(moove_frontend_gdpr_scripts.display_cookie_banner=r.display_cookie_banner),void 0!==r.enabled_default&&(moove_frontend_gdpr_scripts.enabled_default=r.enabled_default),o||(o=!0,t.fire("common"))});else{var n=void 0!==typeof moove_frontend_gdpr_scripts.script_delay&&parseInt(moove_frontend_gdpr_scripts.script_delay)>=0?parseInt(moove_frontend_gdpr_scripts.script_delay):0;n>0?setTimeout(function(){t.fire("common")},n):t.fire("common")}e.each(document.body.className.replace(/-/g,"_").split(/\s+/),function(e,o){t.fire(o),t.fire(o,"finalize")}),t.fire("common","finalize")}};e(document).ready(t.loadEvents)}(jQuery);
/*!
 * WPBakery Page Builder v6.0.0 (https://wpbakery.com)
 * Copyright 2011-2024 Michael M, WPBakery
 * License: Commercial. More details: http://go.wpbakery.com/licensing
 */
document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",function(){for(var prefix=["-webkit-","-moz-","-ms-","-o-",""],i=0;i<prefix.length;i++)prefix[i]+"transform"in document.documentElement.style&&(document.documentElement.className+=" vc_transform ")}(),function($){"function"!=typeof window.vc_js&&(window.vc_js=function(){"use strict";vc_toggleBehaviour(),vc_tabsBehaviour(),vc_accordionBehaviour(),vc_teaserGrid(),vc_carouselBehaviour(),vc_slidersBehaviour(),vc_prettyPhoto(),vc_pinterest(),vc_progress_bar(),vc_plugin_flexslider(),vc_gridBehaviour(),vc_rowBehaviour(),vc_prepareHoverBox(),vc_googleMapsPointer(),vc_ttaActivation(),vc_ttaToggleBehaviour(),jQuery(document).trigger("vc_js"),window.setTimeout(vc_waypoints,500)}),"function"!=typeof window.vc_plugin_flexslider&&(window.vc_plugin_flexslider=function($parent){($parent?$parent.find(".wpb_flexslider"):jQuery(".wpb_flexslider")).each(function(){var this_element=jQuery(this),sliderTimeout=1e3*parseInt(this_element.attr("data-interval"),10),sliderFx=this_element.attr("data-flex_fx"),slideshow=0==sliderTimeout?!1:!0;this_element.is(":visible")&&setTimeout(function(){this_element.flexslider({animation:sliderFx,slideshow:slideshow,slideshowSpeed:sliderTimeout,sliderSpeed:800,smoothHeight:!0})},1)})}),"function"!=typeof window.vc_googleplus&&(window.vc_googleplus=function(){var po,s;0<jQuery(".wpb_googleplus").length&&((po=document.createElement("script")).type="text/javascript",po.async=!0,po.src="https://apis.google.com/js/plusone.js",(s=document.getElementsByTagName("script")[0]).parentNode.insertBefore(po,s))}),"function"!=typeof window.vc_pinterest&&(window.vc_pinterest=function(){var po,s;0<jQuery(".wpb_pinterest").length&&((po=document.createElement("script")).type="text/javascript",po.async=!0,po.src="https://assets.pinterest.com/js/pinit.js",(s=document.getElementsByTagName("script")[0]).parentNode.insertBefore(po,s))}),"function"!=typeof window.vc_progress_bar&&(window.vc_progress_bar=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".vc_progress_bar").each(function(){var $el=jQuery(this);$el.vcwaypoint(function(){$el.find(".vc_single_bar").each(function(index){var bar=jQuery(this).find(".vc_bar"),val=bar.data("percentage-value");setTimeout(function(){bar.css({width:val+"%"})},200*index)})},{offset:"85%"})})}),"function"!=typeof window.vc_waypoints&&(window.vc_waypoints=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".wpb_animate_when_almost_visible:not(.wpb_start_animation)").each(function(){var $el=jQuery(this);$el.vcwaypoint(function(){$el.addClass("wpb_start_animation animated")},{offset:"85%"})})}),"function"!=typeof window.vc_toggleBehaviour&&(window.vc_toggleBehaviour=function($el){function event(e){e&&e.preventDefault&&e.preventDefault();var element=jQuery(this).closest(".vc_toggle"),e=element.find(".vc_toggle_content");element.hasClass("vc_toggle_active")?e.slideUp({duration:300,complete:function(){element.removeClass("vc_toggle_active")}}):e.slideDown({duration:300,complete:function(){element.addClass("vc_toggle_active")}})}($el?$el.hasClass("vc_toggle_title")?$el.unbind("click"):$el.find(".vc_toggle_title").off("click"):jQuery(".vc_toggle_title").off("click")).on("click",event)}),"function"!=typeof window.vc_ttaToggleBehaviour&&(window.vc_ttaToggleBehaviour=function($el){function event(){var toggle=jQuery(this);toggle.toggleClass("wpb-tta-toggle-active"),toggle.parent().parent().parent().find(".vc_pagination-item").each(function(){if(!$(this).hasClass("vc_active"))return $(this).find("a").click(),!1})}($el?$el.find(".wpb-tta-toggle"):jQuery(".wpb-tta-toggle")).off("click").on("click",event),setTimeout(function(){jQuery(".wpb-tta-toggle").each(function(){var toggle=jQuery(this);toggle.parent().parent().parent().find(".vc_tta-panels-container .vc_pagination li:first").hasClass("vc_active")||toggle.addClass("wpb-tta-toggle-active")})},1e3)}),"function"!=typeof window.vc_tabsBehaviour&&(window.vc_tabsBehaviour=function($tab){var ver,old_version;jQuery.ui&&($tab=$tab||jQuery(".wpb_tabs, .wpb_tour"),ver=jQuery.ui&&jQuery.ui.version?jQuery.ui.version.split("."):"1.10",old_version=1===parseInt(ver[0],10)&&parseInt(ver[1],10)<9,$tab.each(function(index){var interval=jQuery(this).attr("data-interval"),tabs_array=[],$tabs=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(event,ui){wpb_prepare_tab_content(event,ui)},activate:function(event,ui){wpb_prepare_tab_content(event,ui)}});if(interval&&0<interval)try{$tabs.tabs("rotate",1e3*interval)}catch(err){window.console&&window.console.warn&&console.warn("tabs behaviours error",err)}jQuery(this).find(".wpb_tab").each(function(){tabs_array.push(this.id)}),jQuery(this).find(".wpb_tabs_nav li").on("click",function(e){return e&&e.preventDefault&&e.preventDefault(),old_version?$tabs.tabs("select",jQuery("a",this).attr("href")):$tabs.tabs("option","active",jQuery(this).index()),!1}),jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").on("click",function(e){var index;e&&e.preventDefault&&e.preventDefault(),old_version?(index=$tabs.tabs("option","selected"),jQuery(this).parent().hasClass("wpb_next_slide")?index++:index--,index<0?index=$tabs.tabs("length")-1:index>=$tabs.tabs("length")&&(index=0),$tabs.tabs("select",index)):(index=$tabs.tabs("option","active"),e=$tabs.find(".wpb_tab").length,index=jQuery(this).parent().hasClass("wpb_next_slide")?e<=index+1?0:index+1:index-1<0?e-1:index-1,$tabs.tabs("option","active",index))})}))}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(index){var $this=jQuery(this),active_tab=($this.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0<parseInt($this.data("active-tab"),10)&&parseInt($this.data("active-tab"),10)-1),collapsible=!1===active_tab||"yes"===$this.data("collapsible"),active_tab=$this.find(".wpb_accordion_wrapper").accordion({header:"> div > h3",autoHeight:!1,heightStyle:"content",active:active_tab,collapsible:collapsible,navigation:!0,activate:vc_accordionActivate,change:function(event,ui){void 0!==jQuery.fn.isotope&&ui.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(ui.newPanel)}});!0===$this.data("vcDisableKeydown")&&(active_tab.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var layout_modes={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var $container=jQuery(this),$thumbs=$container.find(".wpb_thumbnails"),layout_mode=$thumbs.attr("data-layout-mode");$thumbs.isotope({itemSelector:".isotope-item",layoutMode:void 0===layout_modes[layout_mode]?"fitRows":layout_modes[layout_mode]}),$container.find(".categories_filter a").data("isotope",$thumbs).on("click",function(e){e&&e.preventDefault&&e.preventDefault();e=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),e.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).on("load resize",function(){$thumbs.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function($parent){($parent?$parent.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){var $this=jQuery(this);!0!==$this.data("carousel_enabled")&&$this.is(":visible")&&($this.data("carousel_enabled",!0),getColumnsCount(jQuery(this)),jQuery(this).hasClass("columns_count_1"),($this=jQuery(this).find(".wpb_thumbnails-fluid li")).css({"margin-right":$this.css("margin-left"),"margin-left":0}),($this=jQuery(this).find("ul.wpb_thumbnails-fluid")).width($this.width()+300))})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(index){var $imagesGrid,sliderTimeout,this_element=jQuery(this);this_element.hasClass("wpb_slider_nivo")?(0===(sliderTimeout=1e3*this_element.attr("data-interval"))&&(sliderTimeout=9999999999),this_element.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:800,pauseTime:sliderTimeout,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})):this_element.hasClass("wpb_image_grid")&&(jQuery.fn.imagesLoaded?$imagesGrid=this_element.find(".wpb_image_grid_ul").imagesLoaded(function(){$imagesGrid.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):this_element.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows"}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){-1<location.href.indexOf("#!prettyPhoto")&&(location.hash="")},social_tools:""})}catch(err){window.console&&window.console.warn&&window.console.warn("vc_prettyPhoto initialize error",err)}}),"function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return window.console&&window.console.warn&&window.console.warn("function vc_google_fonts is deprecated, no need to use it"),!1}),window.vcParallaxSkroll=!1,"function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){var $=window.jQuery;function fullWidthRow(){var $elements;void 0!==window.wpb_disable_full_width_row_js&&window.wpb_disable_full_width_row_js||($elements=$('[data-vc-full-width="true"]'),$.each($elements,function(key,item){var el_margin_left,el_margin_right,offset,width,cssProps,padding,paddingRight,$el=$(this),$el_full=($el.addClass("vc_hidden"),$el.next(".vc_row-full-width"));($el_full=$el_full.length?$el_full:$el.parent().next(".vc_row-full-width")).length&&(el_margin_left=parseInt($el.css("margin-left"),10),el_margin_right=parseInt($el.css("margin-right"),10),offset=0-$el_full.offset().left-el_margin_left,width=$(window).width(),cssProps={position:"relative",left:offset="rtl"===$el.css("direction")?(offset=offset-$el_full.width()+width)+el_margin_left+el_margin_right:offset,"box-sizing":"border-box",width:width,"max-width":width},$el.css(cssProps),$el.data("vcStretchContent")||("rtl"===$el.css("direction")?((padding=offset)<0&&(padding=0),(paddingRight=offset)<0&&(paddingRight=0)):(paddingRight=width-(padding=(padding=-1*offset)<0?0:padding)-$el_full.width()+el_margin_left+el_margin_right)<0&&(paddingRight=0),$el.css({"padding-left":padding+"px","padding-right":paddingRight+"px"})),$el.attr("data-vc-full-width-init","true"),$el.removeClass("vc_hidden"),$(document).trigger("vc-full-width-row-single",{el:$el,offset:offset,marginLeft:el_margin_left,marginRight:el_margin_right,elFull:$el_full,width:width,maxWidth:width}))}),$(document).trigger("vc-full-width-row",$elements))}function fullHeightRow(){var windowHeight,offsetTop,$element=$(".vc_row-o-full-height:first");$element.length&&(windowHeight=$(window).height(),(offsetTop=$element.offset().top)<windowHeight)&&$element.css("min-height",100-offsetTop/(windowHeight/100)+"vh"),$(document).trigger("vc-full-height-row",$element)}$(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",fullWidthRow).on("resize.vcRowBehaviour",fullHeightRow),fullWidthRow(),fullHeightRow(),(0<window.navigator.userAgent.indexOf("MSIE ")||navigator.userAgent.match(/Trident.*rv\:11\./))&&$(".vc_row-o-full-height").each(function(){"flex"===$(this).css("display")&&$(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')}),vc_initVideoBackgrounds();var callSkrollInit=!1;if(window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),$(".vc_parallax-inner").remove(),$("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),$("[data-vc-parallax]").each(function(){var skrollrSize,$parallaxElement,parallaxImage,youtubeId;callSkrollInit=!0,"on"===$(this).data("vcParallaxOFade")&&$(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),skrollrSize=100*$(this).data("vcParallax"),($parallaxElement=$("<div />").addClass("vc_parallax-inner").appendTo($(this))).height(skrollrSize+"%"),parallaxImage=$(this).data("vcParallaxImage"),(youtubeId=vcExtractYoutubeId(parallaxImage))?insertYoutubeVideoAsBackground($parallaxElement,youtubeId):void 0!==parallaxImage&&$parallaxElement.css("background-image","url("+parallaxImage+")"),$parallaxElement.attr("data-bottom-top","top: "+-(skrollrSize-100)+"%;").attr("data-top-bottom","top: 0%;")}),callSkrollInit&&window.skrollr)window.vcParallaxSkroll=skrollr.init({forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}}),window.vcParallaxSkroll}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(el){for(var find=!1,i=1;!1===find;){if(el.hasClass("columns_count_"+i))return find=!0,i;i++}}),"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(event,ui){var panel=ui.panel||ui.newPanel,$pie_charts=panel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=panel.find(".vc_round-chart"),$line_charts=panel.find(".vc_line-chart"),$carousel=panel.find('[data-ride="vc_carousel"]');vc_carouselBehaviour(),vc_plugin_flexslider(panel),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),panel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&panel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),ui=panel.find(".isotope, .wpb_image_grid_ul"),$pie_charts=panel.find(".wpb_gmaps_widget"),0<ui.length&&ui.isotope("layout"),$pie_charts.length&&!$pie_charts.is(".map_ready")&&(($round_charts=$pie_charts.find("iframe")).attr("src",$round_charts.attr("src")),$pie_charts.addClass("map_ready")),panel.parents(".isotope").length&&panel.parents(".isotope").each(function(){jQuery(this).isotope("layout")}),$(document).trigger("wpb_prepare_tab_content",panel)}),"function"!=typeof window.vc_ttaActivation&&(window.vc_ttaActivation=function(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var $=window.jQuery,ui={};ui.newPanel=$(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,ui)})}),"function"!=typeof window.vc_accordionActivate&&(window.vc_accordionActivate=function(event,ui){var $pie_charts,$round_charts,$line_charts,$carousel;ui.newPanel.length&&ui.newHeader.length&&($pie_charts=ui.newPanel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=ui.newPanel.find(".vc_round-chart"),$line_charts=ui.newPanel.find(".vc_line-chart"),$carousel=ui.newPanel.find('[data-ride="vc_carousel"]'),void 0!==jQuery.fn.isotope&&ui.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),vc_carouselBehaviour(ui.newPanel),vc_plugin_flexslider(ui.newPanel),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),ui.newPanel.parents(".isotope").length)&&ui.newPanel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}),"function"!=typeof window.initVideoBackgrounds&&(window.initVideoBackgrounds=function(){return window.console&&window.console.warn&&window.console.warn("this function is deprecated use vc_initVideoBackgrounds"),vc_initVideoBackgrounds()}),"function"!=typeof window.vc_initVideoBackgrounds&&(window.vc_initVideoBackgrounds=function(){jQuery("[data-vc-video-bg]").each(function(){var youtubeUrl,$element=jQuery(this);$element.data("vcVideoBg")?(youtubeUrl=$element.data("vcVideoBg"),(youtubeUrl=vcExtractYoutubeId(youtubeUrl))&&($element.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground($element,youtubeUrl)),jQuery(window).on("grid:items:added",function(event,$grid){$element.has($grid).length&&vcResizeVideoBackground($element)})):$element.find(".vc_video-bg").remove()})}),"function"!=typeof window.insertYoutubeVideoAsBackground&&(window.insertYoutubeVideoAsBackground=function($element,youtubeId,counter){if("undefined"==typeof YT||void 0===YT.Player)return 100<(counter=void 0===counter?0:counter)?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){insertYoutubeVideoAsBackground($element,youtubeId,counter++)},100);var $container=$element.prepend('<div class="vc_video-bg"><div class="inner"></div></div>').find(".inner");new YT.Player($container[0],{width:"100%",height:"100%",videoId:youtubeId,playerVars:{playlist:youtubeId,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,mute:1,wmode:"transparent"},events:{onReady:function(event){event.target.mute().setLoop(!0)}}}),vcResizeVideoBackground($element),jQuery(window).on("resize",function(){vcResizeVideoBackground($element)})}),"function"!=typeof window.vcResizeVideoBackground&&(window.vcResizeVideoBackground=function($element){var iframeW,iframeH,marginLeft,marginTop,containerW=$element.innerWidth(),containerH=$element.innerHeight();containerW/containerH<16/9?(iframeW=containerH*(16/9),iframeH=containerH,marginLeft=-Math.round((iframeW-containerW)/2)+"px",marginTop=-Math.round((iframeH-containerH)/2)+"px"):(iframeH=(iframeW=containerW)*(9/16),marginTop=-Math.round((iframeH-containerH)/2)+"px",marginLeft=-Math.round((iframeW-containerW)/2)+"px"),iframeW+="px",iframeH+="px",$element.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:marginLeft,marginTop:marginTop,width:iframeW,height:iframeH})}),"function"!=typeof window.vcExtractYoutubeId&&(window.vcExtractYoutubeId=function(url){return void 0!==url&&null!==(url=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/))&&url[1]}),"function"!=typeof window.vc_googleMapsPointer&&(window.vc_googleMapsPointer=function(){var $=window.jQuery,$wpbGmapsWidget=$(".wpb_gmaps_widget");$wpbGmapsWidget.on("click",function(){$("iframe",this).css("pointer-events","auto")}),$wpbGmapsWidget.on("mouseleave",function(){$("iframe",this).css("pointer-events","none")}),$(".wpb_gmaps_widget iframe").css("pointer-events","none")}),"function"!=typeof window.vc_setHoverBoxPerspective&&(window.vc_setHoverBoxPerspective=function(hoverBox){hoverBox.each(function(){var $this=jQuery(this),width=$this.width();$this.css("perspective",4*width+"px")})}),"function"!=typeof window.vc_setHoverBoxHeight&&(window.vc_setHoverBoxHeight=function(hoverBox){hoverBox.each(function(){var $this=jQuery(this),hoverBoxInner=$this.find(".vc-hoverbox-inner"),frontHeight=(hoverBoxInner.css("min-height",0),$this.find(".vc-hoverbox-front-inner").outerHeight()),$this=$this.find(".vc-hoverbox-back-inner").outerHeight(),frontHeight=$this<frontHeight?frontHeight:$this;hoverBoxInner.css("min-height",(frontHeight=frontHeight<250?250:frontHeight)+"px")})}),"function"!=typeof window.vc_prepareHoverBox&&(window.vc_prepareHoverBox=function(){var hoverBox=jQuery(".vc-hoverbox");vc_setHoverBoxHeight(hoverBox),vc_setHoverBoxPerspective(hoverBox)}),jQuery(document).ready(window.vc_prepareHoverBox),jQuery(window).on("resize",window.vc_prepareHoverBox),jQuery(document).ready(function($){window.vc_js()})}(window.jQuery);
/*!
  * Bootstrap v5.0.1 (https://getbootstrap.com/)
  * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */
(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.bootstrap=factory());}(this,(function(){'use strict';const NODE_TEXT=3;const SelectorEngine={find(selector,element=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(element,selector));},findOne(selector,element=document.documentElement){return Element.prototype.querySelector.call(element,selector);},children(element,selector){return[].concat(...element.children).filter(child=>child.matches(selector));},parents(element,selector){const parents=[];let ancestor=element.parentNode;while(ancestor&&ancestor.nodeType===Node.ELEMENT_NODE&&ancestor.nodeType!==NODE_TEXT){if(ancestor.matches(selector)){parents.push(ancestor);}
ancestor=ancestor.parentNode;}
return parents;},prev(element,selector){let previous=element.previousElementSibling;while(previous){if(previous.matches(selector)){return[previous];}
previous=previous.previousElementSibling;}
return[];},next(element,selector){let next=element.nextElementSibling;while(next){if(next.matches(selector)){return[next];}
next=next.nextElementSibling;}
return[];}};const MAX_UID=1000000;const MILLISECONDS_MULTIPLIER=1000;const TRANSITION_END='transitionend';const toType=obj=>{if(obj===null||obj===undefined){return`${obj}`;}
return{}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();};const getUID=prefix=>{do{prefix+=Math.floor(Math.random()*MAX_UID);}while(document.getElementById(prefix));return prefix;};const getSelector=element=>{let selector=element.getAttribute('data-bs-target');if(!selector||selector==='#'){let hrefAttr=element.getAttribute('href');if(!hrefAttr||!hrefAttr.includes('#')&&!hrefAttr.startsWith('.')){return null;}
if(hrefAttr.includes('#')&&!hrefAttr.startsWith('#')){hrefAttr=`#${hrefAttr.split('#')[1]}`;}
selector=hrefAttr&&hrefAttr!=='#'?hrefAttr.trim():null;}
return selector;};const getSelectorFromElement=element=>{const selector=getSelector(element);if(selector){return document.querySelector(selector)?selector:null;}
return null;};const getElementFromSelector=element=>{const selector=getSelector(element);return selector?document.querySelector(selector):null;};const getTransitionDurationFromElement=element=>{if(!element){return 0;}
let{transitionDuration,transitionDelay}=window.getComputedStyle(element);const floatTransitionDuration=Number.parseFloat(transitionDuration);const floatTransitionDelay=Number.parseFloat(transitionDelay);if(!floatTransitionDuration&&!floatTransitionDelay){return 0;}
transitionDuration=transitionDuration.split(',')[0];transitionDelay=transitionDelay.split(',')[0];return(Number.parseFloat(transitionDuration)+Number.parseFloat(transitionDelay))*MILLISECONDS_MULTIPLIER;};const triggerTransitionEnd=element=>{element.dispatchEvent(new Event(TRANSITION_END));};const isElement$1=obj=>{if(!obj||typeof obj!=='object'){return false;}
if(typeof obj.jquery!=='undefined'){obj=obj[0];}
return typeof obj.nodeType!=='undefined';};const getElement=obj=>{if(isElement$1(obj)){return obj.jquery?obj[0]:obj;}
if(typeof obj==='string'&&obj.length>0){return SelectorEngine.findOne(obj);}
return null;};const emulateTransitionEnd=(element,duration)=>{let called=false;const durationPadding=5;const emulatedDuration=duration+durationPadding;function listener(){called=true;element.removeEventListener(TRANSITION_END,listener);}
element.addEventListener(TRANSITION_END,listener);setTimeout(()=>{if(!called){triggerTransitionEnd(element);}},emulatedDuration);};const typeCheckConfig=(componentName,config,configTypes)=>{Object.keys(configTypes).forEach(property=>{const expectedTypes=configTypes[property];const value=config[property];const valueType=value&&isElement$1(value)?'element':toType(value);if(!new RegExp(expectedTypes).test(valueType)){throw new TypeError(`${componentName.toUpperCase()}: Option "${property}" provided type "${valueType}" but expected type "${expectedTypes}".`);}});};const isVisible=element=>{if(!element){return false;}
if(element.style&&element.parentNode&&element.parentNode.style){const elementStyle=getComputedStyle(element);const parentNodeStyle=getComputedStyle(element.parentNode);return elementStyle.display!=='none'&&parentNodeStyle.display!=='none'&&elementStyle.visibility!=='hidden';}
return false;};const isDisabled=element=>{if(!element||element.nodeType!==Node.ELEMENT_NODE){return true;}
if(element.classList.contains('disabled')){return true;}
if(typeof element.disabled!=='undefined'){return element.disabled;}
return element.hasAttribute('disabled')&&element.getAttribute('disabled')!=='false';};const findShadowRoot=element=>{if(!document.documentElement.attachShadow){return null;}
if(typeof element.getRootNode==='function'){const root=element.getRootNode();return root instanceof ShadowRoot?root:null;}
if(element instanceof ShadowRoot){return element;}
if(!element.parentNode){return null;}
return findShadowRoot(element.parentNode);};const noop=()=>{};const reflow=element=>element.offsetHeight;const getjQuery=()=>{const{jQuery}=window;if(jQuery&&!document.body.hasAttribute('data-bs-no-jquery')){return jQuery;}
return null;};const onDOMContentLoaded=callback=>{if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',callback);}else{callback();}};const isRTL=()=>document.documentElement.dir==='rtl';const defineJQueryPlugin=plugin=>{onDOMContentLoaded(()=>{const $=getjQuery();if($){const name=plugin.NAME;const JQUERY_NO_CONFLICT=$.fn[name];$.fn[name]=plugin.jQueryInterface;$.fn[name].Constructor=plugin;$.fn[name].noConflict=()=>{$.fn[name]=JQUERY_NO_CONFLICT;return plugin.jQueryInterface;};}});};const execute=callback=>{if(typeof callback==='function'){callback();}};const elementMap=new Map();var Data={set(element,key,instance){if(!elementMap.has(element)){elementMap.set(element,new Map());}
const instanceMap=elementMap.get(element);if(!instanceMap.has(key)&&instanceMap.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(instanceMap.keys())[0]}.`);return;}
instanceMap.set(key,instance);},get(element,key){if(elementMap.has(element)){return elementMap.get(element).get(key)||null;}
return null;},remove(element,key){if(!elementMap.has(element)){return;}
const instanceMap=elementMap.get(element);instanceMap.delete(key);if(instanceMap.size===0){elementMap.delete(element);}}};const namespaceRegex=/[^.]*(?=\..*)\.|.*/;const stripNameRegex=/\..*/;const stripUidRegex=/::\d+$/;const eventRegistry={};let uidEvent=1;const customEvents={mouseenter:'mouseover',mouseleave:'mouseout'};const customEventsRegex=/^(mouseenter|mouseleave)/i;const nativeEvents=new Set(['click','dblclick','mouseup','mousedown','contextmenu','mousewheel','DOMMouseScroll','mouseover','mouseout','mousemove','selectstart','selectend','keydown','keypress','keyup','orientationchange','touchstart','touchmove','touchend','touchcancel','pointerdown','pointermove','pointerup','pointerleave','pointercancel','gesturestart','gesturechange','gestureend','focus','blur','change','reset','select','submit','focusin','focusout','load','unload','beforeunload','resize','move','DOMContentLoaded','readystatechange','error','abort','scroll']);function getUidEvent(element,uid){return uid&&`${uid}::${uidEvent++}`||element.uidEvent||uidEvent++;}
function getEvent(element){const uid=getUidEvent(element);element.uidEvent=uid;eventRegistry[uid]=eventRegistry[uid]||{};return eventRegistry[uid];}
function bootstrapHandler(element,fn){return function handler(event){event.delegateTarget=element;if(handler.oneOff){EventHandler.off(element,event.type,fn);}
return fn.apply(element,[event]);};}
function bootstrapDelegationHandler(element,selector,fn){return function handler(event){const domElements=element.querySelectorAll(selector);for(let{target}=event;target&&target!==this;target=target.parentNode){for(let i=domElements.length;i--;){if(domElements[i]===target){event.delegateTarget=target;if(handler.oneOff){EventHandler.off(element,event.type,selector,fn);}
return fn.apply(target,[event]);}}}
return null;};}
function findHandler(events,handler,delegationSelector=null){const uidEventList=Object.keys(events);for(let i=0,len=uidEventList.length;i<len;i++){const event=events[uidEventList[i]];if(event.originalHandler===handler&&event.delegationSelector===delegationSelector){return event;}}
return null;}
function normalizeParams(originalTypeEvent,handler,delegationFn){const delegation=typeof handler==='string';const originalHandler=delegation?delegationFn:handler;let typeEvent=getTypeEvent(originalTypeEvent);const isNative=nativeEvents.has(typeEvent);if(!isNative){typeEvent=originalTypeEvent;}
return[delegation,originalHandler,typeEvent];}
function addHandler(element,originalTypeEvent,handler,delegationFn,oneOff){if(typeof originalTypeEvent!=='string'||!element){return;}
if(!handler){handler=delegationFn;delegationFn=null;}
if(customEventsRegex.test(originalTypeEvent)){const wrapFn=fn=>{return function(event){if(!event.relatedTarget||event.relatedTarget!==event.delegateTarget&&!event.delegateTarget.contains(event.relatedTarget)){return fn.call(this,event);}};};if(delegationFn){delegationFn=wrapFn(delegationFn);}else{handler=wrapFn(handler);}}
const[delegation,originalHandler,typeEvent]=normalizeParams(originalTypeEvent,handler,delegationFn);const events=getEvent(element);const handlers=events[typeEvent]||(events[typeEvent]={});const previousFn=findHandler(handlers,originalHandler,delegation?handler:null);if(previousFn){previousFn.oneOff=previousFn.oneOff&&oneOff;return;}
const uid=getUidEvent(originalHandler,originalTypeEvent.replace(namespaceRegex,''));const fn=delegation?bootstrapDelegationHandler(element,handler,delegationFn):bootstrapHandler(element,handler);fn.delegationSelector=delegation?handler:null;fn.originalHandler=originalHandler;fn.oneOff=oneOff;fn.uidEvent=uid;handlers[uid]=fn;element.addEventListener(typeEvent,fn,delegation);}
function removeHandler(element,events,typeEvent,handler,delegationSelector){const fn=findHandler(events[typeEvent],handler,delegationSelector);if(!fn){return;}
element.removeEventListener(typeEvent,fn,Boolean(delegationSelector));delete events[typeEvent][fn.uidEvent];}
function removeNamespacedHandlers(element,events,typeEvent,namespace){const storeElementEvent=events[typeEvent]||{};Object.keys(storeElementEvent).forEach(handlerKey=>{if(handlerKey.includes(namespace)){const event=storeElementEvent[handlerKey];removeHandler(element,events,typeEvent,event.originalHandler,event.delegationSelector);}});}
function getTypeEvent(event){event=event.replace(stripNameRegex,'');return customEvents[event]||event;}
const EventHandler={on(element,event,handler,delegationFn){addHandler(element,event,handler,delegationFn,false);},one(element,event,handler,delegationFn){addHandler(element,event,handler,delegationFn,true);},off(element,originalTypeEvent,handler,delegationFn){if(typeof originalTypeEvent!=='string'||!element){return;}
const[delegation,originalHandler,typeEvent]=normalizeParams(originalTypeEvent,handler,delegationFn);const inNamespace=typeEvent!==originalTypeEvent;const events=getEvent(element);const isNamespace=originalTypeEvent.startsWith('.');if(typeof originalHandler!=='undefined'){if(!events||!events[typeEvent]){return;}
removeHandler(element,events,typeEvent,originalHandler,delegation?handler:null);return;}
if(isNamespace){Object.keys(events).forEach(elementEvent=>{removeNamespacedHandlers(element,events,elementEvent,originalTypeEvent.slice(1));});}
const storeElementEvent=events[typeEvent]||{};Object.keys(storeElementEvent).forEach(keyHandlers=>{const handlerKey=keyHandlers.replace(stripUidRegex,'');if(!inNamespace||originalTypeEvent.includes(handlerKey)){const event=storeElementEvent[keyHandlers];removeHandler(element,events,typeEvent,event.originalHandler,event.delegationSelector);}});},trigger(element,event,args){if(typeof event!=='string'||!element){return null;}
const $=getjQuery();const typeEvent=getTypeEvent(event);const inNamespace=event!==typeEvent;const isNative=nativeEvents.has(typeEvent);let jQueryEvent;let bubbles=true;let nativeDispatch=true;let defaultPrevented=false;let evt=null;if(inNamespace&&$){jQueryEvent=$.Event(event,args);$(element).trigger(jQueryEvent);bubbles=!jQueryEvent.isPropagationStopped();nativeDispatch=!jQueryEvent.isImmediatePropagationStopped();defaultPrevented=jQueryEvent.isDefaultPrevented();}
if(isNative){evt=document.createEvent('HTMLEvents');evt.initEvent(typeEvent,bubbles,true);}else{evt=new CustomEvent(event,{bubbles,cancelable:true});}
if(typeof args!=='undefined'){Object.keys(args).forEach(key=>{Object.defineProperty(evt,key,{get(){return args[key];}});});}
if(defaultPrevented){evt.preventDefault();}
if(nativeDispatch){element.dispatchEvent(evt);}
if(evt.defaultPrevented&&typeof jQueryEvent!=='undefined'){jQueryEvent.preventDefault();}
return evt;}};const VERSION='5.0.1';class BaseComponent{constructor(element){element=getElement(element);if(!element){return;}
this._element=element;Data.set(this._element,this.constructor.DATA_KEY,this);}
dispose(){Data.remove(this._element,this.constructor.DATA_KEY);EventHandler.off(this._element,this.constructor.EVENT_KEY);Object.getOwnPropertyNames(this).forEach(propertyName=>{this[propertyName]=null;});}
_queueCallback(callback,element,isAnimated=true){if(!isAnimated){execute(callback);return;}
const transitionDuration=getTransitionDurationFromElement(element);EventHandler.one(element,'transitionend',()=>execute(callback));emulateTransitionEnd(element,transitionDuration);}
static getInstance(element){return Data.get(element,this.DATA_KEY);}
static get VERSION(){return VERSION;}
static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!');}
static get DATA_KEY(){return`bs.${this.NAME}`;}
static get EVENT_KEY(){return`.${this.DATA_KEY}`;}}
const NAME$c='alert';const DATA_KEY$b='bs.alert';const EVENT_KEY$b=`.${DATA_KEY$b}`;const DATA_API_KEY$8='.data-api';const SELECTOR_DISMISS='[data-bs-dismiss="alert"]';const EVENT_CLOSE=`close${EVENT_KEY$b}`;const EVENT_CLOSED=`closed${EVENT_KEY$b}`;const EVENT_CLICK_DATA_API$7=`click${EVENT_KEY$b}${DATA_API_KEY$8}`;const CLASS_NAME_ALERT='alert';const CLASS_NAME_FADE$6='fade';const CLASS_NAME_SHOW$9='show';class Alert extends BaseComponent{static get NAME(){return NAME$c;}
close(element){const rootElement=element?this._getRootElement(element):this._element;const customEvent=this._triggerCloseEvent(rootElement);if(customEvent===null||customEvent.defaultPrevented){return;}
this._removeElement(rootElement);}
_getRootElement(element){return getElementFromSelector(element)||element.closest(`.${CLASS_NAME_ALERT}`);}
_triggerCloseEvent(element){return EventHandler.trigger(element,EVENT_CLOSE);}
_removeElement(element){element.classList.remove(CLASS_NAME_SHOW$9);const isAnimated=element.classList.contains(CLASS_NAME_FADE$6);this._queueCallback(()=>this._destroyElement(element),element,isAnimated);}
_destroyElement(element){if(element.parentNode){element.parentNode.removeChild(element);}
EventHandler.trigger(element,EVENT_CLOSED);}
static jQueryInterface(config){return this.each(function(){let data=Data.get(this,DATA_KEY$b);if(!data){data=new Alert(this);}
if(config==='close'){data[config](this);}});}
static handleDismiss(alertInstance){return function(event){if(event){event.preventDefault();}
alertInstance.close(this);};}}
EventHandler.on(document,EVENT_CLICK_DATA_API$7,SELECTOR_DISMISS,Alert.handleDismiss(new Alert()));defineJQueryPlugin(Alert);const NAME$b='button';const DATA_KEY$a='bs.button';const EVENT_KEY$a=`.${DATA_KEY$a}`;const DATA_API_KEY$7='.data-api';const CLASS_NAME_ACTIVE$3='active';const SELECTOR_DATA_TOGGLE$5='[data-bs-toggle="button"]';const EVENT_CLICK_DATA_API$6=`click${EVENT_KEY$a}${DATA_API_KEY$7}`;class Button extends BaseComponent{static get NAME(){return NAME$b;}
toggle(){this._element.setAttribute('aria-pressed',this._element.classList.toggle(CLASS_NAME_ACTIVE$3));}
static jQueryInterface(config){return this.each(function(){let data=Data.get(this,DATA_KEY$a);if(!data){data=new Button(this);}
if(config==='toggle'){data[config]();}});}}
EventHandler.on(document,EVENT_CLICK_DATA_API$6,SELECTOR_DATA_TOGGLE$5,event=>{event.preventDefault();const button=event.target.closest(SELECTOR_DATA_TOGGLE$5);let data=Data.get(button,DATA_KEY$a);if(!data){data=new Button(button);}
data.toggle();});defineJQueryPlugin(Button);function normalizeData(val){if(val==='true'){return true;}
if(val==='false'){return false;}
if(val===Number(val).toString()){return Number(val);}
if(val===''||val==='null'){return null;}
return val;}
function normalizeDataKey(key){return key.replace(/[A-Z]/g,chr=>`-${chr.toLowerCase()}`);}
const Manipulator={setDataAttribute(element,key,value){element.setAttribute(`data-bs-${normalizeDataKey(key)}`,value);},removeDataAttribute(element,key){element.removeAttribute(`data-bs-${normalizeDataKey(key)}`);},getDataAttributes(element){if(!element){return{};}
const attributes={};Object.keys(element.dataset).filter(key=>key.startsWith('bs')).forEach(key=>{let pureKey=key.replace(/^bs/,'');pureKey=pureKey.charAt(0).toLowerCase()+pureKey.slice(1,pureKey.length);attributes[pureKey]=normalizeData(element.dataset[key]);});return attributes;},getDataAttribute(element,key){return normalizeData(element.getAttribute(`data-bs-${normalizeDataKey(key)}`));},offset(element){const rect=element.getBoundingClientRect();return{top:rect.top+document.body.scrollTop,left:rect.left+document.body.scrollLeft};},position(element){return{top:element.offsetTop,left:element.offsetLeft};}};const NAME$9='collapse';const DATA_KEY$8='bs.collapse';const EVENT_KEY$8=`.${DATA_KEY$8}`;const DATA_API_KEY$5='.data-api';const Default$8={toggle:true,parent:''};const DefaultType$8={toggle:'boolean',parent:'(string|element)'};const EVENT_SHOW$5=`show${EVENT_KEY$8}`;const EVENT_SHOWN$5=`shown${EVENT_KEY$8}`;const EVENT_HIDE$5=`hide${EVENT_KEY$8}`;const EVENT_HIDDEN$5=`hidden${EVENT_KEY$8}`;const EVENT_CLICK_DATA_API$4=`click${EVENT_KEY$8}${DATA_API_KEY$5}`;const CLASS_NAME_SHOW$8='show';const CLASS_NAME_COLLAPSE='collapse';const CLASS_NAME_COLLAPSING='collapsing';const CLASS_NAME_COLLAPSED='collapsed';const WIDTH='width';const HEIGHT='height';const SELECTOR_ACTIVES='.show, .collapsing';const SELECTOR_DATA_TOGGLE$4='[data-bs-toggle="collapse"]';class Collapse extends BaseComponent{constructor(element,config){super(element);this._isTransitioning=false;this._config=this._getConfig(config);this._triggerArray=SelectorEngine.find(`${SELECTOR_DATA_TOGGLE$4}[href="#${this._element.id}"],`+`${SELECTOR_DATA_TOGGLE$4}[data-bs-target="#${this._element.id}"]`);const toggleList=SelectorEngine.find(SELECTOR_DATA_TOGGLE$4);for(let i=0,len=toggleList.length;i<len;i++){const elem=toggleList[i];const selector=getSelectorFromElement(elem);const filterElement=SelectorEngine.find(selector).filter(foundElem=>foundElem===this._element);if(selector!==null&&filterElement.length){this._selector=selector;this._triggerArray.push(elem);}}
this._parent=this._config.parent?this._getParent():null;if(!this._config.parent){this._addAriaAndCollapsedClass(this._element,this._triggerArray);}
if(this._config.toggle){this.toggle();}}
static get Default(){return Default$8;}
static get NAME(){return NAME$9;}
toggle(){if(this._element.classList.contains(CLASS_NAME_SHOW$8)){this.hide();}else{this.show();}}
show(){if(this._isTransitioning||this._element.classList.contains(CLASS_NAME_SHOW$8)){return;}
let actives;let activesData;if(this._parent){actives=SelectorEngine.find(SELECTOR_ACTIVES,this._parent).filter(elem=>{if(typeof this._config.parent==='string'){return elem.getAttribute('data-bs-parent')===this._config.parent;}
return elem.classList.contains(CLASS_NAME_COLLAPSE);});if(actives.length===0){actives=null;}}
const container=SelectorEngine.findOne(this._selector);if(actives){const tempActiveData=actives.find(elem=>container!==elem);activesData=tempActiveData?Data.get(tempActiveData,DATA_KEY$8):null;if(activesData&&activesData._isTransitioning){return;}}
const startEvent=EventHandler.trigger(this._element,EVENT_SHOW$5);if(startEvent.defaultPrevented){return;}
if(actives){actives.forEach(elemActive=>{if(container!==elemActive){Collapse.collapseInterface(elemActive,'hide');}
if(!activesData){Data.set(elemActive,DATA_KEY$8,null);}});}
const dimension=this._getDimension();this._element.classList.remove(CLASS_NAME_COLLAPSE);this._element.classList.add(CLASS_NAME_COLLAPSING);this._element.style[dimension]=0;if(this._triggerArray.length){this._triggerArray.forEach(element=>{element.classList.remove(CLASS_NAME_COLLAPSED);element.setAttribute('aria-expanded',true);});}
this.setTransitioning(true);const complete=()=>{this._element.classList.remove(CLASS_NAME_COLLAPSING);this._element.classList.add(CLASS_NAME_COLLAPSE,CLASS_NAME_SHOW$8);this._element.style[dimension]='';this.setTransitioning(false);EventHandler.trigger(this._element,EVENT_SHOWN$5);};const capitalizedDimension=dimension[0].toUpperCase()+dimension.slice(1);const scrollSize=`scroll${capitalizedDimension}`;this._queueCallback(complete,this._element,true);this._element.style[dimension]=`${this._element[scrollSize]}px`;}
hide(){if(this._isTransitioning||!this._element.classList.contains(CLASS_NAME_SHOW$8)){return;}
const startEvent=EventHandler.trigger(this._element,EVENT_HIDE$5);if(startEvent.defaultPrevented){return;}
const dimension=this._getDimension();this._element.style[dimension]=`${this._element.getBoundingClientRect()[dimension]}px`;reflow(this._element);this._element.classList.add(CLASS_NAME_COLLAPSING);this._element.classList.remove(CLASS_NAME_COLLAPSE,CLASS_NAME_SHOW$8);const triggerArrayLength=this._triggerArray.length;if(triggerArrayLength>0){for(let i=0;i<triggerArrayLength;i++){const trigger=this._triggerArray[i];const elem=getElementFromSelector(trigger);if(elem&&!elem.classList.contains(CLASS_NAME_SHOW$8)){trigger.classList.add(CLASS_NAME_COLLAPSED);trigger.setAttribute('aria-expanded',false);}}}
this.setTransitioning(true);const complete=()=>{this.setTransitioning(false);this._element.classList.remove(CLASS_NAME_COLLAPSING);this._element.classList.add(CLASS_NAME_COLLAPSE);EventHandler.trigger(this._element,EVENT_HIDDEN$5);};this._element.style[dimension]='';this._queueCallback(complete,this._element,true);}
setTransitioning(isTransitioning){this._isTransitioning=isTransitioning;}
_getConfig(config){config={...Default$8,...config};config.toggle=Boolean(config.toggle);typeCheckConfig(NAME$9,config,DefaultType$8);return config;}
_getDimension(){return this._element.classList.contains(WIDTH)?WIDTH:HEIGHT;}
_getParent(){let{parent}=this._config;parent=getElement(parent);const selector=`${SELECTOR_DATA_TOGGLE$4}[data-bs-parent="${parent}"]`;SelectorEngine.find(selector,parent).forEach(element=>{const selected=getElementFromSelector(element);this._addAriaAndCollapsedClass(selected,[element]);});return parent;}
_addAriaAndCollapsedClass(element,triggerArray){if(!element||!triggerArray.length){return;}
const isOpen=element.classList.contains(CLASS_NAME_SHOW$8);triggerArray.forEach(elem=>{if(isOpen){elem.classList.remove(CLASS_NAME_COLLAPSED);}else{elem.classList.add(CLASS_NAME_COLLAPSED);}
elem.setAttribute('aria-expanded',isOpen);});}
static collapseInterface(element,config){let data=Data.get(element,DATA_KEY$8);const _config={...Default$8,...Manipulator.getDataAttributes(element),...(typeof config==='object'&&config?config:{})};if(!data&&_config.toggle&&typeof config==='string'&&/show|hide/.test(config)){_config.toggle=false;}
if(!data){data=new Collapse(element,_config);}
if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError(`No method named "${config}"`);}
data[config]();}}
static jQueryInterface(config){return this.each(function(){Collapse.collapseInterface(this,config);});}}
EventHandler.on(document,EVENT_CLICK_DATA_API$4,SELECTOR_DATA_TOGGLE$4,function(event){if(event.target.tagName==='A'||event.delegateTarget&&event.delegateTarget.tagName==='A'){event.preventDefault();}
const triggerData=Manipulator.getDataAttributes(this);const selector=getSelectorFromElement(this);const selectorElements=SelectorEngine.find(selector);selectorElements.forEach(element=>{const data=Data.get(element,DATA_KEY$8);let config;if(data){if(data._parent===null&&typeof triggerData.parent==='string'){data._config.parent=triggerData.parent;data._parent=data._getParent();}
config='toggle';}else{config=triggerData;}
Collapse.collapseInterface(element,config);});});defineJQueryPlugin(Collapse);var top='top';var bottom='bottom';var right='right';var left='left';var auto='auto';var basePlacements=[top,bottom,right,left];var start='start';var end='end';var clippingParents='clippingParents';var viewport='viewport';var popper='popper';var reference='reference';var variationPlacements=basePlacements.reduce(function(acc,placement){return acc.concat([placement+"-"+start,placement+"-"+end]);},[]);var placements=[].concat(basePlacements,[auto]).reduce(function(acc,placement){return acc.concat([placement,placement+"-"+start,placement+"-"+end]);},[]);var beforeRead='beforeRead';var read='read';var afterRead='afterRead';var beforeMain='beforeMain';var main='main';var afterMain='afterMain';var beforeWrite='beforeWrite';var write='write';var afterWrite='afterWrite';var modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(element){return element?(element.nodeName||'').toLowerCase():null;}
function getWindow(node){if(node==null){return window;}
if(node.toString()!=='[object Window]'){var ownerDocument=node.ownerDocument;return ownerDocument?ownerDocument.defaultView||window:window;}
return node;}
function isElement(node){var OwnElement=getWindow(node).Element;return node instanceof OwnElement||node instanceof Element;}
function isHTMLElement(node){var OwnElement=getWindow(node).HTMLElement;return node instanceof OwnElement||node instanceof HTMLElement;}
function isShadowRoot(node){if(typeof ShadowRoot==='undefined'){return false;}
var OwnElement=getWindow(node).ShadowRoot;return node instanceof OwnElement||node instanceof ShadowRoot;}
function applyStyles(_ref){var state=_ref.state;Object.keys(state.elements).forEach(function(name){var style=state.styles[name]||{};var attributes=state.attributes[name]||{};var element=state.elements[name];if(!isHTMLElement(element)||!getNodeName(element)){return;}
Object.assign(element.style,style);Object.keys(attributes).forEach(function(name){var value=attributes[name];if(value===false){element.removeAttribute(name);}else{element.setAttribute(name,value===true?'':value);}});});}
function effect$2(_ref2){var state=_ref2.state;var initialStyles={popper:{position:state.options.strategy,left:'0',top:'0',margin:'0'},arrow:{position:'absolute'},reference:{}};Object.assign(state.elements.popper.style,initialStyles.popper);state.styles=initialStyles;if(state.elements.arrow){Object.assign(state.elements.arrow.style,initialStyles.arrow);}
return function(){Object.keys(state.elements).forEach(function(name){var element=state.elements[name];var attributes=state.attributes[name]||{};var styleProperties=Object.keys(state.styles.hasOwnProperty(name)?state.styles[name]:initialStyles[name]);var style=styleProperties.reduce(function(style,property){style[property]='';return style;},{});if(!isHTMLElement(element)||!getNodeName(element)){return;}
Object.assign(element.style,style);Object.keys(attributes).forEach(function(attribute){element.removeAttribute(attribute);});});};}
var applyStyles$1={name:'applyStyles',enabled:true,phase:'write',fn:applyStyles,effect:effect$2,requires:['computeStyles']};function getBasePlacement(placement){return placement.split('-')[0];}
function getBoundingClientRect(element){var rect=element.getBoundingClientRect();return{width:rect.width,height:rect.height,top:rect.top,right:rect.right,bottom:rect.bottom,left:rect.left,x:rect.left,y:rect.top};}
function getLayoutRect(element){var clientRect=getBoundingClientRect(element);var width=element.offsetWidth;var height=element.offsetHeight;if(Math.abs(clientRect.width-width)<=1){width=clientRect.width;}
if(Math.abs(clientRect.height-height)<=1){height=clientRect.height;}
return{x:element.offsetLeft,y:element.offsetTop,width:width,height:height};}
function contains(parent,child){var rootNode=child.getRootNode&&child.getRootNode();if(parent.contains(child)){return true;}
else if(rootNode&&isShadowRoot(rootNode)){var next=child;do{if(next&&parent.isSameNode(next)){return true;}
next=next.parentNode||next.host;}while(next);}
return false;}
function getComputedStyle$1(element){return getWindow(element).getComputedStyle(element);}
function isTableElement(element){return['table','td','th'].indexOf(getNodeName(element))>=0;}
function getDocumentElement(element){return((isElement(element)?element.ownerDocument:element.document)||window.document).documentElement;}
function getParentNode(element){if(getNodeName(element)==='html'){return element;}
return(element.assignedSlot||element.parentNode||(isShadowRoot(element)?element.host:null)||getDocumentElement(element));}
function getTrueOffsetParent(element){if(!isHTMLElement(element)||getComputedStyle$1(element).position==='fixed'){return null;}
return element.offsetParent;}
function getContainingBlock(element){var isFirefox=navigator.userAgent.toLowerCase().indexOf('firefox')!==-1;var isIE=navigator.userAgent.indexOf('Trident')!==-1;if(isIE&&isHTMLElement(element)){var elementCss=getComputedStyle$1(element);if(elementCss.position==='fixed'){return null;}}
var currentNode=getParentNode(element);while(isHTMLElement(currentNode)&&['html','body'].indexOf(getNodeName(currentNode))<0){var css=getComputedStyle$1(currentNode);if(css.transform!=='none'||css.perspective!=='none'||css.contain==='paint'||['transform','perspective'].indexOf(css.willChange)!==-1||isFirefox&&css.willChange==='filter'||isFirefox&&css.filter&&css.filter!=='none'){return currentNode;}else{currentNode=currentNode.parentNode;}}
return null;}
function getOffsetParent(element){var window=getWindow(element);var offsetParent=getTrueOffsetParent(element);while(offsetParent&&isTableElement(offsetParent)&&getComputedStyle$1(offsetParent).position==='static'){offsetParent=getTrueOffsetParent(offsetParent);}
if(offsetParent&&(getNodeName(offsetParent)==='html'||getNodeName(offsetParent)==='body'&&getComputedStyle$1(offsetParent).position==='static')){return window;}
return offsetParent||getContainingBlock(element)||window;}
function getMainAxisFromPlacement(placement){return['top','bottom'].indexOf(placement)>=0?'x':'y';}
var max=Math.max;var min=Math.min;var round=Math.round;function within(min$1,value,max$1){return max(min$1,min(value,max$1));}
function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0};}
function mergePaddingObject(paddingObject){return Object.assign({},getFreshSideObject(),paddingObject);}
function expandToHashMap(value,keys){return keys.reduce(function(hashMap,key){hashMap[key]=value;return hashMap;},{});}
var toPaddingObject=function toPaddingObject(padding,state){padding=typeof padding==='function'?padding(Object.assign({},state.rects,{placement:state.placement})):padding;return mergePaddingObject(typeof padding!=='number'?padding:expandToHashMap(padding,basePlacements));};function arrow(_ref){var _state$modifiersData$;var state=_ref.state,name=_ref.name,options=_ref.options;var arrowElement=state.elements.arrow;var popperOffsets=state.modifiersData.popperOffsets;var basePlacement=getBasePlacement(state.placement);var axis=getMainAxisFromPlacement(basePlacement);var isVertical=[left,right].indexOf(basePlacement)>=0;var len=isVertical?'height':'width';if(!arrowElement||!popperOffsets){return;}
var paddingObject=toPaddingObject(options.padding,state);var arrowRect=getLayoutRect(arrowElement);var minProp=axis==='y'?top:left;var maxProp=axis==='y'?bottom:right;var endDiff=state.rects.reference[len]+state.rects.reference[axis]-popperOffsets[axis]-state.rects.popper[len];var startDiff=popperOffsets[axis]-state.rects.reference[axis];var arrowOffsetParent=getOffsetParent(arrowElement);var clientSize=arrowOffsetParent?axis==='y'?arrowOffsetParent.clientHeight||0:arrowOffsetParent.clientWidth||0:0;var centerToReference=endDiff/2-startDiff/2;var min=paddingObject[minProp];var max=clientSize-arrowRect[len]-paddingObject[maxProp];var center=clientSize/2-arrowRect[len]/2+centerToReference;var offset=within(min,center,max);var axisProp=axis;state.modifiersData[name]=(_state$modifiersData$={},_state$modifiersData$[axisProp]=offset,_state$modifiersData$.centerOffset=offset-center,_state$modifiersData$);}
function effect$1(_ref2){var state=_ref2.state,options=_ref2.options;var _options$element=options.element,arrowElement=_options$element===void 0?'[data-popper-arrow]':_options$element;if(arrowElement==null){return;}
if(typeof arrowElement==='string'){arrowElement=state.elements.popper.querySelector(arrowElement);if(!arrowElement){return;}}
if(!contains(state.elements.popper,arrowElement)){return;}
state.elements.arrow=arrowElement;}
var arrow$1={name:'arrow',enabled:true,phase:'main',fn:arrow,effect:effect$1,requires:['popperOffsets'],requiresIfExists:['preventOverflow']};var unsetSides={top:'auto',right:'auto',bottom:'auto',left:'auto'};function roundOffsetsByDPR(_ref){var x=_ref.x,y=_ref.y;var win=window;var dpr=win.devicePixelRatio||1;return{x:round(round(x*dpr)/dpr)||0,y:round(round(y*dpr)/dpr)||0};}
function mapToStyles(_ref2){var _Object$assign2;var popper=_ref2.popper,popperRect=_ref2.popperRect,placement=_ref2.placement,offsets=_ref2.offsets,position=_ref2.position,gpuAcceleration=_ref2.gpuAcceleration,adaptive=_ref2.adaptive,roundOffsets=_ref2.roundOffsets;var _ref3=roundOffsets===true?roundOffsetsByDPR(offsets):typeof roundOffsets==='function'?roundOffsets(offsets):offsets,_ref3$x=_ref3.x,x=_ref3$x===void 0?0:_ref3$x,_ref3$y=_ref3.y,y=_ref3$y===void 0?0:_ref3$y;var hasX=offsets.hasOwnProperty('x');var hasY=offsets.hasOwnProperty('y');var sideX=left;var sideY=top;var win=window;if(adaptive){var offsetParent=getOffsetParent(popper);var heightProp='clientHeight';var widthProp='clientWidth';if(offsetParent===getWindow(popper)){offsetParent=getDocumentElement(popper);if(getComputedStyle$1(offsetParent).position!=='static'){heightProp='scrollHeight';widthProp='scrollWidth';}}
offsetParent=offsetParent;if(placement===top){sideY=bottom;y-=offsetParent[heightProp]-popperRect.height;y*=gpuAcceleration?1:-1;}
if(placement===left){sideX=right;x-=offsetParent[widthProp]-popperRect.width;x*=gpuAcceleration?1:-1;}}
var commonStyles=Object.assign({position:position},adaptive&&unsetSides);if(gpuAcceleration){var _Object$assign;return Object.assign({},commonStyles,(_Object$assign={},_Object$assign[sideY]=hasY?'0':'',_Object$assign[sideX]=hasX?'0':'',_Object$assign.transform=(win.devicePixelRatio||1)<2?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",_Object$assign));}
return Object.assign({},commonStyles,(_Object$assign2={},_Object$assign2[sideY]=hasY?y+"px":'',_Object$assign2[sideX]=hasX?x+"px":'',_Object$assign2.transform='',_Object$assign2));}
function computeStyles(_ref4){var state=_ref4.state,options=_ref4.options;var _options$gpuAccelerat=options.gpuAcceleration,gpuAcceleration=_options$gpuAccelerat===void 0?true:_options$gpuAccelerat,_options$adaptive=options.adaptive,adaptive=_options$adaptive===void 0?true:_options$adaptive,_options$roundOffsets=options.roundOffsets,roundOffsets=_options$roundOffsets===void 0?true:_options$roundOffsets;var commonStyles={placement:getBasePlacement(state.placement),popper:state.elements.popper,popperRect:state.rects.popper,gpuAcceleration:gpuAcceleration};if(state.modifiersData.popperOffsets!=null){state.styles.popper=Object.assign({},state.styles.popper,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.popperOffsets,position:state.options.strategy,adaptive:adaptive,roundOffsets:roundOffsets})));}
if(state.modifiersData.arrow!=null){state.styles.arrow=Object.assign({},state.styles.arrow,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.arrow,position:'absolute',adaptive:false,roundOffsets:roundOffsets})));}
state.attributes.popper=Object.assign({},state.attributes.popper,{'data-popper-placement':state.placement});}
var computeStyles$1={name:'computeStyles',enabled:true,phase:'beforeWrite',fn:computeStyles,data:{}};var passive={passive:true};function effect(_ref){var state=_ref.state,instance=_ref.instance,options=_ref.options;var _options$scroll=options.scroll,scroll=_options$scroll===void 0?true:_options$scroll,_options$resize=options.resize,resize=_options$resize===void 0?true:_options$resize;var window=getWindow(state.elements.popper);var scrollParents=[].concat(state.scrollParents.reference,state.scrollParents.popper);if(scroll){scrollParents.forEach(function(scrollParent){scrollParent.addEventListener('scroll',instance.update,passive);});}
if(resize){window.addEventListener('resize',instance.update,passive);}
return function(){if(scroll){scrollParents.forEach(function(scrollParent){scrollParent.removeEventListener('scroll',instance.update,passive);});}
if(resize){window.removeEventListener('resize',instance.update,passive);}};}
var eventListeners={name:'eventListeners',enabled:true,phase:'write',fn:function fn(){},effect:effect,data:{}};var hash$1={left:'right',right:'left',bottom:'top',top:'bottom'};function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,function(matched){return hash$1[matched];});}
var hash={start:'end',end:'start'};function getOppositeVariationPlacement(placement){return placement.replace(/start|end/g,function(matched){return hash[matched];});}
function getWindowScroll(node){var win=getWindow(node);var scrollLeft=win.pageXOffset;var scrollTop=win.pageYOffset;return{scrollLeft:scrollLeft,scrollTop:scrollTop};}
function getWindowScrollBarX(element){return getBoundingClientRect(getDocumentElement(element)).left+getWindowScroll(element).scrollLeft;}
function getViewportRect(element){var win=getWindow(element);var html=getDocumentElement(element);var visualViewport=win.visualViewport;var width=html.clientWidth;var height=html.clientHeight;var x=0;var y=0;if(visualViewport){width=visualViewport.width;height=visualViewport.height;if(!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){x=visualViewport.offsetLeft;y=visualViewport.offsetTop;}}
return{width:width,height:height,x:x+getWindowScrollBarX(element),y:y};}
function getDocumentRect(element){var _element$ownerDocumen;var html=getDocumentElement(element);var winScroll=getWindowScroll(element);var body=(_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body;var width=max(html.scrollWidth,html.clientWidth,body?body.scrollWidth:0,body?body.clientWidth:0);var height=max(html.scrollHeight,html.clientHeight,body?body.scrollHeight:0,body?body.clientHeight:0);var x=-winScroll.scrollLeft+getWindowScrollBarX(element);var y=-winScroll.scrollTop;if(getComputedStyle$1(body||html).direction==='rtl'){x+=max(html.clientWidth,body?body.clientWidth:0)-width;}
return{width:width,height:height,x:x,y:y};}
function isScrollParent(element){var _getComputedStyle=getComputedStyle$1(element),overflow=_getComputedStyle.overflow,overflowX=_getComputedStyle.overflowX,overflowY=_getComputedStyle.overflowY;return/auto|scroll|overlay|hidden/.test(overflow+overflowY+overflowX);}
function getScrollParent(node){if(['html','body','#document'].indexOf(getNodeName(node))>=0){return node.ownerDocument.body;}
if(isHTMLElement(node)&&isScrollParent(node)){return node;}
return getScrollParent(getParentNode(node));}
function listScrollParents(element,list){var _element$ownerDocumen;if(list===void 0){list=[];}
var scrollParent=getScrollParent(element);var isBody=scrollParent===((_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body);var win=getWindow(scrollParent);var target=isBody?[win].concat(win.visualViewport||[],isScrollParent(scrollParent)?scrollParent:[]):scrollParent;var updatedList=list.concat(target);return isBody?updatedList:updatedList.concat(listScrollParents(getParentNode(target)));}
function rectToClientRect(rect){return Object.assign({},rect,{left:rect.x,top:rect.y,right:rect.x+rect.width,bottom:rect.y+rect.height});}
function getInnerBoundingClientRect(element){var rect=getBoundingClientRect(element);rect.top=rect.top+element.clientTop;rect.left=rect.left+element.clientLeft;rect.bottom=rect.top+element.clientHeight;rect.right=rect.left+element.clientWidth;rect.width=element.clientWidth;rect.height=element.clientHeight;rect.x=rect.left;rect.y=rect.top;return rect;}
function getClientRectFromMixedType(element,clippingParent){return clippingParent===viewport?rectToClientRect(getViewportRect(element)):isHTMLElement(clippingParent)?getInnerBoundingClientRect(clippingParent):rectToClientRect(getDocumentRect(getDocumentElement(element)));}
function getClippingParents(element){var clippingParents=listScrollParents(getParentNode(element));var canEscapeClipping=['absolute','fixed'].indexOf(getComputedStyle$1(element).position)>=0;var clipperElement=canEscapeClipping&&isHTMLElement(element)?getOffsetParent(element):element;if(!isElement(clipperElement)){return[];}
return clippingParents.filter(function(clippingParent){return isElement(clippingParent)&&contains(clippingParent,clipperElement)&&getNodeName(clippingParent)!=='body';});}
function getClippingRect(element,boundary,rootBoundary){var mainClippingParents=boundary==='clippingParents'?getClippingParents(element):[].concat(boundary);var clippingParents=[].concat(mainClippingParents,[rootBoundary]);var firstClippingParent=clippingParents[0];var clippingRect=clippingParents.reduce(function(accRect,clippingParent){var rect=getClientRectFromMixedType(element,clippingParent);accRect.top=max(rect.top,accRect.top);accRect.right=min(rect.right,accRect.right);accRect.bottom=min(rect.bottom,accRect.bottom);accRect.left=max(rect.left,accRect.left);return accRect;},getClientRectFromMixedType(element,firstClippingParent));clippingRect.width=clippingRect.right-clippingRect.left;clippingRect.height=clippingRect.bottom-clippingRect.top;clippingRect.x=clippingRect.left;clippingRect.y=clippingRect.top;return clippingRect;}
function getVariation(placement){return placement.split('-')[1];}
function computeOffsets(_ref){var reference=_ref.reference,element=_ref.element,placement=_ref.placement;var basePlacement=placement?getBasePlacement(placement):null;var variation=placement?getVariation(placement):null;var commonX=reference.x+reference.width/2-element.width/2;var commonY=reference.y+reference.height/2-element.height/2;var offsets;switch(basePlacement){case top:offsets={x:commonX,y:reference.y-element.height};break;case bottom:offsets={x:commonX,y:reference.y+reference.height};break;case right:offsets={x:reference.x+reference.width,y:commonY};break;case left:offsets={x:reference.x-element.width,y:commonY};break;default:offsets={x:reference.x,y:reference.y};}
var mainAxis=basePlacement?getMainAxisFromPlacement(basePlacement):null;if(mainAxis!=null){var len=mainAxis==='y'?'height':'width';switch(variation){case start:offsets[mainAxis]=offsets[mainAxis]-(reference[len]/2-element[len]/2);break;case end:offsets[mainAxis]=offsets[mainAxis]+(reference[len]/2-element[len]/2);break;}}
return offsets;}
function detectOverflow(state,options){if(options===void 0){options={};}
var _options=options,_options$placement=_options.placement,placement=_options$placement===void 0?state.placement:_options$placement,_options$boundary=_options.boundary,boundary=_options$boundary===void 0?clippingParents:_options$boundary,_options$rootBoundary=_options.rootBoundary,rootBoundary=_options$rootBoundary===void 0?viewport:_options$rootBoundary,_options$elementConte=_options.elementContext,elementContext=_options$elementConte===void 0?popper:_options$elementConte,_options$altBoundary=_options.altBoundary,altBoundary=_options$altBoundary===void 0?false:_options$altBoundary,_options$padding=_options.padding,padding=_options$padding===void 0?0:_options$padding;var paddingObject=mergePaddingObject(typeof padding!=='number'?padding:expandToHashMap(padding,basePlacements));var altContext=elementContext===popper?reference:popper;var referenceElement=state.elements.reference;var popperRect=state.rects.popper;var element=state.elements[altBoundary?altContext:elementContext];var clippingClientRect=getClippingRect(isElement(element)?element:element.contextElement||getDocumentElement(state.elements.popper),boundary,rootBoundary);var referenceClientRect=getBoundingClientRect(referenceElement);var popperOffsets=computeOffsets({reference:referenceClientRect,element:popperRect,strategy:'absolute',placement:placement});var popperClientRect=rectToClientRect(Object.assign({},popperRect,popperOffsets));var elementClientRect=elementContext===popper?popperClientRect:referenceClientRect;var overflowOffsets={top:clippingClientRect.top-elementClientRect.top+paddingObject.top,bottom:elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom,left:clippingClientRect.left-elementClientRect.left+paddingObject.left,right:elementClientRect.right-clippingClientRect.right+paddingObject.right};var offsetData=state.modifiersData.offset;if(elementContext===popper&&offsetData){var offset=offsetData[placement];Object.keys(overflowOffsets).forEach(function(key){var multiply=[right,bottom].indexOf(key)>=0?1:-1;var axis=[top,bottom].indexOf(key)>=0?'y':'x';overflowOffsets[key]+=offset[axis]*multiply;});}
return overflowOffsets;}
function computeAutoPlacement(state,options){if(options===void 0){options={};}
var _options=options,placement=_options.placement,boundary=_options.boundary,rootBoundary=_options.rootBoundary,padding=_options.padding,flipVariations=_options.flipVariations,_options$allowedAutoP=_options.allowedAutoPlacements,allowedAutoPlacements=_options$allowedAutoP===void 0?placements:_options$allowedAutoP;var variation=getVariation(placement);var placements$1=variation?flipVariations?variationPlacements:variationPlacements.filter(function(placement){return getVariation(placement)===variation;}):basePlacements;var allowedPlacements=placements$1.filter(function(placement){return allowedAutoPlacements.indexOf(placement)>=0;});if(allowedPlacements.length===0){allowedPlacements=placements$1;}
var overflows=allowedPlacements.reduce(function(acc,placement){acc[placement]=detectOverflow(state,{placement:placement,boundary:boundary,rootBoundary:rootBoundary,padding:padding})[getBasePlacement(placement)];return acc;},{});return Object.keys(overflows).sort(function(a,b){return overflows[a]-overflows[b];});}
function getExpandedFallbackPlacements(placement){if(getBasePlacement(placement)===auto){return[];}
var oppositePlacement=getOppositePlacement(placement);return[getOppositeVariationPlacement(placement),oppositePlacement,getOppositeVariationPlacement(oppositePlacement)];}
function flip(_ref){var state=_ref.state,options=_ref.options,name=_ref.name;if(state.modifiersData[name]._skip){return;}
var _options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?true:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?true:_options$altAxis,specifiedFallbackPlacements=options.fallbackPlacements,padding=options.padding,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,_options$flipVariatio=options.flipVariations,flipVariations=_options$flipVariatio===void 0?true:_options$flipVariatio,allowedAutoPlacements=options.allowedAutoPlacements;var preferredPlacement=state.options.placement;var basePlacement=getBasePlacement(preferredPlacement);var isBasePlacement=basePlacement===preferredPlacement;var fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipVariations?[getOppositePlacement(preferredPlacement)]:getExpandedFallbackPlacements(preferredPlacement));var placements=[preferredPlacement].concat(fallbackPlacements).reduce(function(acc,placement){return acc.concat(getBasePlacement(placement)===auto?computeAutoPlacement(state,{placement:placement,boundary:boundary,rootBoundary:rootBoundary,padding:padding,flipVariations:flipVariations,allowedAutoPlacements:allowedAutoPlacements}):placement);},[]);var referenceRect=state.rects.reference;var popperRect=state.rects.popper;var checksMap=new Map();var makeFallbackChecks=true;var firstFittingPlacement=placements[0];for(var i=0;i<placements.length;i++){var placement=placements[i];var _basePlacement=getBasePlacement(placement);var isStartVariation=getVariation(placement)===start;var isVertical=[top,bottom].indexOf(_basePlacement)>=0;var len=isVertical?'width':'height';var overflow=detectOverflow(state,{placement:placement,boundary:boundary,rootBoundary:rootBoundary,altBoundary:altBoundary,padding:padding});var mainVariationSide=isVertical?isStartVariation?right:left:isStartVariation?bottom:top;if(referenceRect[len]>popperRect[len]){mainVariationSide=getOppositePlacement(mainVariationSide);}
var altVariationSide=getOppositePlacement(mainVariationSide);var checks=[];if(checkMainAxis){checks.push(overflow[_basePlacement]<=0);}
if(checkAltAxis){checks.push(overflow[mainVariationSide]<=0,overflow[altVariationSide]<=0);}
if(checks.every(function(check){return check;})){firstFittingPlacement=placement;makeFallbackChecks=false;break;}
checksMap.set(placement,checks);}
if(makeFallbackChecks){var numberOfChecks=flipVariations?3:1;var _loop=function _loop(_i){var fittingPlacement=placements.find(function(placement){var checks=checksMap.get(placement);if(checks){return checks.slice(0,_i).every(function(check){return check;});}});if(fittingPlacement){firstFittingPlacement=fittingPlacement;return"break";}};for(var _i=numberOfChecks;_i>0;_i--){var _ret=_loop(_i);if(_ret==="break")break;}}
if(state.placement!==firstFittingPlacement){state.modifiersData[name]._skip=true;state.placement=firstFittingPlacement;state.reset=true;}}
var flip$1={name:'flip',enabled:true,phase:'main',fn:flip,requiresIfExists:['offset'],data:{_skip:false}};function getSideOffsets(overflow,rect,preventedOffsets){if(preventedOffsets===void 0){preventedOffsets={x:0,y:0};}
return{top:overflow.top-rect.height-preventedOffsets.y,right:overflow.right-rect.width+preventedOffsets.x,bottom:overflow.bottom-rect.height+preventedOffsets.y,left:overflow.left-rect.width-preventedOffsets.x};}
function isAnySideFullyClipped(overflow){return[top,right,bottom,left].some(function(side){return overflow[side]>=0;});}
function hide$1(_ref){var state=_ref.state,name=_ref.name;var referenceRect=state.rects.reference;var popperRect=state.rects.popper;var preventedOffsets=state.modifiersData.preventOverflow;var referenceOverflow=detectOverflow(state,{elementContext:'reference'});var popperAltOverflow=detectOverflow(state,{altBoundary:true});var referenceClippingOffsets=getSideOffsets(referenceOverflow,referenceRect);var popperEscapeOffsets=getSideOffsets(popperAltOverflow,popperRect,preventedOffsets);var isReferenceHidden=isAnySideFullyClipped(referenceClippingOffsets);var hasPopperEscaped=isAnySideFullyClipped(popperEscapeOffsets);state.modifiersData[name]={referenceClippingOffsets:referenceClippingOffsets,popperEscapeOffsets:popperEscapeOffsets,isReferenceHidden:isReferenceHidden,hasPopperEscaped:hasPopperEscaped};state.attributes.popper=Object.assign({},state.attributes.popper,{'data-popper-reference-hidden':isReferenceHidden,'data-popper-escaped':hasPopperEscaped});}
var hide$2={name:'hide',enabled:true,phase:'main',requiresIfExists:['preventOverflow'],fn:hide$1};function distanceAndSkiddingToXY(placement,rects,offset){var basePlacement=getBasePlacement(placement);var invertDistance=[left,top].indexOf(basePlacement)>=0?-1:1;var _ref=typeof offset==='function'?offset(Object.assign({},rects,{placement:placement})):offset,skidding=_ref[0],distance=_ref[1];skidding=skidding||0;distance=(distance||0)*invertDistance;return[left,right].indexOf(basePlacement)>=0?{x:distance,y:skidding}:{x:skidding,y:distance};}
function offset(_ref2){var state=_ref2.state,options=_ref2.options,name=_ref2.name;var _options$offset=options.offset,offset=_options$offset===void 0?[0,0]:_options$offset;var data=placements.reduce(function(acc,placement){acc[placement]=distanceAndSkiddingToXY(placement,state.rects,offset);return acc;},{});var _data$state$placement=data[state.placement],x=_data$state$placement.x,y=_data$state$placement.y;if(state.modifiersData.popperOffsets!=null){state.modifiersData.popperOffsets.x+=x;state.modifiersData.popperOffsets.y+=y;}
state.modifiersData[name]=data;}
var offset$1={name:'offset',enabled:true,phase:'main',requires:['popperOffsets'],fn:offset};function popperOffsets(_ref){var state=_ref.state,name=_ref.name;state.modifiersData[name]=computeOffsets({reference:state.rects.reference,element:state.rects.popper,strategy:'absolute',placement:state.placement});}
var popperOffsets$1={name:'popperOffsets',enabled:true,phase:'read',fn:popperOffsets,data:{}};function getAltAxis(axis){return axis==='x'?'y':'x';}
function preventOverflow(_ref){var state=_ref.state,options=_ref.options,name=_ref.name;var _options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?true:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?false:_options$altAxis,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,padding=options.padding,_options$tether=options.tether,tether=_options$tether===void 0?true:_options$tether,_options$tetherOffset=options.tetherOffset,tetherOffset=_options$tetherOffset===void 0?0:_options$tetherOffset;var overflow=detectOverflow(state,{boundary:boundary,rootBoundary:rootBoundary,padding:padding,altBoundary:altBoundary});var basePlacement=getBasePlacement(state.placement);var variation=getVariation(state.placement);var isBasePlacement=!variation;var mainAxis=getMainAxisFromPlacement(basePlacement);var altAxis=getAltAxis(mainAxis);var popperOffsets=state.modifiersData.popperOffsets;var referenceRect=state.rects.reference;var popperRect=state.rects.popper;var tetherOffsetValue=typeof tetherOffset==='function'?tetherOffset(Object.assign({},state.rects,{placement:state.placement})):tetherOffset;var data={x:0,y:0};if(!popperOffsets){return;}
if(checkMainAxis||checkAltAxis){var mainSide=mainAxis==='y'?top:left;var altSide=mainAxis==='y'?bottom:right;var len=mainAxis==='y'?'height':'width';var offset=popperOffsets[mainAxis];var min$1=popperOffsets[mainAxis]+overflow[mainSide];var max$1=popperOffsets[mainAxis]-overflow[altSide];var additive=tether?-popperRect[len]/2:0;var minLen=variation===start?referenceRect[len]:popperRect[len];var maxLen=variation===start?-popperRect[len]:-referenceRect[len];var arrowElement=state.elements.arrow;var arrowRect=tether&&arrowElement?getLayoutRect(arrowElement):{width:0,height:0};var arrowPaddingObject=state.modifiersData['arrow#persistent']?state.modifiersData['arrow#persistent'].padding:getFreshSideObject();var arrowPaddingMin=arrowPaddingObject[mainSide];var arrowPaddingMax=arrowPaddingObject[altSide];var arrowLen=within(0,referenceRect[len],arrowRect[len]);var minOffset=isBasePlacement?referenceRect[len]/2-additive-arrowLen-arrowPaddingMin-tetherOffsetValue:minLen-arrowLen-arrowPaddingMin-tetherOffsetValue;var maxOffset=isBasePlacement?-referenceRect[len]/2+additive+arrowLen+arrowPaddingMax+tetherOffsetValue:maxLen+arrowLen+arrowPaddingMax+tetherOffsetValue;var arrowOffsetParent=state.elements.arrow&&getOffsetParent(state.elements.arrow);var clientOffset=arrowOffsetParent?mainAxis==='y'?arrowOffsetParent.clientTop||0:arrowOffsetParent.clientLeft||0:0;var offsetModifierValue=state.modifiersData.offset?state.modifiersData.offset[state.placement][mainAxis]:0;var tetherMin=popperOffsets[mainAxis]+minOffset-offsetModifierValue-clientOffset;var tetherMax=popperOffsets[mainAxis]+maxOffset-offsetModifierValue;if(checkMainAxis){var preventedOffset=within(tether?min(min$1,tetherMin):min$1,offset,tether?max(max$1,tetherMax):max$1);popperOffsets[mainAxis]=preventedOffset;data[mainAxis]=preventedOffset-offset;}
if(checkAltAxis){var _mainSide=mainAxis==='x'?top:left;var _altSide=mainAxis==='x'?bottom:right;var _offset=popperOffsets[altAxis];var _min=_offset+overflow[_mainSide];var _max=_offset-overflow[_altSide];var _preventedOffset=within(tether?min(_min,tetherMin):_min,_offset,tether?max(_max,tetherMax):_max);popperOffsets[altAxis]=_preventedOffset;data[altAxis]=_preventedOffset-_offset;}}
state.modifiersData[name]=data;}
var preventOverflow$1={name:'preventOverflow',enabled:true,phase:'main',fn:preventOverflow,requiresIfExists:['offset']};function getHTMLElementScroll(element){return{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop};}
function getNodeScroll(node){if(node===getWindow(node)||!isHTMLElement(node)){return getWindowScroll(node);}else{return getHTMLElementScroll(node);}}
function getCompositeRect(elementOrVirtualElement,offsetParent,isFixed){if(isFixed===void 0){isFixed=false;}
var documentElement=getDocumentElement(offsetParent);var rect=getBoundingClientRect(elementOrVirtualElement);var isOffsetParentAnElement=isHTMLElement(offsetParent);var scroll={scrollLeft:0,scrollTop:0};var offsets={x:0,y:0};if(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed){if(getNodeName(offsetParent)!=='body'||isScrollParent(documentElement)){scroll=getNodeScroll(offsetParent);}
if(isHTMLElement(offsetParent)){offsets=getBoundingClientRect(offsetParent);offsets.x+=offsetParent.clientLeft;offsets.y+=offsetParent.clientTop;}else if(documentElement){offsets.x=getWindowScrollBarX(documentElement);}}
return{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height};}
function order(modifiers){var map=new Map();var visited=new Set();var result=[];modifiers.forEach(function(modifier){map.set(modifier.name,modifier);});function sort(modifier){visited.add(modifier.name);var requires=[].concat(modifier.requires||[],modifier.requiresIfExists||[]);requires.forEach(function(dep){if(!visited.has(dep)){var depModifier=map.get(dep);if(depModifier){sort(depModifier);}}});result.push(modifier);}
modifiers.forEach(function(modifier){if(!visited.has(modifier.name)){sort(modifier);}});return result;}
function orderModifiers(modifiers){var orderedModifiers=order(modifiers);return modifierPhases.reduce(function(acc,phase){return acc.concat(orderedModifiers.filter(function(modifier){return modifier.phase===phase;}));},[]);}
function debounce(fn){var pending;return function(){if(!pending){pending=new Promise(function(resolve){Promise.resolve().then(function(){pending=undefined;resolve(fn());});});}
return pending;};}
function mergeByName(modifiers){var merged=modifiers.reduce(function(merged,current){var existing=merged[current.name];merged[current.name]=existing?Object.assign({},existing,current,{options:Object.assign({},existing.options,current.options),data:Object.assign({},existing.data,current.data)}):current;return merged;},{});return Object.keys(merged).map(function(key){return merged[key];});}
var DEFAULT_OPTIONS={placement:'bottom',modifiers:[],strategy:'absolute'};function areValidElements(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}
return!args.some(function(element){return!(element&&typeof element.getBoundingClientRect==='function');});}
function popperGenerator(generatorOptions){if(generatorOptions===void 0){generatorOptions={};}
var _generatorOptions=generatorOptions,_generatorOptions$def=_generatorOptions.defaultModifiers,defaultModifiers=_generatorOptions$def===void 0?[]:_generatorOptions$def,_generatorOptions$def2=_generatorOptions.defaultOptions,defaultOptions=_generatorOptions$def2===void 0?DEFAULT_OPTIONS:_generatorOptions$def2;return function createPopper(reference,popper,options){if(options===void 0){options=defaultOptions;}
var state={placement:'bottom',orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,defaultOptions),modifiersData:{},elements:{reference:reference,popper:popper},attributes:{},styles:{}};var effectCleanupFns=[];var isDestroyed=false;var instance={state:state,setOptions:function setOptions(options){cleanupModifierEffects();state.options=Object.assign({},defaultOptions,state.options,options);state.scrollParents={reference:isElement(reference)?listScrollParents(reference):reference.contextElement?listScrollParents(reference.contextElement):[],popper:listScrollParents(popper)};var orderedModifiers=orderModifiers(mergeByName([].concat(defaultModifiers,state.options.modifiers)));state.orderedModifiers=orderedModifiers.filter(function(m){return m.enabled;});runModifierEffects();return instance.update();},forceUpdate:function forceUpdate(){if(isDestroyed){return;}
var _state$elements=state.elements,reference=_state$elements.reference,popper=_state$elements.popper;if(!areValidElements(reference,popper)){return;}
state.rects={reference:getCompositeRect(reference,getOffsetParent(popper),state.options.strategy==='fixed'),popper:getLayoutRect(popper)};state.reset=false;state.placement=state.options.placement;state.orderedModifiers.forEach(function(modifier){return state.modifiersData[modifier.name]=Object.assign({},modifier.data);});for(var index=0;index<state.orderedModifiers.length;index++){if(state.reset===true){state.reset=false;index=-1;continue;}
var _state$orderedModifie=state.orderedModifiers[index],fn=_state$orderedModifie.fn,_state$orderedModifie2=_state$orderedModifie.options,_options=_state$orderedModifie2===void 0?{}:_state$orderedModifie2,name=_state$orderedModifie.name;if(typeof fn==='function'){state=fn({state:state,options:_options,name:name,instance:instance})||state;}}},update:debounce(function(){return new Promise(function(resolve){instance.forceUpdate();resolve(state);});}),destroy:function destroy(){cleanupModifierEffects();isDestroyed=true;}};if(!areValidElements(reference,popper)){return instance;}
instance.setOptions(options).then(function(state){if(!isDestroyed&&options.onFirstUpdate){options.onFirstUpdate(state);}});function runModifierEffects(){state.orderedModifiers.forEach(function(_ref3){var name=_ref3.name,_ref3$options=_ref3.options,options=_ref3$options===void 0?{}:_ref3$options,effect=_ref3.effect;if(typeof effect==='function'){var cleanupFn=effect({state:state,name:name,instance:instance,options:options});var noopFn=function noopFn(){};effectCleanupFns.push(cleanupFn||noopFn);}});}
function cleanupModifierEffects(){effectCleanupFns.forEach(function(fn){return fn();});effectCleanupFns=[];}
return instance;};}
var createPopper$2=popperGenerator();var defaultModifiers$1=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1];var createPopper$1=popperGenerator({defaultModifiers:defaultModifiers$1});var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$2];var createPopper=popperGenerator({defaultModifiers:defaultModifiers});var Popper=Object.freeze({__proto__:null,popperGenerator:popperGenerator,detectOverflow:detectOverflow,createPopperBase:createPopper$2,createPopper:createPopper,createPopperLite:createPopper$1,top:top,bottom:bottom,right:right,left:left,auto:auto,basePlacements:basePlacements,start:start,end:end,clippingParents:clippingParents,viewport:viewport,popper:popper,reference:reference,variationPlacements:variationPlacements,placements:placements,beforeRead:beforeRead,read:read,afterRead:afterRead,beforeMain:beforeMain,main:main,afterMain:afterMain,beforeWrite:beforeWrite,write:write,afterWrite:afterWrite,modifierPhases:modifierPhases,applyStyles:applyStyles$1,arrow:arrow$1,computeStyles:computeStyles$1,eventListeners:eventListeners,flip:flip$1,hide:hide$2,offset:offset$1,popperOffsets:popperOffsets$1,preventOverflow:preventOverflow$1});const NAME$8='dropdown';const DATA_KEY$7='bs.dropdown';const EVENT_KEY$7=`.${DATA_KEY$7}`;const DATA_API_KEY$4='.data-api';const ESCAPE_KEY$2='Escape';const SPACE_KEY='Space';const TAB_KEY='Tab';const ARROW_UP_KEY='ArrowUp';const ARROW_DOWN_KEY='ArrowDown';const RIGHT_MOUSE_BUTTON=2;const REGEXP_KEYDOWN=new RegExp(`${ARROW_UP_KEY}|${ARROW_DOWN_KEY}|${ESCAPE_KEY$2}`);const EVENT_HIDE$4=`hide${EVENT_KEY$7}`;const EVENT_HIDDEN$4=`hidden${EVENT_KEY$7}`;const EVENT_SHOW$4=`show${EVENT_KEY$7}`;const EVENT_SHOWN$4=`shown${EVENT_KEY$7}`;const EVENT_CLICK=`click${EVENT_KEY$7}`;const EVENT_CLICK_DATA_API$3=`click${EVENT_KEY$7}${DATA_API_KEY$4}`;const EVENT_KEYDOWN_DATA_API=`keydown${EVENT_KEY$7}${DATA_API_KEY$4}`;const EVENT_KEYUP_DATA_API=`keyup${EVENT_KEY$7}${DATA_API_KEY$4}`;const CLASS_NAME_SHOW$7='show';const CLASS_NAME_DROPUP='dropup';const CLASS_NAME_DROPEND='dropend';const CLASS_NAME_DROPSTART='dropstart';const CLASS_NAME_NAVBAR='navbar';const SELECTOR_DATA_TOGGLE$3='[data-bs-toggle="dropdown"]';const SELECTOR_MENU='.dropdown-menu';const SELECTOR_NAVBAR_NAV='.navbar-nav';const SELECTOR_VISIBLE_ITEMS='.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)';const PLACEMENT_TOP=isRTL()?'top-end':'top-start';const PLACEMENT_TOPEND=isRTL()?'top-start':'top-end';const PLACEMENT_BOTTOM=isRTL()?'bottom-end':'bottom-start';const PLACEMENT_BOTTOMEND=isRTL()?'bottom-start':'bottom-end';const PLACEMENT_RIGHT=isRTL()?'left-start':'right-start';const PLACEMENT_LEFT=isRTL()?'right-start':'left-start';const Default$7={offset:[0,2],boundary:'clippingParents',reference:'toggle',display:'dynamic',popperConfig:null,autoClose:true};const DefaultType$7={offset:'(array|string|function)',boundary:'(string|element)',reference:'(string|element|object)',display:'string',popperConfig:'(null|object|function)',autoClose:'(boolean|string)'};class Dropdown extends BaseComponent{constructor(element,config){super(element);this._popper=null;this._config=this._getConfig(config);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners();}
static get Default(){return Default$7;}
static get DefaultType(){return DefaultType$7;}
static get NAME(){return NAME$8;}
toggle(){if(isDisabled(this._element)){return;}
const isActive=this._element.classList.contains(CLASS_NAME_SHOW$7);if(isActive){this.hide();return;}
this.show();}
show(){if(isDisabled(this._element)||this._menu.classList.contains(CLASS_NAME_SHOW$7)){return;}
const parent=Dropdown.getParentFromElement(this._element);const relatedTarget={relatedTarget:this._element};const showEvent=EventHandler.trigger(this._element,EVENT_SHOW$4,relatedTarget);if(showEvent.defaultPrevented){return;}
if(this._inNavbar){Manipulator.setDataAttribute(this._menu,'popper','none');}else{if(typeof Popper==='undefined'){throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');}
let referenceElement=this._element;if(this._config.reference==='parent'){referenceElement=parent;}else if(isElement$1(this._config.reference)){referenceElement=getElement(this._config.reference);}else if(typeof this._config.reference==='object'){referenceElement=this._config.reference;}
const popperConfig=this._getPopperConfig();const isDisplayStatic=popperConfig.modifiers.find(modifier=>modifier.name==='applyStyles'&&modifier.enabled===false);this._popper=createPopper(referenceElement,this._menu,popperConfig);if(isDisplayStatic){Manipulator.setDataAttribute(this._menu,'popper','static');}}
if('ontouchstart'in document.documentElement&&!parent.closest(SELECTOR_NAVBAR_NAV)){[].concat(...document.body.children).forEach(elem=>EventHandler.on(elem,'mouseover',noop));}
this._element.focus();this._element.setAttribute('aria-expanded',true);this._menu.classList.toggle(CLASS_NAME_SHOW$7);this._element.classList.toggle(CLASS_NAME_SHOW$7);EventHandler.trigger(this._element,EVENT_SHOWN$4,relatedTarget);}
hide(){if(isDisabled(this._element)||!this._menu.classList.contains(CLASS_NAME_SHOW$7)){return;}
const relatedTarget={relatedTarget:this._element};this._completeHide(relatedTarget);}
dispose(){if(this._popper){this._popper.destroy();}
super.dispose();}
update(){this._inNavbar=this._detectNavbar();if(this._popper){this._popper.update();}}
_addEventListeners(){EventHandler.on(this._element,EVENT_CLICK,event=>{event.preventDefault();this.toggle();});}
_completeHide(relatedTarget){const hideEvent=EventHandler.trigger(this._element,EVENT_HIDE$4,relatedTarget);if(hideEvent.defaultPrevented){return;}
if('ontouchstart'in document.documentElement){[].concat(...document.body.children).forEach(elem=>EventHandler.off(elem,'mouseover',noop));}
if(this._popper){this._popper.destroy();}
this._menu.classList.remove(CLASS_NAME_SHOW$7);this._element.classList.remove(CLASS_NAME_SHOW$7);this._element.setAttribute('aria-expanded','false');Manipulator.removeDataAttribute(this._menu,'popper');EventHandler.trigger(this._element,EVENT_HIDDEN$4,relatedTarget);}
_getConfig(config){config={...this.constructor.Default,...Manipulator.getDataAttributes(this._element),...config};typeCheckConfig(NAME$8,config,this.constructor.DefaultType);if(typeof config.reference==='object'&&!isElement$1(config.reference)&&typeof config.reference.getBoundingClientRect!=='function'){throw new TypeError(`${NAME$8.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);}
return config;}
_getMenuElement(){return SelectorEngine.next(this._element,SELECTOR_MENU)[0];}
_getPlacement(){const parentDropdown=this._element.parentNode;if(parentDropdown.classList.contains(CLASS_NAME_DROPEND)){return PLACEMENT_RIGHT;}
if(parentDropdown.classList.contains(CLASS_NAME_DROPSTART)){return PLACEMENT_LEFT;}
const isEnd=getComputedStyle(this._menu).getPropertyValue('--bs-position').trim()==='end';if(parentDropdown.classList.contains(CLASS_NAME_DROPUP)){return isEnd?PLACEMENT_TOPEND:PLACEMENT_TOP;}
return isEnd?PLACEMENT_BOTTOMEND:PLACEMENT_BOTTOM;}
_detectNavbar(){return this._element.closest(`.${CLASS_NAME_NAVBAR}`)!==null;}
_getOffset(){const{offset}=this._config;if(typeof offset==='string'){return offset.split(',').map(val=>Number.parseInt(val,10));}
if(typeof offset==='function'){return popperData=>offset(popperData,this._element);}
return offset;}
_getPopperConfig(){const defaultBsPopperConfig={placement:this._getPlacement(),modifiers:[{name:'preventOverflow',options:{boundary:this._config.boundary}},{name:'offset',options:{offset:this._getOffset()}}]};if(this._config.display==='static'){defaultBsPopperConfig.modifiers=[{name:'applyStyles',enabled:false}];}
return{...defaultBsPopperConfig,...(typeof this._config.popperConfig==='function'?this._config.popperConfig(defaultBsPopperConfig):this._config.popperConfig)};}
_selectMenuItem(event){const items=SelectorEngine.find(SELECTOR_VISIBLE_ITEMS,this._menu).filter(isVisible);if(!items.length){return;}
let index=items.indexOf(event.target);if(event.key===ARROW_UP_KEY&&index>0){index--;}
if(event.key===ARROW_DOWN_KEY&&index<items.length-1){index++;}
index=index===-1?0:index;items[index].focus();}
static dropdownInterface(element,config){let data=Data.get(element,DATA_KEY$7);const _config=typeof config==='object'?config:null;if(!data){data=new Dropdown(element,_config);}
if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError(`No method named "${config}"`);}
data[config]();}}
static jQueryInterface(config){return this.each(function(){Dropdown.dropdownInterface(this,config);});}
static clearMenus(event){if(event&&(event.button===RIGHT_MOUSE_BUTTON||event.type==='keyup'&&event.key!==TAB_KEY)){return;}
const toggles=SelectorEngine.find(SELECTOR_DATA_TOGGLE$3);for(let i=0,len=toggles.length;i<len;i++){const context=Data.get(toggles[i],DATA_KEY$7);if(!context||context._config.autoClose===false){continue;}
if(!context._element.classList.contains(CLASS_NAME_SHOW$7)){continue;}
const relatedTarget={relatedTarget:context._element};if(event){const composedPath=event.composedPath();const isMenuTarget=composedPath.includes(context._menu);if(composedPath.includes(context._element)||context._config.autoClose==='inside'&&!isMenuTarget||context._config.autoClose==='outside'&&isMenuTarget){continue;}
if(context._menu.contains(event.target)&&(event.type==='keyup'&&event.key===TAB_KEY||/input|select|option|textarea|form/i.test(event.target.tagName))){continue;}
if(event.type==='click'){relatedTarget.clickEvent=event;}}
context._completeHide(relatedTarget);}}
static getParentFromElement(element){return getElementFromSelector(element)||element.parentNode;}
static dataApiKeydownHandler(event){if(/input|textarea/i.test(event.target.tagName)?event.key===SPACE_KEY||event.key!==ESCAPE_KEY$2&&(event.key!==ARROW_DOWN_KEY&&event.key!==ARROW_UP_KEY||event.target.closest(SELECTOR_MENU)):!REGEXP_KEYDOWN.test(event.key)){return;}
const isActive=this.classList.contains(CLASS_NAME_SHOW$7);if(!isActive&&event.key===ESCAPE_KEY$2){return;}
event.preventDefault();event.stopPropagation();if(isDisabled(this)){return;}
const getToggleButton=()=>this.matches(SELECTOR_DATA_TOGGLE$3)?this:SelectorEngine.prev(this,SELECTOR_DATA_TOGGLE$3)[0];if(event.key===ESCAPE_KEY$2){getToggleButton().focus();Dropdown.clearMenus();return;}
if(!isActive&&(event.key===ARROW_UP_KEY||event.key===ARROW_DOWN_KEY)){getToggleButton().click();return;}
if(!isActive||event.key===SPACE_KEY){Dropdown.clearMenus();return;}
Dropdown.getInstance(getToggleButton())._selectMenuItem(event);}}
EventHandler.on(document,EVENT_KEYDOWN_DATA_API,SELECTOR_DATA_TOGGLE$3,Dropdown.dataApiKeydownHandler);EventHandler.on(document,EVENT_KEYDOWN_DATA_API,SELECTOR_MENU,Dropdown.dataApiKeydownHandler);EventHandler.on(document,EVENT_CLICK_DATA_API$3,Dropdown.clearMenus);EventHandler.on(document,EVENT_KEYUP_DATA_API,Dropdown.clearMenus);EventHandler.on(document,EVENT_CLICK_DATA_API$3,SELECTOR_DATA_TOGGLE$3,function(event){event.preventDefault();Dropdown.dropdownInterface(this);});defineJQueryPlugin(Dropdown);const SELECTOR_FIXED_CONTENT='.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';const SELECTOR_STICKY_CONTENT='.sticky-top';const getWidth=()=>{const documentWidth=document.documentElement.clientWidth;return Math.abs(window.innerWidth-documentWidth);};const hide=(width=getWidth())=>{_disableOverFlow();_setElementAttributes('body','paddingRight',calculatedValue=>calculatedValue+width);_setElementAttributes(SELECTOR_FIXED_CONTENT,'paddingRight',calculatedValue=>calculatedValue+width);_setElementAttributes(SELECTOR_STICKY_CONTENT,'marginRight',calculatedValue=>calculatedValue-width);};const _disableOverFlow=()=>{const actualValue=document.body.style.overflow;if(actualValue){Manipulator.setDataAttribute(document.body,'overflow',actualValue);}
document.body.style.overflow='hidden';};const _setElementAttributes=(selector,styleProp,callback)=>{const scrollbarWidth=getWidth();SelectorEngine.find(selector).forEach(element=>{if(element!==document.body&&window.innerWidth>element.clientWidth+scrollbarWidth){return;}
const actualValue=element.style[styleProp];const calculatedValue=window.getComputedStyle(element)[styleProp];Manipulator.setDataAttribute(element,styleProp,actualValue);element.style[styleProp]=`${callback(Number.parseFloat(calculatedValue))}px`;});};const reset=()=>{_resetElementAttributes('body','overflow');_resetElementAttributes('body','paddingRight');_resetElementAttributes(SELECTOR_FIXED_CONTENT,'paddingRight');_resetElementAttributes(SELECTOR_STICKY_CONTENT,'marginRight');};const _resetElementAttributes=(selector,styleProp)=>{SelectorEngine.find(selector).forEach(element=>{const value=Manipulator.getDataAttribute(element,styleProp);if(typeof value==='undefined'){element.style.removeProperty(styleProp);}else{Manipulator.removeDataAttribute(element,styleProp);element.style[styleProp]=value;}});};const Default$6={isVisible:true,isAnimated:false,rootElement:document.body,clickCallback:null};const DefaultType$6={isVisible:'boolean',isAnimated:'boolean',rootElement:'element',clickCallback:'(function|null)'};const NAME$7='backdrop';const CLASS_NAME_BACKDROP='modal-backdrop';const CLASS_NAME_FADE$5='fade';const CLASS_NAME_SHOW$6='show';const EVENT_MOUSEDOWN=`mousedown.bs.${NAME$7}`;class Backdrop{constructor(config){this._config=this._getConfig(config);this._isAppended=false;this._element=null;}
show(callback){if(!this._config.isVisible){execute(callback);return;}
this._append();if(this._config.isAnimated){reflow(this._getElement());}
this._getElement().classList.add(CLASS_NAME_SHOW$6);this._emulateAnimation(()=>{execute(callback);});}
hide(callback){if(!this._config.isVisible){execute(callback);return;}
this._getElement().classList.remove(CLASS_NAME_SHOW$6);this._emulateAnimation(()=>{this.dispose();execute(callback);});}
_getElement(){if(!this._element){const backdrop=document.createElement('div');backdrop.className=CLASS_NAME_BACKDROP;if(this._config.isAnimated){backdrop.classList.add(CLASS_NAME_FADE$5);}
this._element=backdrop;}
return this._element;}
_getConfig(config){config={...Default$6,...(typeof config==='object'?config:{})};config.rootElement=config.rootElement||document.body;typeCheckConfig(NAME$7,config,DefaultType$6);return config;}
_append(){if(this._isAppended){return;}
this._config.rootElement.appendChild(this._getElement());EventHandler.on(this._getElement(),EVENT_MOUSEDOWN,()=>{execute(this._config.clickCallback);});this._isAppended=true;}
dispose(){if(!this._isAppended){return;}
EventHandler.off(this._element,EVENT_MOUSEDOWN);this._getElement().parentNode.removeChild(this._element);this._isAppended=false;}
_emulateAnimation(callback){if(!this._config.isAnimated){execute(callback);return;}
const backdropTransitionDuration=getTransitionDurationFromElement(this._getElement());EventHandler.one(this._getElement(),'transitionend',()=>execute(callback));emulateTransitionEnd(this._getElement(),backdropTransitionDuration);}}
const NAME$6='modal';const DATA_KEY$6='bs.modal';const EVENT_KEY$6=`.${DATA_KEY$6}`;const DATA_API_KEY$3='.data-api';const ESCAPE_KEY$1='Escape';const Default$5={backdrop:true,keyboard:true,focus:true};const DefaultType$5={backdrop:'(boolean|string)',keyboard:'boolean',focus:'boolean'};const EVENT_HIDE$3=`hide${EVENT_KEY$6}`;const EVENT_HIDE_PREVENTED=`hidePrevented${EVENT_KEY$6}`;const EVENT_HIDDEN$3=`hidden${EVENT_KEY$6}`;const EVENT_SHOW$3=`show${EVENT_KEY$6}`;const EVENT_SHOWN$3=`shown${EVENT_KEY$6}`;const EVENT_FOCUSIN$2=`focusin${EVENT_KEY$6}`;const EVENT_RESIZE=`resize${EVENT_KEY$6}`;const EVENT_CLICK_DISMISS$2=`click.dismiss${EVENT_KEY$6}`;const EVENT_KEYDOWN_DISMISS$1=`keydown.dismiss${EVENT_KEY$6}`;const EVENT_MOUSEUP_DISMISS=`mouseup.dismiss${EVENT_KEY$6}`;const EVENT_MOUSEDOWN_DISMISS=`mousedown.dismiss${EVENT_KEY$6}`;const EVENT_CLICK_DATA_API$2=`click${EVENT_KEY$6}${DATA_API_KEY$3}`;const CLASS_NAME_OPEN='modal-open';const CLASS_NAME_FADE$4='fade';const CLASS_NAME_SHOW$5='show';const CLASS_NAME_STATIC='modal-static';const SELECTOR_DIALOG='.modal-dialog';const SELECTOR_MODAL_BODY='.modal-body';const SELECTOR_DATA_TOGGLE$2='[data-bs-toggle="modal"]';const SELECTOR_DATA_DISMISS$2='[data-bs-dismiss="modal"]';class Modal extends BaseComponent{constructor(element,config){super(element);this._config=this._getConfig(config);this._dialog=SelectorEngine.findOne(SELECTOR_DIALOG,this._element);this._backdrop=this._initializeBackDrop();this._isShown=false;this._ignoreBackdropClick=false;this._isTransitioning=false;}
static get Default(){return Default$5;}
static get NAME(){return NAME$6;}
toggle(relatedTarget){return this._isShown?this.hide():this.show(relatedTarget);}
show(relatedTarget){if(this._isShown||this._isTransitioning){return;}
if(this._isAnimated()){this._isTransitioning=true;}
const showEvent=EventHandler.trigger(this._element,EVENT_SHOW$3,{relatedTarget});if(this._isShown||showEvent.defaultPrevented){return;}
this._isShown=true;hide();document.body.classList.add(CLASS_NAME_OPEN);this._adjustDialog();this._setEscapeEvent();this._setResizeEvent();EventHandler.on(this._element,EVENT_CLICK_DISMISS$2,SELECTOR_DATA_DISMISS$2,event=>this.hide(event));EventHandler.on(this._dialog,EVENT_MOUSEDOWN_DISMISS,()=>{EventHandler.one(this._element,EVENT_MOUSEUP_DISMISS,event=>{if(event.target===this._element){this._ignoreBackdropClick=true;}});});this._showBackdrop(()=>this._showElement(relatedTarget));}
hide(event){if(event){event.preventDefault();}
if(!this._isShown||this._isTransitioning){return;}
const hideEvent=EventHandler.trigger(this._element,EVENT_HIDE$3);if(hideEvent.defaultPrevented){return;}
this._isShown=false;const isAnimated=this._isAnimated();if(isAnimated){this._isTransitioning=true;}
this._setEscapeEvent();this._setResizeEvent();EventHandler.off(document,EVENT_FOCUSIN$2);this._element.classList.remove(CLASS_NAME_SHOW$5);EventHandler.off(this._element,EVENT_CLICK_DISMISS$2);EventHandler.off(this._dialog,EVENT_MOUSEDOWN_DISMISS);this._queueCallback(()=>this._hideModal(),this._element,isAnimated);}
dispose(){[window,this._dialog].forEach(htmlElement=>EventHandler.off(htmlElement,EVENT_KEY$6));this._backdrop.dispose();super.dispose();EventHandler.off(document,EVENT_FOCUSIN$2);}
handleUpdate(){this._adjustDialog();}
_initializeBackDrop(){return new Backdrop({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()});}
_getConfig(config){config={...Default$5,...Manipulator.getDataAttributes(this._element),...config};typeCheckConfig(NAME$6,config,DefaultType$5);return config;}
_showElement(relatedTarget){const isAnimated=this._isAnimated();const modalBody=SelectorEngine.findOne(SELECTOR_MODAL_BODY,this._dialog);if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE){document.body.appendChild(this._element);}
this._element.style.display='block';this._element.removeAttribute('aria-hidden');this._element.setAttribute('aria-modal',true);this._element.setAttribute('role','dialog');this._element.scrollTop=0;if(modalBody){modalBody.scrollTop=0;}
if(isAnimated){reflow(this._element);}
this._element.classList.add(CLASS_NAME_SHOW$5);if(this._config.focus){this._enforceFocus();}
const transitionComplete=()=>{if(this._config.focus){this._element.focus();}
this._isTransitioning=false;EventHandler.trigger(this._element,EVENT_SHOWN$3,{relatedTarget});};this._queueCallback(transitionComplete,this._dialog,isAnimated);}
_enforceFocus(){EventHandler.off(document,EVENT_FOCUSIN$2);EventHandler.on(document,EVENT_FOCUSIN$2,event=>{if(document!==event.target&&this._element!==event.target&&!this._element.contains(event.target)){this._element.focus();}});}
_setEscapeEvent(){if(this._isShown){EventHandler.on(this._element,EVENT_KEYDOWN_DISMISS$1,event=>{if(this._config.keyboard&&event.key===ESCAPE_KEY$1){event.preventDefault();this.hide();}else if(!this._config.keyboard&&event.key===ESCAPE_KEY$1){this._triggerBackdropTransition();}});}else{EventHandler.off(this._element,EVENT_KEYDOWN_DISMISS$1);}}
_setResizeEvent(){if(this._isShown){EventHandler.on(window,EVENT_RESIZE,()=>this._adjustDialog());}else{EventHandler.off(window,EVENT_RESIZE);}}
_hideModal(){this._element.style.display='none';this._element.setAttribute('aria-hidden',true);this._element.removeAttribute('aria-modal');this._element.removeAttribute('role');this._isTransitioning=false;this._backdrop.hide(()=>{document.body.classList.remove(CLASS_NAME_OPEN);this._resetAdjustments();reset();EventHandler.trigger(this._element,EVENT_HIDDEN$3);});}
_showBackdrop(callback){EventHandler.on(this._element,EVENT_CLICK_DISMISS$2,event=>{if(this._ignoreBackdropClick){this._ignoreBackdropClick=false;return;}
if(event.target!==event.currentTarget){return;}
if(this._config.backdrop===true){this.hide();}else if(this._config.backdrop==='static'){this._triggerBackdropTransition();}});this._backdrop.show(callback);}
_isAnimated(){return this._element.classList.contains(CLASS_NAME_FADE$4);}
_triggerBackdropTransition(){const hideEvent=EventHandler.trigger(this._element,EVENT_HIDE_PREVENTED);if(hideEvent.defaultPrevented){return;}
const isModalOverflowing=this._element.scrollHeight>document.documentElement.clientHeight;if(!isModalOverflowing){this._element.style.overflowY='hidden';}
this._element.classList.add(CLASS_NAME_STATIC);const modalTransitionDuration=getTransitionDurationFromElement(this._dialog);EventHandler.off(this._element,'transitionend');EventHandler.one(this._element,'transitionend',()=>{this._element.classList.remove(CLASS_NAME_STATIC);if(!isModalOverflowing){EventHandler.one(this._element,'transitionend',()=>{this._element.style.overflowY='';});emulateTransitionEnd(this._element,modalTransitionDuration);}});emulateTransitionEnd(this._element,modalTransitionDuration);this._element.focus();}
_adjustDialog(){const isModalOverflowing=this._element.scrollHeight>document.documentElement.clientHeight;const scrollbarWidth=getWidth();const isBodyOverflowing=scrollbarWidth>0;if(!isBodyOverflowing&&isModalOverflowing&&!isRTL()||isBodyOverflowing&&!isModalOverflowing&&isRTL()){this._element.style.paddingLeft=`${scrollbarWidth}px`;}
if(isBodyOverflowing&&!isModalOverflowing&&!isRTL()||!isBodyOverflowing&&isModalOverflowing&&isRTL()){this._element.style.paddingRight=`${scrollbarWidth}px`;}}
_resetAdjustments(){this._element.style.paddingLeft='';this._element.style.paddingRight='';}
static jQueryInterface(config,relatedTarget){return this.each(function(){const data=Modal.getInstance(this)||new Modal(this,typeof config==='object'?config:{});if(typeof config!=='string'){return;}
if(typeof data[config]==='undefined'){throw new TypeError(`No method named "${config}"`);}
data[config](relatedTarget);});}}
EventHandler.on(document,EVENT_CLICK_DATA_API$2,SELECTOR_DATA_TOGGLE$2,function(event){const target=getElementFromSelector(this);if(['A','AREA'].includes(this.tagName)){event.preventDefault();}
EventHandler.one(target,EVENT_SHOW$3,showEvent=>{if(showEvent.defaultPrevented){return;}
EventHandler.one(target,EVENT_HIDDEN$3,()=>{if(isVisible(this)){this.focus();}});});const data=Modal.getInstance(target)||new Modal(target);data.toggle(this);});defineJQueryPlugin(Modal);const NAME$5='offcanvas';const DATA_KEY$5='bs.offcanvas';const EVENT_KEY$5=`.${DATA_KEY$5}`;const DATA_API_KEY$2='.data-api';const EVENT_LOAD_DATA_API$1=`load${EVENT_KEY$5}${DATA_API_KEY$2}`;const ESCAPE_KEY='Escape';const Default$4={backdrop:true,keyboard:true,scroll:false};const DefaultType$4={backdrop:'boolean',keyboard:'boolean',scroll:'boolean'};const CLASS_NAME_SHOW$4='show';const OPEN_SELECTOR='.offcanvas.show';const EVENT_SHOW$2=`show${EVENT_KEY$5}`;const EVENT_SHOWN$2=`shown${EVENT_KEY$5}`;const EVENT_HIDE$2=`hide${EVENT_KEY$5}`;const EVENT_HIDDEN$2=`hidden${EVENT_KEY$5}`;const EVENT_FOCUSIN$1=`focusin${EVENT_KEY$5}`;const EVENT_CLICK_DATA_API$1=`click${EVENT_KEY$5}${DATA_API_KEY$2}`;const EVENT_CLICK_DISMISS$1=`click.dismiss${EVENT_KEY$5}`;const EVENT_KEYDOWN_DISMISS=`keydown.dismiss${EVENT_KEY$5}`;const SELECTOR_DATA_DISMISS$1='[data-bs-dismiss="offcanvas"]';const SELECTOR_DATA_TOGGLE$1='[data-bs-toggle="offcanvas"]';class Offcanvas extends BaseComponent{constructor(element,config){super(element);this._config=this._getConfig(config);this._isShown=false;this._backdrop=this._initializeBackDrop();this._addEventListeners();}
static get NAME(){return NAME$5;}
static get Default(){return Default$4;}
toggle(relatedTarget){return this._isShown?this.hide():this.show(relatedTarget);}
show(relatedTarget){if(this._isShown){return;}
const showEvent=EventHandler.trigger(this._element,EVENT_SHOW$2,{relatedTarget});if(showEvent.defaultPrevented){return;}
this._isShown=true;this._element.style.visibility='visible';this._backdrop.show();if(!this._config.scroll){hide();this._enforceFocusOnElement(this._element);}
this._element.removeAttribute('aria-hidden');this._element.setAttribute('aria-modal',true);this._element.setAttribute('role','dialog');this._element.classList.add(CLASS_NAME_SHOW$4);const completeCallBack=()=>{EventHandler.trigger(this._element,EVENT_SHOWN$2,{relatedTarget});};this._queueCallback(completeCallBack,this._element,true);}
hide(){if(!this._isShown){return;}
const hideEvent=EventHandler.trigger(this._element,EVENT_HIDE$2);if(hideEvent.defaultPrevented){return;}
EventHandler.off(document,EVENT_FOCUSIN$1);this._element.blur();this._isShown=false;this._element.classList.remove(CLASS_NAME_SHOW$4);this._backdrop.hide();const completeCallback=()=>{this._element.setAttribute('aria-hidden',true);this._element.removeAttribute('aria-modal');this._element.removeAttribute('role');this._element.style.visibility='hidden';if(!this._config.scroll){reset();}
EventHandler.trigger(this._element,EVENT_HIDDEN$2);};this._queueCallback(completeCallback,this._element,true);}
dispose(){this._backdrop.dispose();super.dispose();EventHandler.off(document,EVENT_FOCUSIN$1);}
_getConfig(config){config={...Default$4,...Manipulator.getDataAttributes(this._element),...(typeof config==='object'?config:{})};typeCheckConfig(NAME$5,config,DefaultType$4);return config;}
_initializeBackDrop(){return new Backdrop({isVisible:this._config.backdrop,isAnimated:true,rootElement:this._element.parentNode,clickCallback:()=>this.hide()});}
_enforceFocusOnElement(element){EventHandler.off(document,EVENT_FOCUSIN$1);EventHandler.on(document,EVENT_FOCUSIN$1,event=>{if(document!==event.target&&element!==event.target&&!element.contains(event.target)){element.focus();}});element.focus();}
_addEventListeners(){EventHandler.on(this._element,EVENT_CLICK_DISMISS$1,SELECTOR_DATA_DISMISS$1,()=>this.hide());EventHandler.on(this._element,EVENT_KEYDOWN_DISMISS,event=>{if(this._config.keyboard&&event.key===ESCAPE_KEY){this.hide();}});}
static jQueryInterface(config){return this.each(function(){const data=Data.get(this,DATA_KEY$5)||new Offcanvas(this,typeof config==='object'?config:{});if(typeof config!=='string'){return;}
if(data[config]===undefined||config.startsWith('_')||config==='constructor'){throw new TypeError(`No method named "${config}"`);}
data[config](this);});}}
EventHandler.on(document,EVENT_CLICK_DATA_API$1,SELECTOR_DATA_TOGGLE$1,function(event){const target=getElementFromSelector(this);if(['A','AREA'].includes(this.tagName)){event.preventDefault();}
if(isDisabled(this)){return;}
EventHandler.one(target,EVENT_HIDDEN$2,()=>{if(isVisible(this)){this.focus();}});const allReadyOpen=SelectorEngine.findOne(OPEN_SELECTOR);if(allReadyOpen&&allReadyOpen!==target){Offcanvas.getInstance(allReadyOpen).hide();}
const data=Data.get(target,DATA_KEY$5)||new Offcanvas(target);data.toggle(this);});EventHandler.on(window,EVENT_LOAD_DATA_API$1,()=>{SelectorEngine.find(OPEN_SELECTOR).forEach(el=>(Data.get(el,DATA_KEY$5)||new Offcanvas(el)).show());});defineJQueryPlugin(Offcanvas);const uriAttrs=new Set(['background','cite','href','itemtype','longdesc','poster','src','xlink:href']);const ARIA_ATTRIBUTE_PATTERN=/^aria-[\w-]*$/i;const SAFE_URL_PATTERN=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i;const DATA_URL_PATTERN=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;const allowedAttribute=(attr,allowedAttributeList)=>{const attrName=attr.nodeName.toLowerCase();if(allowedAttributeList.includes(attrName)){if(uriAttrs.has(attrName)){return Boolean(SAFE_URL_PATTERN.test(attr.nodeValue)||DATA_URL_PATTERN.test(attr.nodeValue));}
return true;}
const regExp=allowedAttributeList.filter(attrRegex=>attrRegex instanceof RegExp);for(let i=0,len=regExp.length;i<len;i++){if(regExp[i].test(attrName)){return true;}}
return false;};const DefaultAllowlist={'*':['class','dir','id','lang','role',ARIA_ATTRIBUTE_PATTERN],a:['target','href','title','rel'],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:['src','srcset','alt','title','width','height'],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function sanitizeHtml(unsafeHtml,allowList,sanitizeFn){if(!unsafeHtml.length){return unsafeHtml;}
if(sanitizeFn&&typeof sanitizeFn==='function'){return sanitizeFn(unsafeHtml);}
const domParser=new window.DOMParser();const createdDocument=domParser.parseFromString(unsafeHtml,'text/html');const allowlistKeys=Object.keys(allowList);const elements=[].concat(...createdDocument.body.querySelectorAll('*'));for(let i=0,len=elements.length;i<len;i++){const el=elements[i];const elName=el.nodeName.toLowerCase();if(!allowlistKeys.includes(elName)){el.parentNode.removeChild(el);continue;}
const attributeList=[].concat(...el.attributes);const allowedAttributes=[].concat(allowList['*']||[],allowList[elName]||[]);attributeList.forEach(attr=>{if(!allowedAttribute(attr,allowedAttributes)){el.removeAttribute(attr.nodeName);}});}
return createdDocument.body.innerHTML;}
const NAME$4='tooltip';const DATA_KEY$4='bs.tooltip';const EVENT_KEY$4=`.${DATA_KEY$4}`;const CLASS_PREFIX$1='bs-tooltip';const BSCLS_PREFIX_REGEX$1=new RegExp(`(^|\\s)${CLASS_PREFIX$1}\\S+`,'g');const DISALLOWED_ATTRIBUTES=new Set(['sanitize','allowList','sanitizeFn']);const DefaultType$3={animation:'boolean',template:'string',title:'(string|element|function)',trigger:'string',delay:'(number|object)',html:'boolean',selector:'(string|boolean)',placement:'(string|function)',offset:'(array|string|function)',container:'(string|element|boolean)',fallbackPlacements:'array',boundary:'(string|element)',customClass:'(string|function)',sanitize:'boolean',sanitizeFn:'(null|function)',allowList:'object',popperConfig:'(null|object|function)'};const AttachmentMap={AUTO:'auto',TOP:'top',RIGHT:isRTL()?'left':'right',BOTTOM:'bottom',LEFT:isRTL()?'right':'left'};const Default$3={animation:true,template:'<div class="tooltip" role="tooltip">'+'<div class="tooltip-arrow"></div>'+'<div class="tooltip-inner"></div>'+'</div>',trigger:'hover focus',title:'',delay:0,html:false,selector:false,placement:'top',offset:[0,0],container:false,fallbackPlacements:['top','right','bottom','left'],boundary:'clippingParents',customClass:'',sanitize:true,sanitizeFn:null,allowList:DefaultAllowlist,popperConfig:null};const Event$2={HIDE:`hide${EVENT_KEY$4}`,HIDDEN:`hidden${EVENT_KEY$4}`,SHOW:`show${EVENT_KEY$4}`,SHOWN:`shown${EVENT_KEY$4}`,INSERTED:`inserted${EVENT_KEY$4}`,CLICK:`click${EVENT_KEY$4}`,FOCUSIN:`focusin${EVENT_KEY$4}`,FOCUSOUT:`focusout${EVENT_KEY$4}`,MOUSEENTER:`mouseenter${EVENT_KEY$4}`,MOUSELEAVE:`mouseleave${EVENT_KEY$4}`};const CLASS_NAME_FADE$3='fade';const CLASS_NAME_MODAL='modal';const CLASS_NAME_SHOW$3='show';const HOVER_STATE_SHOW='show';const HOVER_STATE_OUT='out';const SELECTOR_TOOLTIP_INNER='.tooltip-inner';const TRIGGER_HOVER='hover';const TRIGGER_FOCUS='focus';const TRIGGER_CLICK='click';const TRIGGER_MANUAL='manual';class Tooltip extends BaseComponent{constructor(element,config){if(typeof Popper==='undefined'){throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)');}
super(element);this._isEnabled=true;this._timeout=0;this._hoverState='';this._activeTrigger={};this._popper=null;this._config=this._getConfig(config);this.tip=null;this._setListeners();}
static get Default(){return Default$3;}
static get NAME(){return NAME$4;}
static get Event(){return Event$2;}
static get DefaultType(){return DefaultType$3;}
enable(){this._isEnabled=true;}
disable(){this._isEnabled=false;}
toggleEnabled(){this._isEnabled=!this._isEnabled;}
toggle(event){if(!this._isEnabled){return;}
if(event){const context=this._initializeOnDelegatedTarget(event);context._activeTrigger.click=!context._activeTrigger.click;if(context._isWithActiveTrigger()){context._enter(null,context);}else{context._leave(null,context);}}else{if(this.getTipElement().classList.contains(CLASS_NAME_SHOW$3)){this._leave(null,this);return;}
this._enter(null,this);}}
dispose(){clearTimeout(this._timeout);EventHandler.off(this._element.closest(`.${CLASS_NAME_MODAL}`),'hide.bs.modal',this._hideModalHandler);if(this.tip&&this.tip.parentNode){this.tip.parentNode.removeChild(this.tip);}
if(this._popper){this._popper.destroy();}
super.dispose();}
show(){if(this._element.style.display==='none'){throw new Error('Please use show on visible elements');}
if(!(this.isWithContent()&&this._isEnabled)){return;}
const showEvent=EventHandler.trigger(this._element,this.constructor.Event.SHOW);const shadowRoot=findShadowRoot(this._element);const isInTheDom=shadowRoot===null?this._element.ownerDocument.documentElement.contains(this._element):shadowRoot.contains(this._element);if(showEvent.defaultPrevented||!isInTheDom){return;}
const tip=this.getTipElement();const tipId=getUID(this.constructor.NAME);tip.setAttribute('id',tipId);this._element.setAttribute('aria-describedby',tipId);this.setContent();if(this._config.animation){tip.classList.add(CLASS_NAME_FADE$3);}
const placement=typeof this._config.placement==='function'?this._config.placement.call(this,tip,this._element):this._config.placement;const attachment=this._getAttachment(placement);this._addAttachmentClass(attachment);const{container}=this._config;Data.set(tip,this.constructor.DATA_KEY,this);if(!this._element.ownerDocument.documentElement.contains(this.tip)){container.appendChild(tip);EventHandler.trigger(this._element,this.constructor.Event.INSERTED);}
if(this._popper){this._popper.update();}else{this._popper=createPopper(this._element,tip,this._getPopperConfig(attachment));}
tip.classList.add(CLASS_NAME_SHOW$3);const customClass=typeof this._config.customClass==='function'?this._config.customClass():this._config.customClass;if(customClass){tip.classList.add(...customClass.split(' '));}
if('ontouchstart'in document.documentElement){[].concat(...document.body.children).forEach(element=>{EventHandler.on(element,'mouseover',noop);});}
const complete=()=>{const prevHoverState=this._hoverState;this._hoverState=null;EventHandler.trigger(this._element,this.constructor.Event.SHOWN);if(prevHoverState===HOVER_STATE_OUT){this._leave(null,this);}};const isAnimated=this.tip.classList.contains(CLASS_NAME_FADE$3);this._queueCallback(complete,this.tip,isAnimated);}
hide(){if(!this._popper){return;}
const tip=this.getTipElement();const complete=()=>{if(this._isWithActiveTrigger()){return;}
if(this._hoverState!==HOVER_STATE_SHOW&&tip.parentNode){tip.parentNode.removeChild(tip);}
this._cleanTipClass();this._element.removeAttribute('aria-describedby');EventHandler.trigger(this._element,this.constructor.Event.HIDDEN);if(this._popper){this._popper.destroy();this._popper=null;}};const hideEvent=EventHandler.trigger(this._element,this.constructor.Event.HIDE);if(hideEvent.defaultPrevented){return;}
tip.classList.remove(CLASS_NAME_SHOW$3);if('ontouchstart'in document.documentElement){[].concat(...document.body.children).forEach(element=>EventHandler.off(element,'mouseover',noop));}
this._activeTrigger[TRIGGER_CLICK]=false;this._activeTrigger[TRIGGER_FOCUS]=false;this._activeTrigger[TRIGGER_HOVER]=false;const isAnimated=this.tip.classList.contains(CLASS_NAME_FADE$3);this._queueCallback(complete,this.tip,isAnimated);this._hoverState='';}
update(){if(this._popper!==null){this._popper.update();}}
isWithContent(){return Boolean(this.getTitle());}
getTipElement(){if(this.tip){return this.tip;}
const element=document.createElement('div');element.innerHTML=this._config.template;this.tip=element.children[0];return this.tip;}
setContent(){const tip=this.getTipElement();this.setElementContent(SelectorEngine.findOne(SELECTOR_TOOLTIP_INNER,tip),this.getTitle());tip.classList.remove(CLASS_NAME_FADE$3,CLASS_NAME_SHOW$3);}
setElementContent(element,content){if(element===null){return;}
if(isElement$1(content)){content=getElement(content);if(this._config.html){if(content.parentNode!==element){element.innerHTML='';element.appendChild(content);}}else{element.textContent=content.textContent;}
return;}
if(this._config.html){if(this._config.sanitize){content=sanitizeHtml(content,this._config.allowList,this._config.sanitizeFn);}
element.innerHTML=content;}else{element.textContent=content;}}
getTitle(){let title=this._element.getAttribute('data-bs-original-title');if(!title){title=typeof this._config.title==='function'?this._config.title.call(this._element):this._config.title;}
return title;}
updateAttachment(attachment){if(attachment==='right'){return'end';}
if(attachment==='left'){return'start';}
return attachment;}
_initializeOnDelegatedTarget(event,context){const dataKey=this.constructor.DATA_KEY;context=context||Data.get(event.delegateTarget,dataKey);if(!context){context=new this.constructor(event.delegateTarget,this._getDelegateConfig());Data.set(event.delegateTarget,dataKey,context);}
return context;}
_getOffset(){const{offset}=this._config;if(typeof offset==='string'){return offset.split(',').map(val=>Number.parseInt(val,10));}
if(typeof offset==='function'){return popperData=>offset(popperData,this._element);}
return offset;}
_getPopperConfig(attachment){const defaultBsPopperConfig={placement:attachment,modifiers:[{name:'flip',options:{fallbackPlacements:this._config.fallbackPlacements}},{name:'offset',options:{offset:this._getOffset()}},{name:'preventOverflow',options:{boundary:this._config.boundary}},{name:'arrow',options:{element:`.${this.constructor.NAME}-arrow`}},{name:'onChange',enabled:true,phase:'afterWrite',fn:data=>this._handlePopperPlacementChange(data)}],onFirstUpdate:data=>{if(data.options.placement!==data.placement){this._handlePopperPlacementChange(data);}}};return{...defaultBsPopperConfig,...(typeof this._config.popperConfig==='function'?this._config.popperConfig(defaultBsPopperConfig):this._config.popperConfig)};}
_addAttachmentClass(attachment){this.getTipElement().classList.add(`${CLASS_PREFIX$1}-${this.updateAttachment(attachment)}`);}
_getAttachment(placement){return AttachmentMap[placement.toUpperCase()];}
_setListeners(){const triggers=this._config.trigger.split(' ');triggers.forEach(trigger=>{if(trigger==='click'){EventHandler.on(this._element,this.constructor.Event.CLICK,this._config.selector,event=>this.toggle(event));}else if(trigger!==TRIGGER_MANUAL){const eventIn=trigger===TRIGGER_HOVER?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN;const eventOut=trigger===TRIGGER_HOVER?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;EventHandler.on(this._element,eventIn,this._config.selector,event=>this._enter(event));EventHandler.on(this._element,eventOut,this._config.selector,event=>this._leave(event));}});this._hideModalHandler=()=>{if(this._element){this.hide();}};EventHandler.on(this._element.closest(`.${CLASS_NAME_MODAL}`),'hide.bs.modal',this._hideModalHandler);if(this._config.selector){this._config={...this._config,trigger:'manual',selector:''};}else{this._fixTitle();}}
_fixTitle(){const title=this._element.getAttribute('title');const originalTitleType=typeof this._element.getAttribute('data-bs-original-title');if(title||originalTitleType!=='string'){this._element.setAttribute('data-bs-original-title',title||'');if(title&&!this._element.getAttribute('aria-label')&&!this._element.textContent){this._element.setAttribute('aria-label',title);}
this._element.setAttribute('title','');}}
_enter(event,context){context=this._initializeOnDelegatedTarget(event,context);if(event){context._activeTrigger[event.type==='focusin'?TRIGGER_FOCUS:TRIGGER_HOVER]=true;}
if(context.getTipElement().classList.contains(CLASS_NAME_SHOW$3)||context._hoverState===HOVER_STATE_SHOW){context._hoverState=HOVER_STATE_SHOW;return;}
clearTimeout(context._timeout);context._hoverState=HOVER_STATE_SHOW;if(!context._config.delay||!context._config.delay.show){context.show();return;}
context._timeout=setTimeout(()=>{if(context._hoverState===HOVER_STATE_SHOW){context.show();}},context._config.delay.show);}
_leave(event,context){context=this._initializeOnDelegatedTarget(event,context);if(event){context._activeTrigger[event.type==='focusout'?TRIGGER_FOCUS:TRIGGER_HOVER]=context._element.contains(event.relatedTarget);}
if(context._isWithActiveTrigger()){return;}
clearTimeout(context._timeout);context._hoverState=HOVER_STATE_OUT;if(!context._config.delay||!context._config.delay.hide){context.hide();return;}
context._timeout=setTimeout(()=>{if(context._hoverState===HOVER_STATE_OUT){context.hide();}},context._config.delay.hide);}
_isWithActiveTrigger(){for(const trigger in this._activeTrigger){if(this._activeTrigger[trigger]){return true;}}
return false;}
_getConfig(config){const dataAttributes=Manipulator.getDataAttributes(this._element);Object.keys(dataAttributes).forEach(dataAttr=>{if(DISALLOWED_ATTRIBUTES.has(dataAttr)){delete dataAttributes[dataAttr];}});config={...this.constructor.Default,...dataAttributes,...(typeof config==='object'&&config?config:{})};config.container=config.container===false?document.body:getElement(config.container);if(typeof config.delay==='number'){config.delay={show:config.delay,hide:config.delay};}
if(typeof config.title==='number'){config.title=config.title.toString();}
if(typeof config.content==='number'){config.content=config.content.toString();}
typeCheckConfig(NAME$4,config,this.constructor.DefaultType);if(config.sanitize){config.template=sanitizeHtml(config.template,config.allowList,config.sanitizeFn);}
return config;}
_getDelegateConfig(){const config={};if(this._config){for(const key in this._config){if(this.constructor.Default[key]!==this._config[key]){config[key]=this._config[key];}}}
return config;}
_cleanTipClass(){const tip=this.getTipElement();const tabClass=tip.getAttribute('class').match(BSCLS_PREFIX_REGEX$1);if(tabClass!==null&&tabClass.length>0){tabClass.map(token=>token.trim()).forEach(tClass=>tip.classList.remove(tClass));}}
_handlePopperPlacementChange(popperData){const{state}=popperData;if(!state){return;}
this.tip=state.elements.popper;this._cleanTipClass();this._addAttachmentClass(this._getAttachment(state.placement));}
static jQueryInterface(config){return this.each(function(){let data=Data.get(this,DATA_KEY$4);const _config=typeof config==='object'&&config;if(!data&&/dispose|hide/.test(config)){return;}
if(!data){data=new Tooltip(this,_config);}
if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError(`No method named "${config}"`);}
data[config]();}});}}
defineJQueryPlugin(Tooltip);const NAME$3='popover';const DATA_KEY$3='bs.popover';const EVENT_KEY$3=`.${DATA_KEY$3}`;const CLASS_PREFIX='bs-popover';const BSCLS_PREFIX_REGEX=new RegExp(`(^|\\s)${CLASS_PREFIX}\\S+`,'g');const Default$2={...Tooltip.Default,placement:'right',offset:[0,8],trigger:'click',content:'',template:'<div class="popover" role="tooltip">'+'<div class="popover-arrow"></div>'+'<h3 class="popover-header"></h3>'+'<div class="popover-body"></div>'+'</div>'};const DefaultType$2={...Tooltip.DefaultType,content:'(string|element|function)'};const Event$1={HIDE:`hide${EVENT_KEY$3}`,HIDDEN:`hidden${EVENT_KEY$3}`,SHOW:`show${EVENT_KEY$3}`,SHOWN:`shown${EVENT_KEY$3}`,INSERTED:`inserted${EVENT_KEY$3}`,CLICK:`click${EVENT_KEY$3}`,FOCUSIN:`focusin${EVENT_KEY$3}`,FOCUSOUT:`focusout${EVENT_KEY$3}`,MOUSEENTER:`mouseenter${EVENT_KEY$3}`,MOUSELEAVE:`mouseleave${EVENT_KEY$3}`};const CLASS_NAME_FADE$2='fade';const CLASS_NAME_SHOW$2='show';const SELECTOR_TITLE='.popover-header';const SELECTOR_CONTENT='.popover-body';class Popover extends Tooltip{static get Default(){return Default$2;}
static get NAME(){return NAME$3;}
static get Event(){return Event$1;}
static get DefaultType(){return DefaultType$2;}
isWithContent(){return this.getTitle()||this._getContent();}
setContent(){const tip=this.getTipElement();this.setElementContent(SelectorEngine.findOne(SELECTOR_TITLE,tip),this.getTitle());let content=this._getContent();if(typeof content==='function'){content=content.call(this._element);}
this.setElementContent(SelectorEngine.findOne(SELECTOR_CONTENT,tip),content);tip.classList.remove(CLASS_NAME_FADE$2,CLASS_NAME_SHOW$2);}
_addAttachmentClass(attachment){this.getTipElement().classList.add(`${CLASS_PREFIX}-${this.updateAttachment(attachment)}`);}
_getContent(){return this._element.getAttribute('data-bs-content')||this._config.content;}
_cleanTipClass(){const tip=this.getTipElement();const tabClass=tip.getAttribute('class').match(BSCLS_PREFIX_REGEX);if(tabClass!==null&&tabClass.length>0){tabClass.map(token=>token.trim()).forEach(tClass=>tip.classList.remove(tClass));}}
static jQueryInterface(config){return this.each(function(){let data=Data.get(this,DATA_KEY$3);const _config=typeof config==='object'?config:null;if(!data&&/dispose|hide/.test(config)){return;}
if(!data){data=new Popover(this,_config);Data.set(this,DATA_KEY$3,data);}
if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError(`No method named "${config}"`);}
data[config]();}});}}
defineJQueryPlugin(Popover);const NAME$2='scrollspy';const DATA_KEY$2='bs.scrollspy';const EVENT_KEY$2=`.${DATA_KEY$2}`;const DATA_API_KEY$1='.data-api';const Default$1={offset:10,method:'auto',target:''};const DefaultType$1={offset:'number',method:'string',target:'(string|element)'};const EVENT_ACTIVATE=`activate${EVENT_KEY$2}`;const EVENT_SCROLL=`scroll${EVENT_KEY$2}`;const EVENT_LOAD_DATA_API=`load${EVENT_KEY$2}${DATA_API_KEY$1}`;const CLASS_NAME_DROPDOWN_ITEM='dropdown-item';const CLASS_NAME_ACTIVE$1='active';const SELECTOR_DATA_SPY='[data-bs-spy="scroll"]';const SELECTOR_NAV_LIST_GROUP$1='.nav, .list-group';const SELECTOR_NAV_LINKS='.nav-link';const SELECTOR_NAV_ITEMS='.nav-item';const SELECTOR_LIST_ITEMS='.list-group-item';const SELECTOR_DROPDOWN$1='.dropdown';const SELECTOR_DROPDOWN_TOGGLE$1='.dropdown-toggle';const METHOD_OFFSET='offset';const METHOD_POSITION='position';class ScrollSpy extends BaseComponent{constructor(element,config){super(element);this._scrollElement=this._element.tagName==='BODY'?window:this._element;this._config=this._getConfig(config);this._selector=`${this._config.target} ${SELECTOR_NAV_LINKS}, ${this._config.target} ${SELECTOR_LIST_ITEMS}, ${this._config.target} .${CLASS_NAME_DROPDOWN_ITEM}`;this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;EventHandler.on(this._scrollElement,EVENT_SCROLL,()=>this._process());this.refresh();this._process();}
static get Default(){return Default$1;}
static get NAME(){return NAME$2;}
refresh(){const autoMethod=this._scrollElement===this._scrollElement.window?METHOD_OFFSET:METHOD_POSITION;const offsetMethod=this._config.method==='auto'?autoMethod:this._config.method;const offsetBase=offsetMethod===METHOD_POSITION?this._getScrollTop():0;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();const targets=SelectorEngine.find(this._selector);targets.map(element=>{const targetSelector=getSelectorFromElement(element);const target=targetSelector?SelectorEngine.findOne(targetSelector):null;if(target){const targetBCR=target.getBoundingClientRect();if(targetBCR.width||targetBCR.height){if(this._scrollElement===this._scrollElement.window&&'offset'==offsetMethod){return[targetBCR.top+this._scrollElement.window.pageYOffset+offsetBase,targetSelector];}
return[Manipulator[offsetMethod](target).top+offsetBase,targetSelector];}}
return null;}).filter(item=>item).sort((a,b)=>a[0]-b[0]).forEach(item=>{this._offsets.push(item[0]);this._targets.push(item[1]);});}
dispose(){EventHandler.off(this._scrollElement,EVENT_KEY$2);super.dispose();}
_getConfig(config){config={...Default$1,...Manipulator.getDataAttributes(this._element),...(typeof config==='object'&&config?config:{})};if(typeof config.target!=='string'&&isElement$1(config.target)){let{id}=config.target;if(!id){id=getUID(NAME$2);config.target.id=id;}
config.target=`#${id}`;}
typeCheckConfig(NAME$2,config,DefaultType$1);return config;}
_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop;}
_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight);}
_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height;}
_process(){const scrollTop=this._getScrollTop()+this._config.offset;const scrollHeight=this._getScrollHeight();const maxScroll=this._config.offset+scrollHeight-this._getOffsetHeight();if(this._scrollHeight!==scrollHeight){this.refresh();}
if(scrollTop>=maxScroll){const target=this._targets[this._targets.length-1];if(this._activeTarget!==target){this._activate(target);}
return;}
if(this._activeTarget&&scrollTop<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null;this._clear();return;}
for(let i=this._offsets.length;i--;){const isActiveTarget=this._activeTarget!==this._targets[i]&&scrollTop>=this._offsets[i]&&(typeof this._offsets[i+1]==='undefined'||scrollTop<this._offsets[i+1]);if(isActiveTarget){this._activate(this._targets[i]);}}}
_activate(target){this._activeTarget=target;this._clear();const queries=this._selector.split(',').map(selector=>`${selector}[data-bs-target="${target}"],${selector}[href="${target}"]`);const link=SelectorEngine.findOne(queries.join(','));if(link.classList.contains(CLASS_NAME_DROPDOWN_ITEM)){SelectorEngine.findOne(SELECTOR_DROPDOWN_TOGGLE$1,link.closest(SELECTOR_DROPDOWN$1)).classList.add(CLASS_NAME_ACTIVE$1);link.classList.add(CLASS_NAME_ACTIVE$1);}else{link.classList.add(CLASS_NAME_ACTIVE$1);SelectorEngine.parents(link,SELECTOR_NAV_LIST_GROUP$1).forEach(listGroup=>{SelectorEngine.prev(listGroup,`${SELECTOR_NAV_LINKS}, ${SELECTOR_LIST_ITEMS}`).forEach(item=>item.classList.add(CLASS_NAME_ACTIVE$1));SelectorEngine.prev(listGroup,SELECTOR_NAV_ITEMS).forEach(navItem=>{SelectorEngine.children(navItem,SELECTOR_NAV_LINKS).forEach(item=>item.classList.add(CLASS_NAME_ACTIVE$1));});});}
EventHandler.trigger(this._scrollElement,EVENT_ACTIVATE,{relatedTarget:target});}
_clear(){SelectorEngine.find(this._selector).filter(node=>node.classList.contains(CLASS_NAME_ACTIVE$1)).forEach(node=>node.classList.remove(CLASS_NAME_ACTIVE$1));}
static jQueryInterface(config){return this.each(function(){const data=ScrollSpy.getInstance(this)||new ScrollSpy(this,typeof config==='object'?config:{});if(typeof config!=='string'){return;}
if(typeof data[config]==='undefined'){throw new TypeError(`No method named "${config}"`);}
data[config]();});}}
EventHandler.on(window,EVENT_LOAD_DATA_API,()=>{SelectorEngine.find(SELECTOR_DATA_SPY).forEach(spy=>new ScrollSpy(spy));});defineJQueryPlugin(ScrollSpy);const NAME$1='tab';const DATA_KEY$1='bs.tab';const EVENT_KEY$1=`.${DATA_KEY$1}`;const DATA_API_KEY='.data-api';const EVENT_HIDE$1=`hide${EVENT_KEY$1}`;const EVENT_HIDDEN$1=`hidden${EVENT_KEY$1}`;const EVENT_SHOW$1=`show${EVENT_KEY$1}`;const EVENT_SHOWN$1=`shown${EVENT_KEY$1}`;const EVENT_CLICK_DATA_API=`click${EVENT_KEY$1}${DATA_API_KEY}`;const CLASS_NAME_DROPDOWN_MENU='dropdown-menu';const CLASS_NAME_ACTIVE='active';const CLASS_NAME_FADE$1='fade';const CLASS_NAME_SHOW$1='show';const SELECTOR_DROPDOWN='.dropdown';const SELECTOR_NAV_LIST_GROUP='.nav, .list-group';const SELECTOR_ACTIVE='.active';const SELECTOR_ACTIVE_UL=':scope > li > .active';const SELECTOR_DATA_TOGGLE='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]';const SELECTOR_DROPDOWN_TOGGLE='.dropdown-toggle';const SELECTOR_DROPDOWN_ACTIVE_CHILD=':scope > .dropdown-menu .active';class Tab extends BaseComponent{static get NAME(){return NAME$1;}
show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(CLASS_NAME_ACTIVE)){return;}
let previous;const target=getElementFromSelector(this._element);const listElement=this._element.closest(SELECTOR_NAV_LIST_GROUP);if(listElement){const itemSelector=listElement.nodeName==='UL'||listElement.nodeName==='OL'?SELECTOR_ACTIVE_UL:SELECTOR_ACTIVE;previous=SelectorEngine.find(itemSelector,listElement);previous=previous[previous.length-1];}
const hideEvent=previous?EventHandler.trigger(previous,EVENT_HIDE$1,{relatedTarget:this._element}):null;const showEvent=EventHandler.trigger(this._element,EVENT_SHOW$1,{relatedTarget:previous});if(showEvent.defaultPrevented||hideEvent!==null&&hideEvent.defaultPrevented){return;}
this._activate(this._element,listElement);const complete=()=>{EventHandler.trigger(previous,EVENT_HIDDEN$1,{relatedTarget:this._element});EventHandler.trigger(this._element,EVENT_SHOWN$1,{relatedTarget:previous});};if(target){this._activate(target,target.parentNode,complete);}else{complete();}}
_activate(element,container,callback){const activeElements=container&&(container.nodeName==='UL'||container.nodeName==='OL')?SelectorEngine.find(SELECTOR_ACTIVE_UL,container):SelectorEngine.children(container,SELECTOR_ACTIVE);const active=activeElements[0];const isTransitioning=callback&&active&&active.classList.contains(CLASS_NAME_FADE$1);const complete=()=>this._transitionComplete(element,active,callback);if(active&&isTransitioning){active.classList.remove(CLASS_NAME_SHOW$1);this._queueCallback(complete,element,true);}else{complete();}}
_transitionComplete(element,active,callback){if(active){active.classList.remove(CLASS_NAME_ACTIVE);const dropdownChild=SelectorEngine.findOne(SELECTOR_DROPDOWN_ACTIVE_CHILD,active.parentNode);if(dropdownChild){dropdownChild.classList.remove(CLASS_NAME_ACTIVE);}
if(active.getAttribute('role')==='tab'){active.setAttribute('aria-selected',false);}}
element.classList.add(CLASS_NAME_ACTIVE);if(element.getAttribute('role')==='tab'){element.setAttribute('aria-selected',true);}
reflow(element);if(element.classList.contains(CLASS_NAME_FADE$1)){element.classList.add(CLASS_NAME_SHOW$1);}
let parent=element.parentNode;if(parent&&parent.nodeName==='LI'){parent=parent.parentNode;}
if(parent&&parent.classList.contains(CLASS_NAME_DROPDOWN_MENU)){const dropdownElement=element.closest(SELECTOR_DROPDOWN);if(dropdownElement){SelectorEngine.find(SELECTOR_DROPDOWN_TOGGLE,dropdownElement).forEach(dropdown=>dropdown.classList.add(CLASS_NAME_ACTIVE));}
element.setAttribute('aria-expanded',true);}
if(callback){callback();}}
static jQueryInterface(config){return this.each(function(){const data=Data.get(this,DATA_KEY$1)||new Tab(this);if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError(`No method named "${config}"`);}
data[config]();}});}}
EventHandler.on(document,EVENT_CLICK_DATA_API,SELECTOR_DATA_TOGGLE,function(event){if(['A','AREA'].includes(this.tagName)){event.preventDefault();}
if(isDisabled(this)){return;}
const data=Data.get(this,DATA_KEY$1)||new Tab(this);data.show();});defineJQueryPlugin(Tab);const NAME='toast';const DATA_KEY='bs.toast';const EVENT_KEY=`.${DATA_KEY}`;const EVENT_CLICK_DISMISS=`click.dismiss${EVENT_KEY}`;const EVENT_MOUSEOVER=`mouseover${EVENT_KEY}`;const EVENT_MOUSEOUT=`mouseout${EVENT_KEY}`;const EVENT_FOCUSIN=`focusin${EVENT_KEY}`;const EVENT_FOCUSOUT=`focusout${EVENT_KEY}`;const EVENT_HIDE=`hide${EVENT_KEY}`;const EVENT_HIDDEN=`hidden${EVENT_KEY}`;const EVENT_SHOW=`show${EVENT_KEY}`;const EVENT_SHOWN=`shown${EVENT_KEY}`;const CLASS_NAME_FADE='fade';const CLASS_NAME_HIDE='hide';const CLASS_NAME_SHOW='show';const CLASS_NAME_SHOWING='showing';const DefaultType={animation:'boolean',autohide:'boolean',delay:'number'};const Default={animation:true,autohide:true,delay:5000};const SELECTOR_DATA_DISMISS='[data-bs-dismiss="toast"]';class Toast extends BaseComponent{constructor(element,config){super(element);this._config=this._getConfig(config);this._timeout=null;this._hasMouseInteraction=false;this._hasKeyboardInteraction=false;this._setListeners();}
static get DefaultType(){return DefaultType;}
static get Default(){return Default;}
static get NAME(){return NAME;}
show(){const showEvent=EventHandler.trigger(this._element,EVENT_SHOW);if(showEvent.defaultPrevented){return;}
this._clearTimeout();if(this._config.animation){this._element.classList.add(CLASS_NAME_FADE);}
const complete=()=>{this._element.classList.remove(CLASS_NAME_SHOWING);this._element.classList.add(CLASS_NAME_SHOW);EventHandler.trigger(this._element,EVENT_SHOWN);this._maybeScheduleHide();};this._element.classList.remove(CLASS_NAME_HIDE);reflow(this._element);this._element.classList.add(CLASS_NAME_SHOWING);this._queueCallback(complete,this._element,this._config.animation);}
hide(){if(!this._element.classList.contains(CLASS_NAME_SHOW)){return;}
const hideEvent=EventHandler.trigger(this._element,EVENT_HIDE);if(hideEvent.defaultPrevented){return;}
const complete=()=>{this._element.classList.add(CLASS_NAME_HIDE);EventHandler.trigger(this._element,EVENT_HIDDEN);};this._element.classList.remove(CLASS_NAME_SHOW);this._queueCallback(complete,this._element,this._config.animation);}
dispose(){this._clearTimeout();if(this._element.classList.contains(CLASS_NAME_SHOW)){this._element.classList.remove(CLASS_NAME_SHOW);}
super.dispose();}
_getConfig(config){config={...Default,...Manipulator.getDataAttributes(this._element),...(typeof config==='object'&&config?config:{})};typeCheckConfig(NAME,config,this.constructor.DefaultType);return config;}
_maybeScheduleHide(){if(!this._config.autohide){return;}
if(this._hasMouseInteraction||this._hasKeyboardInteraction){return;}
this._timeout=setTimeout(()=>{this.hide();},this._config.delay);}
_onInteraction(event,isInteracting){switch(event.type){case'mouseover':case'mouseout':this._hasMouseInteraction=isInteracting;break;case'focusin':case'focusout':this._hasKeyboardInteraction=isInteracting;break;}
if(isInteracting){this._clearTimeout();return;}
const nextElement=event.relatedTarget;if(this._element===nextElement||this._element.contains(nextElement)){return;}
this._maybeScheduleHide();}
_setListeners(){EventHandler.on(this._element,EVENT_CLICK_DISMISS,SELECTOR_DATA_DISMISS,()=>this.hide());EventHandler.on(this._element,EVENT_MOUSEOVER,event=>this._onInteraction(event,true));EventHandler.on(this._element,EVENT_MOUSEOUT,event=>this._onInteraction(event,false));EventHandler.on(this._element,EVENT_FOCUSIN,event=>this._onInteraction(event,true));EventHandler.on(this._element,EVENT_FOCUSOUT,event=>this._onInteraction(event,false));}
_clearTimeout(){clearTimeout(this._timeout);this._timeout=null;}
static jQueryInterface(config){return this.each(function(){let data=Data.get(this,DATA_KEY);const _config=typeof config==='object'&&config;if(!data){data=new Toast(this,_config);}
if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError(`No method named "${config}"`);}
data[config](this);}});}}
defineJQueryPlugin(Toast);var index_umd={Alert,Button,Collapse,Dropdown,Modal,Offcanvas,Popover,ScrollSpy,Tab,Toast,Tooltip};return index_umd;})));
/*!
 * jQuery Cookie Plugin v1.4.1
 * https://github.com/carhartl/jquery-cookie
 *
 * Copyright 2013 Klaus Hartl
 * Released under the MIT license
 */
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(jQuery)}(function(e){var n=/\+/g;function o(e){return r.raw?e:encodeURIComponent(e)}function i(e,o){var i=r.raw?e:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(n," ")),r.json?JSON.parse(e):e}catch(o){}}(e);return"function"==typeof o?o(i):i}var r=e.cookie=function(n,t,u){if(t!==undefined&&"function"!=typeof t){if("number"==typeof(u=e.extend({},r.defaults,u)).expires){var c=u.expires,f=u.expires=new Date;f.setTime(+f+864e5*c)}return document.cookie=[o(n),"=",function(e){return o(r.json?JSON.stringify(e):String(e))}(t),u.expires?"; expires="+u.expires.toUTCString():"",u.path?"; path="+u.path:"",u.domain?"; domain="+u.domain:"",u.secure?"; secure":""].join("")}for(var d,a=n?undefined:{},p=document.cookie?document.cookie.split("; "):[],s=0,m=p.length;s<m;s++){var x=p[s].split("="),y=(d=x.shift(),r.raw?d:decodeURIComponent(d)),k=x.join("=");if(n&&n===y){a=i(k,t);break}n||(k=i(k))===undefined||(a[y]=k)}return a};r.defaults={},e.removeCookie=function(n,o){return e.cookie(n)!==undefined&&(e.cookie(n,"",e.extend({},o,{expires:-1})),!e.cookie(n))}});

!function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},a.each(["onResize","onThrottledResize"],a.proxy(function(b,c){this._handlers[c]=a.proxy(this[c],this)},this)),a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a.charAt(0).toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Workers,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}e.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:b,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Type={Event:"event",State:"state"},e.Plugins={},e.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(a){var b=this.settings.margin||"",c=!this.settings.autoWidth,d=this.settings.rtl,e={width:"auto","margin-left":d?b:"","margin-right":d?"":b};!c&&this.$stage.children().css(e),a.css=e}},{filter:["width","items","settings"],run:function(a){var b=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,c=null,d=this._items.length,e=!this.settings.autoWidth,f=[];for(a.items={merge:!1,width:b};d--;)c=this._mergers[d],c=this.settings.mergeFit&&Math.min(c,this.settings.items)||c,a.items.merge=c>1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:["items","settings"],run:function(){var b=[],c=this._items,d=this.settings,e=Math.max(2*d.items,4),f=2*Math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:Math.max(e,f):0,h="",i="";for(g/=2;g>0;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerHTML,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerHTML+i,g-=1;this._clones=b,a(h).addClass("cloned").appendTo(this.$stage),a(i).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c<b;)d=f[c-1]||0,e=this._widths[this.relative(c)]+this.settings.margin,f.push(d+e*a);this._coordinates=f}},{filter:["width","items","settings"],run:function(){var a=this.settings.stagePadding,b=this._coordinates,c={width:Math.ceil(Math.abs(b[b.length-1]))+2*a,"padding-left":a||"","padding-right":a||""};this.$stage.css(c)}},{filter:["width","items","settings"],run:function(a){var b=this._coordinates.length,c=!this.settings.autoWidth,d=this.$stage.children();if(c&&a.items.merge)for(;b--;)a.css.width=this._widths[this.relative(b)],d.eq(b).css(a.css);else c&&(a.css.width=a.items.width,d.css(a.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(a){a.current=a.current?this.$stage.children().index(a.current):0,a.current=Math.max(this.minimum(),Math.min(this.maximum(),a.current)),this.reset(a.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var a,b,c,d,e=this.settings.rtl?1:-1,f=2*this.settings.stagePadding,g=this.coordinates(this.current())+f,h=g+this.width()*e,i=[];for(c=0,d=this._coordinates.length;c<d;c++)a=this._coordinates[c-1]||0,b=Math.abs(this._coordinates[c])+f*e,(this.op(a,"<=",g)&&this.op(a,">",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],e.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=a("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(a("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},e.prototype.initializeItems=function(){var b=this.$element.find(".owl-item");if(b.length)return this._items=b.get().map(function(b){return a(b)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},e.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var a,b,c;a=this.$element.find("img"),b=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,c=this.$element.children(b).width(),a.length&&c<=0&&this.preloadAutoWidthImages(a)}this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},e.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){a<=b&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),"function"==typeof e.stagePadding&&(e.stagePadding=e.stagePadding()),delete e.responsive,e.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+d))):e=a.extend({},this.options),this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},e.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};b<c;)(this._invalidated.all||a.grep(this._pipe[b].filter,d).length>0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is("valid")&&this.enter("valid")},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},e.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},e.prototype.registerEventHandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+".owl.core",a.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(b,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",a.proxy(this.onDragEnd,this)))},e.prototype.onDragStart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is("animating")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===b.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on("mouseup.owl.core touchend.owl.core",a.proxy(this.onDragEnd,this)),a(c).one("mousemove.owl.core touchmove.owl.core",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on("mousemove.owl.core touchmove.owl.core",a.proxy(this.onDragMove,this)),Math.abs(d.x)<Math.abs(d.y)&&this.is("valid")||(b.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},e.prototype.onDragMove=function(a){var b=null,c=null,d=null,e=this.difference(this._drag.pointer,this.pointer(a)),f=this.difference(this._drag.stage.start,e);this.is("dragging")&&(a.preventDefault(),this.settings.loop?(b=this.coordinates(this.minimum()),c=this.coordinates(this.maximum()+1)-b,f.x=((f.x-b)%c+c)%c+b):(b=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),c=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),d=this.settings.pullDrag?-1*e.x/5:0,f.x=Math.max(Math.min(f.x,b+d),c+d)),this._drag.stage.current=f,this.animate(f.x))},e.prototype.onDragEnd=function(b){var d=this.difference(this._drag.pointer,this.pointer(b)),e=this._drag.stage.current,f=d.x>0^this.settings.rtl?"left":"right";a(c).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==d.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=f,(Math.abs(d.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},e.prototype.closest=function(b,c){var e=-1,f=30,g=this.width(),h=this.coordinates();return this.settings.freeDrag||a.each(h,a.proxy(function(a,i){return"left"===c&&b>i-f&&b<i+f?e=a:"right"===c&&b>i-g-f&&b<i-g+f?e=a+1:this.op(b,"<",i)&&this.op(b,">",h[a+1]!==d?h[a+1]:i-g)&&(e="left"===c?a+1:a),-1===e},this)),this.settings.loop||(this.op(b,">",h[this.minimum()])?e=b=this.minimum():this.op(b,"<",h[this.maximum()])&&(e=b=this.maximum())),e},e.prototype.animate=function(b){var c=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),c&&(this.enter("animating"),this.trigger("translate")),a.support.transform3d&&a.support.transition?this.$stage.css({transform:"translate3d("+b+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):c?this.$stage.animate({left:b+"px"},this.speed(),this.settings.fallbackEasing,a.proxy(this.onTransitionEnd,this)):this.$stage.css({left:b+"px"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return"string"===a.type(b)&&(this._invalidated[b]=!0,this.is("valid")&&this.leave("valid")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){(a=this.normalize(a))!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(a,b){var c=this._items.length,e=b?0:this._clones.length;return!this.isNumeric(a)||c<1?a=d:(a<0||a>=c+e)&&(a=((a-e/2)%c+c)%c+e/2),a},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=this.settings,f=this._coordinates.length;if(e.loop)f=this._clones.length/2+this._items.length-1;else if(e.autoWidth||e.merge){if(b=this._items.length)for(c=this._items[--b].width(),d=this.$element.width();b--&&!((c+=this._items[b].width()+this.settings.margin)>d););f=b+1}else f=e.center?this._items.length-1:this._items.length-e.items;return a&&(f-=this._clones.length/2),Math.max(f,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2==0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c,e=1,f=b-1;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(this.settings.rtl&&(e=-1,f=b+1),c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[f]||0))/2*e):c=this._coordinates[f]||0,c=Math.ceil(c))},e.prototype.duration=function(a,b,c){return 0===c?0:Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(e<0),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(e)>g/2&&(e+=-1*f*g),a=c+e,(d=((a-h)%g+g)%g+h)!==a&&d-e<=i&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=Math.max(h,Math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.isVisible()&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.onTransitionEnd=function(a){if(a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},e.prototype.viewport=function(){var d;return this.options.responsiveBaseElement!==b?d=a(this.options.responsiveBaseElement).width():b.innerWidth?d=b.innerWidth:c.documentElement&&c.documentElement.clientWidth?d=c.documentElement.clientWidth:console.warn("Can not detect viewport width."),d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jQuery?b:a(b),this.trigger("add",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate("items"),this.trigger("added",{content:b,position:c})},e.prototype.remove=function(a){(a=this.normalize(a,!0))!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.preloadAutoWidthImages=function(b){b.each(a.proxy(function(b,c){this.enter("pre-loading"),c=a(c),a(new Image).one("load",a.proxy(function(a){c.attr("src",a.target.src),c.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",c.attr("src")||c.attr("data-src")||c.attr("data-src-retina"))},this))},e.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),a(c).off(".owl.core"),!1!==this.settings.responsive&&(b.clearTimeout(this.resizeTimer),this.off(b,"resize",this._handlers.onThrottledResize));for(var d in this._plugins)this._plugins[d].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:a<c;case">":return d?a<c:a>c;case">=":return d?a<=c:a>=c;case"<=":return d?a>=c:a<=c}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d,f,g){var h={item:{count:this._items.length,index:this.current()}},i=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),j=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},h,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(j)}),this.register({type:e.Type.Event,name:b}),this.$element.trigger(j),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].call(this,j)),j},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.Type.Event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&-1!==a.namespace.indexOf("owl")?a.namespace&&a.namespace.indexOf("owl")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.Type.State&&(this._states.tags[b.name]?this._states.tags[b.name]=this._states.tags[b.name].concat(b.tags):this._states.tags[b.name]=b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inArray(c,this._states.tags[b.name])===d},this)))},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.pointer=function(a){var c={x:null,y:null};return a=a.originalEvent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,a.pageX?(c.x=a.pageX,c.y=a.pageY):(c.x=a.clientX,c.y=a.clientY),c},e.prototype.isNumeric=function(a){return!isNaN(parseFloat(a))},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.owlCarousel=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data("owl.carousel");f||(f=new e(this,"object"==typeof b&&b),d.data("owl.carousel",f),a.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(b,c){f.register({type:e.Type.Event,name:c}),f.$element.on(c+".owl.carousel.core",a.proxy(function(a){a.namespace&&a.relatedTarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),"string"==typeof b&&"_"!==b.charAt(0)&&f[b].apply(f,c)})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoRefresh:!0,autoRefreshInterval:500},e.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=b.setInterval(a.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},e.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},e.prototype.destroy=function(){var a,c;b.clearInterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoRefresh=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(b.property&&"position"==b.property.name||"initialized"==b.type)){var c=this._core.settings,e=c.center&&Math.ceil(c.items/2)||c.items,f=c.center&&-1*e||0,g=(b.property&&b.property.value!==d?b.property.value:this._core.current())+f,h=this._core.clones().length,i=a.proxy(function(a,b){this.load(b)},this);for(c.lazyLoadEager>0&&(e+=c.lazyLoadEager,c.loop&&(g-=c.lazyLoadEager,e++));f++<e;)this.load(h/2+this._core.relative(g)),h&&a.each(this._core.clones(this._core.relative(g)),i),g++}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={lazyLoad:!1,lazyLoadEager:0},e.prototype.load=function(c){var d=this._core.$stage.children().eq(c),e=d&&d.find(".owl-lazy");!e||a.inArray(d.get(0),this._loaded)>-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicePixelRatio>1&&f.attr("data-src-retina")||f.attr("data-src")||f.attr("data-srcset");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):f.is("source")?f.one("load.owl.lazy",a.proxy(function(){this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("srcset",g):(e=new Image,e.onload=a.proxy(function(){f.css({"background-image":'url("'+g+'")',opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(c){this._core=c,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&"position"===a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var d=this;a(b).on("load",function(){d._core.settings.autoHeight&&d.update()}),a(b).resize(function(){d._core.settings.autoHeight&&(null!=d._intervalId&&clearTimeout(d._intervalId),d._intervalId=setTimeout(function(){d.update()},250))})};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.settings.lazyLoad,e=this._core.$stage.children().toArray().slice(b,c),f=[],g=0;a.each(e,function(b,c){f.push(a(c).height())}),g=Math.max.apply(null,f),g<=1&&d&&this._previousHeight&&(g=this._previousHeight),this._previousHeight=g,this._core.$stage.parent().height(g).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.video&&this.isInFullScreen()&&a.preventDefault()},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"===a.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find(".owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};e.Defaults={video:!1,videoHeight:!1,videoWidth:!1},e.prototype.fetch=function(a,b){var c=function(){return a.attr("data-vimeo-id")?"vimeo":a.attr("data-vzaar-id")?"vzaar":"youtube"}(),d=a.attr("data-vimeo-id")||a.attr("data-youtube-id")||a.attr("data-vzaar-id"),e=a.attr("data-width")||this._core.settings.videoWidth,f=a.attr("data-height")||this._core.settings.videoHeight,g=a.attr("href");if(!g)throw new Error("Missing video URL.");if(d=g.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),d[3].indexOf("youtu")>-1)c="youtube";else if(d[3].indexOf("vimeo")>-1)c="vimeo";else{if(!(d[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");c="vzaar"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},e.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?"width:"+c.width+"px;height:"+c.height+"px;":"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(c){e='<div class="owl-video-play-icon"></div>',d=k.lazyLoad?a("<div/>",{class:"owl-video-tn "+j,srcType:c}):a("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+c+")"}),b.after(d),b.after(e)};if(b.wrap(a("<div/>",{class:"owl-video-wrapper",style:g})),this._core.settings.lazyLoad&&(i="data-src",j="owl-lazy"),h.length)return l(h.attr(i)),h.remove(),!1;"youtube"===c.type?(f="//img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type?a.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}):"vzaar"===c.type&&a.ajax({type:"GET",url:"//vzaar.com/api/videos/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a.framegrab_url,l(f)}})},e.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},e.prototype.play=function(b){var c,d=a(b.target),e=d.closest("."+this._core.settings.itemClass),f=this._videos[e.attr("data-video")],g=f.width||"100%",h=f.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),c=a('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>'),c.attr("height",h),c.attr("width",g),"youtube"===f.type?c.attr("src","//www.youtube.com/embed/"+f.id+"?autoplay=1&rel=0&v="+f.id):"vimeo"===f.type?c.attr("src","//player.vimeo.com/video/"+f.id+"?autoplay=1"):"vzaar"===f.type&&c.attr("src","//view.vzaar.com/"+f.id+"/player?autoplay=true"),a(c).wrap('<div class="owl-video-frame" />').insertAfter(e.find(".owl-video")),this._playing=e.addClass("owl-video-playing"))},e.prototype.isInFullScreen=function(){var b=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return b&&a(b).parent().hasClass("owl-video-frame")},e.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,
animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g)),f&&e.one(a.support.animation.end,c).addClass("animated owl-animated-in").addClass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.Defaults,this._core.options)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype._next=function(d){this._call=b.setTimeout(a.proxy(this._next,this,d),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||c.hidden||this._core.next(d||this._core.settings.autoplaySpeed)},e.prototype.read=function(){return(new Date).getTime()-this._time},e.prototype.play=function(c,d){var e;this._core.is("rotating")||this._core.enter("rotating"),c=c||this._core.settings.autoplayTimeout,e=Math.min(this._time%(this._timeout||c),c),this._paused?(this._time=this.read(),this._paused=!1):b.clearTimeout(this._call),this._time+=this.read()%c-e,this._timeout=c,this._call=b.setTimeout(a.proxy(this._next,this,d),c-e)},e.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,b.clearTimeout(this._call),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,b.clearTimeout(this._call))},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a("<div>").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+c.navElement+">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navSpeed)},this)),this._controls.$next=a("<"+c.navElement+">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a('<button role="button">').addClass(c.dotClass).append(a("<span>")).prop("outerHTML")]),this._controls.$absolute=(c.dotsContainer?a(c.dotsContainer):a("<div>").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",a.proxy(function(b){var d=a(b.target).parent().is(this._controls.$absolute)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(d,c.dotsSpeed)},this));for(b in this._overrides)this._core[b]=a.proxy(this[b],this)},e.prototype.destroy=function(){var a,b,c,d,e;e=this._core.settings;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)"$relative"===b&&e.navContainer?this._controls[b].html(""):this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},e.prototype.update=function(){var a,b,c,d=this._core.clones().length/2,e=d+this._core.items().length,f=this._core.maximum(!0),g=this._core.settings,h=g.center||g.autoWidth||g.dotsData?1:g.dotsEach||g.items;if("page"!==g.slideBy&&(g.slideBy=Math.min(g.slideBy,g.items)),g.dots||"page"==g.slideBy)for(this._pages=[],a=d,b=0,c=0;a<e;a++){if(b>=h||0===b){if(this._pages.push({start:Math.min(f,a-d),end:a-d+h-1}),Math.min(f,a-d)===f)break;b=0,++c}b+=this._core.mergers(this._core.relative(a))}},e.prototype.draw=function(){var b,c=this._core.settings,d=this._core.items().length<=c.items,e=this._core.relative(this._core.current()),f=c.loop||c.rewind;this._controls.$relative.toggleClass("disabled",!c.nav||d),c.nav&&(this._controls.$previous.toggleClass("disabled",!f&&e<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!f&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!c.dots||d),c.dots&&(b=this._pages.length-this._controls.$absolute.children().length,c.dotsData&&0!==b?this._controls.$absolute.html(this._templates.join("")):b>0?this._controls.$absolute.append(new Array(b+1).join(this._templates[0])):b<0&&this._controls.$absolute.children().slice(b).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(a.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotsData?1:c.dotsEach||c.items)}},e.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(a,c){return a.start<=b&&a.end>=b},this)).pop()},e.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},e.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},e.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},e.prototype.to=function(b,c,d){var e;!d&&this._pages.length?(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c)):a.proxy(this._overrides.to,this._core)(b,c)},a.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(c){this._core=c,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(c){c.namespace&&"URLHash"===this._core.settings.startPosition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!c)return;this._hashes[c]=b.content}},this),"changed.owl.carousel":a.proxy(function(c){if(c.namespace&&"position"===c.property.name){var d=this._core.items(this._core.relative(this._core.current())),e=a.map(this._hashes,function(a,b){return a===d?b:null}).join();if(!e||b.location.hash.slice(1)===e)return;b.location.hash=e}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(a){var c=b.location.hash.substring(1),e=this._core.$stage.children(),f=this._hashes[c]&&e.index(this._hashes[c]);f!==d&&f!==this._core.current()&&this._core.to(this._core.relative(f),!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in Object.getOwnPropertyNames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){function e(b,c){var e=!1,f=b.charAt(0).toUpperCase()+b.slice(1);return a.each((b+" "+h.join(f+" ")+f).split(" "),function(a,b){if(g[b]!==d)return e=!c||b,!1}),e}function f(a){return e(a,!0)}var g=a("<support>").get(0).style,h="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},j={csstransforms:function(){return!!e("transform")},csstransforms3d:function(){return!!e("perspective")},csstransitions:function(){return!!e("transition")},cssanimations:function(){return!!e("animation")}};j.csstransitions()&&(a.support.transition=new String(f("transition")),a.support.transition.end=i.transition.end[a.support.transition]),j.cssanimations()&&(a.support.animation=new String(f("animation")),a.support.animation.end=i.animation.end[a.support.animation]),j.csstransforms()&&(a.support.transform=new String(f("transform")),a.support.transform3d=j.csstransforms3d())}(window.Zepto||window.jQuery,window,document);
/*! 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}));
/*! Magnific Popup - v1.1.0 - 2016-02-20
* http://dimsemenov.com/plugins/magnific-popup/
* Copyright (c) 2016 Dmitry Semenov; */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,Array.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=Array.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).trigger('focus'),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||!(2===c.which||c.ctrlKey||c.metaKey||c.altKey||c.shiftKey)){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).trigger('focus')},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split("_"),e.length>1){var f=b.find(p+"-"+e[0]);if(f.length>0){var g=e[1];"replaceWith"===g?f[0]!==d[0]&&f.replaceWith(d):"img"===g?f.is("img")?f.attr("src",d):f.replaceWith(a("<img>").attr("src",d).attr("class",f.attr("class"))):f.attr(e[1],d)}}else b.find(p+"-"+c).html(d)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()});
"function"!=typeof Object.create&&(Object.create=function(o){function i(){}return i.prototype=o,new i}),function(o,i,t,e){var n={init:function(i,t){var e=this;e.elem=t,e.$elem=o(t),e.imageSrc=e.$elem.data("zoom-image")?e.$elem.data("zoom-image"):e.$elem.attr("href")?e.$elem.attr("href"):e.$elem.data("original")?e.$elem.data("original"):e.$elem.attr("src"),e.options=o.extend({},o.fn.elevateZoom.options,i),e.options.tint&&(e.options.lensColour="none",e.options.lensOpacity="1"),"inner"==e.options.zoomType&&(e.options.showLens=!1),e.options.zoomContainer?e.$container=o(e.options.zoomContainer):e.$container=o("body"),e.$elem.parent().removeAttr("title").removeAttr("alt"),e.zoomImage=e.imageSrc,e.refresh(1),o("#"+e.options.gallery+" a").on("click",function(i){return e.options.galleryActiveClass&&(o("#"+e.options.gallery+" a").removeClass(e.options.galleryActiveClass),o(this).addClass(e.options.galleryActiveClass)),i.preventDefault(),o(this).data("zoom-image")?e.zoomImagePre=o(this).data("zoom-image"):e.zoomImagePre=o(this).data("image"),e.swaptheimage(o(this).data("image"),e.zoomImagePre),!1})},refresh:function(o){var i=this;setTimeout(function(){i.fetch(i.imageSrc)},o||i.options.refresh)},fetch:function(o){var i=this,t=new Image;t.onload=function(){i.largeWidth=t.width,i.largeHeight=t.height,i.startZoom(),i.currentImage=i.imageSrc,i.options.onZoomedImageLoaded(i.$elem)},t.src=o},startZoom:function(){var i=this;if(i.nzWidth=i.$elem.width(),i.nzHeight=i.$elem.height(),i.isWindowActive=!1,i.isLensActive=!1,i.isTintActive=!1,i.overWindow=!1,i.options.imageCrossfade&&(i.zoomWrap=i.$elem.wrap('<div style="height:'+i.nzHeight+"px;width:"+i.nzWidth+'px;" class="zoomWrapper" />'),i.$elem.css("position","absolute")),i.zoomLock=1,i.scrollingLock=!1,i.changeBgSize=!1,i.currentZoomLevel=i.options.zoomLevel,i.nzOffset=i.$elem.offset(),i.ctOffset=i.$container.offset(),i.widthRatio=i.largeWidth/i.currentZoomLevel/i.nzWidth,i.heightRatio=i.largeHeight/i.currentZoomLevel/i.nzHeight,"window"==i.options.zoomType&&(i.zoomWindowStyle="overflow: hidden;background-position: 0px 0px;text-align:center;background-color: "+String(i.options.zoomWindowBgColour)+";width: "+String(i.options.zoomWindowWidth)+"px;height: "+String(i.options.zoomWindowHeight)+"px;float: left;background-size: "+i.largeWidth/i.currentZoomLevel+"px "+i.largeHeight/i.currentZoomLevel+"px;display: none;z-index:100;border: "+String(i.options.borderSize)+"px solid "+i.options.borderColour+";background-repeat: no-repeat;position: absolute;"),"inner"==i.options.zoomType){i.$elem.css("border-left-width");i.zoomWindowStyle="overflow: hidden;margin-left: -"+String(i.options.borderSize)+"px;margin-top: -"+String(i.options.borderSize)+"px;background-position: 0px 0px;width: "+String(i.nzWidth)+"px;height: "+String(i.nzHeight)+"px;float: left;display: none;cursor:"+i.options.cursor+";border: "+String(i.options.borderSize)+"px solid "+i.options.borderColour+";background-repeat: no-repeat;position: absolute;"}"window"==i.options.zoomType&&(i.nzHeight<i.options.zoomWindowWidth/i.widthRatio?lensHeight=i.nzHeight:lensHeight=String(i.options.zoomWindowHeight/i.heightRatio),i.largeWidth<i.options.zoomWindowWidth?lensWidth=i.nzWidth:lensWidth=i.options.zoomWindowWidth/i.widthRatio,i.lensStyle="background-position: 0px 0px;width: "+String(i.options.zoomWindowWidth/i.widthRatio)+"px;height: "+String(i.options.zoomWindowHeight/i.heightRatio)+"px;float: right;display: none;overflow: hidden;z-index: 999;-webkit-transform: translateZ(0);opacity:"+i.options.lensOpacity+";filter: alpha(opacity = "+100*i.options.lensOpacity+"); zoom:1;width:"+lensWidth+"px;height:"+lensHeight+"px;background-color:"+i.options.lensColour+";cursor:"+i.options.cursor+";border: "+i.options.lensBorderSize+"px solid "+i.options.lensBorderColour+";background-repeat: no-repeat;position: absolute;"),i.tintStyle="display: block;position: absolute;background-color: "+i.options.tintColour+";filter:alpha(opacity=0);opacity: 0;width: "+i.nzWidth+"px;height: "+i.nzHeight+"px;",i.lensRound="","lens"==i.options.zoomType&&(i.lensStyle="background-position: 0px 0px;float: left;display: none;border: "+String(i.options.borderSize)+"px solid "+i.options.borderColour+";width:"+String(i.options.lensSize)+"px;height:"+String(i.options.lensSize)+"px;background-repeat: no-repeat;position: absolute;"),"round"==i.options.lensShape&&(i.lensRound="border-top-left-radius: "+String(i.options.lensSize/2+i.options.borderSize)+"px;border-top-right-radius: "+String(i.options.lensSize/2+i.options.borderSize)+"px;border-bottom-left-radius: "+String(i.options.lensSize/2+i.options.borderSize)+"px;border-bottom-right-radius: "+String(i.options.lensSize/2+i.options.borderSize)+"px;"),void 0!==i.ctOffset&&(i.$container.find(".zoomContainer").length&&i.$container.find(".zoomContainer").remove(),i.zoomContainer=o('<div class="zoomContainer" style="-webkit-transform: translateZ(0);position:absolute;left:'+(i.nzOffset.left-i.ctOffset.left)+"px;top:"+(i.nzOffset.top-i.ctOffset.top)+"px;height:"+i.nzHeight+"px;width:"+i.nzWidth+'px;"></div>'),i.$container.append(i.zoomContainer),i.options.containLensZoom&&"lens"==i.options.zoomType&&i.zoomContainer.css("overflow","hidden"),"inner"!=i.options.zoomType&&(i.zoomLens=o("<div class='zoomLens' style='"+i.lensStyle+i.lensRound+"'>&nbsp;</div>").appendTo(i.zoomContainer).on("click",function(){i.$elem.trigger("click")}),i.options.tint&&(i.tintContainer=o("<div/>").addClass("tintContainer"),i.zoomTint=o("<div class='zoomTint' style='"+i.tintStyle+"'></div>"),i.zoomLens.wrap(i.tintContainer),i.zoomTintcss=i.zoomLens.after(i.zoomTint),i.zoomTintImage=o('<img style="position: absolute; left: 0px; top: 0px; max-width: none; width: '+i.nzWidth+"px; height: "+i.nzHeight+'px;" src="'+i.imageSrc+'">').appendTo(i.zoomLens).on("click",function(){i.$elem.trigger("click")}))),isNaN(i.options.zoomWindowPosition)?i.zoomWindow=o("<div style='z-index:999;left:"+i.windowOffsetLeft+"px;top:"+i.windowOffsetTop+"px;"+i.zoomWindowStyle+"' class='zoomWindow'>&nbsp;</div>").appendTo(i.$container).on("click",function(){i.$elem.trigger("click")}):i.zoomWindow=o("<div style='z-index:999;left:"+i.windowOffsetLeft+"px;top:"+i.windowOffsetTop+"px;"+i.zoomWindowStyle+"' class='zoomWindow'>&nbsp;</div>").appendTo(i.zoomContainer).on("click",function(){i.$elem.trigger("click")}),i.zoomWindowContainer=o("<div/>").addClass("zoomWindowContainer").css("width",i.options.zoomWindowWidth),i.zoomWindow.wrap(i.zoomWindowContainer),"lens"==i.options.zoomType&&i.zoomLens.css({backgroundImage:"url('"+i.imageSrc+"')"}),"window"==i.options.zoomType&&i.zoomWindow.css({backgroundImage:"url('"+i.imageSrc+"')"}),"inner"==i.options.zoomType&&i.zoomWindow.css({backgroundImage:"url('"+i.imageSrc+"')"}),i.$elem.on("touchmove",function(o){o.preventDefault();var t=o.originalEvent.touches[0]||o.originalEvent.changedTouches[0];i.setPosition(t)}),i.zoomContainer.on("touchmove",function(o){"inner"==i.options.zoomType&&i.showHideWindow("show"),o.preventDefault();var t=o.originalEvent.touches[0]||o.originalEvent.changedTouches[0];i.setPosition(t)}),i.zoomContainer.on("touchend",function(o){i.showHideWindow("hide"),i.options.showLens&&i.showHideLens("hide"),i.options.tint&&"inner"!=i.options.zoomType&&i.showHideTint("hide")}),i.$elem.on("touchend",function(o){i.showHideWindow("hide"),i.options.showLens&&i.showHideLens("hide"),i.options.tint&&"inner"!=i.options.zoomType&&i.showHideTint("hide")}),i.options.showLens&&(i.zoomLens.on("touchmove",function(o){o.preventDefault();var t=o.originalEvent.touches[0]||o.originalEvent.changedTouches[0];i.setPosition(t)}),i.zoomLens.on("touchend",function(o){i.showHideWindow("hide"),i.options.showLens&&i.showHideLens("hide"),i.options.tint&&"inner"!=i.options.zoomType&&i.showHideTint("hide")})),i.$elem.on("mousemove",function(o){0==i.overWindow&&i.setElements("show"),i.lastX===o.clientX&&i.lastY===o.clientY||(i.setPosition(o),i.currentLoc=o),i.lastX=o.clientX,i.lastY=o.clientY}),i.zoomContainer.on("mousemove",function(o){0==i.overWindow&&i.setElements("show"),i.lastX===o.clientX&&i.lastY===o.clientY||(i.setPosition(o),i.currentLoc=o),i.lastX=o.clientX,i.lastY=o.clientY}),"inner"!=i.options.zoomType&&i.zoomLens.on("mousemove",function(o){i.lastX===o.clientX&&i.lastY===o.clientY||(i.setPosition(o),i.currentLoc=o),i.lastX=o.clientX,i.lastY=o.clientY}),i.options.tint&&"inner"!=i.options.zoomType&&i.zoomTint.on("mousemove",function(o){i.lastX===o.clientX&&i.lastY===o.clientY||(i.setPosition(o),i.currentLoc=o),i.lastX=o.clientX,i.lastY=o.clientY}),"inner"==i.options.zoomType&&i.zoomWindow.on("mousemove",function(o){i.lastX===o.clientX&&i.lastY===o.clientY||(i.setPosition(o),i.currentLoc=o),i.lastX=o.clientX,i.lastY=o.clientY}),i.zoomContainer.add(i.$elem).on("mouseenter",function(){0==i.overWindow&&i.setElements("show")}).on("mouseleave",function(){i.scrollLock||i.setElements("hide")}),"inner"!=i.options.zoomType&&i.zoomWindow.on("mouseenter",function(){i.overWindow=!0,i.setElements("hide")}).on("mouseleave",function(){i.overWindow=!1}),i.options.zoomLevel,i.options.minZoomLevel?i.minZoomLevel=i.options.minZoomLevel:i.minZoomLevel=2*i.options.scrollZoomIncrement,i.options.scrollZoom&&i.zoomContainer.add(i.$elem).on("mousewheel DOMMouseScroll MozMousePixelScroll",function(t){i.scrollLock=!0,clearTimeout(o.data(this,"timer")),o.data(this,"timer",setTimeout(function(){i.scrollLock=!1},250));var e=t.originalEvent.wheelDelta||-1*t.originalEvent.detail;return t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),e/120>0?i.currentZoomLevel>=i.minZoomLevel&&i.changeZoomLevel(i.currentZoomLevel-i.options.scrollZoomIncrement):i.options.maxZoomLevel?i.currentZoomLevel<=i.options.maxZoomLevel&&i.changeZoomLevel(parseFloat(i.currentZoomLevel)+i.options.scrollZoomIncrement):i.changeZoomLevel(parseFloat(i.currentZoomLevel)+i.options.scrollZoomIncrement),!1}))},setElements:function(o){if(!this.options.zoomEnabled)return!1;"show"==o&&this.isWindowSet&&("inner"==this.options.zoomType&&this.showHideWindow("show"),"window"==this.options.zoomType&&this.showHideWindow("show"),this.options.showLens&&this.showHideLens("show"),this.options.tint&&"inner"!=this.options.zoomType&&this.showHideTint("show")),"hide"==o&&("window"==this.options.zoomType&&this.showHideWindow("hide"),this.options.tint||this.showHideWindow("hide"),this.options.showLens&&this.showHideLens("hide"),this.options.tint&&this.showHideTint("hide"))},setPosition:function(o){if(!this.options.zoomEnabled)return!1;this.nzHeight=this.$elem.height(),this.nzWidth=this.$elem.width(),this.nzOffset=this.$elem.offset(),this.ctOffset=this.$container.offset(),this.options.tint&&"inner"!=this.options.zoomType&&(this.zoomTint.css({top:0}),this.zoomTint.css({left:0})),this.options.responsive&&!this.options.scrollZoom&&this.options.showLens&&(this.nzHeight<this.options.zoomWindowWidth/this.widthRatio?lensHeight=this.nzHeight:lensHeight=String(this.options.zoomWindowHeight/this.heightRatio),this.largeWidth<this.options.zoomWindowWidth?lensWidth=this.nzWidth:lensWidth=this.options.zoomWindowWidth/this.widthRatio,this.widthRatio=this.largeWidth/this.nzWidth,this.heightRatio=this.largeHeight/this.nzHeight,"lens"!=this.options.zoomType&&(this.nzHeight<this.options.zoomWindowWidth/this.widthRatio?lensHeight=this.nzHeight:lensHeight=String(this.options.zoomWindowHeight/this.heightRatio),this.options.zoomWindowWidth<this.options.zoomWindowWidth?lensWidth=this.nzWidth:lensWidth=this.options.zoomWindowWidth/this.widthRatio,this.zoomLens.css("width",lensWidth),this.zoomLens.css("height",lensHeight),this.options.tint&&(this.zoomTintImage.css("width",this.nzWidth),this.zoomTintImage.css("height",this.nzHeight))),"lens"==this.options.zoomType&&this.zoomLens.css({width:String(this.options.lensSize)+"px",height:String(this.options.lensSize)+"px"})),this.zoomContainer.css({top:this.nzOffset.top-this.ctOffset.top}),this.zoomContainer.css({left:this.nzOffset.left-this.ctOffset.left}),this.mouseLeft=parseInt(o.pageX-this.nzOffset.left),this.mouseTop=parseInt(o.pageY-this.nzOffset.top),"window"==this.options.zoomType&&(this.Etoppos=this.mouseTop<this.zoomLens.height()/2,this.Eboppos=this.mouseTop>this.nzHeight-this.zoomLens.height()/2-2*this.options.lensBorderSize,this.Eloppos=this.mouseLeft<0+this.zoomLens.width()/2,this.Eroppos=this.mouseLeft>this.nzWidth-this.zoomLens.width()/2-2*this.options.lensBorderSize),"inner"==this.options.zoomType&&(this.Etoppos=this.mouseTop<this.nzHeight/2/this.heightRatio,this.Eboppos=this.mouseTop>this.nzHeight-this.nzHeight/2/this.heightRatio,this.Eloppos=this.mouseLeft<0+this.nzWidth/2/this.widthRatio,this.Eroppos=this.mouseLeft>this.nzWidth-this.nzWidth/2/this.widthRatio-2*this.options.lensBorderSize),this.mouseLeft<=0||this.mouseTop<0||this.mouseLeft>this.nzWidth||this.mouseTop>this.nzHeight?this.setElements("hide"):(this.options.showLens&&(this.lensLeftPos=String(this.mouseLeft-this.zoomLens.width()/2),this.lensTopPos=String(this.mouseTop-this.zoomLens.height()/2)),this.Etoppos&&(this.lensTopPos=0),this.Eloppos&&(this.windowLeftPos=0,this.lensLeftPos=0,this.tintpos=0),"window"==this.options.zoomType&&(this.Eboppos&&(this.lensTopPos=Math.max(this.nzHeight-this.zoomLens.height()-2*this.options.lensBorderSize,0)),this.Eroppos&&(this.lensLeftPos=this.nzWidth-this.zoomLens.width()-2*this.options.lensBorderSize)),"inner"==this.options.zoomType&&(this.Eboppos&&(this.lensTopPos=Math.max(this.nzHeight-2*this.options.lensBorderSize,0)),this.Eroppos&&(this.lensLeftPos=this.nzWidth-this.nzWidth-2*this.options.lensBorderSize)),"lens"==this.options.zoomType&&(this.windowLeftPos=String(-1*((o.pageX-this.nzOffset.left)*this.widthRatio-this.zoomLens.width()/2)),this.windowTopPos=String(-1*((o.pageY-this.nzOffset.top)*this.heightRatio-this.zoomLens.height()/2)),this.zoomLens.css({backgroundPosition:this.windowLeftPos+"px "+this.windowTopPos+"px"}),this.changeBgSize&&(this.nzHeight>this.nzWidth?("lens"==this.options.zoomType&&this.zoomLens.css({"background-size":this.largeWidth/this.newvalueheight+"px "+this.largeHeight/this.newvalueheight+"px"}),this.zoomWindow.css({"background-size":this.largeWidth/this.newvalueheight+"px "+this.largeHeight/this.newvalueheight+"px"})):("lens"==this.options.zoomType&&this.zoomLens.css({"background-size":this.largeWidth/this.newvaluewidth+"px "+this.largeHeight/this.newvaluewidth+"px"}),this.zoomWindow.css({"background-size":this.largeWidth/this.newvaluewidth+"px "+this.largeHeight/this.newvaluewidth+"px"})),this.changeBgSize=!1),this.setWindowPostition(o)),this.options.tint&&"inner"!=this.options.zoomType&&this.setTintPosition(o),"window"==this.options.zoomType&&this.setWindowPostition(o),"inner"==this.options.zoomType&&this.setWindowPostition(o),this.options.showLens&&(this.fullwidth&&"lens"!=this.options.zoomType&&(this.lensLeftPos=0),this.zoomLens.css({left:this.lensLeftPos+"px",top:this.lensTopPos+"px"})))},showHideWindow:function(o){"show"==o&&(this.isWindowActive||(this.options.zoomWindowFadeIn?this.zoomWindow.stop(!0,!0,!1).fadeIn(this.options.zoomWindowFadeIn):this.zoomWindow.show(),this.isWindowActive=!0)),"hide"==o&&this.isWindowActive&&(this.options.zoomWindowFadeOut?this.zoomWindow.stop(!0,!0).fadeOut(this.options.zoomWindowFadeOut):this.zoomWindow.hide(),this.isWindowActive=!1)},showHideLens:function(o){"show"==o&&(this.isLensActive||(this.options.lensFadeIn?this.zoomLens.stop(!0,!0,!1).fadeIn(this.options.lensFadeIn):this.zoomLens.show(),this.isLensActive=!0)),"hide"==o&&this.isLensActive&&(this.options.lensFadeOut?this.zoomLens.stop(!0,!0).fadeOut(this.options.lensFadeOut):this.zoomLens.hide(),this.isLensActive=!1)},showHideTint:function(o){"show"==o&&(this.isTintActive||(this.options.zoomTintFadeIn?this.zoomTint.css({opacity:this.options.tintOpacity}).animate().stop(!0,!0).fadeIn("slow"):(this.zoomTint.css({opacity:this.options.tintOpacity}).animate(),this.zoomTint.show()),this.isTintActive=!0)),"hide"==o&&this.isTintActive&&(this.options.zoomTintFadeOut?this.zoomTint.stop(!0,!0).fadeOut(this.options.zoomTintFadeOut):this.zoomTint.hide(),this.isTintActive=!1)},setLensPostition:function(o){},setWindowPostition:function(i){var t=this;if(isNaN(t.options.zoomWindowPosition))t.externalContainer=o("#"+t.options.zoomWindowPosition),t.externalContainerWidth=t.externalContainer.width(),t.externalContainerHeight=t.externalContainer.height(),t.externalContainerOffset=t.externalContainer.offset(),t.windowOffsetTop=t.externalContainerOffset.top,t.windowOffsetLeft=t.externalContainerOffset.left;else switch(t.options.zoomWindowPosition){case 1:t.windowOffsetTop=t.options.zoomWindowOffety,t.windowOffsetLeft=+t.nzWidth;break;case 2:t.options.zoomWindowHeight>t.nzHeight&&(t.windowOffsetTop=-1*(t.options.zoomWindowHeight/2-t.nzHeight/2),t.windowOffsetLeft=t.nzWidth);break;case 3:t.windowOffsetTop=t.nzHeight-t.zoomWindow.height()-2*t.options.borderSize,t.windowOffsetLeft=t.nzWidth;break;case 4:t.windowOffsetTop=t.nzHeight,t.windowOffsetLeft=t.nzWidth;break;case 5:t.windowOffsetTop=t.nzHeight,t.windowOffsetLeft=t.nzWidth-t.zoomWindow.width()-2*t.options.borderSize;break;case 6:t.options.zoomWindowHeight>t.nzHeight&&(t.windowOffsetTop=t.nzHeight,t.windowOffsetLeft=-1*(t.options.zoomWindowWidth/2-t.nzWidth/2+2*t.options.borderSize));break;case 7:t.windowOffsetTop=t.nzHeight,t.windowOffsetLeft=0;break;case 8:t.windowOffsetTop=t.nzHeight,t.windowOffsetLeft=-1*(t.zoomWindow.width()+2*t.options.borderSize);break;case 9:t.windowOffsetTop=t.nzHeight-t.zoomWindow.height()-2*t.options.borderSize,t.windowOffsetLeft=-1*(t.zoomWindow.width()+2*t.options.borderSize);break;case 10:t.options.zoomWindowHeight>t.nzHeight&&(t.windowOffsetTop=-1*(t.options.zoomWindowHeight/2-t.nzHeight/2),t.windowOffsetLeft=-1*(t.zoomWindow.width()+2*t.options.borderSize));break;case 11:t.windowOffsetTop=t.options.zoomWindowOffety,t.windowOffsetLeft=-1*(t.zoomWindow.width()+2*t.options.borderSize);break;case 12:t.windowOffsetTop=-1*(t.zoomWindow.height()+2*t.options.borderSize),t.windowOffsetLeft=-1*(t.zoomWindow.width()+2*t.options.borderSize);break;case 13:t.windowOffsetTop=-1*(t.zoomWindow.height()+2*t.options.borderSize),t.windowOffsetLeft=0;break;case 14:t.options.zoomWindowHeight>t.nzHeight&&(t.windowOffsetTop=-1*(t.zoomWindow.height()+2*t.options.borderSize),t.windowOffsetLeft=-1*(t.options.zoomWindowWidth/2-t.nzWidth/2+2*t.options.borderSize));break;case 15:t.windowOffsetTop=-1*(t.zoomWindow.height()+2*t.options.borderSize),t.windowOffsetLeft=t.nzWidth-t.zoomWindow.width()-2*t.options.borderSize;break;case 16:t.windowOffsetTop=-1*(t.zoomWindow.height()+2*t.options.borderSize),t.windowOffsetLeft=t.nzWidth;break;default:t.windowOffsetTop=t.options.zoomWindowOffety,t.windowOffsetLeft=t.nzWidth}t.isWindowSet=!0,t.windowOffsetTop=t.windowOffsetTop+t.options.zoomWindowOffety,t.windowOffsetLeft=t.windowOffsetLeft+t.options.zoomWindowOffetx,t.zoomWindow.css({top:t.windowOffsetTop}),t.zoomWindow.css({left:t.windowOffsetLeft}),"inner"==t.options.zoomType&&(t.zoomWindow.css({top:0}),t.zoomWindow.css({left:0})),t.windowLeftPos=String(-1*((i.pageX-t.nzOffset.left)*t.widthRatio-t.zoomWindow.width()/2)),t.windowTopPos=String(-1*((i.pageY-t.nzOffset.top)*t.heightRatio-t.zoomWindow.height()/2)),t.Etoppos&&(t.windowTopPos=0),t.Eloppos&&(t.windowLeftPos=0),t.Eboppos&&(t.windowTopPos=-1*(t.largeHeight/t.currentZoomLevel-t.zoomWindow.height())),t.Eroppos&&(t.windowLeftPos=-1*(t.largeWidth/t.currentZoomLevel-t.zoomWindow.width())),t.fullheight&&(t.windowTopPos=0),t.fullwidth&&(t.windowLeftPos=0),"window"!=t.options.zoomType&&"inner"!=t.options.zoomType||(1==t.zoomLock&&(t.widthRatio<=1&&(t.windowLeftPos=0),t.heightRatio<=1&&(t.windowTopPos=0)),t.largeHeight<t.options.zoomWindowHeight&&(t.windowTopPos=0),t.largeWidth<t.options.zoomWindowWidth&&(t.windowLeftPos=0),t.options.easing?(t.xp||(t.xp=0),t.yp||(t.yp=0),t.loop||(t.loop=setInterval(function(){t.xp+=(t.windowLeftPos-t.xp)/t.options.easingAmount,t.yp+=(t.windowTopPos-t.yp)/t.options.easingAmount,t.scrollingLock?(clearInterval(t.loop),t.xp=t.windowLeftPos,t.yp=t.windowTopPos,t.xp=-1*((i.pageX-t.nzOffset.left)*t.widthRatio-t.zoomWindow.width()/2),t.yp=-1*((i.pageY-t.nzOffset.top)*t.heightRatio-t.zoomWindow.height()/2),t.changeBgSize&&(t.nzHeight>t.nzWidth?("lens"==t.options.zoomType&&t.zoomLens.css({"background-size":t.largeWidth/t.newvalueheight+"px "+t.largeHeight/t.newvalueheight+"px"}),t.zoomWindow.css({"background-size":t.largeWidth/t.newvalueheight+"px "+t.largeHeight/t.newvalueheight+"px"})):("lens"!=t.options.zoomType&&t.zoomLens.css({"background-size":t.largeWidth/t.newvaluewidth+"px "+t.largeHeight/t.newvalueheight+"px"}),t.zoomWindow.css({"background-size":t.largeWidth/t.newvaluewidth+"px "+t.largeHeight/t.newvaluewidth+"px"})),t.changeBgSize=!1),t.zoomWindow.css({backgroundPosition:t.windowLeftPos+"px "+t.windowTopPos+"px"}),t.scrollingLock=!1,t.loop=!1):(t.changeBgSize&&(t.nzHeight>t.nzWidth?("lens"==t.options.zoomType&&t.zoomLens.css({"background-size":t.largeWidth/t.newvalueheight+"px "+t.largeHeight/t.newvalueheight+"px"}),t.zoomWindow.css({"background-size":t.largeWidth/t.newvalueheight+"px "+t.largeHeight/t.newvalueheight+"px"})):("lens"!=t.options.zoomType&&t.zoomLens.css({"background-size":t.largeWidth/t.newvaluewidth+"px "+t.largeHeight/t.newvaluewidth+"px"}),t.zoomWindow.css({"background-size":t.largeWidth/t.newvaluewidth+"px "+t.largeHeight/t.newvaluewidth+"px"})),t.changeBgSize=!1),t.zoomWindow.css({backgroundPosition:t.xp+"px "+t.yp+"px"}))},16))):(t.changeBgSize&&(t.nzHeight>t.nzWidth?("lens"==t.options.zoomType&&t.zoomLens.css({"background-size":t.largeWidth/t.newvalueheight+"px "+t.largeHeight/t.newvalueheight+"px"}),t.zoomWindow.css({"background-size":t.largeWidth/t.newvalueheight+"px "+t.largeHeight/t.newvalueheight+"px"})):("lens"==t.options.zoomType&&t.zoomLens.css({"background-size":t.largeWidth/t.newvaluewidth+"px "+t.largeHeight/t.newvaluewidth+"px"}),t.largeHeight/t.newvaluewidth<t.options.zoomWindowHeight?t.zoomWindow.css({"background-size":t.largeWidth/t.newvaluewidth+"px "+t.largeHeight/t.newvaluewidth+"px"}):t.zoomWindow.css({"background-size":t.largeWidth/t.newvalueheight+"px "+t.largeHeight/t.newvalueheight+"px"})),t.changeBgSize=!1),t.zoomWindow.css({backgroundPosition:t.windowLeftPos+"px "+t.windowTopPos+"px"})))},setTintPosition:function(o){this.nzOffset=this.$elem.offset(),this.tintpos=String(-1*(o.pageX-this.nzOffset.left-this.zoomLens.width()/2)),this.tintposy=String(-1*(o.pageY-this.nzOffset.top-this.zoomLens.height()/2)),this.Etoppos&&(this.tintposy=0),this.Eloppos&&(this.tintpos=0),this.Eboppos&&(this.tintposy=-1*(this.nzHeight-this.zoomLens.height()-2*this.options.lensBorderSize)),this.Eroppos&&(this.tintpos=-1*(this.nzWidth-this.zoomLens.width()-2*this.options.lensBorderSize)),this.options.tint&&(this.fullheight&&(this.tintposy=0),this.fullwidth&&(this.tintpos=0),this.zoomTintImage.css({left:this.tintpos+"px"}),this.zoomTintImage.css({top:this.tintposy+"px"}))},swaptheimage:function(i,t){var e=this,n=new Image;e.options.loadingIcon&&(e.spinner=o("<div style=\"background: url('"+e.options.loadingIcon+"') no-repeat center;height:"+e.nzHeight+"px;width:"+e.nzWidth+'px;z-index: 2000;position: absolute; background-position: center center;"></div>'),e.$elem.after(e.spinner)),e.options.onImageSwap(e.$elem),n.onload=function(){e.largeWidth=n.width,e.largeHeight=n.height,e.zoomImage=t,void 0!==e.zoomWindow&&(e.zoomWindow.css({"background-size":e.largeWidth+"px "+e.largeHeight+"px"}),e.zoomWindow.css({"background-size":e.largeWidth+"px "+e.largeHeight+"px"}),e.swapAction(i,t))},n.src=t},swapAction:function(i,t){var e=this,n=new Image;if(n.onload=function(){e.nzHeight=n.height,e.nzWidth=n.width,e.options.onImageSwapComplete(e.$elem),e.doneCallback()},n.src=i,e.currentZoomLevel=e.options.zoomLevel,e.options.maxZoomLevel=!1,"lens"==e.options.zoomType&&e.zoomLens.css({backgroundImage:"url('"+t+"')"}),"window"==e.options.zoomType&&e.zoomWindow.css({backgroundImage:"url('"+t+"')"}),"inner"==e.options.zoomType&&e.zoomWindow.css({backgroundImage:"url('"+t+"')"}),e.currentImage=t,e.options.imageCrossfade){var s=e.$elem,h=s.clone();if(e.$elem.attr("src",i),e.$elem.after(h),h.stop(!0).fadeOut(e.options.imageCrossfade,function(){o(this).remove()}),e.$elem.width("auto").removeAttr("width"),e.$elem.height("auto").removeAttr("height"),s.fadeIn(e.options.imageCrossfade),e.options.tint&&"inner"!=e.options.zoomType){var a=e.zoomTintImage,d=a.clone();e.zoomTintImage.attr("src",t),e.zoomTintImage.after(d),d.stop(!0).fadeOut(e.options.imageCrossfade,function(){o(this).remove()}),a.fadeIn(e.options.imageCrossfade),e.zoomTint.css({height:e.$elem.height()}),e.zoomTint.css({width:e.$elem.width()})}e.zoomContainer.css("height",e.$elem.height()),e.zoomContainer.css("width",e.$elem.width()),"inner"==e.options.zoomType&&(e.options.constrainType||(e.zoomWrap.parent().css("height",e.$elem.height()),e.zoomWrap.parent().css("width",e.$elem.width()),e.zoomWindow.css("height",e.$elem.height()),e.zoomWindow.css("width",e.$elem.width()))),e.options.imageCrossfade&&(e.zoomWrap.css("height",e.$elem.height()),e.zoomWrap.css("width",e.$elem.width()))}else e.$elem.attr("src",i),e.options.tint&&(e.zoomTintImage.attr("src",t),e.zoomTintImage.attr("height",e.$elem.height()),e.zoomTintImage.css({height:e.$elem.height()}),e.zoomTint.css({height:e.$elem.height()})),e.zoomContainer.css("height",e.$elem.height()),e.zoomContainer.css("width",e.$elem.width()),e.options.imageCrossfade&&(e.zoomWrap.css("height",e.$elem.height()),e.zoomWrap.css("width",e.$elem.width()));e.options.constrainType&&("height"==e.options.constrainType&&(e.zoomContainer.css("height",e.options.constrainSize),e.zoomContainer.css("width","auto"),e.options.imageCrossfade?(e.zoomWrap.css("height",e.options.constrainSize),e.zoomWrap.css("width","auto"),e.constwidth=e.zoomWrap.width()):(e.$elem.css("height",e.options.constrainSize),e.$elem.css("width","auto"),e.constwidth=e.$elem.width()),"inner"==e.options.zoomType&&(e.zoomWrap.parent().css("height",e.options.constrainSize),e.zoomWrap.parent().css("width",e.constwidth),e.zoomWindow.css("height",e.options.constrainSize),e.zoomWindow.css("width",e.constwidth)),e.options.tint&&(e.tintContainer.css("height",e.options.constrainSize),e.tintContainer.css("width",e.constwidth),e.zoomTint.css("height",e.options.constrainSize),e.zoomTint.css("width",e.constwidth),e.zoomTintImage.css("height",e.options.constrainSize),e.zoomTintImage.css("width",e.constwidth))),"width"==e.options.constrainType&&(e.zoomContainer.css("height","auto"),e.zoomContainer.css("width",e.options.constrainSize),e.options.imageCrossfade?(e.zoomWrap.css("height","auto"),e.zoomWrap.css("width",e.options.constrainSize),e.constheight=e.zoomWrap.height()):(e.$elem.css("height","auto"),e.$elem.css("width",e.options.constrainSize),e.constheight=e.$elem.height()),"inner"==e.options.zoomType&&(e.zoomWrap.parent().css("height",e.constheight),e.zoomWrap.parent().css("width",e.options.constrainSize),e.zoomWindow.css("height",e.constheight),e.zoomWindow.css("width",e.options.constrainSize)),e.options.tint&&(e.tintContainer.css("height",e.constheight),e.tintContainer.css("width",e.options.constrainSize),e.zoomTint.css("height",e.constheight),e.zoomTint.css("width",e.options.constrainSize),e.zoomTintImage.css("height",e.constheight),e.zoomTintImage.css("width",e.options.constrainSize))))},doneCallback:function(){this.options.loadingIcon&&this.spinner.hide(),this.nzOffset=this.$elem.offset(),this.nzWidth=this.$elem.width(),this.nzHeight=this.$elem.height(),this.currentZoomLevel=this.options.zoomLevel,this.widthRatio=this.largeWidth/this.nzWidth,this.heightRatio=this.largeHeight/this.nzHeight,"window"==this.options.zoomType&&(this.nzHeight<this.options.zoomWindowWidth/this.widthRatio?lensHeight=this.nzHeight:lensHeight=String(this.options.zoomWindowHeight/this.heightRatio),this.options.zoomWindowWidth<this.options.zoomWindowWidth?lensWidth=this.nzWidth:lensWidth=this.options.zoomWindowWidth/this.widthRatio,this.zoomLens&&(this.zoomLens.css("width",lensWidth),this.zoomLens.css("height",lensHeight)))},getCurrentImage:function(){return this.zoomImage},getGalleryList:function(){var i=this;return i.gallerylist=[],i.options.gallery?o("#"+i.options.gallery+" a").each(function(){var t="";o(this).data("zoom-image")?t=o(this).data("zoom-image"):o(this).data("image")&&(t=o(this).data("image")),t==i.zoomImage?i.gallerylist.unshift({href:""+t,title:o(this).find("img").attr("title")}):i.gallerylist.push({href:""+t,title:o(this).find("img").attr("title")})}):i.gallerylist.push({href:""+i.zoomImage,title:o(this).find("img").attr("title")}),i.gallerylist},changeZoomLevel:function(o){this.scrollingLock=!0,this.newvalue=parseFloat(o).toFixed(2),newvalue=parseFloat(o).toFixed(2),maxheightnewvalue=this.largeHeight/(this.options.zoomWindowHeight/this.nzHeight*this.nzHeight),maxwidthtnewvalue=this.largeWidth/(this.options.zoomWindowWidth/this.nzWidth*this.nzWidth),"inner"!=this.options.zoomType&&(maxheightnewvalue<=newvalue?(this.heightRatio=this.largeHeight/maxheightnewvalue/this.nzHeight,this.newvalueheight=maxheightnewvalue,this.fullheight=!0):(this.heightRatio=this.largeHeight/newvalue/this.nzHeight,this.newvalueheight=newvalue,this.fullheight=!1),maxwidthtnewvalue<=newvalue?(this.widthRatio=this.largeWidth/maxwidthtnewvalue/this.nzWidth,this.newvaluewidth=maxwidthtnewvalue,this.fullwidth=!0):(this.widthRatio=this.largeWidth/newvalue/this.nzWidth,this.newvaluewidth=newvalue,this.fullwidth=!1),"lens"==this.options.zoomType&&(maxheightnewvalue<=newvalue?(this.fullwidth=!0,this.newvaluewidth=maxheightnewvalue):(this.widthRatio=this.largeWidth/newvalue/this.nzWidth,this.newvaluewidth=newvalue,this.fullwidth=!1))),"inner"==this.options.zoomType&&(maxheightnewvalue=parseFloat(this.largeHeight/this.nzHeight).toFixed(2),maxwidthtnewvalue=parseFloat(this.largeWidth/this.nzWidth).toFixed(2),newvalue>maxheightnewvalue&&(newvalue=maxheightnewvalue),newvalue>maxwidthtnewvalue&&(newvalue=maxwidthtnewvalue),maxheightnewvalue<=newvalue?(this.heightRatio=this.largeHeight/newvalue/this.nzHeight,newvalue>maxheightnewvalue?this.newvalueheight=maxheightnewvalue:this.newvalueheight=newvalue,this.fullheight=!0):(this.heightRatio=this.largeHeight/newvalue/this.nzHeight,newvalue>maxheightnewvalue?this.newvalueheight=maxheightnewvalue:this.newvalueheight=newvalue,this.fullheight=!1),maxwidthtnewvalue<=newvalue?(this.widthRatio=this.largeWidth/newvalue/this.nzWidth,newvalue>maxwidthtnewvalue?this.newvaluewidth=maxwidthtnewvalue:this.newvaluewidth=newvalue,this.fullwidth=!0):(this.widthRatio=this.largeWidth/newvalue/this.nzWidth,this.newvaluewidth=newvalue,this.fullwidth=!1)),scrcontinue=!1,"inner"==this.options.zoomType&&(this.nzWidth>this.nzHeight&&(this.newvaluewidth<=maxwidthtnewvalue?scrcontinue=!0:(scrcontinue=!1,this.fullheight=!0,this.fullwidth=!0)),this.nzHeight>this.nzWidth&&(this.newvaluewidth<=maxwidthtnewvalue?scrcontinue=!0:(scrcontinue=!1,this.fullheight=!0,this.fullwidth=!0))),"inner"!=this.options.zoomType&&(scrcontinue=!0),scrcontinue&&(this.zoomLock=0,this.changeZoom=!0,this.options.zoomWindowHeight/this.heightRatio<=this.nzHeight&&(this.currentZoomLevel=this.newvalueheight,"lens"!=this.options.zoomType&&"inner"!=this.options.zoomType&&(this.changeBgSize=!0,this.zoomLens.css({height:String(this.options.zoomWindowHeight/this.heightRatio)+"px"})),"lens"!=this.options.zoomType&&"inner"!=this.options.zoomType||(this.changeBgSize=!0)),this.options.zoomWindowWidth/this.widthRatio<=this.nzWidth&&("inner"!=this.options.zoomType&&this.newvaluewidth>this.newvalueheight&&(this.currentZoomLevel=this.newvaluewidth),"lens"!=this.options.zoomType&&"inner"!=this.options.zoomType&&(this.changeBgSize=!0,this.zoomLens.css({width:String(this.options.zoomWindowWidth/this.widthRatio)+"px"})),"lens"!=this.options.zoomType&&"inner"!=this.options.zoomType||(this.changeBgSize=!0)),"inner"==this.options.zoomType&&(this.changeBgSize=!0,this.nzWidth>this.nzHeight&&(this.currentZoomLevel=this.newvaluewidth),this.nzHeight>this.nzWidth&&(this.currentZoomLevel=this.newvaluewidth))),this.setPosition(this.currentLoc)},closeAll:function(){self.zoomWindow&&self.zoomWindow.hide(),self.zoomLens&&self.zoomLens.hide(),self.zoomTint&&self.zoomTint.hide()},changeState:function(o){"enable"==o&&(this.options.zoomEnabled=!0),"disable"==o&&(this.options.zoomEnabled=!1)}};o.fn.elevateZoom=function(i){return this.each(function(){var t=Object.create(n);t.init(i,this),o.data(this,"elevateZoom",t)})},o.fn.elevateZoom.options={zoomActivation:"hover",zoomEnabled:!0,preloading:1,zoomLevel:1,scrollZoom:!1,scrollZoomIncrement:.1,minZoomLevel:!1,maxZoomLevel:!1,easing:!1,easingAmount:12,lensSize:200,zoomWindowWidth:400,zoomWindowHeight:400,zoomWindowOffetx:0,zoomWindowOffety:0,zoomWindowPosition:1,zoomWindowBgColour:"#fff",lensFadeIn:!1,lensFadeOut:!1,debug:!1,zoomWindowFadeIn:!1,zoomWindowFadeOut:!1,zoomWindowAlwaysShow:!1,zoomTintFadeIn:!1,zoomTintFadeOut:!1,borderSize:4,showLens:!0,borderColour:"#888",lensBorderSize:1,lensBorderColour:"#000",lensShape:"square",zoomType:"window",containLensZoom:!1,lensColour:"white",lensOpacity:.4,lenszoom:!1,tint:!1,tintColour:"#333",tintOpacity:.4,gallery:!1,galleryActiveClass:"zoomGalleryActive",imageCrossfade:!1,constrainType:!1,constrainSize:!1,loadingIcon:!1,cursor:"default",responsive:!0,onComplete:o.noop,onZoomedImageLoaded:function(){},onImageSwap:o.noop,onImageSwapComplete:o.noop,zoomContainer:"body"}}(jQuery,window,document);
if(!String.prototype.endsWith){String.prototype.endsWith=function(search,this_len){if(this_len===undefined||this_len>this.length){this_len=this.length;}
return this.substring(this_len-search.length,this_len)===search;};}
if(window.NodeList&&!NodeList.prototype.forEach){NodeList.prototype.forEach=Array.prototype.forEach;}
if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,'');};}
(function($,sr){'use strict';var debounce=function(func,threshold,execAsap){var timeout;return function debounced(){var obj=this,args=arguments;function delayed(){if(!execAsap)
func.apply(obj,args);timeout=null;}
if(timeout&&timeout.val)
theme.deleteTimeout(timeout);else if(execAsap)
func.apply(obj,args);timeout=theme.requestTimeout(delayed,threshold||100);};};jQuery.fn[sr]=function(fn){return fn?this.on('resize',debounce(fn)):this.trigger(sr);};})(jQuery,'smartresize');jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d);},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b;},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b;},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b;}});(function($){$.fn.visible=function(partial,hidden,direction,container){if(this.length<1)
return;var $t=this.length>1?this.eq(0):this,isContained=typeof container!=='undefined'&&container!==null,$w=isContained?$(container):$(window),wPosition=isContained?$w.position():0,t=$t.get(0),vpWidth=$w.outerWidth(),vpHeight=$w.outerHeight(),direction=(direction)?direction:'both',clientSize=hidden===true?t.offsetWidth*t.offsetHeight:true;if(typeof t.getBoundingClientRect==='function'){var rec=t.getBoundingClientRect(),tViz=isContained?rec.top-wPosition.top>=0&&rec.top<vpHeight+wPosition.top:rec.top>=0&&rec.top<vpHeight,bViz=isContained?rec.bottom-wPosition.top>0&&rec.bottom<=vpHeight+wPosition.top:rec.bottom>0&&rec.bottom<=vpHeight,lViz=isContained?rec.left-wPosition.left>=0&&rec.left<vpWidth+wPosition.left:rec.left>=0&&rec.left<vpWidth,rViz=isContained?rec.right-wPosition.left>0&&rec.right<vpWidth+wPosition.left:rec.right>0&&rec.right<=vpWidth,vVisible=partial?tViz||bViz:tViz&&bViz,hVisible=partial?lViz||rViz:lViz&&rViz;if(direction==='both')
return clientSize&&vVisible&&hVisible;else if(direction==='vertical')
return clientSize&&vVisible;else if(direction==='horizontal')
return clientSize&&hVisible;}else{var viewTop=isContained?0:wPosition,viewBottom=viewTop+vpHeight,viewLeft=$w.scrollLeft(),viewRight=viewLeft+vpWidth,position=$t.position(),_top=position.top,_bottom=_top+$t.height(),_left=position.left,_right=_left+$t.width(),compareTop=partial===true?_bottom:_top,compareBottom=partial===true?_top:_bottom,compareLeft=partial===true?_right:_left,compareRight=partial===true?_left:_right;if(direction==='both')
return!!clientSize&&((compareBottom<=viewBottom)&&(compareTop>=viewTop))&&((compareRight<=viewRight)&&(compareLeft>=viewLeft));else if(direction==='vertical')
return!!clientSize&&((compareBottom<=viewBottom)&&(compareTop>=viewTop));else if(direction==='horizontal')
return!!clientSize&&((compareRight<=viewRight)&&(compareLeft>=viewLeft));}};})(jQuery);window.theme={};(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{rtl:js_porto_vars.rtl=='1'?true:false,rtl_browser:$('html').hasClass('browser-rtl'),ajax_url:js_porto_vars.ajax_url,request_error:js_porto_vars.request_error,change_logo:js_porto_vars.change_logo=='1'?true:false,show_sticky_header:js_porto_vars.show_sticky_header=='1'?true:false,show_sticky_header_tablet:js_porto_vars.show_sticky_header_tablet=='1'?true:false,show_sticky_header_mobile:js_porto_vars.show_sticky_header_mobile=='1'?true:false,category_ajax:js_porto_vars.category_ajax=='1'?true:false,prdctfltr_ajax:js_porto_vars.prdctfltr_ajax=='1'?true:false,container_width:parseInt(js_porto_vars.container_width),grid_gutter_width:parseInt(js_porto_vars.grid_gutter_width),screen_xl:parseInt(js_porto_vars.screen_xl),screen_xxl:parseInt(js_porto_vars.screen_xxl),slider_loop:js_porto_vars.slider_loop=='1'?true:false,slider_autoplay:js_porto_vars.slider_autoplay=='1'?true:false,slider_autoheight:js_porto_vars.slider_autoheight=='1'?true:false,slider_speed:js_porto_vars.slider_speed?js_porto_vars.slider_speed:5000,slider_nav:js_porto_vars.slider_nav=='1'?true:false,slider_nav_hover:js_porto_vars.slider_nav_hover=='1'?true:false,slider_margin:js_porto_vars.slider_margin=='1'?40:0,slider_dots:js_porto_vars.slider_dots=='1'?true:false,slider_animatein:js_porto_vars.slider_animatein?js_porto_vars.slider_animatein:'',slider_animateout:js_porto_vars.slider_animateout?js_porto_vars.slider_animateout:'',product_thumbs_count:js_porto_vars.product_thumbs_count?parseInt(js_porto_vars.product_thumbs_count,10):4,product_zoom:js_porto_vars.product_zoom=='1'?true:false,product_zoom_mobile:js_porto_vars.product_zoom_mobile=='1'?true:false,product_image_popup:js_porto_vars.product_image_popup=='1'?'fadeOut':false,innerHeight:window.innerHeight,animation_support:!$('html').hasClass('no-csstransitions')&&window.innerWidth>767,owlConfig:{rtl:js_porto_vars.rtl=='1'?true:false,loop:js_porto_vars.slider_loop=='1'?true:false,autoplay:js_porto_vars.slider_autoplay=='1'?true:false,autoHeight:js_porto_vars.slider_autoheight=='1'?true:false,autoplayTimeout:js_porto_vars.slider_speed?js_porto_vars.slider_speed:7000,autoplayHoverPause:true,lazyLoad:true,nav:js_porto_vars.slider_nav=='1'?true:false,navText:["",""],dots:js_porto_vars.slider_dots=='1'?true:false,stagePadding:(js_porto_vars.slider_nav_hover!='1'&&js_porto_vars.slider_margin=='1')?40:0,animateOut:js_porto_vars.slider_animateout?js_porto_vars.slider_animateout:'',animateIn:js_porto_vars.slider_animatein?js_porto_vars.slider_animatein:''},sticky_nav_height:0,is_device_mobile:/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent||navigator.vendor||window.opera)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test((navigator.userAgent||navigator.vendor||window.opera).substr(0,4)),getScrollbarWidth:function(){if(this.scrollbarSize===undefined){this.scrollbarSize=window.innerWidth-document.documentElement.clientWidth;}
return this.scrollbarSize;},isTablet:function(){if(window.innerWidth<992)
return true;return false;},isMobile:function(){if(window.innerWidth<=480)
return true;return false;},isIOS:function(){return['iPad Simulator','iPhone Simulator','iPod Simulator','iPad','iPhone','iPod'].includes(navigator.platform)||(navigator.userAgent.includes("Mac")&&"ontouchend"in document);},refreshVCContent:function($elements){if($elements||$(document.body).hasClass('elementor-page')){$(window).trigger('resize');}
theme.refreshStickySidebar(true);if(typeof window.vc_js=='function')
window.vc_js();$(document.body).trigger('porto_refresh_vc_content',[$elements]);},adminBarHeight:function(){if(theme.adminBarHeightNum||0===theme.adminBarHeightNum){return theme.adminBarHeightNum;}
var obj=document.getElementById('wpadminbar'),fixed_top=$('.porto-scroll-progress.fixed-top');if(fixed_top.length){theme.adminBarHeightNum=fixed_top.height();}else{theme.adminBarHeightNum=0;}
if(obj&&obj.offsetHeight&&window.innerWidth>600){theme.adminBarHeightNum+=obj.offsetHeight;}
return theme.adminBarHeightNum;},refreshStickySidebar:function(timeout,$sticky_sidebar){if(typeof $sticky_sidebar=='undefined'){$sticky_sidebar=$('.sidebar [data-plugin-sticky]');}
if($sticky_sidebar.get(0)){if(timeout){theme.requestTimeout(function(){$sticky_sidebar.trigger('recalc.pin');},400);}else{$sticky_sidebar.trigger('recalc.pin');}}},scrolltoContainer:function($container,timeout){if($container.get(0)){if(window.innerWidth<992){$('.sidebar-overlay').trigger('click');}
if(!timeout){timeout=600;}
$('html, body').stop().animate({scrollTop:$container.offset().top-theme.StickyHeader.sticky_height-theme.adminBarHeight()-theme.sticky_nav_height-18},timeout,'easeOutQuad');}},requestFrame:function(fn){var handler=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;if(!handler){return setTimeout(fn,1000/60);}
var rt=new Object()
rt.val=handler(fn);return rt;},requestTimeout:function(fn,delay){var handler=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;if(!handler){return setTimeout(fn,delay);}
var start,rt=new Object();function loop(timestamp){if(!start){start=timestamp;}
var progress=timestamp-start;progress>=delay?fn.call():rt.val=handler(loop);};rt.val=handler(loop);return rt;},deleteTimeout:function(timeoutID){if(!timeoutID){return;}
var handler=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame;if(!handler){return clearTimeout(timeoutID);}
if(timeoutID.val){return handler(timeoutID.val);}},execPluginFunction:function(functionName,context){var args=Array.prototype.slice.call(arguments,2);var namespaces=functionName.split(".");var func=namespaces.pop();for(var i=0;i<namespaces.length;i++){context=context[namespaces[i]];}
return context[func].apply(context,args);},getOptions:function(opts){if(typeof(opts)=='object'){return opts;}else if(typeof(opts)=='string'){try{return JSON.parse(opts.replace(/'/g,'"').replace(';',''));}catch(e){return{};}}else{return{};}},mergeOptions:function(obj1,obj2){var obj3={};for(var attrname in obj1){obj3[attrname]=obj1[attrname];}
for(var attrname in obj2){obj3[attrname]=obj2[attrname];}
return obj3;},intObs:function(selector,functionName,accY){var $el;if(typeof selector=='string'){$el=document.querySelectorAll(selector);}else{$el=selector;}
var intersectionObserverOptions={rootMargin:'200px'}
if(typeof accY!='undefined'){intersectionObserverOptions.rootMargin='0px 0px '+Number(accY)+'px 0px';}
var observer=new IntersectionObserver(function(entries){for(var i=0;i<entries.length;i++){var entry=entries[i];if(entry.intersectionRatio>0){var $this=$(entry.target),opts;if(typeof functionName=='string'){var pluginOptions=theme.getOptions($this.data('plugin-options'));if(pluginOptions)
opts=pluginOptions;theme.execPluginFunction(functionName,$this,opts);}else{var callback=functionName;callback.call($this);}
observer.unobserve(entry.target);}}},intersectionObserverOptions);Array.prototype.forEach.call($el,function(obj){observer.observe(obj);});},dynIntObsInit:function(selector,functionName,pluginDefaults){var $el;if(typeof selector=='string'){$el=document.querySelectorAll(selector);}else{$el=selector;}
Array.prototype.forEach.call($el,function(obj){var $this=$(obj),opts;if($this.data('observer-init')){return;}
var pluginOptions=theme.getOptions($this.data('plugin-options'));if(pluginOptions)
opts=pluginOptions;var mergedPluginDefaults=theme.mergeOptions(pluginDefaults,opts)
var intersectionObserverOptions={rootMargin:'0px 0px 200px 0px',thresholds:0}
if(mergedPluginDefaults.accY){intersectionObserverOptions.rootMargin='0px 0px '+Number(mergedPluginDefaults.accY)+'px 0px';}
var observer=new IntersectionObserver(function(entries){for(var i=0;i<entries.length;i++){var entry=entries[i];if(entry.intersectionRatio>0){theme.execPluginFunction(functionName,$this,mergedPluginDefaults);observer.unobserve(entry.target);}}},intersectionObserverOptions);observer.observe(obj);$this.data('observer-init',true);});}});if(theme.isIOS()){document.body.classList.add('ios');}}).apply(this,[window.theme,jQuery]);!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,o=i(e);o;)o=i(e=o.ownerDocument);return e}(),e=[],o=null,n=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return o||(o=function(t,o){n=t&&o?l(t,o):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach(function(t){t._checkForIntersections()})}),o},s._resetCrossOriginUpdater=function(){o=null,n=null},s.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,o){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==o[e-1]})},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var o=e.defaultView;if(o&&-1==this._monitoringDocuments.indexOf(e)){var n=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=o.setInterval(n,this.POLL_INTERVAL):(h(o,"resize",n,!0),h(e,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in o&&(s=new o.MutationObserver(n)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push(function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),c(t,"resize",n,!0)),c(e,"scroll",n,!0),s&&s.disconnect()});var u=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=u){var a=i(e);a&&this._monitorIntersections(a.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var o=this._monitoringDocuments.indexOf(e);if(-1!=o){var n=this.root&&(this.root.ownerDocument||this.root)||t;if(!this._observationTargets.some(function(t){var o=t.element.ownerDocument;if(o==e)return!0;for(;o&&o!=n;){var r=i(o);if((o=r&&r.ownerDocument)==e)return!0}return!1})){var r=this._monitoringUnsubscribes[o];if(this._monitoringDocuments.splice(o,1),this._monitoringUnsubscribes.splice(o,1),r(),e!=n){var s=i(e);s&&this._unmonitorIntersections(s.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!o||n){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(n){var i=n.element,s=u(i),h=this._rootContainsTarget(i),c=n.entry,a=t&&h&&this._computeTargetAndRootIntersection(i,s,e),l=null;this._rootContainsTarget(i)?o&&!this.root||(l=e):l={top:0,bottom:0,left:0,right:0,width:0,height:0};var f=n.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:l,intersectionRect:a});c?t&&h?this._hasCrossedThreshold(c,f)&&this._queuedEntries.push(f):c&&c.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,i,r){if("none"!=window.getComputedStyle(e).display){for(var s,h,c,a,f,d,g,m,v=i,_=p(e),b=!1;!b&&_;){var w=null,y=1==_.nodeType?window.getComputedStyle(_):{};if("none"==y.display)return null;if(_==this.root||9==_.nodeType)if(b=!0,_==this.root||_==t)o&&!this.root?!n||0==n.width&&0==n.height?(_=null,w=null,v=null):w=n:w=r;else{var I=p(_),E=I&&u(I),T=I&&this._computeTargetAndRootIntersection(I,E,r);E&&T?(_=I,w=l(E,T)):(_=null,v=null)}else{var R=_.ownerDocument;_!=R.body&&_!=R.documentElement&&"visible"!=y.overflow&&(w=u(_))}if(w&&(s=w,h=v,c=void 0,a=void 0,f=void 0,d=void 0,g=void 0,m=void 0,c=Math.max(s.top,h.top),a=Math.min(s.bottom,h.bottom),f=Math.max(s.left,h.left),d=Math.min(s.right,h.right),m=a-c,v=(g=d-f)>=0&&m>=0&&{top:c,bottom:a,left:f,right:d,width:g,height:m}||null),!v)break;_=_&&p(_)}return v}},s.prototype._getRootRect=function(){var e;if(this.root&&!d(this.root))e=u(this.root);else{var o=d(this.root)?this.root:t,n=o.documentElement,i=o.body;e={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,o){return"px"==e.unit?e.value:e.value*(o%2?t.width:t.height)/100}),o={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return o.width=o.right-o.left,o.height=o.bottom-o.top,o},s.prototype._hasCrossedThreshold=function(t,e){var o=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(o!==n)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==o||r==n||r<o!=r<n)return!0}},s.prototype._rootIsInDom=function(){return!this.root||f(t,this.root)},s.prototype._rootContainsTarget=function(e){var o=this.root&&(this.root.ownerDocument||this.root)||t;return f(o,e)&&(!this.root||o==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=r}function i(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=a(t.rootBounds),this.boundingClientRect=a(t.boundingClientRect),this.intersectionRect=a(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,o=e.width*e.height,n=this.intersectionRect,i=n.width*n.height;this.intersectionRatio=o?Number((i/o).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var o,n,i,r=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType&&9!=r.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(o=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout(function(){o(),i=null},n))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function h(t,e,o,n){"function"==typeof t.addEventListener?t.addEventListener(e,o,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,o)}function c(t,e,o,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,o,n||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,o)}function u(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function a(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function l(t,e){var o=e.top-t.top,n=e.left-t.left;return{top:o,left:n,height:e.height,width:e.width,bottom:o+e.height,right:n+e.width}}function f(t,e){for(var o=e;o;){if(o==t)return!0;o=p(o)}return!1}function p(e){var o=e.parentNode;return 9==e.nodeType&&e!=t?i(e):(o&&o.assignedSlot&&(o=o.assignedSlot.parentNode),o&&11==o.nodeType&&o.host?o.host:o)}function d(t){return t&&9===t.nodeType}}();(function($){'use strict';$.extend({browserSelector:function(){var hasTouch='ontouchstart'in window||navigator.msMaxTouchPoints;var u=navigator.userAgent,ua=u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1;},g='gecko',w='webkit',s='safari',o='opera',h=document.documentElement,b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+parseFloat(navigator.appVersion.split("MSIE")[1])):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.jQuery1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.jQuery2:'')):is('konqueror')?'konqueror':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.jQuery1:''):is('mozilla/')?g:'',is('j2me')?'mobile':is('iphone')?'iphone':is('ipod')?'ipod':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win':is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js'];var c=b.join(' ');if(theme.is_device_mobile){c+=' mobile';}
if(hasTouch){c+=' touch';}
h.className+=' '+c;var isIE11=!(window.ActiveXObject)&&"ActiveXObject"in window;if(isIE11){$('html').removeClass('gecko').addClass('ie ie11');return;}}});$.browserSelector();})(jQuery);(function(theme,$){'use strict';theme=theme||{};var instanceName='__accordion';var Accordion=function($el,opts){return this.initialize($el,opts);};Accordion.defaults={};Accordion.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},Accordion.defaults,opts,{wrapper:this.$el});return this;},build:function(){if(!$.fn.collapse){return this;}
var $el=this.options.wrapper,$collapse=$el.find('.collapse'),collapsible=$el.data('collapsible'),active_num=$el.data('active-tab');if($collapse.length>0){if($el.data('use-accordion')&&'yes'==$el.data('use-accordion')){$el.find('.collapse').attr('data-parent','#'+$el.attr('id'));}
if(collapsible=='yes'){$collapse.collapse({toggle:false,parent:'#'+$el.attr('id')});}else if(!isNaN(active_num)&&active_num==parseInt(active_num)&&$el.find('.collapse').length>active_num){$el.find('.collapse').collapse({toggle:false,parent:'#'+$el.attr('id')});$el.find('.collapse').eq(active_num-1).collapse('toggle');}else{$el.find('.collapse').collapse({parent:'#'+$el.attr('id')});}}
return this;}};$.extend(theme,{Accordion:Accordion});$.fn.themeAccordion=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new theme.Accordion($this,opts);}});};}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__accordionMenu';var AccordionMenu=function($el,opts){return this.initialize($el,opts);};AccordionMenu.defaults={};AccordionMenu.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},AccordionMenu.defaults,opts,{wrapper:this.$el});return this;},build:function(){var self=this,$el=this.options.wrapper;$el.find('li.menu-item.active').each(function(){var $this=$(this);if($this.find('> .arrow').get(0))
$this.find('> .arrow').trigger('click');});$el.on('click','.arrow',function(e){e.preventDefault();e.stopPropagation();var $this=$(this),$parent=$this.closest('li');if(typeof self.options.open_one!='undefined'){$parent.siblings('.open').children('.arrow').next().hide();$parent.siblings('.open').removeClass('open');$this.next().stop().toggle();}else{$this.next().stop().slideToggle();}
if($parent.hasClass('open')){$parent.removeClass('open');}else{$parent.addClass('open');}
return false;});return this;}};$.extend(theme,{AccordionMenu:AccordionMenu});$.fn.themeAccordionMenu=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new theme.AccordionMenu($this,opts);}});};}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__fitVideo';var FitVideo=function($el,opts){return this.initialize($el,opts);};FitVideo.defaults={};FitVideo.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},FitVideo.defaults,opts,{wrapper:this.$el});return this;},build:function(){if(!$.fn.fitVids){return this;}
var $el=this.options.wrapper;$el.fitVids();$(window).on('resize',function(){$el.fitVids();});return this;}};$.extend(theme,{FitVideo:FitVideo});$.fn.themeFitVideo=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new theme.FitVideo($this,opts);}});};}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__videobackground';var PluginVideoBackground=function($el,opts){return this.initialize($el,opts);};PluginVideoBackground.defaults={overlay:true,volume:1,playbackRate:1,muted:true,loop:true,autoplay:true,position:'50% 50%',posterType:'detect'};PluginVideoBackground.prototype={initialize:function($el,opts){this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},PluginVideoBackground.defaults,opts,{path:this.$el.data('video-path'),wrapper:this.$el});return this;},build:function(){if(!$.fn.vide||!this.options.path){return this;}
if(this.options.overlay){this.options.wrapper.prepend($('<div />').addClass('video-overlay'));}
this.options.wrapper.vide(this.options.path,this.options);return this;}};$.extend(theme,{PluginVideoBackground:PluginVideoBackground});$.fn.themePluginVideoBackground=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new PluginVideoBackground($this,opts);}});};}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__flickrZoom';var FlickrZoom=function($el,opts){return this.initialize($el,opts);};FlickrZoom.defaults={};FlickrZoom.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},FlickrZoom.defaults,opts,{wrapper:this.$el});return this;},build:function(){var $el=this.options.wrapper,links=[],i=0,$flickr_links=$el.find('.flickr_badge_image > a');$flickr_links.each(function(){var slide={},$image=$(this).find('> img');slide.src=$image.attr('src').replace('_s.','_b.');slide.title=$image.attr('title');links[i]=slide;i++;});$flickr_links.on('click',function(e){e.preventDefault();if($.fn.magnificPopup){$.magnificPopup.close();$.magnificPopup.open($.extend(true,{},theme.mfpConfig,{items:links,gallery:{enabled:true},type:'image'}),$flickr_links.index($(this)));}});return this;}};$.extend(theme,{FlickrZoom:FlickrZoom});$.fn.themeFlickrZoom=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new theme.FlickrZoom($this,opts);}});}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__lazyload';var PluginLazyLoad=function($el,opts){return this.initialize($el,opts);};PluginLazyLoad.defaults={effect:'show',appearEffect:'',appear:function(elements_left,settings){},load:function(elements_left,settings){$(this).addClass('lazy-load-loaded');}};PluginLazyLoad.prototype={initialize:function($el,opts){if(!$el.length){return this;}
if(!$.fn.lazyload){return this;}
var options=$.extend(true,{},PluginLazyLoad.defaults,opts,{});return lazyload($el,options);}};$.extend(theme,{PluginLazyLoad:PluginLazyLoad});$.fn.themePluginLazyLoad=function(opts){var $this=$(this);if($this.data(instanceName)){return this;}else{var ins=new PluginLazyLoad($.makeArray(this),opts);$this.data(instanceName,ins);}
return this;}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__masonry';var Masonry=function($el,opts){return this.initialize($el,opts);};Masonry.defaults={itemSelector:'li',isOriginLeft:!theme.rtl};Masonry.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},Masonry.defaults,opts,{wrapper:this.$el});return this;},build:function(){if(!$.fn.isotope){return this;}
var self=this,$el=this.options.wrapper,trigger_timer=null;$el.isotope(this.options);$el.isotope('on','layoutComplete',function(){if(typeof this.options.callback=='function'){this.options.callback.call();}
if($el.find('.porto-lazyload:not(.lazy-load-loaded):visible').length){$(window).trigger('scroll');}});$el.isotope('layout');self.resize();$(window).smartresize(function(){self.resize()});return this;},resize:function(){var self=this,$el=this.options.wrapper;if(self.resizeTimer){theme.deleteTimeout(self.resizeTimer);}
self.resizeTimer=theme.requestTimeout(function(){if($el.data('isotope')){$el.isotope('layout');}
delete self.resizeTimer;},600);}};$.extend(theme,{Masonry:Masonry});$.fn.themeMasonry=function(opts){return this.map(function(){var $this=$(this);imagesLoaded(this,function(){if($this.data(instanceName)){return $this.data(instanceName);}else{return new theme.Masonry($this,opts);}});});}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__toggle';var Toggle=function($el,opts){return this.initialize($el,opts);};Toggle.defaults={};Toggle.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},Toggle.defaults,opts,{wrapper:this.$el});return this;},build:function(){var $el=this.options.wrapper;if($el.hasClass('active'))
$el.find("> div.toggle-content").stop().slideDown(350,function(){$(this).attr('style','').show();});$el.on('click',"> label",function(e){var parentSection=$(this).parent(),parentWrapper=$(this).closest("div.toogle"),parentToggles=$(this).closest(".porto-toggles"),isAccordion=parentWrapper.hasClass("toogle-accordion"),toggleContent=parentSection.find("> div.toggle-content");if(isAccordion&&typeof(e.originalEvent)!="undefined"){parentWrapper.find("section.toggle.active > label").trigger("click");}
if(!parentSection.hasClass("active")){if(parentToggles.length){if(parentToggles.data('view')=='one-toggle'){parentToggles.find('.toggle').each(function(){$(this).removeClass('active');$(this).find("> div.toggle-content").stop().slideUp(350,function(){$(this).attr('style','').hide();});});}}
toggleContent.stop().slideDown(350,function(){$(this).attr('style','').show();theme.refreshVCContent(toggleContent);});parentSection.addClass("active");}else{if(!parentToggles.length||parentToggles.data('view')!='one-toggle'){toggleContent.stop().slideUp(350,function(){$(this).attr('style','').hide();});parentSection.removeClass("active");}}});return this;}};$.extend(theme,{Toggle:Toggle});$.fn.themeToggle=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new theme.Toggle($this,opts);}});}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__parallax';var Parallax=function($el,opts){return this.initialize($el,opts);};Parallax.defaults={speed:1.5,horizontalPosition:'50%',offset:0,scale:false,startOffset:7,scaleInvert:false,};Parallax.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},Parallax.defaults,opts,{wrapper:this.$el});return this;},build:function(){var self=this,$window=$(window),offset,yPos,bgpos,background;background=$('<div class="parallax-background"></div>');var bg=self.options.wrapper.data('image-src')?'url('+self.options.wrapper.data('image-src')+')':self.options.wrapper.css('background-image');background.css({'background-image':bg,'background-size':'cover','background-position':'50% 0%','position':'absolute','top':0,'left':0,'width':'100%','height':self.options.speed*100+'%'});self.options.wrapper.prepend(background);self.options.wrapper.css({'position':'relative','overflow':'hidden'});if(self.options.wrapper.attr('data-parallax-type')){self.options.parallaxType='horizontal';background.css({'background-position':'0% 50%','width':self.options.speed*100+'%','height':'100%',});}
if(self.options.scale){background.wrap('<div class="parallax-scale-wrapper"></div>');background.css({'transition':'transform 500ms ease-out'});this.scaleParallaxFunc=this.scaleParallax.bind(this);this.scaleParallaxFunc();window.addEventListener('scroll',this.scaleParallaxFunc);window.addEventListener('resize',this.scaleParallaxFunc);}
var parallaxEffectOnScrolResize=function(){var skrollr_size=100*self.options.speed,skrollr_start=-(skrollr_size-100);if(!self.options.parallaxType){background.attr("data-bottom-top","top: "+skrollr_start+"%;").attr("data-top-bottom","top: 0%;");}else{skrollr_start/=9.8;background.attr("data-bottom-top","left: "+skrollr_start+"%;").attr("data-top-bottom","left: 0%;");}}
if(!theme.is_device_mobile){parallaxEffectOnScrolResize();}else{if(self.options.enableOnMobile==true){parallaxEffectOnScrolResize();}else{self.options.wrapper.addClass('parallax-disabled');}}
return this;},scaleParallax:function(){var self=this,$window=$(window),scrollTop=$window.scrollTop(),$background=self.options.wrapper.find('.parallax-background'),elementOffset=self.options.wrapper.offset().top,currentElementOffset=(elementOffset-scrollTop),scrollPercent=Math.abs(+(currentElementOffset-$window.height())/(self.options.startOffset?self.options.startOffset:7));scrollPercent=parseInt((scrollPercent>=100)?100:scrollPercent);var currentScale=(scrollPercent/100)*50;if(!self.options.scaleInvert){$background.css({'transform':'scale(1.'+String(currentScale).padStart(2,'0')+', 1.'+String(currentScale).padStart(2,'0')+')'});}else{$background.css({'transform':'scale(1.'+String(50-currentScale).padStart(2,'0')+', 1.'+String(50-currentScale).padStart(2,'0')+')'});}},disable:function(){var self=this;if(self.options.scale){window.removeEventListener('scroll',this.scaleParallaxFunc);window.removeEventListener('resize',this.scaleParallaxFunc);}}};$.extend(theme,{Parallax:Parallax});$.fn.themeParallax=function(opts){if(typeof skrollr=='undefined'){return this;}
var obj=this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new theme.Parallax($this,opts);}});if(theme.portoSkrollr){theme.portoSkrollr.refresh();}else if(!theme.is_device_mobile){theme.portoSkrollr=skrollr.init({forceHeight:false,smoothScrolling:false,mobileCheck:function(){return theme.is_device_mobile}});}
return obj;}}).apply(this,[window.theme,jQuery]);!function(o,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(o.observeElementInViewport={})}(this,function(o){function e(o,e,t,r){if(void 0===t&&(t=function(){}),void 0===r&&(r={}),!o)throw new Error("Target element to observe should be a valid DOM Node");var n=Object.assign({},{viewport:null,modTop:"0px",modRight:"0px",modBottom:"0px",modLeft:"0px",threshold:[0]},r),i=n.viewport,f=n.modTop,s=n.modLeft,u=n.modBottom,a=n.modRight,d=n.threshold;if(!Array.isArray(d)&&"number"!=typeof d)throw new Error("threshold should be a number or an array of numbers");var p=Array.isArray(d)?d.map(function(o){return Math.floor(o%101)/100}):[Math.floor(d?d%101:0)/100],c=Math.min.apply(Math,p),m={root:i instanceof Node?i:null,rootMargin:f+" "+a+" "+u+" "+s,threshold:p},h=new IntersectionObserver(function(r,n){var i=r.filter(function(e){return e.target===o})[0],f=function(){return n.unobserve(o)};i&&(i.isInViewport=i.isIntersecting&&i.intersectionRatio>=c,i.isInViewport?e(i,f,o):t(i,f,o))},m);return h.observe(o),function(){return h.unobserve(o)}}o.observeElementInViewport=e,o.isInViewport=function(o,t){return void 0===t&&(t={}),new Promise(function(r,n){try{e(o,function(o,e){e(),r(!0)},function(o,e){e(),r(!1)},t)}catch(o){n(o)}})}});(function(theme,$){theme=theme||{};var instanceName='__inviewportstyle';var PluginInViewportStyle=function($el,opts){return this.initialize($el,opts);};PluginInViewportStyle.defaults={viewport:window,scroll_bg_scale:false,scale_extra_class:'',set_round:'',scale_bg:'#08c',threshold:[0],modTop:'-200px',modBottom:'-200px',style:{'transition':'all 1s ease-in-out'},styleIn:{'background-color':'#08c'},styleOut:{'background-color':'#fff'},};PluginInViewportStyle.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},PluginInViewportStyle.defaults,opts,{});return this;},build:function(){var self=this,el=self.$el.get(0);if(self.options.scroll_bg_scale&&'undefined'!=typeof gsap){self.$scaleObject=$('<div class="scale-expand position-absolute"></div>').addClass(self.options.scale_extra_class);self.$el.addClass('view-scale-wrapper').append(self.$scaleObject);self.$scaleObject.css('background-color',self.options.scale_bg);self.scale=true;self.scaleEventFunc=self.scaleEvent.bind(this);self.scaleEventFunc();$(window).on('scroll',self.scaleEventFunc);}else{self.$el.css(self.options.style);if(typeof window.IntersectionObserver==='function'){self.viewPort=observeElementInViewport.observeElementInViewport(el,function(){self.$el.css(self.options.styleIn);},function(){self.$el.css(self.options.styleOut);},{viewport:self.options.viewport,threshold:self.options.threshold,modTop:self.options.modTop,modBottom:self.options.modBottom})};}
return this;},scaleEvent:function(){var self=this,position=self.$el[0].getBoundingClientRect();if(self.scale&&position.top<window.innerHeight&&position.bottom>=0){gsap.set(self.$scaleObject[0],{width:"150vmax",height:"150vmax",xPercent:-50,yPercent:-50,top:"50%",left:"50%"});var scaleGsap=gsap.timeline({scrollTrigger:{trigger:self.$el[0],start:"-50%",end:"0%",scrub:2,invalidateOnRefresh:true,},defaults:{ease:"none"}});scaleGsap.fromTo(self.$scaleObject[0],{scale:0},{x:0,y:0,ease:"power3.in",scale:1});self.scale=false;}},disable:function(){var self=this;if(self.options.scroll_bg_scale){self.$el.find('.scale-expand').remove();self.$el.removeClass('view-scale-wrapper')}else{self.$el.css({'background-color':'','transition':''});self.viewPort();}}};$.extend(theme,{PluginInViewportStyle:PluginInViewportStyle});$.fn.themePluginInViewportStyle=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new PluginInViewportStyle($this,opts);}});}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';$.fn.themePin=function(options){var scrollY=0,lastScrollY=0,elements=[],disabled=false,$window=$(window),fixedSideTop=[],fixedSideBottom=[],prevDataTo=[];options=options||{};var recalculateLimits=function(){for(var i=0,len=elements.length;i<len;i++){var $this=elements[i];if(options.minWidth&&window.innerWidth<options.minWidth){if($this.parent().hasClass("pin-wrapper")){$this.unwrap();}
$this.css({width:"",left:"",top:"",position:""});if(options.activeClass){$this.removeClass(options.activeClass);}
$this.removeClass('sticky-transition');$this.removeClass('sticky-absolute');disabled=true;continue;}else{disabled=false;}
var $container=options.containerSelector?($this.closest(options.containerSelector).length?$this.closest(options.containerSelector):$(options.containerSelector)):$(document.body),offset=$this.offset(),containerOffset=$container.offset();if(typeof containerOffset=='undefined'){continue;}
var parentOffset=$this.parent().offset();if(!$this.parent().hasClass("pin-wrapper")){$this.wrap("<div class='pin-wrapper'>");if($this.hasClass('elementor-element-populated')){var $el_cont=$this.closest('.elementor-container');if($el_cont.length){var matches=$el_cont.attr('class').match(/elementor-column-gap-([a-z]*)/g);if(matches&&matches.length){var gap=matches[0].replace('elementor-column-gap-','');$this.addClass('porto-gap-'+gap);}}}}
var pad=$.extend({top:0,bottom:0},options.padding||{});var $pin=$this.parent(),pt=parseInt($pin.parent().css('padding-top')),pb=parseInt($pin.parent().css('padding-bottom'));if(options.autoInit){if($('#header').hasClass('header-side')){pad.top=theme.adminBarHeight();}else{pad.top=theme.adminBarHeight();if($('#header > .main-menu-wrap').length||!$('#header').hasClass('sticky-menu-header')){pad.top+=theme.StickyHeader.sticky_height;}}
if(typeof options.paddingOffsetTop!='undefined'){pad.top+=parseInt(options.paddingOffsetTop,10);}else{pad.top+=18;}
if(typeof options.paddingOffsetBottom!='undefined'){pad.bottom=parseInt(options.paddingOffsetBottom,10);}else{pad.bottom=0;}}
var bb=$this.css('border-bottom'),h=$this.outerHeight();$this.css('border-bottom','1px solid transparent');var o_h=$this.outerHeight()-h-1;$this.css('border-bottom',bb);$this.css({width:$this.outerWidth()<=$pin.width()?$this.outerWidth():$pin.width()});$pin.css("height",$this.outerHeight()+o_h);if((!options.autoFit&&!options.fitToBottom)||$this.outerHeight()<=$window.height()){$this.data("themePin",{pad:pad,from:(options.containerSelector?containerOffset.top:offset.top)-pad.top+pt,pb:pb,parentTop:parentOffset.top-pt,offset:o_h});}else{$this.data("themePin",{pad:pad,fromFitTop:(options.containerSelector?containerOffset.top:offset.top)-pad.top+pt,from:(options.containerSelector?containerOffset.top:offset.top)+$this.outerHeight()-window.innerHeight+pt,pb:pb,parentTop:parentOffset.top-pt,offset:o_h});}}};var onScroll=function(){if(disabled){return;}
scrollY=$window.scrollTop();var window_height=window.innerHeight||$window.height();for(var i=0,len=elements.length;i<len;i++){var $this=$(elements[i]),data=$this.data("themePin"),sidebarTop;let contentWrap=$this.closest('.porto-products-filter-body');let sidebarWrap=$this.closest('.sidebar');if(contentWrap.length&&sidebarWrap.length){if($.contains(contentWrap[0],sidebarWrap[0])&&!contentWrap.hasClass('opened')){continue;}}
if(!data||typeof data.pad=='undefined'){continue;}
var $container=options.containerSelector?($this.closest(options.containerSelector).length?$this.closest(options.containerSelector):$(options.containerSelector)):$(document.body),isFitToTop=(!options.autoFit&&!options.fitToBottom)||($this.outerHeight()+data.pad.top)<=window_height;data.end=$container.offset().top+$container.height();if(isFitToTop){data.to=$container.offset().top+$container.height()-$this.outerHeight()-data.pad.bottom-data.pb;}else{data.to=$container.offset().top+$container.height()-window_height-data.pb;data.to2=$container.height()-$this.outerHeight()-data.pad.bottom-data.pb;}
if(prevDataTo[i]===0){prevDataTo[i]=data.to;}
if(isFitToTop){var from=data.from-data.pad.bottom,to=data.to-data.pad.top-data.offset,$parent=$this.closest('.sticky-nav-wrapper'),widgetTop;if($parent.length){widgetTop=$parent.offset().top-data.pad.top;if(widgetTop>from){from=widgetTop;}}
if(typeof data.fromFitTop!='undefined'&&data.fromFitTop){from=data.fromFitTop-data.pad.bottom;}
if(from+$this.outerHeight()>data.end||from>=to){$this.css({position:"",top:"",left:""});if(options.activeClass){$this.removeClass(options.activeClass);}
$this.removeClass('sticky-transition');$this.removeClass('sticky-absolute');continue;}
if(scrollY>from&&scrollY<to){!($this.css("position")=="fixed")&&$this.css({left:$this.offset().left,top:data.pad.top}).css("position","fixed");if(options.activeClass){$this.addClass(options.activeClass);}
$this.removeClass('sticky-transition');$this.removeClass('sticky-absolute');}else if(scrollY>=to){$this.css({left:"",top:to-data.parentTop+data.pad.top}).css("position","absolute");if(options.activeClass){$this.addClass(options.activeClass);}
if($this.hasClass('sticky-absolute'))$this.addClass('sticky-transition');$this.addClass('sticky-absolute');}else{$this.css({position:"",top:"",left:""});if(options.activeClass){$this.removeClass(options.activeClass);}
$this.removeClass('sticky-transition');$this.removeClass('sticky-absolute');}}else if(options.fitToBottom){var from=data.from,to=data.to;if(data.from+window_height>data.end||data.from>=to){$this.css({position:"",top:"",bottom:"",left:""});if(options.activeClass){$this.removeClass(options.activeClass);}
$this.removeClass('sticky-transition');$this.removeClass('sticky-absolute');continue;}
if(scrollY>from&&scrollY<to){!($this.css("position")=="fixed")&&$this.css({left:$this.offset().left,bottom:data.pad.bottom,top:""}).css("position","fixed");if(options.activeClass){$this.addClass(options.activeClass);}
$this.removeClass('sticky-transition');$this.removeClass('sticky-absolute');}else if(scrollY>=to){$this.css({left:"",top:data.to2,bottom:""}).css("position","absolute");if(options.activeClass){$this.addClass(options.activeClass);}
if($this.hasClass('sticky-absolute'))$this.addClass('sticky-transition');$this.addClass('sticky-absolute');}else{$this.css({position:"",top:"",bottom:"",left:""});if(options.activeClass){$this.removeClass(options.activeClass);}
$this.removeClass('sticky-transition');$this.removeClass('sticky-absolute');}}else{var this_height=$this.outerHeight()
if(prevDataTo[i]!=data.to){if(fixedSideBottom[i]&&this_height+$this.offset().top+data.pad.bottom<scrollY+window_height){fixedSideBottom[i]=false;}}
if((this_height+data.pad.top+data.pad.bottom)>window_height||fixedSideTop[i]||fixedSideBottom[i]){var padTop=parseInt($this.parent().parent().css('padding-top'));if(scrollY+data.pad.top-padTop<=data.parentTop){$this.css({position:"",top:"",bottom:"",left:""});fixedSideTop[i]=fixedSideBottom[i]=false;if(options.activeClass){$this.removeClass(options.activeClass);}}else if(scrollY>=data.to){$this.css({left:"",top:data.to2,bottom:""}).css("position","absolute");if(options.activeClass){$this.addClass(options.activeClass);}}else{if(scrollY>=lastScrollY){if(fixedSideTop[i]){fixedSideTop[i]=false;sidebarTop=$this.offset().top-data.parentTop;$this.css({left:"",top:sidebarTop,bottom:""}).css("position","absolute");if(options.activeClass){$this.addClass(options.activeClass);}}else if(!fixedSideBottom[i]&&this_height+$this.offset().top+data.pad.bottom<scrollY+window_height){fixedSideBottom[i]=true;!($this.css("position")=="fixed")&&$this.css({left:$this.offset().left,bottom:data.pad.bottom,top:""}).css("position","fixed");if(options.activeClass){$this.addClass(options.activeClass);}}}else if(scrollY<lastScrollY){if(fixedSideBottom[i]){fixedSideBottom[i]=false;sidebarTop=$this.offset().top-data.parentTop;$this.css({left:"",top:sidebarTop,bottom:""}).css("position","absolute");if(options.activeClass){$this.addClass(options.activeClass);}}else if(!fixedSideTop[i]&&$this.offset().top>=scrollY+data.pad.top){fixedSideTop[i]=true;!($this.css("position")=="fixed")&&$this.css({left:$this.offset().left,top:data.pad.top,bottom:''}).css("position","fixed");if(options.activeClass){$this.addClass(options.activeClass);}}else if(!fixedSideBottom[i]&&fixedSideTop[i]&&$this.css('position')=='absolute'&&$this.offset().top>=scrollY+data.pad.top){fixedSideTop[i]=false;}}}}else{if(scrollY>=(data.parentTop-data.pad.top)){$this.css({position:'fixed',top:data.pad.top});}else{$this.css({position:"",top:"",bottom:"",left:""});if(options.activeClass){$this.removeClass(options.activeClass);}}
fixedSideTop[i]=fixedSideBottom[i]=false;}}
prevDataTo[i]=data.to;}
lastScrollY=scrollY;};var update=function(){recalculateLimits();onScroll();},r_timer=null;this.each(function(){var $this=$(this),data=$this.data('themePin')||{};if(data&&data.update){return;}
elements.push($this);$("img",this).one("load",function(){if(r_timer){theme.deleteTimeout(r_timer);}
r_timer=theme.requestFrame(recalculateLimits);});data.update=update;$this.data('themePin',data);fixedSideTop.push(false);fixedSideBottom.push(false);prevDataTo.push(0);});window.addEventListener('touchmove',onScroll,{passive:true});window.addEventListener('scroll',onScroll,{passive:true});recalculateLimits();if(!theme.isLoaded){$window.on('load',update);}else{update();}
$(this).on('recalc.pin',function(){recalculateLimits();onScroll();});return this;};theme=theme||{};var instanceName='__sticky';var Sticky=function($el,opts){return this.initialize($el,opts);};Sticky.defaults={autoInit:false,minWidth:767,activeClass:'sticky-active',padding:{top:0,bottom:0},offsetTop:0,offsetBottom:0,autoFit:false,fitToBottom:false};Sticky.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},Sticky.defaults,opts,{wrapper:this.$el});return this;},build:function(){if(!$.fn.themePin){return this;}
var self=this,$el=this.options.wrapper,stickyResizeTrigger;if($el.hasClass('porto-sticky-nav')){this.options.padding.top=theme.StickyHeader.sticky_height+theme.adminBarHeight();this.options.activeClass='sticky-active';this.options.containerSelector='.main-content-wrap';theme.sticky_nav_height=$el.outerHeight();if(this.options.minWidth>window.innerWidth)
theme.sticky_nav_height=0;}
$el.themePin(this.options);$(window).smartresize(function(){if(stickyResizeTrigger){clearTimeout(stickyResizeTrigger);}
stickyResizeTrigger=setTimeout(function(){$el.trigger('recalc.pin');},800);var $parent=$el.parent();$el.outerWidth($parent.width());if($el.css('position')=='fixed'){$el.css('left',$parent.offset().left);}
if($el.hasClass('porto-sticky-nav')){theme.sticky_nav_height=$el.outerHeight();if(self.options.minWidth>window.innerWidth)
theme.sticky_nav_height=0;}});return this;}};$.extend(theme,{Sticky:Sticky});$.fn.themeSticky=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){$this.trigger('recalc.pin');setTimeout(function(){$this.trigger('recalc.pin');},800);return $this.data(instanceName);}else{return new theme.Sticky($this,opts);}});}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';$(function(){$(document.body).on('click','.mobile-toggle',function(e){var $nav_panel=$('#nav-panel');if($nav_panel.length>0){if($(this).closest('.header-main').length&&$nav_panel.closest('.header-builder-p').length&&!$nav_panel.parent('.header-main').length){$nav_panel.appendTo($(this).closest('.header-main'));}else if($(this).closest('.header-main').length&&$nav_panel.closest('.wp-block-template-part').length){$nav_panel.insertAfter($(this).closest('.header-main'));}
if($nav_panel.is(':visible')&&$('#header').hasClass('sticky-header')){var h_h=$('#header').height(),p_h=$nav_panel.outerHeight();if(h_h>p_h+30){$('#header').css('height',h_h-p_h);}}
$nav_panel.stop().slideToggle();}else if($('#side-nav-panel').length>0){$('html').toggleClass('panel-opened');$('.panel-overlay').toggleClass('active');}
if($('#nav-panel .skeleton-body, #side-nav-panel .skeleton-body').length){theme.lazyload_menu(1,'mobile_menu');}
e.preventDefault();});$(document.body).on('click','.panel-overlay',function(){$('html').css('transition','margin .3s').removeClass('panel-opened');theme.requestTimeout(function(){$('html').css('transition','');},260);$(this).removeClass('active');});$(document.body).on('click','.side-nav-panel-close',function(e){e.preventDefault();$('.panel-overlay').trigger('click');});$(document.body).on('click','#side-nav-panel .mobile-tab-items .nav-item',function(e){e.preventDefault();var $this=$(this),$id=$this.attr('pane-id'),$parent=$this.closest('.mobile-tabs');if($id){$parent.find('.active').removeClass('active');$this.addClass('active');$parent.find('.mobile-tab-content [tab-id="'+$id+'"]').addClass('active');}});$(window).on('resize',function(){if(window.innerWidth>991){$('#nav-panel').hide();if($('html').hasClass('panel-opened')){$('.panel-overlay').trigger('click');}}});});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';$(function(){$(document).on('click','.blog-like, .portfolio-like',function(e){e.preventDefault();var $this=$(this),parentObj=this.parentNode,item_id=$this.attr('data-id'),is_blog=$this.hasClass('blog-like'),sendData={nonce:js_porto_vars.porto_nonce};if(is_blog){if($this.hasClass('updating')){return false;}
$this.addClass('updating').text('...');sendData.blog_id=item_id;sendData.action='porto_blog-like';}else{sendData.portfolio_id=item_id;sendData.action='porto_portfolio-like';}
$.post(theme.ajax_url,sendData,function(data){if(data){$this.remove();parentObj.innerHTML=data;if(typeof bootstrap!='undefined'){var tooltipTriggerList=[].slice.call(parentObj.querySelectorAll('[data-bs-tooltip]'));tooltipTriggerList.map(function(tooltipTriggerEl){return new bootstrap.Tooltip(tooltipTriggerEl)});}}});return false;});});}).apply(this,[window.theme,jQuery]);var scrolltotop={setting:{startline:100,scrollto:0,scrollduration:1000,fadeduration:[500,100]},controlHTML:'<img src="assets/img/up.png" style="width:40px; height:40px" />',controlattrs:{offsetx:10,offsety:10},anchorkeyword:'#top',state:{isvisible:false,shouldvisible:false},scrollup:function(){if(!this.cssfixedsupport)
this.$control.css({opacity:0});var dest=isNaN(this.setting.scrollto)?this.setting.scrollto:parseInt(this.setting.scrollto);if(typeof dest=="string"&&jQuery('#'+dest).length==1)
dest=jQuery('#'+dest).offset().top;else
dest=0;this.$body.stop().animate({scrollTop:dest},this.setting.scrollduration);},keepfixed:function(){var $window=jQuery(window);var controlx=$window.scrollLeft()+$window.width()-this.$control.width()-this.controlattrs.offsetx;var controly=$window.scrollTop()+$window.height()-this.$control.height()-this.controlattrs.offsety;this.$control.css({left:controlx+'px',top:controly+'px'});},togglecontrol:function(){var scrolltop=jQuery(window).scrollTop();if(!this.cssfixedsupport)
this.keepfixed();this.state.shouldvisible=(scrolltop>=this.setting.startline)?true:false;if(this.state.shouldvisible&&!this.state.isvisible){this.$control.stop().animate({opacity:1},this.setting.fadeduration[0]);this.state.isvisible=true;}
else if(this.state.shouldvisible==false&&this.state.isvisible){this.$control.stop().animate({opacity:0},this.setting.fadeduration[1]);this.state.isvisible=false;}},init:function(){jQuery(document).ready(function($){var mainobj=scrolltotop;var iebrws=document.all;mainobj.cssfixedsupport=!iebrws||iebrws&&document.compatMode=="CSS1Compat"&&window.XMLHttpRequest
mainobj.$body=(window.opera)?(document.compatMode=="CSS1Compat"?$('html'):$('body')):$('html,body');mainobj.$control=$('<div id="topcontrol">'+mainobj.controlHTML+'</div>').css({position:mainobj.cssfixedsupport?'fixed':'absolute',bottom:mainobj.controlattrs.offsety,opacity:0,cursor:'pointer'}).attr({title:''}).on('click',function(){mainobj.scrollup();return false;}).appendTo('body');if(document.all&&!window.XMLHttpRequest&&mainobj.$control.text()!='')
mainobj.$control.css({width:mainobj.$control.width()});mainobj.togglecontrol();$('a[href="'+mainobj.anchorkeyword+'"]').on('click',function(){mainobj.scrollup();return false;});$(window).on('scroll resize',function(e){mainobj.togglecontrol();});});}};(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{ScrollToTop:{defaults:{html:'<i class="fas fa-chevron-up"></i>',offsetx:10,offsety:0},initialize:function(html,offsetx,offsety){if($('#topcontrol').length){return this;}
this.html=(html||this.defaults.html);this.offsetx=(offsetx||this.defaults.offsetx);this.offsety=(offsety||this.defaults.offsety);this.build();return this;},build:function(){var self=this;if(typeof scrolltotop!=='undefined'){scrolltotop.controlHTML=self.html;scrolltotop.controlattrs={offsetx:self.offsetx,offsety:self.offsety};scrolltotop.init();}
return self;}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{MegaMenu:{defaults:{menu:$('.mega-menu')},initialize:function($menu){this.$menu=($menu||this.defaults.menu);this.events();return this;},popupWidth:function(){var winWidth=window.innerWidth,popupWidth=theme.bodyWidth-theme.grid_gutter_width*2;if(!$('body').hasClass('wide')){if(winWidth>=theme.container_width+theme.grid_gutter_width-1)
popupWidth=theme.container_width-theme.grid_gutter_width;else if(winWidth>=992)
popupWidth=960-theme.grid_gutter_width;else if(winWidth>=768)
popupWidth=720-theme.grid_gutter_width;}
return popupWidth;},calcMenuPosition:function(menu_obj){var menu=menu_obj,$header_container=$('#header .header-main').hasClass('elementor-section')?$('#header .header-main > .elementor-container'):($("#header .header-main .container-fluid").length?$("#header .header-main .container-fluid"):($("#header .header-main .container").length?$("#header .header-main .container"):null));if(null===$header_container||!$header_container.length){return;}
var menuContainerWidth=$header_container.outerWidth()-parseInt($header_container.css('padding-left'))-parseInt($header_container.css('padding-right'));if(menuContainerWidth<900)return;if(menu.parent().hasClass('pos-fullwidth')){menu.get(0).style.width=menuContainerWidth+'px';}
var browserWidth=theme.bodyWidth,menuLeftPos=menu.offset().left-(browserWidth-menuContainerWidth)/2;if(window.theme.rtl){menuLeftPos=theme.bodyWidth-(menu.offset().left+menu.outerWidth())-(browserWidth-menuContainerWidth)/2;}
var menuWidth=menu.width(),remainWidth=menuContainerWidth-(menuLeftPos+menuWidth),l=false;if(menuLeftPos>remainWidth&&menuLeftPos<menuWidth){l=(menuLeftPos+remainWidth)/3;}
if(remainWidth<0){l=-remainWidth;}
return l;},build:function($menu){var self=this;if(!$menu){$menu=self.$menu;}
$menu.each(function(){var $menu=$(this),$menu_container=$menu.closest('.container'),container_width=self.popupWidth();if($menu.closest('.porto-popup-menu').length){return false;}
var $menu_items=$menu.children('li.has-sub');$menu_items.each(function(){var $menu_item=$(this),$popup=$menu_item.children('.popup');if($popup.length){var popup_obj=$popup.get(0);popup_obj.style.display='block';if($menu_item.hasClass('wide')){popup_obj.style.left=0;var padding=parseInt($popup.css('padding-left'))+parseInt($popup.css('padding-right'))+
parseInt($popup.find('> .inner').css('padding-left'))+parseInt($popup.find('> .inner').css('padding-right'));var row_number=4;if($menu_item.hasClass('col-2'))row_number=2;if($menu_item.hasClass('col-3'))row_number=3;if($menu_item.hasClass('col-4'))row_number=4;if($menu_item.hasClass('col-5'))row_number=5;if($menu_item.hasClass('col-6'))row_number=6;if(window.innerWidth<992)
row_number=1;var col_length=0;$popup.find('> .inner > ul > li').each(function(){var cols=parseFloat($(this).attr('data-cols'));if(cols<=0||!cols)
cols=1;if(cols>row_number)
cols=row_number;col_length+=cols;});if(col_length>row_number)col_length=row_number;var popup_max_width=$popup.data('popup-mw')?$popup.data('popup-mw'):$popup.find('.inner').css('max-width'),col_width=container_width/row_number;if('none'!==popup_max_width&&popup_max_width<container_width){col_width=parseInt(popup_max_width)/row_number;}
$popup.find('> .inner > ul > li').each(function(){var cols=parseFloat($(this).data('cols'));if(cols<=0)
cols=1;if(cols>row_number)
cols=row_number;if($menu_item.hasClass('pos-center')||$menu_item.hasClass('pos-left')||$menu_item.hasClass('pos-right'))
this.style.width=(100/col_length*cols)+'%';else
this.style.width=(100/row_number*cols)+'%';});if($menu_item.hasClass('pos-center')){$popup.find('> .inner > ul').get(0).style.width=(col_width*col_length-padding)+'px';var left_position=$popup.offset().left-(theme.bodyWidth-col_width*col_length)/2;popup_obj.style.left='-'+left_position+'px';}else if($menu_item.hasClass('pos-left')){$popup.find('> .inner > ul').get(0).style.width=(col_width*col_length-padding)+'px';popup_obj.style.left='-15px';}else if($menu_item.hasClass('pos-right')){$popup.find('> .inner > ul').get(0).style.width=(col_width*col_length-padding)+'px';popup_obj.style.right='-15px';popup_obj.style.left='auto';}else{if(!$menu_item.hasClass('pos-fullwidth')){$popup.find('> .inner > ul').get(0).style.width=(container_width-padding)+'px';}
if(theme.rtl){popup_obj.style.right=0;popup_obj.style.left='auto';}
setTimeout(()=>{var left_position=self.calcMenuPosition($popup);if(theme.rtl){popup_obj.style.left='auto';if(left_position){popup_obj.style.right='-'+left_position+'px';}else{popup_obj.style.right='-15px';}}else{popup_obj.style.right='auto';if(left_position){popup_obj.style.left='-'+left_position+'px';}else{popup_obj.style.left='-15px';}}});}}else{if($menu_item.hasClass('pos-center')){}else if($menu_item.hasClass('pos-left')){}else if($menu_item.hasClass('pos-right')){}else{if($popup.offset().left+$popup.width()>window.innerWidth){$menu_item.addClass('pos-right');}else if($popup.find('> .inner > ul').length){var $sub_menu=$popup.find('> .inner > ul').eq(0);if($sub_menu.offset().left+$sub_menu.width()+200>window.innerWidth){$sub_menu.addClass('pos-left');}}}}
$menu_item.addClass('sub-ready');}});});return self;},events:function(){var self=this;$(window).smartresize(function(e){if(e.originalEvent){self.build();}});if(theme.isLoaded){theme.requestFrame(function(){self.build();});}else{$(window).on('load',function(){theme.requestFrame(function(){self.build();});});}
return self;}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{SidebarMenu:{defaults:{menu:$('.sidebar-menu:not(.side-menu-accordion)'),toggle:$('.widget_sidebar_menu .widget-title .toggle'),menu_toggle:$('#main-toggle-menu .menu-title')},rtl:theme.rtl,initialize:function($menu,$toggle,$menu_toggle){if(this.$menu&&this.$menu.length&&$menu&&$menu.length){this.$menu=$.uniqueSort($.merge(this.$menu,$menu));this.build();return this;}
this.$menu=($menu||this.defaults.menu);if(!this.$menu.length){return this;}
this.$toggle=($toggle||this.defaults.toggle);this.$menu_toggle=($menu_toggle||this.defaults.menu_toggle);this.events();return this;},isRightSidebar:function($menu){var flag=false;if(this.rtl){flag=!($('#main').hasClass('column2-right-sidebar')||$('#main').hasClass('column2-wide-right-sidebar'));}else{flag=$('#main').hasClass('column2-right-sidebar')||$('#main').hasClass('column2-wide-right-sidebar');}
if($menu.closest('#main-toggle-menu').length){if(this.rtl){flag=true;}else{flag=false;}}
var $header_wrapper=$menu.closest('.header-wrapper');if($header_wrapper.length&&$header_wrapper.hasClass('header-side-nav')){if(this.rtl){flag=true;}else{flag=false;}
if($('.page-wrapper').hasClass('side-nav-right')){if(this.rtl){flag=false;}else{flag=true;}}}
return flag;},popupWidth:function(){var winWidth=window.innerWidth,popupWidth=theme.bodyWidth-theme.grid_gutter_width*2;if(!$('body').hasClass('wide')){if(winWidth>=theme.container_width+theme.grid_gutter_width-1)
popupWidth=theme.container_width-theme.grid_gutter_width;else if(winWidth>=992)
popupWidth=960-theme.grid_gutter_width;else if(winWidth>=768)
popupWidth=720-theme.grid_gutter_width;}
return popupWidth;},build:function($menus){var self=this;if(!$menus){$menus=self.$menu;}
if(!$menus.length){return;}
var $parent_toggle_wrap=$menus.parent('.toggle-menu-wrap'),parent_toogle_wrap=null;if($parent_toggle_wrap.length&&$parent_toggle_wrap.is(':hidden')){parent_toogle_wrap=$parent_toggle_wrap.get(0);parent_toogle_wrap.style.display='block';parent_toogle_wrap.style.visibility='hidden';}
$menus.each(function(){var menuobj=this,$menu=$(this),container_width;if(menuobj.classList.contains('side-menu-slide')){return;}
if(window.innerWidth<992)
container_width=self.popupWidth();else{var menu_width=this.offsetWidth?this.offsetWidth:$menu.width();container_width=self.popupWidth()-menu_width-45;}
var is_right_sidebar=self.isRightSidebar($menu),$menu_items=$menu.children('li');$menu_items.each(function(){var $menu_item=$(this),$popup=$menu_item.children('.popup');if($popup.length){var popup_obj=$popup.get(0),is_opened=false;if($popup.is(':visible')){is_opened=true;}else{popup_obj.style.display='block';}
if($menu_item.hasClass('wide')){if(!$menu.hasClass('side-menu-columns')){popup_obj.style.left=0;}
var row_number=4;if($menu_item.hasClass('col-2'))row_number=2;if($menu_item.hasClass('col-3'))row_number=3;if($menu_item.hasClass('col-4'))row_number=4;if($menu_item.hasClass('col-5'))row_number=5;if($menu_item.hasClass('col-6'))row_number=6;if(window.innerWidth<992)
row_number=1;var col_length=0;$popup.find('> .inner > ul > li').each(function(){var cols=parseFloat($(this).data('cols'));if(!cols||cols<=0)
cols=1;if(cols>row_number)
cols=row_number;col_length+=cols;});if(col_length>row_number)col_length=row_number;var popup_max_width=$popup.data('popup-mw')?$popup.data('popup-mw'):$popup.find('.inner').css('max-width'),col_width=container_width/row_number;if('none'!==popup_max_width&&popup_max_width<container_width){col_width=parseInt(popup_max_width)/row_number;}
$popup.find('> .inner > ul > li').each(function(){var cols=parseFloat($(this).data('cols'));if(cols<=0)
cols=1;if(cols>row_number)
cols=row_number;if($menu_item.hasClass('pos-center')||$menu_item.hasClass('pos-left')||$menu_item.hasClass('pos-right'))
this.style.width=(100/col_length*cols)+'%';else
this.style.width=(100/row_number*cols)+'%';});popup_obj.children[0].children[0].style.width=col_width*col_length+1+'px';if(!$menu.hasClass('side-menu-columns')){if(is_right_sidebar){popup_obj.style.left='auto';popup_obj.style.right=(this.offsetWidth?this.offsetWidth:$(this).width())+'px';}else{popup_obj.style.left=(this.offsetWidth?this.offsetWidth:$(this).width())+'px';popup_obj.style.right='auto';}}}
if(!is_opened){popup_obj.style.display='none';}
if(menuobj.classList.contains('side-menu-accordion')){}else if(menuobj.classList.contains('side-menu-slide')){}else if(!$menu_item.hasClass('sub-ready')){if(!('ontouchstart'in document)&&window.innerWidth>991){$menu_item.on('mouseenter',function(){$menu_items.find('.popup').hide();$popup.show();$popup.parent().addClass('open');if(!$menu.hasClass('side-menu-columns')){let _thisTop=this.getBoundingClientRect().top;if(this.offsetParent&&(_thisTop+popup_obj.offsetHeight>theme.innerHeight)){let _top=_thisTop+popup_obj.offsetHeight-theme.innerHeight;let _top1=_thisTop-this.parentNode.getBoundingClientRect().top;if(_top1<_top){_top=_top1;}
popup_obj.style.top=-1*(_top)+'px';popup_obj.style.setProperty('--porto-sd-menu-popup-top',-1*(_top)+'px');}else{popup_obj.style.top='';popup_obj.style.setProperty('--porto-sd-menu-popup-top','');}}}).on('mouseleave',function(){$popup.hide();$popup.parent().removeClass('open');});}else{$menu_item.on('click','.arrow',function(){$popup.slideToggle();$popup.parent().toggleClass('open');});}
$menu_item.addClass('sub-ready');}}});});if($menus.hasClass('side-menu-slide')){var slideNavigation={$mainNav:$menus,$mainNavItem:$menus.find('li'),build:function(){var self=this;self.menuNav();},initSub:function($obj){var currentMenu=$obj.closest('ul'),nextMenu=$obj.parent().find('ul').first();if(nextMenu.children('.menu-item').children('.go-back').length<1){nextMenu.prepend('<li class="menu-item"><a class="go-back" href="#">'+js_porto_vars.submenu_back+'</a></li>');}
currentMenu.addClass('next-menu');nextMenu.addClass('visible');currentMenu.css({overflow:'visible','overflow-y':'visible'});if(nextMenu.outerHeight()<(nextMenu.closest('.header-main').outerHeight()-100)){nextMenu.css({height:nextMenu.outerHeight()+nextMenu.find('> li').outerHeight()});}
var nextMenuHeightDiff=nextMenu.find('> li').length*nextMenu.find('> li').outerHeight()-nextMenu.outerHeight();if(nextMenuHeightDiff>0){nextMenu.css({overflow:'hidden','overflow-y':'scroll'});}
nextMenu.css({'padding-top':nextMenuHeightDiff+'px'});},menuNav:function(){var self=this;self.$mainNav.find('.menu-item-has-children > a.nolink').removeClass('nolink').attr('href','');self.$mainNav.find('.menu-item-has-children > a:not(.go-back)').off('click').on('click',function(e){e.stopImmediatePropagation();e.preventDefault();var $this=$(this);if(js_porto_vars.lazyload_menu&&!self.$mainNav.hasClass('sub-ready')){self.initSub($this);self.$mainNav.on('sub-loaded',function(){self.initSub($this);});}else{self.initSub($this);}});}};slideNavigation.build();}
if(parent_toogle_wrap){parent_toogle_wrap.style.display='';parent_toogle_wrap.style.visibility='';}
return self;},events:function(){var self=this;self.$toggle.on('click',function(){var $widget=$(this).parent().parent();var $this=$(this);if($this.hasClass('closed')){$this.removeClass('closed');$widget.removeClass('closed');$widget.find('.sidebar-menu-wrap').stop().slideDown(400,function(){$(this).attr('style','').show();self.build();});}else{$this.addClass('closed');$widget.addClass('closed');$widget.find('.sidebar-menu-wrap').stop().slideUp(400,function(){$(this).attr('style','').hide();});}});this.$menu_toggle.on('click',function(){var $toggle_menu=$(this).parent();if($toggle_menu.hasClass('show-always')||$toggle_menu.hasClass('show-hover')){return;}
var $this=$(this);if($this.hasClass('closed')){$this.removeClass('closed');$toggle_menu.removeClass('closed');$toggle_menu.find('.toggle-menu-wrap').stop().slideDown(400,function(){$(this).attr('style','').show();});self.build();}else{$this.addClass('closed');$toggle_menu.addClass('closed');$toggle_menu.find('.toggle-menu-wrap').stop().slideUp(400,function(){$(this).attr('style','').hide();});}});if(self.$menu.hasClass('side-menu-slide')){self.$menu.on('click','.go-back',function(e){e.preventDefault();var prevMenu=$(this).closest('.next-menu'),prevMenuHeightDiff=0;if(prevMenu.length&&prevMenu.find('> li').length){prevMenuHeightDiff=prevMenu.find('> li').length*prevMenu.find('> li').outerHeight()-prevMenu.outerHeight();}
prevMenu.removeClass('next-menu');$(this).closest('ul').removeClass('visible');if(prevMenuHeightDiff>0){prevMenu.css({overflow:'hidden','overflow-y':'scroll'});}});}
if($('.sidebar-menu:not(.side-menu-accordion)').closest('[data-plugin-sticky]').length){var sidebarRefreshTimer;$(window).smartresize(function(){if(sidebarRefreshTimer){clearTimeout(sidebarRefreshTimer);}
sidebarRefreshTimer=setTimeout(function(){self.build();},800);});}else{$(window).smartresize(function(e){if(e.originalEvent){self.build();}});}
setTimeout(function(){self.build();},400);return self;}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{StickyHeader:{defaults:{header:$('#header')},initialize:function($header){this.$header=($header||this.defaults.header);this.sticky_height=0;this.sticky_pos=0;this.change_logo=theme.change_logo;if(!theme.show_sticky_header||!this.$header.length||$('.side-header-narrow-bar').length)
return this;var self=this;var $menu_wrap=self.$header.find('> .main-menu-wrap');if($menu_wrap.length){self.$menu_wrap=$menu_wrap;self.menu_height=$menu_wrap.height();}else{self.$menu_wrap=false;}
self.$header_main=self.$header.find('.header-main');if(!self.$header_main.length&&self.$header.children('.elementor-location-header').length){self.$header_main=self.$header.children('.elementor-location-header').last().addClass('header-main');}
if(!self.$header_main.length){return this;}
self.reveal=self.$header.parents('.header-wrapper').hasClass('header-reveal');self.is_sticky=false;self.reset().build().events();return self;},build:function(){var self=this;if(!self.is_sticky&&(window.innerHeight+self.header_height+theme.adminBarHeight()+parseInt(self.$header.css('border-top-width'))>=$(document).height())){return self;}
if(window.innerHeight>$(document.body).height())
window.scrollTo(0,0);var scroll_top=$(window).scrollTop(),$pageWrapper=$('.page-wrapper');if(self.$menu_wrap&&!theme.isTablet()){self.$header_main.stop().css('top',0);if(self.$header.parent().hasClass('fixed-header'))
self.$header.parent().attr('style','');if($('.page-wrapper').hasClass('sticky-scroll-up')){scroll_top-=self.sticky_height;if(scroll_top>self.sticky_pos+100){self.$header.addClass('sticky-ready');}else{self.$header.removeClass('sticky-ready');}}
if(scroll_top>self.sticky_pos){if(!self.$header.hasClass('sticky-header')&&(!$pageWrapper.hasClass('sticky-scroll-up')||($pageWrapper.hasClass('sticky-scroll-up')&&'undefined'!==typeof($pageWrapper.data('prev-scrollpos'))))){var header_height=self.$header.outerHeight();self.$header.addClass('sticky-header').css('height',header_height);self.$menu_wrap.stop().css('top',theme.adminBarHeight());var selectric=self.$header.find('.header-main .searchform select').data('selectric');if(selectric&&typeof selectric.close!='undefined')
selectric.close();if(self.$header.parent().hasClass('fixed-header')){self.$header_main.hide();self.$header.css('height','');}
if(!self.init_toggle_menu){self.init_toggle_menu=true;theme.MegaMenu.build();if($('#main-toggle-menu').length){if($('#main-toggle-menu').hasClass('show-always')){$('#main-toggle-menu').data('show-always',true);$('#main-toggle-menu').removeClass('show-always');}
$('#main-toggle-menu').addClass('closed');$('#main-toggle-menu .menu-title').addClass('closed');$('#main-toggle-menu .toggle-menu-wrap').attr('style','');}}
self.is_sticky=true;}}else{if(self.$header.hasClass('sticky-header')){self.$header.removeClass('sticky-header');self.$header.css('height','');self.$menu_wrap.stop().css('top',0);self.$header_main.show();var selectric=self.$header.find('.main-menu-wrap .searchform select').data('selectric');if(selectric&&typeof selectric.close!='undefined')
selectric.close();if(self.init_toggle_menu){self.init_toggle_menu=false;theme.MegaMenu.build();if($('#main-toggle-menu').length){if($('#main-toggle-menu').data('show-always')){$('#main-toggle-menu').addClass('show-always');$('#main-toggle-menu').removeClass('closed');$('#main-toggle-menu .menu-title').removeClass('closed');$('#main-toggle-menu .toggle-menu-wrap').attr('style','');}}}
self.is_sticky=false;}}}else{self.$header_main.show();if(self.$header.parent().hasClass('fixed-header')&&$('#wpadminbar').length&&$('#wpadminbar').css('position')=='absolute'){self.$header.parent().css('top',($('#wpadminbar').height()-scroll_top)<0?-$('#wpadminbar').height():-scroll_top);}else if(self.$header.parent().hasClass('fixed-header')){self.$header.parent().attr('style','');}else{if(self.$header.parent().hasClass('fixed-header'))
self.$header.parent().attr('style','');}
if(self.$header.hasClass('sticky-menu-header')&&!theme.isTablet()){self.$header_main.stop().css('top',0);if(self.change_logo)self.$header_main.removeClass('change-logo');self.$header_main.removeClass('sticky');self.$header.removeClass('sticky-header');self.is_sticky=false;self.sticky_height=0;}else{if(self.$menu_wrap)
self.$menu_wrap.stop().css('top',0);if($pageWrapper.hasClass('sticky-scroll-up')){scroll_top-=self.sticky_height;if(scroll_top>self.sticky_pos+100){self.$header.addClass('sticky-ready');}else{self.$header.removeClass('sticky-ready');}}
if(scroll_top>self.sticky_pos&&(!theme.isTablet()||(theme.isTablet()&&(!theme.isMobile()&&theme.show_sticky_header_tablet)||(theme.isMobile()&&theme.show_sticky_header_tablet&&theme.show_sticky_header_mobile)))){if(!self.$header.hasClass('sticky-header')&&(!$pageWrapper.hasClass('sticky-scroll-up')||($pageWrapper.hasClass('sticky-scroll-up')&&'undefined'!==typeof($pageWrapper.data('prev-scrollpos'))))){var header_height=self.$header.outerHeight();self.$header.addClass('sticky-header').css('height',header_height);self.$header_main.addClass('sticky');if(self.change_logo)self.$header_main.addClass('change-logo');self.$header_main.stop().css('top',theme.adminBarHeight());if(!self.init_toggle_menu){self.init_toggle_menu=true;theme.MegaMenu.build();if($('#main-toggle-menu').length){if($('#main-toggle-menu').hasClass('show-always')){$('#main-toggle-menu').data('show-always',true);$('#main-toggle-menu').removeClass('show-always');}
$('#main-toggle-menu').addClass('closed');$('#main-toggle-menu .menu-title').addClass('closed');$('#main-toggle-menu .toggle-menu-wrap').attr('style','');}}
self.is_sticky=true;}}else{if(self.$header.hasClass('sticky-header')){if(self.change_logo)self.$header_main.removeClass('change-logo');self.$header_main.removeClass('sticky');self.$header.removeClass('sticky-header');self.$header.css('height','');self.$header_main.stop().css('top',0);if(self.init_toggle_menu){self.init_toggle_menu=false;theme.MegaMenu.build();if($('#main-toggle-menu').length){if($('#main-toggle-menu').data('show-always')){$('#main-toggle-menu').addClass('show-always');$('#main-toggle-menu').removeClass('closed');$('#main-toggle-menu .menu-title').removeClass('closed');$('#main-toggle-menu .toggle-menu-wrap').attr('style','');}}}
self.is_sticky=false;}}}}
if(!self.$header.hasClass('header-loaded'))
self.$header.addClass('header-loaded');if(!self.$header.find('.logo').hasClass('logo-transition'))
self.$header.find('.logo').addClass('logo-transition');if(self.$header.find('.overlay-logo').get(0)&&!self.$header.find('.overlay-logo').hasClass('overlay-logo-transition'))
self.$header.find('.overlay-logo').addClass('overlay-logo-transition');return self;},reset:function(){var self=this;if(self.$header.find('.logo').hasClass('logo-transition'))
self.$header.find('.logo').removeClass('logo-transition');if(self.$header.find('.overlay-logo').get(0)&&self.$header.find('.overlay-logo').hasClass('overlay-logo-transition'))
self.$header.find('.overlay-logo').removeClass('overlay-logo-transition');if(self.$menu_wrap&&!theme.isTablet()){self.$header.addClass('sticky-header sticky-header-calc');self.$header_main.addClass('sticky');if(self.change_logo)self.$header_main.addClass('change-logo');self.sticky_height=self.$menu_wrap.height()+parseInt(self.$menu_wrap.css('padding-top'))+parseInt(self.$menu_wrap.css('padding-bottom'));if(self.change_logo)self.$header_main.removeClass('change-logo');self.$header_main.removeClass('sticky');self.$header.removeClass('sticky-header sticky-header-calc');self.header_height=self.$header.height()+parseInt(self.$header.css('margin-top'));self.menu_height=self.$menu_wrap.height()+parseInt(self.$menu_wrap.css('padding-top'))+parseInt(self.$menu_wrap.css('padding-bottom'));self.sticky_pos=(self.header_height-self.sticky_height)+parseInt($('body').css('padding-top'))+parseInt(self.$header.css('border-top-width'));if($('.banner-before-header').length){self.sticky_pos+=$('.banner-before-header').height();}
if($('.porto-block-html-top').length){self.sticky_pos+=$('.porto-block-html-top').height();}}else{self.$header.addClass('sticky-header sticky-header-calc');self.$header_main.addClass('sticky');if(self.change_logo)self.$header_main.addClass('change-logo');self.sticky_height=self.$header_main.outerHeight();if(self.change_logo)self.$header_main.removeClass('change-logo');self.$header_main.removeClass('sticky');self.$header.removeClass('sticky-header sticky-header-calc');self.header_height=self.$header.height()+parseInt(self.$header.css('margin-top'));self.main_height=self.$header_main.height();if(!(!theme.isTablet()||(theme.isTablet()&&!theme.isMobile()&&theme.show_sticky_header_tablet)||(theme.isMobile()&&theme.show_sticky_header_tablet&&theme.show_sticky_header_mobile))){self.sticky_height=0;}
self.sticky_pos=self.$header.offset().top+self.header_height-self.sticky_height-theme.adminBarHeight()+parseInt(self.$header.css('border-top-width'));}
if(self.reveal){if(self.menu_height){self.sticky_pos+=self.menu_height+30;}else{self.sticky_pos+=30;}}
if(self.sticky_pos<0){self.sticky_pos=0;}
self.init_toggle_menu=false;self.$header_main.removeAttr('style');if(!theme.isTablet()&&self.$header.hasClass('header-side')&&typeof self.$header.attr('data-plugin-sticky')!='undefined'){self.$header.css('height','');}else{self.$header.removeAttr('style');}
return self;},events:function(){var self=this,win_width=0;$(window).smartresize(function(){if(win_width!=window.innerWidth){self.reset().build();win_width=window.innerWidth;}});window.addEventListener('scroll',function(){theme.requestFrame(function(){self.build();var $pageWrapper=$('.page-wrapper');if($pageWrapper.hasClass('sticky-scroll-up')&&!$('html').hasClass('porto-search-opened')){var prevScrollPos=0,scrollTop=$(window).scrollTop();if($pageWrapper.data('prev-scrollpos')){prevScrollPos=$pageWrapper.data('prev-scrollpos');}
if(scrollTop>=prevScrollPos){self.$header.addClass('scroll-down');}else{self.$header.removeClass('scroll-down');}
$pageWrapper.data('prev-scrollpos',scrollTop);}});},{passive:true});return self;}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{SideNav:{defaults:{side_nav:$('.header-side-nav #header')},bc_pos_top:0,initialize:function($side_nav){this.$side_nav=($side_nav||this.defaults.side_nav);if(!this.$side_nav.length)
return this;var self=this;self.$side_nav.addClass('initialize');self.reset().build().events();return self;},build:function(){var self=this;var $page_top=$('.page-top'),$main=$('#main');if(theme.isTablet()){$page_top.removeClass("fixed-pos");$page_top.attr('style','');$main.attr('style','');}else{var scroll_top=$(window).scrollTop();if($page_top.length&&$page_top.outerHeight()<100&&!$('.side-header-narrow-bar-top').length){if(self.page_top_offset==theme.adminBarHeight()||self.page_top_offset<=scroll_top){if(!$page_top.hasClass("fixed-pos")){$page_top.addClass("fixed-pos");$page_top.css('top',theme.adminBarHeight());$main.css('padding-top',$page_top.outerHeight());}}else{if($page_top.hasClass("fixed-pos")){$page_top.removeClass("fixed-pos");$page_top.attr('style','');$main.attr('style','');}}}
$main.css('min-height',window.innerHeight-theme.adminBarHeight()-$('.page-top:not(.fixed-pos)').height()-$('.footer-wrapper').height());}
return self;},reset:function(){var self=this;if(theme.isTablet()){self.$side_nav.attr('style','');}else{var w_h=window.innerHeight,$side_bottom=self.$side_nav.find('.side-bottom');self.$side_nav.css({'min-height':w_h-theme.adminBarHeight(),'padding-bottom':$side_bottom.length?$side_bottom.height()+parseInt($side_bottom.css('margin-top'))+parseInt($side_bottom.css('margin-bottom')):''});var appVersion=navigator.appVersion;var webkitVersion_positionStart=appVersion.indexOf("AppleWebKit/")+12;var webkitVersion_positionEnd=webkitVersion_positionStart+3;var webkitVersion=appVersion.slice(webkitVersion_positionStart,webkitVersion_positionEnd);if(webkitVersion<537){self.$side_nav.css('-webkit-backface-visibility','hidden');self.$side_nav.css('-webkit-perspective','1000');}}
var $page_top=$('.page-top'),$main=$('#main');if($page_top.length){$page_top.removeClass("fixed-pos");$page_top.attr('style','');$main.attr('style','');self.page_top_offset=$page_top.offset().top;}
return self;},events:function(){var self=this;$(window).on('resize',function(){self.reset().build();});window.addEventListener('scroll',function(){self.build();},{passive:true});if($('.side-header-narrow-bar-top').length){if($(window).scrollTop()>theme.adminBarHeight()+$('.side-header-narrow-bar-top').height()){$('.side-header-narrow-bar-top').addClass('side-header-narrow-bar-sticky');}
window.addEventListener('scroll',function(){var scroll_top=$(this).scrollTop();if(scroll_top>theme.adminBarHeight()+$('.side-header-narrow-bar-top').height()){$('.side-header-narrow-bar-top').addClass('side-header-narrow-bar-sticky');}else{$('.side-header-narrow-bar-top').removeClass('side-header-narrow-bar-sticky');}},{passive:true});}
$('.side-header-narrow-bar .hamburguer-btn').on('click',function(){$(this).toggleClass('active');$('#header').toggleClass('side-header-visible');if($(this).closest('.side-header-narrow-bar-top').length&&!$('#header > .hamburguer-btn').length){$(this).closest('.side-header-narrow-bar-top').toggle();}});$('.hamburguer-close').on('click',function(){$('.side-header-narrow-bar .hamburguer-btn').trigger('click');});return self;}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{HashScroll:{initialize:function(){this.build().events();return this;},build:function(){var self=this;try{var hash=window.location.hash;var target=$(hash);if(target.length&&!(hash=='#review_form'||hash=='#reviews'||hash.indexOf('#comment-')!=-1)){$('html, body').delay(600).stop().animate({scrollTop:target.offset().top-theme.StickyHeader.sticky_height-theme.adminBarHeight()-theme.sticky_nav_height+1},600,'easeOutQuad');}
return self;}catch(err){return self;}},getTarget:function(href){if('#'==href||href.endsWith('#')){return false;}
var target;if(href.indexOf('#')==0){target=$(href);}else{var url=window.location.href;url=url.substring(url.indexOf('://')+3);if(url.indexOf('#')!=-1)
url=url.substring(0,url.indexOf('#'));href=href.substring(href.indexOf('://')+3);href=href.substring(href.indexOf(url)+url.length);if(href.indexOf('#')==0){target=$(href);}}
return target;},activeMenuItem:function(){var self=this;var scroll_pos=$(window).scrollTop();var $menu_items=$('.menu-item > a[href*="#"], .porto-sticky-nav .nav > li > a[href*="#"]');if($menu_items.length){$menu_items.each(function(){var $this=$(this),href=$this.attr('href'),target=self.getTarget(href);if(target&&target.get(0)){if($this.parent().is(':last-child')&&scroll_pos+window.innerHeight>=target.offset().top+target.outerHeight()){$this.parent().siblings().removeClass('active');$this.parent().addClass('active');}else{var scroll_to=target.offset().top-theme.StickyHeader.sticky_height-theme.adminBarHeight()-theme.sticky_nav_height+1,$parent=$this.parent();if(scroll_to<=scroll_pos+5){$parent.siblings().removeClass('active');$parent.addClass('active');if($parent.closest('.secondary-menu').length){$parent.closest('#header').find('.main-menu').eq(0).children('.menu-item.active').removeClass('active');}}else{$parent.removeClass('active');}}}});}
return self;},events:function(){var self=this;$('.menu-item > a[href*="#"], .porto-sticky-nav .nav > li > a[href*="#"], a[href*="#"].hash-scroll, .hash-scroll-wrap a[href*="#"]').on('click',function(e){e.preventDefault();var $this=$(this),href=$this.attr('href'),target=self.getTarget(href);if(target&&target.get(0)){var $parent=$this.parent();var scroll_to=target.offset().top-theme.StickyHeader.sticky_height-theme.adminBarHeight()-theme.sticky_nav_height+1;$('html, body').stop().animate({scrollTop:scroll_to},600,'easeOutQuad',function(){$parent.siblings().removeClass('active');$parent.addClass('active');});if($this.closest('.porto-popup-menu.opened').length){$this.closest('.porto-popup-menu.opened').children('.hamburguer-btn').trigger('click');}}else if(('#'!=href||!$this.closest('.porto-popup-menu.opened').length)&&!$this.hasClass('nolink')){window.location.href=$this.attr('href');}});var $menu_items=$('.menu-item > a[href*="#"], .porto-sticky-nav .nav > li > a[href*="#"]');$menu_items.each(function(){var rootMargin='-20% 0px -79.9% 0px',isLast=$(this).parent().is(':last-child');if(isLast){var obj=document.getElementById(this.hash.replace('#',''));if(obj&&document.body.offsetHeight-obj.offsetTop<window.innerHeight){var ratio=(window.innerHeight-document.body.offsetHeight+obj.offsetTop)/window.innerHeight*0.8;ratio=Math.round(ratio*100);rootMargin='-'+(20+ratio)+'% 0px -'+(79.9-ratio)+'% 0px';}}
var callback=function(){if(this&&typeof this[0]!='undefined'&&this[0].id){$('.menu-item > a[href*="#'+this[0].id+'"], .porto-sticky-nav .nav > li > a[href*="#'+this[0].id+'"]').parent().addClass('active').siblings().removeClass('active');}};self.scrollSpyIntObs(this.hash,callback,{rootMargin:rootMargin,thresholds:0},true,isLast,true,$menu_items,$(this).parent().index());});return self;},scrollSpyIntObs:function(selector,functionName,intObsOptions,alwaysObserve,isLast,firstLoad,$allItems,index){if(typeof IntersectionObserver=='undefined'){return this;}
var obj=document.getElementById(selector.replace('#',''));if(!obj){return this;}
var self=this;var intersectionObserverOptions={rootMargin:'0px 0px 200px 0px'}
if(Object.keys(intObsOptions).length){intersectionObserverOptions=$.extend(intersectionObserverOptions,intObsOptions);}
var observer=new IntersectionObserver(function(entries){for(var i=0;i<entries.length;i++){var entry=entries[i];if(entry.intersectionRatio>0){if(typeof functionName==='string'){var func=Function('return '+functionName)();}else{var callback=functionName;callback.call($(entry.target));}}else{if(firstLoad==false){if(isLast&&!$allItems.closest('.porto-sticky-nav').length){$allItems.filter('[href*="'+entry.target.id+'"]').parent().prev().addClass('active').siblings().removeClass('active');}}
firstLoad=false;}}},intersectionObserverOptions);observer.observe(obj);return this;}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__floatElement';var PluginFloatElement=function($el,opts){return this.initialize($el,opts);};PluginFloatElement.defaults={startPos:'top',speed:3,horizontal:false,circle:false,transition:false,transitionDelay:0,transitionDuration:500};PluginFloatElement.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},PluginFloatElement.defaults,opts,{wrapper:this.$el});return this;},build:function(){var self=this,$el=this.options.wrapper,$window=$(window),minus;if(self.options.style){$el.attr('style',self.options.style);}
if(self.options.circle){if(self.options.transition){$el.css({transition:'ease-out transform '+self.options.transitionDuration+'ms '+self.options.transitionDelay+'ms'});}
window.addEventListener('scroll',function(){self.movement(minus);},{passive:true});}else if($window.width()>767){if(self.options.startPos=='none'){minus='';}else if(self.options.startPos=='top'){$el.css({top:0});minus='';}else{$el.css({bottom:0});minus='-';}
if(self.options.transition){$el.css({transition:'ease-out transform '+self.options.transitionDuration+'ms '+self.options.transitionDelay+'ms'});}
self.movement(minus);window.addEventListener('scroll',function(){self.movement(minus);},{passive:true});if(theme.locomotiveScroll){theme.locomotiveScroll.on('scroll',function(instance){self.movement(minus,instance.scroll.y);});}}
return this;},movement:function(minus,isLocomotive=false){var self=this,$el=this.options.wrapper,$window=$(window),scrollTop=isLocomotive===false?$window.scrollTop():isLocomotive,elementOffset=$el.offset().top,currentElementOffset=(elementOffset-scrollTop);if(isLocomotive!==false){currentElementOffset=$el.offset().top;elementOffset=currentElementOffset+scrollTop;}
if(self.options.circle){$el.css({transform:'rotate('+(scrollTop*0.25)+'deg)'});}else{var scrollPercent=100*currentElementOffset/($window.height());if(elementOffset+$el.height()>=scrollTop&&elementOffset<=scrollTop+window.innerHeight){if(!self.options.horizontal){$el.css({transform:'translate3d(0, '+minus+scrollPercent/self.options.speed+'%, 0)'});}else{$el.css({transform:'translate3d('+minus+scrollPercent/self.options.speed+'%, 0, 0)'});}}}}};$.extend(theme,{PluginFloatElement:PluginFloatElement});$.fn.themePluginFloatElement=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new PluginFloatElement($this,opts);}});}}).apply(this,[window.theme,jQuery]);function porto_init($wrap){'use strict';jQuery(window).on('touchstart',function(){});if(!$wrap){$wrap=jQuery(document.body);}
var wrapObj=$wrap.get(0);$wrap.trigger('porto_init_start',[wrapObj]);(function($){if($.fn.themeAccordion){$(function(){$wrap.find('.accordion:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeAccordion(opts);});});}
if($.fn.themeAccordionMenu){$(function(){$wrap.find('.accordion-menu:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeAccordionMenu(opts);});});}
if($.fn.themeFitVideo){$(function(){$wrap.find('.fit-video:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeFitVideo(opts);});});}
if($.fn.themePluginVideoBackground){$(function(){$wrap.find('[data-plugin-video-background]:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=theme.getOptions($this.data('plugin-options'));if(pluginOptions)
opts=pluginOptions;$this.themePluginVideoBackground(opts);});});}
if($.fn.themeFlickrZoom){$(function(){$wrap.find('.wpb_flickr_widget:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeFlickrZoom(opts);});});}
if($.fn.themePluginLazyLoad){$(function(){$wrap.find('[data-plugin-lazyload]:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themePluginLazyLoad(opts);});if($wrap.find('.porto-lazyload').length){$wrap.find('.porto-lazyload').filter(function(){if($(this).data('__lazyload')||($(this).closest('.owl-carousel').length&&$(this).closest('.owl-carousel').find('.owl-item.cloned').length)){return false;}
return true;}).themePluginLazyLoad({effect:'fadeIn',effect_speed:400});if($wrap.find('.porto-lazyload').closest('.nivoSlider').length){theme.requestTimeout(function(){$wrap.find('.nivoSlider').each(function(){if($(this).find('.porto-lazyload').length){$(this).closest('.nivoSlider').find('.nivo-main-image').attr('src',$(this).closest('.nivoSlider').find('.porto-lazyload').eq(0).attr('src'));}});},100);}
if($wrap.find('.porto-lazyload').closest('.porto-carousel-wrapper').length){theme.requestTimeout(function(){$wrap.find('.porto-carousel-wrapper').each(function(){if($(this).find('.porto-lazyload:not(.lazy-load-loaded)').length){$(this).find('.slick-list').css('height','auto');}});},100);}}});}
if($.fn.themeMasonry){$(function(){$wrap.find('[data-plugin-masonry]:not(.manual)').each(function(){var $this=$(this),opts;if($this.hasClass('elementor-row')){$this.children('.elementor-column').addClass('porto-grid-item');}
var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeMasonry(opts);});$wrap.find('.posts-masonry .posts-container:not(.manual)').each(function(){var pluginOptions=$(this).data('plugin-options');if(!pluginOptions){pluginOptions={};}
pluginOptions.itemSelector='.post';$(this).themeMasonry(pluginOptions);});$wrap.find('.page-portfolios .portfolio-row:not(.manual)').each(function(){if($(this).closest('.porto-grid-container').length>0||typeof $(this).attr('data-plugin-masonry')!='undefined'){return;}
var $parent=$(this).parent(),layoutMode='masonry',options,columnWidth='.portfolio:not(.w2)',timer=null;if($parent.hasClass('portfolios-grid')){}else if($parent.hasClass('portfolios-masonry')){if(!$parent.children('.bounce-loader').length){$parent.append('<div class="bounce-loader"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>');}}
options={itemSelector:'.portfolio',layoutMode:layoutMode,callback:function(){timer&&clearTimeout(timer);timer=setTimeout(function(){if(typeof theme.FilterZoom!=='undefined'){theme.FilterZoom.initialize($('.page-portfolios'));}
$parent.addClass('portfolio-iso-active');},400);}};if(layoutMode=='masonry'){if(!$parent.find('.portfolio:not(.w2)').length)
columnWidth='.portfolio';options=$.extend(true,{},options,{masonry:{columnWidth:columnWidth}});}
$(this).themeMasonry(options);});$wrap.find('.page-members .member-row:not(.manual)').each(function(){$(this).themeMasonry({itemSelector:'.member',callback:function(){setTimeout(function(){if(typeof theme.FilterZoom!=='undefined'){theme.FilterZoom.initialize($('.page-members'));}},400);}});});});}
if($.fn.themeToggle){$(function(){$wrap.find('section.toggle:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeToggle(opts);});});}
if($.fn.themeParallax){$(function(){$wrap.find('[data-plugin-parallax]:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options'),parallaxScale=$this.attr('data-parallax-scale');if(pluginOptions)
opts=pluginOptions;if(typeof parallaxScale!=='undefined'){opts['scale']=true;if(parallaxScale=='invert'){opts['scaleInvert']=true;}}
$this.themeParallax(opts);});});}
if($.fn.themePluginInViewportStyle){$(function(){$wrap.find('[data-inviewport-style]:not(.manual)').each(function(){var $this=$(this),opts=$this.data('plugin-options');$this.themePluginInViewportStyle(opts);});});}
if($.fn.themeSticky){$(function(){$wrap.find('[data-plugin-sticky]:not(.manual), .porto-sticky:not(.manual), .porto-sticky-nav:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;if($this.is(':visible')){$this.themeSticky(opts);}});});}
if($.fn['themePluginFloatElement']){$(function(){$wrap.find('[data-plugin-float-element]:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=theme.getOptions($this.data('plugin-options'));if(pluginOptions)
opts=pluginOptions;$this.themePluginFloatElement(opts);});});}
if(typeof bootstrap!='undefined'){var tooltipTriggerList=[].slice.call(wrapObj.querySelectorAll("[data-bs-tooltip]:not(.manual), [data-toggle='tooltip']:not(.manual), .star-rating:not(.manual)"));tooltipTriggerList.map(function(tooltipTriggerEl){return new bootstrap.Tooltip(tooltipTriggerEl)});}
$wrap.find('a[data-bs-toggle="tab"]').off('shown.bs.tab').on('shown.bs.tab',function(e){$(this).parents('.nav-tabs').find('.active').removeClass('active');$(this).addClass('active').parent().addClass('active');if($(this).closest('.tabs')){var _tabCarousel=$(this).closest('.tabs').find('.tab-content>.active').find('.owl-carousel');if(!_tabCarousel.data('owl.carousel')){_tabCarousel.themeCarousel(_tabCarousel.data('plugin-options'));}}});if($.fn.vcwaypoint){$wrap.find('.vc_progress_bar').each(function(){var $this=$(this);if(!$this.find('.progress-bar-tooltip').length){return;}
$this.vcwaypoint(function(){var $tooltips=$this.find('.progress-bar-tooltip'),index=0,count=$tooltips.length;function loop(){theme.requestTimeout(function(){$tooltips.animate({opacity:1});},200);index++;if(index<count){loop();}}
loop();},{offset:'85%'});});}
if(typeof theme.initAsync=='function'){theme.initAsync($wrap,wrapObj);}else{$(document.body).on('porto_async_init',function(){theme.initAsync($wrap,wrapObj);});}})(jQuery);jQuery(document.body).trigger('porto_init',[$wrap]);}
(function(theme,$){'use strict';$(document).ready(function(){var win_width=0;$(window).smartresize(function(){if(win_width!=window.innerWidth){theme.adminBarHeightNum=null;win_width=window.innerWidth;}});if(typeof theme.ScrollToTop!=='undefined'){theme.ScrollToTop.initialize();}
setTimeout(function(){porto_init();},0);(function(){theme.bodyWidth=theme.bodyWidth||document.body.offsetWidth;if(typeof theme.MegaMenu!=='undefined'){theme.MegaMenu.initialize();}
if(typeof theme.SidebarMenu!=='undefined'){theme.SidebarMenu.initialize();$('.sidebar-menu.side-menu-accordion').themeAccordionMenu({'open_one':true});}})();(function(){if($('.porto-popup-menu').length){$('.porto-popup-menu .hamburguer-btn').on('click',function(e){e.preventDefault();var $this=$(this);if($('.porto-popup-menu-spacer').length){$('.porto-popup-menu-spacer').remove();}else{$('<div class="porto-popup-menu-spacer"></div>').insertBefore($this.parent());$('.porto-popup-menu-spacer').width($this.parent().width());}
$this.parent().toggleClass('opened');theme.requestFrame(function(){$this.toggleClass('active');});});$('.porto-popup-menu .main-menu').scrollbar();$('.porto-popup-menu').on('click','li.menu-item-has-children > a',function(e){e.preventDefault();$(this).parent().siblings('li.menu-item-has-children.opened').removeClass('opened');$(this).parent().toggleClass('opened');});}
if(typeof theme.SideNav!=='undefined'){theme.SideNav.initialize();}})();setTimeout(()=>{if(typeof theme.StickyHeader!=='undefined'){theme.StickyHeader.initialize();}
if(typeof theme.HashScroll!=='undefined'){theme.HashScroll.initialize();}});if(js_porto_vars.use_skeleton_screen.length>0&&$('.skeleton-loading').length){var dclFired=false,dclPromise=(function(){var deferred=$.Deferred();$(function(){deferred.resolve();dclFired=true;});return deferred.promise();})(),observer=false,NativeMutationObserver=window.MutationObserver||window.WebkitMutationObserver||window.MozMutationObserver;if(typeof NativeMutationObserver!='undefined'){observer=new NativeMutationObserver(function(mutationsList,observer){for(var i in mutationsList){var mutation=mutationsList[i];if(mutation.type=='childList'){$(mutation.target).trigger('skeleton:initialised');}}});}
var killObserverTrigger=setTimeout(function(){if(observer){observer.disconnect();observer=undefined;}},4000);var skeletonTimer;$('.skeleton-loading').each(function(e){var $this=$(this),skeletonInitialisedPromise=(function(){var deferred=$.Deferred();$this.on('skeleton:initialised',function(evt){if(evt.target.classList.contains('skeleton-loading')){deferred.resolve(evt);}});return deferred.promise();})(),resourcesLoadedPromise=(function(){return $.Deferred().resolve().promise();})();$.when(skeletonInitialisedPromise,resourcesLoadedPromise,dclPromise).done(function(e){var $real=$(e.target),$placeholder=$real.siblings('.skeleton-body');if(!$placeholder.length){$placeholder=$real.parent().parent().parent().find('[class="'+$real.attr('class').replace('skeleton-loading','skeleton-body')+'"]');}
porto_init($real);if($real.find('.sidebar-menu:not(.side-menu-accordion)').length){theme.SidebarMenu.initialize($real.find('.sidebar-menu:not(.side-menu-accordion)'));}
if(skeletonTimer){theme.deleteTimeout(skeletonTimer);}
$real.trigger('skeleton-loaded');theme.requestTimeout(function(){if($placeholder.length){if($placeholder.parent().hasClass('yit-wcan-container')){$placeholder.parent().remove();}else{$placeholder.remove();}}
$real.removeClass('skeleton-loading');if($real.closest('.skeleton-loading-wrap')){$real.closest('.skeleton-loading-wrap').removeClass('skeleton-loading-wrap');}
if($(document.body).hasClass('elementor-default')||$(document.body).hasClass('elementor-page')){$(window).trigger('resize');}
theme.refreshStickySidebar(false);},100);if(!$('.skeleton-loading').length){clearTimeout(killObserverTrigger);observer.disconnect();observer=undefined;}});if($this.children('script[type="text/template"]').length){var content=$(JSON.parse($this.children('script[type="text/template"]').eq(0).html()));$this.children('script[type="text/template"]').eq(0).remove();if(observer){observer.observe(this,{childList:true,subtree:false});}
$this.append(content);if(!observer){$this.trigger('skeleton:initialised');}}});}
$(document).trigger('porto_theme_init');});$(window).on('load',function(){$(document).on('click','.sidebar-toggle',function(e){e.preventDefault();var $html=$('html'),$main=$('#main'),$this=$(this);if($this.siblings('.porto-product-filters').length){if($html.hasClass('filter-sidebar-opened')){$html.removeClass('filter-sidebar-opened');$('.sidebar-overlay').removeClass('active');if($html.hasClass('sidebar-right-opened')){$html.removeClass('sidebar-right-opened');}}else{$html.removeClass('sidebar-opened');$html.addClass('filter-sidebar-opened');$('.sidebar-overlay').addClass('active');if($main.hasClass('column2-right-sidebar')||$main.hasClass('column2-wide-right-sidebar')){$html.addClass('sidebar-right-opened');}}}else{if($html.hasClass('sidebar-opened')){$html.removeClass('sidebar-opened');$('.sidebar-overlay').removeClass('active');if($html.hasClass('sidebar-right-opened')){$html.removeClass('sidebar-right-opened');}}else{$html.addClass('sidebar-opened');$('.sidebar-overlay').addClass('active');if(($main.hasClass('column2-right-sidebar')||$main.hasClass('column2-wide-right-sidebar'))&&!$this.parent('.porto-woo-product-sidebar').length){$html.addClass('sidebar-right-opened');}}}});$('.minicart-offcanvas .cart-head').on('click',function(){$(this).closest('.minicart-offcanvas').toggleClass('minicart-opened');});$('.minicart-offcanvas .minicart-overlay').on('click',function(){$(this).closest('.minicart-offcanvas').removeClass('minicart-opened');});$(document.body).on('click','.sidebar-overlay',function(){var $html=$('html');$html.removeClass('sidebar-opened');$html.removeClass('filter-sidebar-opened');$(this).removeClass('active');$html.removeClass('sidebar-right-opened');});$(document.body).on('click','.section-tabs .nav-link',function(e){e.preventDefault();var $this=$(this),nav_id=$this.data('tab'),$section_tab=$this.closest('.section-tabs'),$nav_wrap=$section_tab.children('ul.nav'),$tab_content=$section_tab.children('.tab-content');if(nav_id){$nav_wrap.find('.active').removeClass('active');$this.addClass('active').parent('.nav-item').addClass('active');$tab_content.find('>.active').removeClass('show active');$tab_content.find('>.tab-pane[id="'+nav_id+'"]').addClass('active');let _offsetHeight=$tab_content.find('>.active').get(0).offsetHeight;$tab_content.find('>.active').addClass('show');var _tabCarousel=$tab_content.find('>.active').find('.owl-carousel');if(!_tabCarousel.data('owl.carousel')){_tabCarousel.themeCarousel(_tabCarousel.data('plugin-options'));}}});$(window).on('resize',function(e){if(e.originalEvent&&window.innerWidth>991&&$('html').hasClass('sidebar-opened')){$('.sidebar-overlay').trigger('click');}});var $matchHeightObj=$('.tabs-simple .featured-box .box-content, .porto-content-box .featured-box .box-content, .vc_general.vc_cta3, .match-height');if($matchHeightObj.length){if($.fn.matchHeight){$matchHeightObj.matchHeight();}else{var script=document.createElement("script");script.addEventListener("load",function(event){$matchHeightObj.matchHeight();});script.src=js_porto_vars.ajax_loader_url.replace('/images/ajax-loader@2x.gif','/js/libs/jquery.matchHeight.min.js');script.async=true;document.body.appendChild(script);}}
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){$('.share-whatsapp').css('display','inline-block');}
$(document).ajaxComplete(function(event,xhr,options){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){$('.share-whatsapp').css('display','inline-block');}});var ua=window.navigator.userAgent,ie12=ua.indexOf('Edge/')>0;if(ie12)$('html').addClass('ie12');$(document).on('click','.portfolios-lightbox a.portfolio-link',function(e){$(this).find('.thumb-info-zoom').trigger('click');return false;});$('.porto-faqs').each(function(){if($(this).find('.faq .toggle.active').length<1){$(this).find('.faq').eq(0).find('.toggle').addClass('active');$(this).find('.faq').eq(0).find('.toggle-content').show();}});$(document).on('shown.bs.collapse','.collapse',function(){var panel=$(this);theme.refreshVCContent(panel);});$(document).on('shown.bs.tab','a[data-bs-toggle="tab"]',function(e){var panel=$($(e.target).attr('href'));theme.refreshVCContent(panel);});$('.porto-tooltip .tooltip-icon').on('click',function(){if($(this).parent().children(".tooltip-popup").css("display")=="none"){$(this).parent().children(".tooltip-popup").fadeIn(200);}else{$(this).parent().children(".tooltip-popup").fadeOut(200);}});$('.porto-tooltip .tooltip-close').on('click',function(){$(this).parent().fadeOut(200);});});}).apply(this,[window.theme,jQuery]);(function(theme,$,undefined){"use strict";$(document).ready(function(){$(window).on('vc_reload',function(){porto_init();$('.type-post').addClass('post');$('.type-portfolio').addClass('portfolio');$('.type-member').addClass('member');$('.type-block').addClass('block');});});var timelineHeightAdjust={$timeline:$('#exp-timeline'),$timelineBar:$('#exp-timeline .timeline-bar'),$firstTimelineItem:$('#exp-timeline .timeline-box').first(),$lastTimelineItem:$('#exp-timeline .timeline-box').last(),build:function(){var self=this;self.adjustHeight();},adjustHeight:function(){var self=this,calcFirstItemHeight=(self.$firstTimelineItem.outerHeight(true)/2)+5,calcLastItemHeight=(self.$lastTimelineItem.outerHeight(true)/2)+5;self.$timelineBar.css({top:calcFirstItemHeight,bottom:calcLastItemHeight});}}
if($('#exp-timeline').get(0)){var timeline_timer=null;$(window).smartresize(function(){if(timeline_timer){clearTimeout(timeline_timer);}
timeline_timer=setTimeout(function(){timelineHeightAdjust.build();},800);});timelineHeightAdjust.build();}
$('.custom-view-our-location').on('click',function(e){e.preventDefault();var this_=$(this);$('.custom-googlemap').slideDown('1000',function(){this_.delay(700).hide();});});})(window.theme,jQuery);(function(theme,$,undefined){'use strict';window.addEventListener('load',function(){theme.isLoaded=true;});$(document).ready(function(){if(typeof elementorFrontend!='undefined'){$(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addFilter('frontend/handlers/menu_anchor/scroll_top_distance',function(scrollTop){if(theme&&theme.StickyHeader&&typeof theme.sticky_nav_height!='undefined'){if(elementorFrontend.elements.$wpAdminBar.length){scrollTop+=elementorFrontend.elements.$wpAdminBar.height();}
scrollTop=scrollTop-theme.adminBarHeight()-theme.StickyHeader.sticky_height-theme.sticky_nav_height+1;}
return scrollTop;});});}});$('#footer .widget_wysija .wysija-submit:not(.btn)').addClass('btn btn-default');if($('[data-vc-parallax] .owl-carousel').length){theme.requestTimeout(function(){if(typeof window.vcParallaxSkroll=='object'){window.vcParallaxSkroll.refresh();}},200);}
if($('.page-content > .alignfull, .post-content > .alignfull').length){var initAlignFull=function(){$('.page-content > .alignfull, .post-content > .alignfull').each(function(){$(this).css('left',-1*$(this).parent().offset().left).css('right',-1*$(this).parent().offset().left).css('width',$('body').width()-(parseInt($(this).css('margin-left'),10)+parseInt($(this).css('margin-right'),10)));});};initAlignFull();$(window).smartresize(function(){initAlignFull();});}})(window.theme,jQuery);
(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{mfpConfig:{tClose:js_porto_vars.popup_close,tLoading:'<div class="porto-ajax-loading"><i class="porto-loading-icon"></i></div>',gallery:{tPrev:js_porto_vars.popup_prev,tNext:js_porto_vars.popup_next,tCounter:js_porto_vars.mfp_counter},image:{tError:js_porto_vars.mfp_img_error},ajax:{tError:js_porto_vars.mfp_ajax_error},callbacks:{open:function(){$('body').addClass('lightbox-opened');var fixed=this.st.fixedContentPos;if(fixed){$('#header.sticky-header .header-main.sticky, #header.sticky-header .main-menu-wrap, .fixed-header #header.sticky-header .header-main, .fixed-header #header.sticky-header .main-menu-wrap').css(theme.rtl_browser?'left':'right',theme.getScrollbarWidth());}
var that=$(this._lastFocusedEl);if((that.closest('.portfolios-lightbox').hasClass('with-thumbs'))&&$(document).width()>=1024){var portfolio_lightbox_thumbnails_base=that.closest('.portfolios-lightbox.with-thumbs').find('.porto-portfolios-lighbox-thumbnails').clone(),magnificPopup=$.magnificPopup.instance;$('body').prepend(portfolio_lightbox_thumbnails_base);var $portfolios_lightbox_thumbnails=$('body > .porto-portfolios-lighbox-thumbnails'),$portfolios_lightbox_thumbnails_carousel=$portfolios_lightbox_thumbnails.children('.owl-carousel');$portfolios_lightbox_thumbnails_carousel.themeCarousel($portfolios_lightbox_thumbnails_carousel.data('plugin-options'));$portfolios_lightbox_thumbnails_carousel.trigger('refresh.owl.carousel');var $carousel_items_wrapper=$portfolios_lightbox_thumbnails_carousel.find('.owl-stage');$carousel_items_wrapper.find('.owl-item').removeClass('current');$carousel_items_wrapper.find('.owl-item').eq(magnificPopup.currItem.index).addClass('current');$.magnificPopup.instance.next=function(){var magnificPopup=$.magnificPopup.instance;$.magnificPopup.proto.next.call(this);$carousel_items_wrapper.find('.owl-item').removeClass('current');$carousel_items_wrapper.find('.owl-item').eq(magnificPopup.currItem.index).addClass('current');};$.magnificPopup.instance.prev=function(){var magnificPopup=$.magnificPopup.instance;$.magnificPopup.proto.prev.call(this);$carousel_items_wrapper.find('.owl-item').removeClass('current');$carousel_items_wrapper.find('.owl-item').eq(magnificPopup.currItem.index).addClass('current');};$carousel_items_wrapper.find('.owl-item').on('click',function(){$carousel_items_wrapper.find('.owl-item').removeClass('current');$.magnificPopup.instance.goTo($(this).index());$(this).addClass('current');});}},close:function(){$('body').removeClass('lightbox-opened');var fixed=this.st.fixedContentPos;if(fixed){$('#header.sticky-header .header-main.sticky, #header.sticky-header .main-menu-wrap, .fixed-header #header.sticky-header .header-main, .fixed-header #header.sticky-header .main-menu-wrap').css(theme.rtl_browser?'left':'right','');}
$('.owl-carousel .owl-stage').each(function(){var $this=$(this),w=$this.width()+parseInt($this.css('padding-left'))+parseInt($this.css('padding-right'));$this.css({'width':w+200});setTimeout(function(){$this.css({'width':w});},0);});var that=$(this._lastFocusedEl);if((that.parents('.portfolios-lightbox').hasClass('with-thumbs'))&&$(document).width()>=1024){$(' body > .porto-portfolios-lighbox-thumbnails').remove();}}}},});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{Search:{defaults:{popup:$('.searchform-popup'),form:$('.searchform')},initialize:function($popup,$form){this.$popup=($popup||this.defaults.popup);this.$form=($form||this.defaults.form);this.form_layout=this.$form.hasClass('search-layout-overlay')?'overlay':this.$form.hasClass('search-layout-reveal')?'reveal':false;this.build().events();return this;},build:function(){var self=this;var $search_form_texts=self.$form.find('.text input'),$search_form_cats=self.$form.find('.cat');if($('.searchform .cat').get(0)&&$.fn.selectric){$('.searchform .cat').selectric({arrowButtonMarkup:'',expandToItemText:true,maxHeight:240});}
$search_form_texts.on('change',function(){var $this=$(this),val=$this.val();$search_form_texts.each(function(){if($this!=$(this))$(this).val(val);});});$search_form_cats.on('change',function(){var $this=$(this),val=$this.val();$search_form_cats.each(function(){if($this!=$(this))$(this).val(val);});});return this;},events:function(){var self=this;self.$popup.on('click',function(e){e.stopPropagation();});self.$popup.find('.search-toggle').off('click').on('click',function(e){var $this=$(this),$form=$this.next();$this.toggleClass('opened');if('overlay'==self.form_layout){$('html').toggleClass('porto-search-opened');$this.closest('.vc_row.vc_row-flex>.vc_column_container>.vc_column-inner').css('z-index','999');}else if('reveal'==self.form_layout){self.parents=[];var $element=self.$popup;while(!(($element.hasClass('elementor-container')&&!$element.parent().hasClass('elementor-inner-container'))||($element.parent().hasClass('vc_row')&&!$element.parent().hasClass('vc_inner'))||'header'==$element.parent().attr('id')||$element.parent().hasClass('header-main')||$element.parent().hasClass('header-top')||$element.parent().hasClass('header-bottom'))){$element=$element.parent();$element.addClass('position-static');self.parents.push($element);}
if('static'==$element.parent().css('position')){self.topParent=$element.parent();self.topParent.addClass('position-relative');}
$form.toggle();window.setTimeout(function(){$('body').toggleClass('porto-search-opened');},100);}else{$form.toggle();}
if($this.hasClass('opened')){$('#mini-cart.open').removeClass('open');$this.next().find('input[type="text"]').focus();if(self.$popup.find('.btn-close-search-form').length){self.$popup.parent().addClass('position-static');}}else if('reveal'==self.form_layout){self.removeFormStyle();}
e.preventDefault();e.stopPropagation();});$('html,body').on('click',function(){self.removeFormStyle();});if(!('ontouchstart'in document)){$(window).on('resize',function(){self.removeFormStyle();});}
$('.btn-close-search-form').on('click',function(e){e.preventDefault();self.removeFormStyle();});return self;},removeFormStyle:function(){this.$form.removeAttr('style');var $searchToggle=this.$popup.find('.search-toggle');$searchToggle.removeClass('opened');if('overlay'==this.form_layout){$('html').removeClass('porto-search-opened');$searchToggle.closest('.vc_row.vc_row-flex>.vc_column_container>.vc_column-inner').css('z-index','');}else if('reveal'==this.form_layout&&this.parents&&this.parents.length>=1){$('body').removeClass('porto-search-opened');this.parents.forEach($element=>{$element.removeClass('position-static');});if(this.topParent){this.topParent.removeClass('position-relative');}}
if(this.$popup.find('.btn-close-search-form').length){this.$popup.parent().removeClass('position-static');}}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__animate';var Animate=function($el,opts){return this.initialize($el,opts);};Animate.defaults={accX:0,accY:-120,delay:1,duration:1000};Animate.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,true);return this;},setOptions:function(opts){this.options=$.extend(true,{},Animate.defaults,opts,{wrapper:this.$el});return this;},build:function(){var self=this,$el=this.options.wrapper,delay=0,duration=0;if($el.data('appear-animation-svg')){$el.find('[data-appear-animation]').each(function(){var $this=$(this),opts;var pluginOptions=theme.getOptions($this.data('plugin-options'));if(pluginOptions)
opts=pluginOptions;$this.themeAnimate(opts);});return this;}
$el.addClass('appear-animation');var el_obj=$el.get(0);delay=Math.abs($el.data('appear-animation-delay')?$el.data('appear-animation-delay'):self.options.delay);duration=Math.abs($el.data('appear-animation-duration')?$el.data('appear-animation-duration'):self.options.duration);if('undefined'!==typeof $el.data('appear-animation')&&$el.data('appear-animation').includes('revealDir')){if(delay>1){el_obj.style.setProperty('--porto-reveal-animationDelay',delay+'ms');}
if(duration!=1000){el_obj.style.setProperty('--porto-reveal-animationDuration',duration+'ms');}
if($el.data('animation-reveal-clr')){el_obj.style.setProperty('--porto-reveal-clr',$el.data('animation-reveal-clr'));}}else{if(delay>1){el_obj.style.animationDelay=delay+'ms';}
if(duration!=1000){el_obj.style.animationDuration=duration+'ms';}}
$el.addClass($el.data('appear-animation')+' appear-animation-visible');return this;}};$.extend(theme,{Animate:Animate});$.fn.themeAnimate=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this;}else{return new theme.Animate($this,opts);}});};}).apply(this,[window.theme,jQuery]);(function(theme,$){theme=theme||{};var instanceName='__animatedLetters';var PluginAnimatedLetters=function($el,opts){return this.initialize($el,opts);};PluginAnimatedLetters.defaults={contentType:'letter',animationName:'typeWriter',animationSpeed:50,startDelay:500,minWindowWidth:768,letterClass:'',wordClass:''};PluginAnimatedLetters.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
var self=this;this.$el=$el;this.initialText=$el.text();this.timeoutId=null;this.setData().setOptions(opts).build().events();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},PluginAnimatedLetters.defaults,opts,{wrapper:this.$el});return this;},build:function(){var self=this,letters=self.$el.text().split('');if($(window).width()<self.options.minWindowWidth){self.$el.addClass('initialized');return this;}
if(self.options.firstLoadNoAnim){self.$el.css({visibility:'visible'});if(self.$el.closest('.owl-carousel').get(0)){setTimeout(function(){self.$el.closest('.owl-carousel').on('change.owl.carousel',function(){self.options.firstLoadNoAnim=false;self.build();});},500);}
return this;}
self.$el.addClass('initialized');self.setMinHeight();if(self.options.contentType=='letter'){self.$el.text('');if(self.options.animationName=='typeWriter'){self.$el.append('<span class="letters-wrapper"></span><span class="typeWriter"></pre>');var index=0;var timeout=function(){var st=setTimeout(function(){var letter=letters[index];self.$el.find('.letters-wrapper').append('<span class="letter '+(self.options.letterClass?self.options.letterClass+' ':'')+'">'+letter+'</span>');index++;timeout();},self.options.animationSpeed);if(index>=letters.length){clearTimeout(st);}};timeout();}else{this.timeoutId=setTimeout(function(){for(var i=0;i<letters.length;i++){var letter=letters[i];self.$el.append('<span class="letter '+(self.options.letterClass?self.options.letterClass+' ':'')+self.options.animationName+' animated" style="animation-delay: '+(i*self.options.animationSpeed)+'ms;">'+(letter==' '?'&nbsp;':letter)+'</span>');}},self.options.startDelay);}}else if(self.options.contentType=='word'){var words=self.$el.text().split(" "),delay=self.options.startDelay;self.$el.empty();$.each(words,function(i,v){self.$el.append($('<span class="animated-words-wrapper">').html('<span class="animated-words-item '+self.options.wordClass+' appear-animation" data-appear-animation="'+self.options.animationName+'" data-appear-animation-delay="'+delay+'">'+v+'&nbsp;</span>'));delay=delay+self.options.animationSpeed;});if($.isFunction($.fn['themeAnimate'])&&self.$el.find('.animated-words-item[data-appear-animation]').length){self.$el.find('[data-appear-animation]').each(function(){var $this=$(this),opts;var pluginOptions=theme.getOptions($this.data('plugin-options'));if(pluginOptions)
opts=pluginOptions;$this.themeAnimate(opts);});}
self.$el.addClass('initialized');}
return this;},setMinHeight:function(){var self=this;if(self.$el.closest('.owl-carousel').get(0)){self.$el.closest('.owl-carousel').addClass('d-block');self.$el.css('min-height',self.$el.height());self.$el.closest('.owl-carousel').removeClass('d-block');}else{self.$el.css('min-height',self.$el.height());}
return this;},destroy:function(){var self=this;self.$el.html(self.initialText).css('min-height','');if(this.timeoutId){clearTimeout(this.timeoutId);this.timeoutId=null;}
return this;},events:function(){var self=this;self.$el.on('animated.letters.destroy',function(){self.destroy();});self.$el.on('animated.letters.initialize',function(){self.build();});return this;}};$.extend(theme,{PluginAnimatedLetters:PluginAnimatedLetters});$.fn.themePluginAnimatedLetters=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new PluginAnimatedLetters($this,opts);}});}}).apply(this,[window.theme,jQuery]);if(typeof jQuery.fn.owlCarousel=='function'){(function(theme,$){'use strict';theme=theme||{};var instanceName='__carousel';var Carousel=function($el,opts){return this.initialize($el,opts);};Carousel.defaults=$.extend({},{loop:true,navText:[],themeConfig:false,lazyLoad:true,lg:0,md:0,sm:0,xs:0,single:false,rtl:theme.rtl});Carousel.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,true);return this;},setOptions:function(opts){if((opts&&opts.themeConfig)||!opts){this.options=$.extend(true,{},Carousel.defaults,theme.owlConfig,opts,{wrapper:this.$el,themeConfig:true});}else{this.options=$.extend(true,{},Carousel.defaults,opts,{wrapper:this.$el});}
return this;},calcOwlHeight:function($el){var h=0;$el.find('.owl-item.active').each(function(){if(h<$(this).height())
h=$(this).height();});$el.children('.owl-stage-outer').height(h);},build:function(){if(!$.fn.owlCarousel){return this;}
var $el=this.options.wrapper,loop=this.options.loop,lg=this.options.lg,md=this.options.md,sm=this.options.sm,xs=this.options.xs,single=this.options.single,zoom=$el.find('.zoom').filter(function(){if($(this).closest('.tb-image-type-slider').length){return false;}
return true;}).get(0),responsive={},items,count=$el.find('.owl-item').length>0?$el.find('.owl-item:not(.cloned)').length:$el.find('> *').length,fullscreen=typeof this.options.fullscreen=='undefined'?false:this.options.fullscreen;if(single){items=1;}else if(typeof this.options.responsive!='undefined'){for(var w in this.options.responsive){var number_items=Number(this.options.responsive[w]);responsive[Number(w)]={items:number_items,loop:(loop&&count>=number_items)?true:false};}}else{items=this.options.items?this.options.items:(lg?lg:1);var isResponsive=(this.options.xxl||this.options.xl||lg||md||sm||xs);if(isResponsive){if(this.options.xxl){responsive[theme.screen_xxl]={items:this.options.xxl,loop:(loop&&count>this.options.xxl)?true:false,mergeFit:this.options.mergeFit};}else if(lg&&items>lg+1){responsive[theme.screen_xxl]={items:items,loop:(loop&&count>items)?true:false,mergeFit:this.options.mergeFit};responsive[theme.screen_xl]={items:lg+1,loop:(loop&&count>lg+1)?true:false,mergeFit:this.options.mergeFit};}
if(this.options.xl){responsive[theme.screen_xl]={items:this.options.xl,loop:(loop&&count>this.options.xl)?true:false,mergeFit:this.options.mergeFit};}else if(typeof responsive[theme.screen_xl]=='undefined'&&(!lg||items!=lg)){responsive[theme.screen_xl]={items:items,loop:(loop&&count>=items)?true:false,mergeFit:this.options.mergeFit};}
if(lg)responsive[992]={items:lg,loop:(loop&&count>=lg)?true:false,mergeFit:this.options.mergeFit_lg};if(md)responsive[768]={items:md,loop:(loop&&count>md)?true:false,mergeFit:this.options.mergeFit_md};if(sm){responsive[576]={items:sm,loop:(loop&&count>sm)?true:false,mergeFit:this.options.mergeFit_sm};}else{if(xs&&xs>1){responsive[576]={items:xs,loop:(loop&&count>xs)?true:false,mergeFit:this.options.mergeFit_sm};}else{responsive[576]={items:1,mergeFit:false};}}
if(xs){responsive[0]={items:xs,loop:(loop&&count>xs)?true:false,mergeFit:this.options.mergeFit_xs};}else{responsive[0]={items:1};}}}
if(!$el.hasClass('show-nav-title')&&this.options.themeConfig&&theme.slider_nav&&theme.slider_nav_hover){$el.addClass('show-nav-hover');}
this.options=$.extend(true,{},this.options,{items:items,loop:(loop&&count>items)?true:false,responsive:responsive,onInitialized:function(){if($el.hasClass('stage-margin')){$el.find('.owl-stage-outer').css({'margin-left':this.options.stagePadding,'margin-right':this.options.stagePadding});}
var heading_cls='.porto-u-heading, .vc_custom_heading, .slider-title, .elementor-widget-heading, .porto-heading';if($el.hasClass('show-dots-title')&&($el.prev(heading_cls).length||$el.closest('.slider-wrapper').prev(heading_cls).length||$el.closest('.porto-recent-posts').prev(heading_cls).length||$el.closest('.elementor-widget-porto_recent_posts, .elementor-section').prev(heading_cls).length)){var $obj=$el.prev(heading_cls);if(!$obj.length){$obj=$el.closest('.slider-wrapper').prev(heading_cls);}
if(!$obj.length){$obj=$el.closest('.porto-recent-posts').prev(heading_cls);}
if(!$obj.length){$obj=$el.closest('.elementor-widget-porto_recent_posts, .elementor-section').prev(heading_cls);}
try{var innerWidth=$obj.addClass('w-auto').css('display','inline-block').width();$obj.removeClass('w-auto').css('display','');if(innerWidth+15+$el.find('.owl-dots').width()<=$obj.width()){$el.find('.owl-dots').css(($('body').hasClass('rtl')?'right':'left'),innerWidth+15+($el.width()-$obj.width())/2);$el.find('.owl-dots').css('top',-1*$obj.height()/2-parseInt($obj.css('margin-bottom'))-$el.find('.owl-dots').height()/2+2);}else{$el.find('.owl-dots').css('position','static');}}catch(e){}}}});if(this.options.autoHeight){var thisobj=this;$(window).on('resize',function(){thisobj.calcOwlHeight($el);});if(theme.isLoaded){setTimeout(function(){thisobj.calcOwlHeight($el);},100);}else{$(window).on('load',function(){thisobj.calcOwlHeight($el);});}}
var links=false;if(zoom){links=[];var i=0;$el.find('.zoom').each(function(){var slide={},$zoom=$(this);slide.src=$zoom.data('src')?$zoom.data('src'):$zoom.data('mfp-src');slide.title=$zoom.data('title');links[i]=slide;$zoom.data('index',i);i++;});}
if($el.hasClass('show-nav-title')){this.options.stagePadding=0;}else{if(this.options.themeConfig&&theme.slider_nav&&theme.slider_nav_hover)
$el.addClass('show-nav-hover');if(this.options.themeConfig&&!theme.slider_nav_hover&&theme.slider_margin)
$el.addClass('stage-margin');}
if($el.hasClass('has-ccols-spacing')){$el.removeClass('has-ccols-spacing');}
$el.owlCarousel(this.options);if(zoom&&links){$el.on('click','.zoom',function(e){e.preventDefault();if($.fn.magnificPopup){var image_index=$(this).data('index');if(typeof image_index=='undefined'){image_index=($(this).closest('.owl-item').index()-$el.find('.cloned').length/2)%$el.data('owl.carousel').items().length;}
$.magnificPopup.close();$.magnificPopup.open($.extend(true,{},theme.mfpConfig,{items:links,gallery:{enabled:true},type:'image'}),image_index);}
return false;});}
return this;}}
$.extend(theme,{Carousel:Carousel});$.fn.themeCarousel=function(opts,zoom){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this;}else{return new theme.Carousel($this,opts,zoom);}});}}).apply(this,[window.theme,jQuery]);}
(function(theme,$){'use strict';theme=theme||{};var instanceName='__lightbox';var Lightbox=function($el,opts){return this.initialize($el,opts);};Lightbox.defaults={callbacks:{open:function(){$('body').addClass('lightbox-opened');},close:function(){$('body').removeClass('lightbox-opened');}}};Lightbox.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},Lightbox.defaults,theme.mfpConfig,opts,{wrapper:this.$el});return this;},build:function(){if(!$.fn.magnificPopup){return this;}
this.options.wrapper.magnificPopup(this.options);return this;}};$.extend(theme,{Lightbox:Lightbox});$.fn.themeLightbox=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new theme.Lightbox($this,opts);}});}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__toggle';var VcImageZoom=function($el,opts){return this.initialize($el,opts);};VcImageZoom.defaults={};VcImageZoom.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},VcImageZoom.defaults,opts,{wrapper:this.$el});return this;},build:function(){var self=this,$el=this.options.container;$el.parent().magnificPopup($.extend(true,{},theme.mfpConfig,{delegate:".porto-vc-zoom",gallery:{enabled:true},mainClass:'mfp-with-zoom',zoom:{enabled:true,duration:300},type:'image'}));return this;}};$.extend(theme,{VcImageZoom:VcImageZoom});$.fn.themeVcImageZoom=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new theme.VcImageZoom($this,opts);}});}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{PostFilter:{cache:{},defaults:{elements:'.portfolio-filter'},initialize:function($elements,post_type){this.$elements=($elements||$(this.defaults.elements));this.build(post_type);return this;},filterFn:function(e){if(typeof e=='undefined'||typeof e.data=='undefined'||typeof e.data.elements=='undefined'||!e.data.elements||!e.data.elements.length){return;}
var self=e.data.selfobj;if(self.isLoading){return false;}
var $this=e.data.thisobj,$elements=e.data.elements,position=e.data.position,post_type=e.data.post_type,$parent=e.data.parent,$posts_wrap=e.data.posts_wrap,use_ajax=e.data.use_ajax,page_path=e.data.page_path,infinite_load=e.data.infinite_load,load_more=e.data.load_more;e.preventDefault();if($(this).hasClass('active')){return;}
self.isLoading=true;var selector=$(this).attr('data-filter');if('sidebar'==position){$('.sidebar-overlay').trigger('click');}
$this.find('.active').removeClass('active');if(use_ajax){var current_cat='*'==selector?'':selector;if(!page_path){page_path=$posts_wrap.data('page_path');}
if(page_path){$posts_wrap.data('page_path',page_path.replace(/&category=[^&]*&/,'&category='+current_cat+'&'));}
$(this).addClass('active');self.load_posts(current_cat,infinite_load||load_more?true:false,$parent,post_type,$posts_wrap,undefined,$(this).children('a').attr('href'));}else if('faq'==post_type){$parent.find('.faq').each(function(){var $that=$(this),easing="easeInOutQuart",timeout=300;if(selector=='*'){if($that.css('display')=='none')$that.stop(true).slideDown(timeout,easing,function(){$(this).attr('style','').show();});selected++;}else{if($that.hasClass(selector)){if($that.css('display')=='none')$that.stop(true).slideDown(timeout,easing,function(){$(this).attr('style','').show();});selected++;}else{if($that.css('display')!='none')$that.stop(true).slideUp(timeout,easing,function(){$(this).attr('style','').hide();});}}});if(!selected&&$parent.find('.faqs-infinite').length&&typeof($.fn.infinitescroll)!='undefined'){$parent.find('.faqs-infinite').infinitescroll('retrieve');}}else if($parent.hasClass('portfolios-timeline')){var selected=0;$parent.find('.portfolio').each(function(){var $that=$(this),easing="easeInOutQuart",timeout=300;if(selector=='*'){if($that.css('display')=='none')$that.stop(true).slideDown(timeout,easing,function(){$(this).attr('style','').show();});selected++;}else{if($that.hasClass(selector)){if($that.css('display')=='none')$that.stop(true).slideDown(timeout,easing,function(){$(this).attr('style','').show();});selected++;}else{if($that.css('display')!='none')$that.stop(true).slideUp(timeout,easing,function(){$(this).attr('style','').hide();});}}});if(!selected&&$parent.find('.portfolios-infinite').length&&typeof($.fn.infinitescroll)!='undefined'){$parent.find('.portfolios-infinite').infinitescroll('retrieve');}
setTimeout(function(){theme.FilterZoom.initialize($parent);},400);}else{$parent.find('.'+post_type+'-row').isotope({filter:selector=='*'?selector:'.'+selector});}
if(!use_ajax){$(this).addClass('active');self.isLoading=false;}
if(position=='sidebar'){self.$elements.each(function(){var $that=$(this);if($that==$this&&$that.data('position')!='sidebar')return;$that.find('li').removeClass('active');$that.find('li[data-filter="'+selector+'"]').addClass('active');});}
if(!use_ajax){window.location.hash='#'+selector;}
theme.refreshVCContent();return false;},build:function(post_type_param){var self=this;self.$elements.each(function(){var $this=$(this),position=$this.data('position'),$parent,post_type;if(typeof post_type_param=='undefined'){if($this.hasClass('member-filter')){post_type='member';}else if($this.hasClass('faq-filter')){post_type='faq';}else if($this.hasClass('product-filter')){post_type='product';}else if($this.hasClass('post-filter')){post_type='post';}else if($this.hasClass('portfolio-filter')){post_type='portfolio';}else{post_type=$this.attr('data-filter-type');}}else{post_type=post_type_param;}
if('sidebar'==position){$parent=$('.main-content .page-'+post_type+'s');}else if('global'==position){$parent=$('.main-content .page-'+post_type+'s');}else{$parent=$this.closest('.page-'+post_type+'s');}
if(!$parent.length){$parent=$this.closest('.porto-posts-grid');}
if(!$parent||!$parent.length){return;}
var use_ajax=$this.hasClass('porto-ajax-filter'),infinite_load=$parent.hasClass('load-infinite'),load_more=$parent.hasClass('load-more');var $posts_wrap=$parent.find('.'+post_type+'s-container'),page_path;if(use_ajax&&((!infinite_load&&!load_more)||!$parent.data('ajax_load_options'))){var current_url=window.location.href;if(-1!==current_url.indexOf('#')){current_url=current_url.split('#')[0];}
page_path=theme.ajax_url+'?action=porto_ajax_posts&nonce='+js_porto_vars.porto_nonce+'&post_type='+post_type+'&current_link='+current_url+'&category=&page=%cur_page%';if($parent.data('post_layout')){page_path+='&post_layout='+$parent.data('post_layout');}
$posts_wrap.data('page_path',page_path);}
$this.find('li').on('click',{thisobj:$this,selfobj:self,elements:self.$elements,position:position,parent:$parent,post_type:post_type,posts_wrap:$posts_wrap,use_ajax:use_ajax,page_path:page_path,infinite_load:infinite_load,load_more:load_more},self.filterFn);});$(window).on('hashchange',{elements:self.$elements},self.hashchange);self.hashchange({data:{elements:self.$elements}});return self;},hashchange:function(e){if(typeof e=='undefined'||typeof e.data=='undefined'||typeof e.data.elements=='undefined'||!e.data.elements||!e.data.elements.length){return;}
var $elements=e.data.elements,$filter=$($elements.get(0)),hash=window.location.hash;if(hash){var $o=$filter.find('li[data-filter="'+hash.replace('#','')+'"]');if(!$o.hasClass('active')){$o.trigger('click');}}},set_elements:function($elements){var self=this;if(typeof $elements=='undefined'||!$elements||!$elements.length){self.destroy(self.$elements);return;}
self.$elements=$elements;$(window).off('hashchange',self.hashchange).on('hashchange',{elements:$elements},self.hashchange);},destroy:function($elements){if(typeof $elements=='undefined'||!$elements||!$elements.length){return;}
var self=this;$elements.find('li').off('click',self.filterFn);$(window).off('hashchange',self.hashchange);},load_posts:function(cat,is_infinite,$parent,post_type,$posts_wrap,default_args,page_url){var pid=$parent.attr('id'),self=this,is_archive=$parent.hasClass('archive-posts'),successfn=function(res,directcall){if(!res){return;}
if((typeof directcall=='undefined'||true!==directcall)&&typeof default_args=='undefined'&&pid){if(!self.cache[pid]){self.cache[pid]={};}
self.cache[pid][cat]=res;}
var $res=$(res),is_shop=$parent.hasClass('archive-products'),$posts=$res.find(is_archive?'.archive-posts .posts-wrap':'.posts-wrap').children();if(!$posts.length){return;}
if(typeof $posts_wrap=='undefined'||is_archive){$posts_wrap=$parent.find('.'+post_type+'s-container');}
if(!$posts_wrap.length){return;}
if($posts_wrap.data('isotope')){$posts_wrap.isotope('remove',$posts_wrap.children());}else{$posts_wrap.children().remove();}
if($posts_wrap.hasClass('owl-loaded')){$posts_wrap.removeClass('owl-loaded');}
$posts.children().addClass('fadeInUp animated');$posts_wrap.append($posts);theme.refreshVCContent($posts);var $old_filter=$parent.find('.'+post_type+'-filter');if($old_filter.length&&!$old_filter.hasClass('porto-ajax-filter')&&!$parent.hasClass('load-infinite')&&!$parent.hasClass('load-more')){var $new_filter=$res.find((is_archive?'.archive-posts ':'')+'.'+post_type+'-filter');if($new_filter.length){$old_filter.find('li:first-child').trigger('click');theme.PostFilter.destroy($old_filter);$old_filter.replaceWith($new_filter);theme.PostFilter.initialize($new_filter,post_type);theme.PostFilter.set_elements($('ul[data-filter-type], ul.portfolio-filter, ul.member-filter, ul.faq-filter, .porto-ajax-filter.product-filter, .porto-ajax-filter.post-filter'));}}
porto_init($parent);var behavior_action='';if(post_type!='product'&&post_type!='member'&&post_type!='faq'&&post_type!='portfolio'&&post_type!='post'){behavior_action='ptu';}else{behavior_action=post_type;}
theme.PostsInfinite[behavior_action+'Behavior']($posts,$posts_wrap);$(document.body).trigger('porto_init_countdown',[$posts_wrap]);var $old_pagination=$parent.find('.pagination-wrap'),$new_pagination=$res.find((is_archive?'.archive-posts ':'')+'.pagination-wrap').eq(0),has_pagination=false;if($old_pagination.length){if($new_pagination.length){$old_pagination.replaceWith($new_pagination);has_pagination=true;}else{$old_pagination.children().remove();}}else if($new_pagination.length){$parent.append($new_pagination);has_pagination=true;}
if(is_infinite){var infinitescroll_ins=$posts_wrap.data('infinitescroll');if(has_pagination){var $new_posts_wrap=$res.find(is_archive?'.archive-posts .posts-wrap':'.posts-wrap');if($new_posts_wrap.data('cur_page')){$posts_wrap.data('cur_page',$new_posts_wrap.data('cur_page'));$posts_wrap.data('max_page',$new_posts_wrap.data('max_page'));}
var should_init_again=true;if(infinitescroll_ins){if(infinitescroll_ins.options.state.isDestroyed){$posts_wrap.removeData('infinitescroll');}else{should_init_again=false;if($new_posts_wrap.data('cur_page')){infinitescroll_ins.update({maxPage:$new_posts_wrap.data('max_page'),state:{currPage:$new_posts_wrap.data('cur_page')}});}
if(infinitescroll_ins.options.state.isPaused){infinitescroll_ins.resume();}}}
if(should_init_again){var ins=$posts_wrap.data('__postsinfinite');if(ins){ins.destroy();}
new theme.PostsInfinite($posts_wrap,'.'+post_type+', .timeline-date',$posts_wrap.data('infiniteoptions'),post_type);}
if(is_archive){var page_path=$posts_wrap.siblings('.pagination-wrap').find('.next').attr('href');if(page_path){page_path+=(-1!==page_path.indexOf('?')?'&':'?')+'portoajax=1&load_posts_only=2';page_path=page_path.replace(/(paged=)(\d+)|(page\/)(\d+)/,'$1$3%cur_page%');$posts_wrap.data('page_path',page_path);}}
new theme.PostsInfinite($posts_wrap,'.'+post_type+', .timeline-date',$posts_wrap.data('infiniteoptions'),post_type);}}
if(is_archive){$('.sidebar-content').each(function(index){var $this=$(this),$that=$($res.find('.sidebar-content').get(index));$this.html($that.html());if(is_shop){if(typeof updateSelect2!='undefined'&&updateSelect2){if(jQuery().selectWoo){var porto_wc_layered_nav_select=function(){$this.find('select.woocommerce-widget-layered-nav-dropdown').each(function(){$(this).selectWoo({placeholder:$(this).find('option').eq(0).text(),minimumResultsForSearch:5,width:'100%',allowClear:typeof $(this).attr('multiple')!='undefined'&&$(this).attr('multiple')=='multiple'?'false':'true'});});};porto_wc_layered_nav_select();}
$('body').children('span.select2-container').remove();}}});if(is_shop){var $script=$res.filter('script:contains("var woocommerce_price_slider_params")').first();if($script&&$script.length&&$script.text().indexOf('{')!==-1&&$script.text().indexOf('}')!==-1){var arrStr=$script.text().substring($script.text().indexOf('{'),$script.text().indexOf('}')+1);window.woocommerce_price_slider_params=JSON.parse(arrStr);}
var $title=$('.entry-title');if($title.length){var $newTitle=$res.find('.entry-title').eq(0);if($newTitle.length){$title.html($newTitle.html());}}
var $desc=$('.entry-description');if($desc.length){var $newDesc=$res.find('.entry-description').eq(0);if($newDesc.length){$desc.html($newDesc.html());}}
var shop_before='.shop-loop-before',$shop_before=$(shop_before);if($shop_before.length){if($res.find(shop_before).length){$shop_before.each(function(index){var $res_shop_before=$res.find(shop_before).eq(index);if($res_shop_before.length){$(this).html($res_shop_before.html()).show();}});}else{$shop_before.empty();}}
var $count=$('.woocommerce-result-count');if($count.length){var $newCount=$res.find('.woocommerce-result-count').eq(0);if($newCount.length){$count[0].outerHTML=$newCount.length?$newCount[0].outerHTML:'';}}
$(document).trigger('yith-wcan-ajax-filtered');}
if(page_url&&!navigator.userAgent.match(/msie/i)){window.history.pushState({'pageTitle':(res&&res.pageTitle)||''},'',page_url);}}
$(document.body).trigger('porto_load_posts_end',[$parent.parent()]);};if(typeof default_args=='undefined'&&typeof self.cache[pid]!='undefined'&&typeof self.cache[pid][cat]!='undefined'&&self.cache[pid][cat]){successfn(self.cache[pid][cat],true);self.isLoading=false;$parent.removeClass('porto-ajax-loading').removeClass('loading').find('.porto-loading-icon').remove();return;}
var ajax_load_options=$parent.data('ajax_load_options');if(($parent.hasClass('archive-products')&&-1!=js_porto_vars.use_skeleton_screen.indexOf('shop'))||(is_archive&&-1!=js_porto_vars.use_skeleton_screen.indexOf('blog'))){$posts_wrap=$parent.find('.'+post_type+'s-container');if(ajax_load_options){var tag_name='div';if('product'==post_type&&'ul'==$posts_wrap.get(0).tagName.toLowerCase()){tag_name='li';}
$posts_wrap.addClass('skeleton-body').empty();for(var i=0;i<Number(ajax_load_options.count||(ajax_load_options.columns&&ajax_load_options.columns*3)||12);i++){$posts_wrap.append('<'+tag_name+' class="porto-tb-item post '+post_type+('product'==post_type?' product-col':'')+'"></'+tag_name+'>');}}else{$posts_wrap.addClass('skeleton-body').children().empty();}}else{if(!$parent.children('.porto-loading-icon').length){$parent.append('<i class="porto-loading-icon"></i>');}
$parent.addClass('porto-ajax-loading');}
var current_url=window.location.href;if(-1!==current_url.indexOf('#')){current_url=current_url.split('#')[0];}
var args,load_url=theme.ajax_url;if($parent.hasClass('archive-posts')){args={portoajax:true,load_posts_only:true};if($parent.closest('.porto-block').length){args['builder_id']=$parent.closest('.porto-block').data('id');}
load_url=typeof page_url!='undefined'?page_url:current_url;}else{args={action:'porto_ajax_posts',nonce:js_porto_vars.porto_nonce,post_type:post_type,current_link:current_url};if($parent.data('post_layout')){args['post_layout']=$parent.data('post_layout');}
if(ajax_load_options){args['extra']=ajax_load_options;}
if(typeof default_args!='undefined'){args=$.extend(args,default_args);}}
if(cat){args['category']=cat;}
$.ajax({url:load_url,type:'post',data:args,success:successfn,complete:function(){self.isLoading=false;$posts_wrap.removeClass('skeleton-body');$parent.removeClass('porto-ajax-loading').removeClass('loading').find('.porto-loading-icon').remove();}});}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{FilterZoom:{defaults:{elements:null},initialize:function($elements){this.$elements=($elements||this.defaults.elements);this.build();return this;},build:function(){var self=this;self.$elements.each(function(){var $this=$(this),zoom=$this.find('.zoom, .thumb-info-zoom').get(0);if(!zoom)return;$this.find('.zoom, .thumb-info-zoom').off('click');var links=[];var i=0;$this.find('article').each(function(){var $that=$(this);if($that.css('display')!='none'){var $zoom=$that.find('.zoom, .thumb-info-zoom'),slide,src=$zoom.data('src'),title=$zoom.data('title');$zoom.data('index',i);if(Array.isArray(src)){$.each(src,function(index,value){slide={};slide.src=value;slide.title=title[index];links[i]=slide;i++;});}else{slide={};slide.src=src;slide.title=title;links[i]=slide;i++;}}});$this.find('article').each(function(){var $that=$(this);if($that.css('display')!='none'){$that.off('click','.zoom, .thumb-info-zoom').on('click','.zoom, .thumb-info-zoom',function(e){var $zoom=$(this),$parent=$zoom.parents('.thumb-info'),offset=0;if($parent.get(0)){var $slider=$parent.find('.porto-carousel');if($slider.get(0)){offset=$slider.data('owl.carousel').current()-$slider.find('.cloned').length/2;}}
e.preventDefault();if($.fn.magnificPopup){$.magnificPopup.close();$.magnificPopup.open($.extend(true,{},theme.mfpConfig,{items:links,gallery:{enabled:true},type:'image'}),$zoom.data('index')+offset);}
return false;});}});});return self;}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__parallax';var Mouseparallax=function($el,opts){return this.initialize($el,opts);};Mouseparallax.prototype={initialize:function($el,opts){this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},{wrapper:this.$el,opts:opts});return this;},build:function(){if(!$.fn.parallax){return this;}
var $el=this.options.wrapper,opts=this.options.opts
$el.parallax(opts);}};$.extend(theme,{Mouseparallax:Mouseparallax});$.fn.themeMouseparallax=function(opts){var obj=this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new theme.Mouseparallax($this,opts);}});return obj;}}).apply(this,[window.theme,jQuery]);(function(theme,$){theme=theme||{};var instanceName='__readmore';var PluginReadMore=function($el,opts){return this.initialize($el,opts);};PluginReadMore.defaults={buttonOpenLabel:'Read More <i class="fas fa-chevron-down text-2 ms-1"></i>',buttonCloseLabel:'Read Less <i class="fas fa-chevron-up text-2 ms-1"></i>',enableToggle:true,maxHeight:300,overlayColor:'#43a6a3',overlayHeight:100,startOpened:false,align:'left'};PluginReadMore.prototype={initialize:function($el,opts){var self=this;this.$el=$el;this.setData().setOptions(opts).build().events().resize();if(self.options.startOpened){self.options.wrapper.find('.readmore-button-wrapper > button').trigger('click');}
return this;},setData:function(){this.$el.data(instanceName,this);return this;},setOptions:function(opts){this.options=$.extend(true,{},PluginReadMore.defaults,opts,{wrapper:this.$el});return this;},build:function(){var self=this;self.options.wrapper.addClass('position-relative');self.options.wrapper.append('<div class="readmore-overlay"></div>');var backgroundCssValue='linear-gradient(180deg, rgba(2, 0, 36, 0) 0%, '+self.options.overlayColor+' 100%)';if($('html').hasClass('safari')){backgroundCssValue='-webkit-linear-gradient(top, rgba(2, 0, 36, 0) 0%, '+self.options.overlayColor+' 100%)'}
self.options.wrapper.find('.readmore-overlay').css({background:backgroundCssValue,position:'absolute',bottom:0,left:0,width:'100%',height:self.options.overlayHeight,'z-index':1});self.options.wrapper.find('.readmore-button-wrapper').removeClass('d-none').css({position:'absolute',bottom:0,left:0,width:'100%','z-index':2});self.options.wrapper.find('.readmore-button-wrapper > button').html(self.options.buttonOpenLabel);self.options.wrapper.css({'height':self.options.maxHeight,'overflow-y':'hidden'});switch(self.options.align){case'center':self.options.wrapper.find('.readmore-button-wrapper').addClass('text-center');break;case'right':self.options.wrapper.find('.readmore-button-wrapper').addClass('text-end');break;case'left':default:self.options.wrapper.find('.readmore-button-wrapper').addClass('text-start');break;}
return this;},events:function(){var self=this;self.readMore=function(){self.options.wrapper.find('.readmore-button-wrapper > button:not(.readless)').on('click',function(e){e.preventDefault();self.options.wrapper.addClass('opened');var $this=$(this);setTimeout(function(){self.options.wrapper.animate({'height':self.options.wrapper[0].scrollHeight},function(){if(!self.options.enableToggle){$this.fadeOut();}
$this.html(self.options.buttonCloseLabel).addClass('readless').off('click');self.readLess();self.options.wrapper.find('.readmore-overlay').fadeOut();self.options.wrapper.css({'max-height':'none','overflow':'visible'});self.options.wrapper.find('.readmore-button-wrapper').animate({bottom:-20});});},200);});}
self.readLess=function(){self.options.wrapper.find('.readmore-button-wrapper > button.readless').on('click',function(e){e.preventDefault();self.options.wrapper.removeClass('opened');var $this=$(this);self.options.wrapper.find('.readmore-button-wrapper').animate({bottom:0});self.options.wrapper.find('.readmore-overlay').fadeIn();setTimeout(function(){self.options.wrapper.height(self.options.wrapper[0].scrollHeight).animate({'height':self.options.maxHeight},function(){$this.html(self.options.buttonOpenLabel).removeClass('readless').off('click');self.readMore();self.options.wrapper.css({'overflow':'hidden'});});},200);});}
self.readMore();return this;},resize:function(){var self=this;window.addEventListener('resize',function(){self.options.wrapper.hasClass('opened')?self.options.wrapper.css({'height':'auto'}):self.options.wrapper.css({'height':self.options.maxHeight});})}};$.extend(theme,{PluginReadMore:PluginReadMore});$.fn.themePluginReadMore=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new PluginReadMore($this,$this.data('plugin-options'));}});}}).apply(this,[window.theme,jQuery]);(function(theme,$){theme=theme||{};var instanceName='__mousehoversplit';var PluginHoverSplit=function($el){return this.initialize($el);}
PluginHoverSplit.prototype={initialize:function($el){if($el.data(instanceName)){return this;}
this.$el=$el.addClass('slide-wrapper');this.setData().event();return this;},setData:function(){this.$el.data(instanceName,this);this.$el.addClass('initialized');var $columns=this.$el.find('>.split-slide');for(var index=0;index<$columns.length;index++){var column=$columns[index];if(index==0){column.classList.add('slide-left');this.left=column;}else if(index==1){column.classList.add('slide-right');break;}}
return this;},event:function(){this.refresh();this.refreshFunc=this.refresh.bind(this);$(window).on('resize',this.refreshFunc);this.handleMoveFunc=this.handleMove.bind(this);$(document.body).on('mousemove',this.handleMoveFunc);},handleMove:function(e){if(e.clientX<this.$el.offset().left){this.left.style.width='0';}else{this.left.style.width=`calc( ${ ( e.clientX - this.$el.offset().left ) / ( this.$el.innerWidth() ) * 100 }% - 3px ) `;}},refresh:function(e){if(e&&e.type=='resize'){this.$el.css('min-height',$(this.left).height());}
this.$el.find('>.split-slide>*').css('width',this.$el.innerWidth());},clearData:function(){this.$el.removeClass('slide-wrapper').removeData(instanceName).css('min-height','');this.$el.find('>*').removeClass('slide-left slide-right').css('width','');$(window).off('resize',this.refreshFunc);$(document.body).off('mousemove',this.handleMoveFunc);}}
$.extend(theme,{PluginHoverSplit:PluginHoverSplit});$.fn.themePluginHoverSplit=function(){return this.map(function(){var $this=$(this),$splitColumns=$this.find('>.split-slide');if($splitColumns.length>=2){if($this.data(instanceName)){return $this.data(instanceName);}else{return new PluginHoverSplit($this);}}});}}).apply(this,[window.theme,jQuery]);(function(theme,$){theme=theme||{};var instanceName='__horizontalscroller';var PluginHScroller=function($el,opts){return this.initialize($el,opts);}
PluginHScroller.defaults={lg:3,md:1,init_refresh:false,};PluginHScroller.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData(opts).build().event();return this;},setData:function(opts){this.$el.data(instanceName,this);this.options=$.extend(true,{},PluginHScroller.defaults,opts);this.$hScroller=this.$el.find('.horizontal-scroller');this.$hScrollerItems=this.$hScroller.find('.horizontal-scroller-items');this.$hScrollerItems.find('>*').addClass('horizontal-scroller-item');return this;},build:function(){this.originalScrollHTML=this.$hScroller.html();this.scrollerInitialized=false;return this;},generateScroller:function(){var items=gsap.utils.toArray(this.$hScrollerItems.find('.horizontal-scroller-item'));gsap.to(items,{xPercent:-100*(items.length-($(window).width()>991?this.options.lg:this.options.md)),ease:'none',scrollTrigger:{trigger:'.horizontal-scroller',pin:true,scrub:1,snap:1/(items.length-1),end:()=>'+='+this.$hScrollerItems.width(),el:this.$el,}});this.scrollerInitialized=true;},event:function(){if(this.options.init_refresh){this.generateScroller();}
this.scrollFunc=this.scroll.bind(this);$(window).on('scroll',this.scrollFunc);this.afterResizeFunc=this.afterResize.bind(this);$(window).on('afterResize',this.afterResizeFunc);},scroll:function(){if(!this.scrollerInitialized){var position=this.$el[0].getBoundingClientRect();if(position.top>=0&&position.top<window.innerHeight&&position.bottom>=0){this.generateScroller();}}},afterResize:function(){this.scrollerInitialized=false;var Alltrigger=ScrollTrigger.getAll();for(var i=0;i<Alltrigger.length;i++){if(Alltrigger[i]['vars']&&typeof Alltrigger[i]['vars']['el']!='undefined'&&Alltrigger[i]['vars']['el']==this.$el){Alltrigger[i].kill(true);this.$el.empty().html('<div class="horizontal-scroller">'+this.originalScrollHTML+'</div>');this.$hScrollerItems=this.$el.find('.horizontal-scroller-items');break;}}},clearData:function(){this.$el.removeData(instanceName);$(window).off('scroll',this.scrollFunc);$(window).off('afterResize',this.afterResizeFunc);}};$.extend(theme,{PluginHScroller:PluginHScroller});$.fn.themePluginHScroller=function(opt=false){if(typeof gsap!=='undefined'&&typeof ScrollTrigger!=='undefined'){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{if($this.find('.horizontal-scroller-items>*').length){options=$this.data('plugin-hscroll');if(opt){options['init_refresh']=true;}
return new PluginHScroller($this,options);}}});}else{return false;}}}).apply(this,[window.theme,jQuery]);(function(theme,$){theme=theme||{};var instanceName='__textelfloating';var PluginTElFloaing=function($el,opts){return this.initialize($el,opts);};PluginTElFloaing.defaults={offset:0,};PluginTElFloaing.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData(opts).event();return this;},setData:function(opts){this.options=$.extend(true,{},PluginTElFloaing.defaults,opts);this.$el.data(instanceName,this);return this;},event:function(){this.mouseEnterFunc=this.mouseEnter.bind(this);this.$el.on('mouseenter',this.mouseEnterFunc);this.mouseOutFunc=this.mouseOut.bind(this);this.$el.on('mouseleave',this.mouseOutFunc);},mouseEnter:function(e){$('.thumb-info-floating-element-clone').remove();var $thumbFloatingEl=$('.thumb-info-floating-element',this.$el);if($thumbFloatingEl.length){this.$elClone=$thumbFloatingEl.clone().addClass('thumb-info-floating-element-clone').removeClass('d-none').appendTo(document.body);}else if(this.$el.hasClass('tb-hover-content')&&this.$el.children().length>0){if(this.$el.hasClass('with-link')){$thumbFloatingEl=this.$el.children(':nth-child(2)');}else{$thumbFloatingEl=this.$el.children(':first');}
this.$elClone=$thumbFloatingEl.clone().addClass('thumb-tb-floating-el').appendTo(document.body).wrap('<div class="thumb-info-floating-element-clone page-wrapper"></div>');}else{return;}
$imgs=$('.thumb-info-floating-element-clone').find('img.porto-lazyload');$imgs.each(function(index,img){var $img=$(img);if($img.length&&$img.data('oi')){$img.attr('src',$img.data('oi')).addClass('lazy-load-loaded');}});$('.thumb-info-floating-element-clone').css({left:e.clientX+parseInt(this.options.offset),top:e.clientY+parseInt(this.options.offset)}).fadeIn(300);gsap.to('.thumb-info-floating-element-clone',1,{css:{scaleX:1,scaleY:1}});this.mouseMoveFunc=this.mouseMove.bind(this);$(document.body).on('mousemove',this.mouseMoveFunc);},mouseMove:function(e){if(this.$elClone.length&&this.$elClone.closest('html').length){gsap.to('.thumb-info-floating-element-clone',0.5,{css:{left:e.clientX+parseInt(this.options.offset),top:e.clientY+parseInt(this.options.offset)}});}},mouseOut:function(e){if(this.$elClone.length&&this.$elClone.closest('html').length){gsap.to('.thumb-info-floating-element-clone',0.5,{css:{scaleX:0.5,scaleY:0.5,opacity:0}});}},clearData:function(e){this.$elClone.remove();this.$el.off('mouseenter',this.mouseEnterFunc);this.$el.off('mouseout',this.mouseOutFunc);$(document.body).off('mousemove',this.mouseMoveFunc);}}
$.extend(theme,{PluginTElFloaing:PluginTElFloaing});$.fn.themePluginTIFloating=function(){if(typeof gsap!=='undefined'){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName);}else{return new PluginTElFloaing($this,$this.data('plugin-tfloating'));}});}else{return false;}}}).apply(this,[window.theme,jQuery]);(function(theme,$){theme.initAsync=function($wrap,wrapObj){if($.fn.themeAnimate){$(function(){var svgAnimates=wrapObj.querySelectorAll('svg [data-appear-animation]');if(svgAnimates.length){$(svgAnimates).closest('svg').attr('data-appear-animation-svg','1');}
var $animates=wrapObj.querySelectorAll('[data-plugin-animate], [data-appear-animation], [data-appear-animation-svg]');if($animates.length){var animateResize=function(){if(window.innerWidth<768){window.removeEventListener('resize',animateResize);$animates.forEach(function(o){o.classList.add('appear-animation-visible');});}};if(theme.animation_support){window.addEventListener('resize',animateResize);theme.dynIntObsInit($animates,'themeAnimate',theme.Animate.defaults);}else{$animates.forEach(function(o){o.classList.add('appear-animation-visible');});}}});}
if($.fn.themePluginAnimatedLetters){if($('[data-plugin-animated-letters]').length||$('.animated-letters').length){theme.intObs('[data-plugin-animated-letters]:not(.manual), .animated-letters','themePluginAnimatedLetters');}
if($('[data-plugin-animated-words]').length||$('.animated-words').length){theme.intObs('[data-plugin-animated-words]:not(.manual), .animated-words','themePluginAnimatedLetters');}}
if($.fn.themeCarousel){$(function(){var portoImgNavMiddle=function($el){var $images=$el.find('.owl-item img'),height=0;for(var i=0;i<$images.length;i++){var imgHeight=$images.eq(i).height();if(height<imgHeight){height=imgHeight;}}
if($el.hasClass('products-slider')){$el.children('.owl-nav').css('top',(5+height/2)+'px');}else{$el.children('.owl-nav').css('top',height/2+'px');}};var portoCarouselInit=function(e){var $this=$(e.currentTarget);$this.find('[data-appear-animation]:not(.appear-animation)').addClass('appear-animation');if($this.find('.owl-item.cloned').length){$this.find('.porto-lazyload:not(.lazy-load-loaded)').themePluginLazyLoad({effect:'fadeIn',effect_speed:400});var $animates=e.currentTarget.querySelectorAll('.appear-animation');if($animates.length){if(theme.animation_support){theme.dynIntObsInit($animates,'themeAnimate',theme.Animate.defaults);}else{$animates.forEach(function(o){o.classList.add('appear-animation-visible');});}}
if($.fn.themePluginAnimatedLetters&&($(this).find('.owl-item.cloned [data-plugin-animated-letters]:not(.manual)').length)){theme.dynIntObsInit($(this).find('.owl-item.cloned [data-plugin-animated-letters]:not(.manual)'),'themePluginAnimatedLetters');}}
setTimeout(function(){var $hiddenItems=$this.find('.owl-item:not(.active)');if(theme.animation_support){$hiddenItems.find('.appear-animation').removeClass('appear-animation-visible');$hiddenItems.find('.appear-animation').each(function(){var $el=$(this),delay=Math.abs($el.data('appear-animation-delay')?$el.data('appear-animation-delay'):0);if(delay>1){this.style.animationDelay=delay+'ms';}
var duration=Math.abs($el.data('appear-animation-duration')?$el.data('appear-animation-duration'):1000);if(1000!=duration){this.style.animationDuration=duration+'ms';}});}
if(window.innerWidth>=1200){$hiddenItems.find('[data-vce-animate]').removeAttr('data-vcv-o-animated');}
if($this.hasClass('nav-center-images-only')){portoImgNavMiddle($this);}},300);};var portoCarouselTranslated=function(e){var $this=$(e.currentTarget);var $active=$this.find('.owl-item.active');if($active.hasClass('translating')){$active.removeClass('translating');return;}
$this.find('.owl-item.translating').removeClass('translating');$this.find('[data-plugin-animated-letters]').removeClass('invisible');$this.find('.owl-item.active [data-plugin-animated-letters]').trigger('animated.letters.initialize');if(window.innerWidth>767){$this.find('.appear-animation').removeClass('appear-animation-visible');$active.find('.appear-animation').each(function(){var $animation_item=$(this),anim_name=$animation_item.data('appear-animation');$animation_item.addClass(anim_name+' appear-animation-visible');});}
if(window.innerWidth>991){if($this.closest('[data-plugin-sticky]').length){theme.refreshStickySidebar(false,$this.closest('[data-plugin-sticky]'));}}
$active.find('.slide-animate').each(function(){var $animation_item=$(this),settings=$animation_item.data('settings');if(settings&&(settings._animation||settings.animation)){var animation=settings._animation||settings.animation,delay=settings._animation_delay||settings.animation_delay||0;theme.requestTimeout(function(){$animation_item.removeClass('elementor-invisible').addClass('animated '+animation);},delay);}});if(window.innerWidth>=1200){$this.find('[data-vce-animate]').removeAttr('data-vcv-o-animated').removeAttr('data-vcv-o-animated-fully');$active.find('[data-vce-animate]').each(function(){var $animation_item=$(this);if($animation_item.data('porto-origin-anim')){var anim_name=$animation_item.data('porto-origin-anim');$animation_item.attr('data-vce-animate',anim_name).attr('data-vcv-o-animated',true);var duration=parseFloat(window.getComputedStyle(this)['animationDuration'])*1000,delay=parseFloat(window.getComputedStyle(this)['animationDelay'])*1000;window.setTimeout(function(){$animation_item.attr('data-vcv-o-animated-fully',true);},delay+duration+5);}});}};var portoCarouselTranslateVC=function(e){var $this=$(e.currentTarget);$this.find('.owl-item.active').addClass('translating');if(window.innerWidth>=1200){$this.find('[data-vce-animate]').each(function(){var $animation_item=$(this);$animation_item.data('porto-origin-anim',$animation_item.data('vce-animate')).attr('data-vce-animate','');});}};var portoCarouselTranslateElementor=function(e){var $this=$(e.currentTarget);$this.find('.owl-item.active').addClass('translating');$this.find('.owl-item:not(.active) .slide-animate').addClass('elementor-invisible');$this.find('.slide-animate').each(function(){var $animation_item=$(this),settings=$animation_item.data('settings');if(settings._animation||settings.animation){$animation_item.removeClass(settings._animation||settings.animation);}});};var portoCarouselTranslateWPB=function(e){if(window.innerWidth>767){var $this=$(e.currentTarget);$this.find('.owl-item.active').addClass('translating');$this.find('.appear-animation').each(function(){var $animation_item=$(this);$animation_item.removeClass($animation_item.data('appear-animation'));});}};var carouselItems=$wrap.find('.owl-carousel:not(.manual)');carouselItems.on('initialized.owl.carousel refreshed.owl.carousel',portoCarouselInit).on('translated.owl.carousel',portoCarouselTranslated);carouselItems.on('translate.owl.carousel',function(){$(this).find('[data-plugin-animated-letters]').addClass('invisible');$(this).find('[data-plugin-animated-letters]').trigger('animated.letters.destroy');});carouselItems.on('resized.owl.carousel',function(){var $this=$(this);if($this.hasClass('nav-center-images-only')){portoImgNavMiddle($this);}})
carouselItems.filter(function(){if($(this).find('[data-vce-animate]').length){return true;}
return false;}).on('translate.owl.carousel',portoCarouselTranslateVC);carouselItems.filter(function(){var $anim_obj=$(this).find('.elementor-invisible');if($anim_obj.length){$anim_obj.addClass('slide-animate');return true;}
return false;}).on('translate.owl.carousel',portoCarouselTranslateElementor);carouselItems.filter(function(){if($(this).find('.appear-animation, [data-appear-animation]').length){return true;}
return false;}).on('translate.owl.carousel',portoCarouselTranslateWPB);$wrap.find('[data-plugin-carousel]:not(.manual), .porto-carousel:not(.manual)').each(function(){var $this=$(this),opts;if($this.closest('.tab-pane').length&&!$this.closest('.tab-pane').hasClass('active')){return;}
var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;setTimeout(function(){$this.themeCarousel(opts);},0);});});}
$wrap.find('.thumb-gallery-thumbs, .thumbnail-gallery').each(function(){var $thumbs=$(this),$detail=$thumbs.parent().find('.thumb-gallery-detail'),flag=false,duration=300;if($thumbs.data('initThumbs'))
return;$detail.on('changed.owl.carousel',function(e){if(!flag){flag=true;var len=$detail.find('.owl-item').length,cloned=$detail.find('.cloned').length;if(len){$thumbs.trigger('to.owl.carousel',[(e.item.index-cloned/2-1)%len,duration,true]);}
flag=false;}});$thumbs.on('changed.owl.carousel',function(e){if(!flag){flag=true;var len=$thumbs.find('.owl-item').length,cloned=$thumbs.find('.cloned').length;if(len){$detail.trigger('to.owl.carousel',[(e.item.index-cloned/2)%len,duration,true]);}
flag=false;}}).on('click','.owl-item',function(){if(!flag){flag=true;var len=$thumbs.find('.owl-item').length,cloned=$thumbs.find('.cloned').length;if(len){$detail.trigger('to.owl.carousel',[($(this).index()-cloned/2)%len,duration,true]);}
flag=false;}}).data('initThumbs',true);});$wrap.find('.video-fixed').each(function(){var $this=$(this),$video=$this.find('video, iframe');if($video.length){window.addEventListener('scroll',function(){var offset=$(window).scrollTop()-$this.position().top+theme.adminBarHeight();$video.css("cssText","top: "+offset+"px !important;");},{passive:true});}});setTimeout(function(){if(typeof theme.Search!=='undefined'){theme.Search.initialize();}},0);};$(document.body).trigger('porto_async_init');}).apply(this,[window.theme,jQuery]);jQuery(document).ready(function($){'use strict';if($.fn.themeVcImageZoom){$(function(){var $galleryParent=null;$('.porto-vc-zoom:not(.manual)').each(function(){var $this=$(this),opts,gallery=$this.attr('data-gallery');var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;if(typeof opts=="undefined"){opts={};}
opts.container=$this.parent();if(gallery=='true'){var container='vc_row';if($this.attr('data-container'))
container=$this.attr('data-container');var $parent=$($this.closest('.'+container).get(0));if($parent.length>0&&$galleryParent!=null&&$galleryParent.is($parent)){return;}else if($parent.length>0){$galleryParent=$parent;}
if($galleryParent!=null&&$galleryParent.length>0){opts.container=$galleryParent;}}
$this.themeVcImageZoom(opts);});});}
function porto_modal_open($this){var trigger=$this.data('trigger-id'),overlayClass=$this.data('overlay-class'),extraClass=$this.data('extra-class')?$this.data('extra-class'):'',type=$this.data('type');if(typeof trigger!='undefined'){if(typeof type=='undefined'){type='inline';}
if(type=='inline'){trigger='#'+escape(trigger);}
var args={items:{src:trigger},type:type,mainClass:extraClass};var $popupModal=$this;if($this.hasClass('porto-onload')){args['callbacks']={'beforeClose':function(){if($('.mfp-wrap .porto-disable-modal-onload').length&&($('.mfp-wrap .porto-disable-modal-onload').is(':checked')||$('.mfp-wrap .porto-disable-modal-onload input[type="checkbox"]').is(':checked'))){$.cookie('porto_modal_disable_onload','true',{expires:7});}else if('undefined'!==typeof $popupModal.data('expired')&&'undefined'!==typeof $popupModal.data('popup-id')){$.cookie('porto_modal_disable_period_onload_'+$popupModal.data('popup-id'),$popupModal.data('expired'),{expires:$popupModal.data('expired')});}}};}
if(typeof overlayClass!="undefined"&&overlayClass){args.mainClass+=escape(overlayClass);}
setTimeout(()=>{$.magnificPopup.open($.extend(true,{},theme.mfpConfig,args),0);});}}
function porto_init_magnific_popup_functions($wrap){if(typeof $wrap=='undefined'||!$wrap.length){$wrap=$(document.body);}
$wrap.find('.lightbox:not(.manual)').each(function(){var $this=$(this),opts;if($this.find('>.lb-dataContainer').length){return;}
var pluginOptions=$this.data('lightbox-options');if(pluginOptions){opts=pluginOptions;}else{pluginOptions=$this.data('plugin-options');if(typeof pluginOptions!='object'){pluginOptions=JSON.parse(pluginOptions);}
if(pluginOptions){opts=pluginOptions;}}
$this.themeLightbox(opts);});$wrap.find('.porto-popup-iframe').magnificPopup($.extend(true,{},theme.mfpConfig,{disableOn:700,type:'iframe',mainClass:'mfp-fade',removalDelay:160,preloader:false,fixedContentPos:false}));$wrap.find('.porto-popup-ajax').magnificPopup($.extend(true,{},theme.mfpConfig,{type:'ajax'}));$wrap.find('.porto-popup-content').each(function(){var animation=$(this).attr('data-animation');$(this).magnificPopup($.extend(true,{},theme.mfpConfig,{type:'inline',fixedContentPos:false,fixedBgPos:true,overflowY:'auto',closeBtnInside:true,preloader:false,midClick:true,removalDelay:300,mainClass:animation}));});$wrap.find('.popup-youtube, .popup-vimeo, .popup-gmaps').each(function(index){var overlayClass=$(this).find('.porto-modal-trigger').data('overlay-class'),args={type:'iframe',removalDelay:160,preloader:false,fixedContentPos:false};if(typeof overlayClass!="undefined"&&overlayClass){args.mainClass=escape(overlayClass);}
$(this).magnificPopup(args);});if($wrap.find('.porto-modal-trigger.porto-onload').length){var $obj=$wrap.find('.porto-modal-trigger.porto-onload').eq(0),timeout=0;if($obj.data('timeout')){timeout=parseInt($obj.data('timeout'),10);}
setTimeout(function(){porto_modal_open($obj);},timeout);}
$wrap.on('click','.porto-modal-trigger',function(e){e.preventDefault();porto_modal_open($(this));});if($wrap.hasClass('login-popup')){$wrap.find('.porto-link-login, .porto-link-register').magnificPopup({items:{src:theme.ajax_url+'?action=porto_account_login_popup&nonce='+js_porto_vars.porto_nonce,type:'ajax'},tLoading:'<i class="porto-loading-icon"></i>',callbacks:{ajaxContentAdded:function(){$(window).trigger('porto_login_popup_opened');}}});}
$wrap.find('.product-images').magnificPopup($.extend(true,{},theme.mfpConfig,{delegate:'.img-thumbnail a.zoom',type:'image',gallery:{enabled:true}}));$wrap.find('.porto-posts-grid').each(function(){$(this).magnificPopup($.extend(true,{},theme.mfpConfig,{delegate:'.porto-tb-featured-image span.zoom, .porto-tb-featured-image a.zoom, .post-image span.zoom',type:'image',gallery:{enabled:true}}));});$wrap.find('.porto-posts-grid .tb-image-type-slider div.zoom').each(function(){var $this=$(this),links=[];$this.find('a').each(function(){var slide={};slide.src=$(this).attr('href');slide.title=$(this).attr('title');links.push(slide);});if(links.length){$this.on('click',function(){var $slider=$this.siblings('.porto-carousel');if($slider.length){var offset=$slider.data('owl.carousel').current()-$slider.find('.cloned').length/2;$.magnificPopup.open($.extend(true,{},theme.mfpConfig,{items:links,gallery:{enabled:true},type:'image'}),offset);}});}});}
if($.fn.magnificPopup){porto_init_magnific_popup_functions();}else{setTimeout(function(){if($.fn.magnificPopup){porto_init_magnific_popup_functions();}},500);}
$(document.body).on('porto_load_posts_end',function(e,$posts_wrap){if($.fn.magnificPopup){porto_init_magnific_popup_functions($posts_wrap);}});if(typeof theme.PostFilter!=='undefined'){var $postFilterElements=$('ul[data-filter-type], .portfolio-filter, .member-filter, .faq-filter, .porto-ajax-filter.product-filter, .porto-ajax-filter.post-filter');if($postFilterElements.length){theme.PostFilter.initialize($postFilterElements);}}
$('body').on('click','.porto-ajax-load .pagination:not(.load-more) .page-numbers',function(e){var $this=$(this);if($this.hasClass('current')||$this.hasClass('dots')){return;}
e.preventDefault();var $wrap=$this.closest('.porto-ajax-load'),post_type=$wrap.data('post_type'),$obj=$wrap.find('.'+post_type+'s-container');if(!$obj.length||$wrap.hasClass('loading')){return;}
$wrap.addClass('loading');var $filter=$wrap.find('.porto-ajax-filter'),cat=$filter.length&&$filter.children('.active').length&&$filter.children('.active').data('filter');if('*'==cat){cat='';}
var default_args={},page=$this.attr('href').match(/paged=(\d+)|page\/(\d+)/);if(page&&Array.isArray(page)&&(page[1]||page[2])){default_args['page']=parseInt(page[1]||page[2]);}else{if($this.hasClass('prev')){default_args['page']=parseInt($this.next().text());}else if($this.hasClass('next')){default_args['page']=parseInt($this.prev().text());}else{default_args['page']=parseInt($this.text());}}
if(cat==''&&$wrap.find('input[type=hidden].category').length){cat=$wrap.find('input[type=hidden].category').val();default_args['taxonomy']=$wrap.find('input[type=hidden].taxonomy').val();}
theme.PostFilter.load_posts(cat,$wrap.hasClass('load-infinite'),$wrap,post_type,$obj,default_args,$this.attr('href'));});if(typeof theme.FilterZoom!=='undefined'){theme.FilterZoom.initialize($('.page-portfolios'));theme.FilterZoom.initialize($('.page-members'));theme.FilterZoom.initialize($('.blog-posts-related'));}
function portoSetHoverImage($this,enter=true){var $item=$this.find('[data-hoverlay-image]'),$postsGrid=$this.closest('.porto-posts-grid');if($item.length){var $target=$postsGrid.find('#himg-'+$item.data('hoverlay-id'));if(enter){$target.addClass('active');$postsGrid.addClass('active');}else{$target.removeClass('active');$postsGrid.removeClass('active');}}}
function InsertHoverImage($this){var $option=$this.data('hoverlay-image'),$postsGrid=$this.closest('.porto-posts-grid'),$postsWrap=$this.closest('.posts-wrap');$postsGrid.append('<div class="thumb-info-full" style="background-image: url('+$option.src+'); --porto-himg-height:'+$postsWrap.innerHeight()+'px;" id="himg-'+$option.id+'"></div>');$postsGrid.addClass('image-hover-overlay');if($postsWrap.hasClass('owl-carousel')){$postsWrap.on('refreshed.owl.carousel resized.owl.carousel',function(){$postsGrid.find('.thumb-info-full').css('--porto-himg-height',($postsWrap.innerHeight()+'px'));})}else{$(window).on('resize',function(){$postsGrid.find('.thumb-info-full').css('--porto-himg-height',($postsWrap.innerHeight()+'px'));});}
$('.image-hover-overlay').on('mouseenter touchstart','.porto-tb-item',function(e){portoSetHoverImage($(this));});$('.image-hover-overlay').on('mouseleave touchend','.porto-tb-item',function(e){portoSetHoverImage($(this),false);});}
$.extend(theme,{InsertHoverImage:InsertHoverImage});$('.porto-posts-grid [data-hoverlay-image]').each(function(){theme.InsertHoverImage($(this));});var $minicart_offcanvas=$('.minicart-offcanvas'),$wl_offcanvas=$('.wishlist-offcanvas'),$mobile_sidebar=$('.mobile-sidebar'),$mobile_panel=$('#side-nav-panel'),$overlay_search=$('#header .btn-close-search-form'),$html=$('html');if($minicart_offcanvas.length||$wl_offcanvas.length||$mobile_sidebar.length||$mobile_panel.length||$('.skeleton-loading').length||$overlay_search.length){$(document.documentElement).on('keyup',function(e){try{if(e.keyCode==27){$minicart_offcanvas.removeClass('minicart-opened');$wl_offcanvas.removeClass('minicart-opened');if($mobile_sidebar.length){$html.removeClass('filter-sidebar-opened');$html.removeClass('sidebar-opened');$('.sidebar-overlay').removeClass('active');}
if($mobile_panel.length&&$html.hasClass('panel-opened')){$html.removeClass('panel-opened');$('.panel-overlay').removeClass('active');}
if($overlay_search.length){$overlay_search.trigger('click');}}}catch(err){}});$('.skeleton-loading').on('skeleton-loaded',function(){$mobile_sidebar=$('.mobile-sidebar');});}
if($.fn.themeMouseparallax){$(function(){$('[data-plugin="mouse-parallax"]').each(function(){var $this=$(this),opts;if($this.data('parallax')){$this.parallax('disable');$this.removeData('parallax');$this.removeData('options');}
if($this.hasClass('elementor-element')){$this.children('.elementor-widget-container, .elementor-container, .elementor-widget-wrap, .elementor-column-wrap').addClass('layer').attr('data-depth',$this.attr('data-floating-depth'));}else{$this.children('.layer').attr('data-depth',$this.attr('data-floating-depth'));}
var pluginOptions=$this.data('options');if(pluginOptions)
opts=pluginOptions;$this.themeMouseparallax(opts);});});}
if($.fn['themePluginReadMore']&&$('[data-plugin-readmore]').length){$('[data-plugin-readmore]:not(.manual)').themePluginReadMore();}
if($.fn.themePluginHoverSplit){$('.mouse-hover-split').each(function(){var $this=$(this),$splitSlide=$this.find('>.split-slide');if($splitSlide.length>=2){$this.themePluginHoverSplit();}});}
if($.fn.themePluginHScroller){$('.horizontal-scroller-wrapper').each(function(){$(this).themePluginHScroller(true);});}
if($.fn.themePluginTIFloating){$('.thumb-info-floating-element-wrapper[data-plugin-tfloating]').each(function(){$(this).themePluginTIFloating();});}});(function(theme,$){if($('.wishlist-popup').length){var worker=null;$('.wishlist-offcanvas .my-wishlist').on('click',function(e){e.preventDefault();$(this).parent().toggleClass('minicart-opened');});$('.wishlist-offcanvas .minicart-overlay').on('click',function(){$(this).closest('.wishlist-offcanvas').removeClass('minicart-opened');});var init_wishlist=function(){worker=new Worker(js_porto_vars.ajax_loader_url.replace('/images/ajax-loader@2x.gif','/js/woocommerce-worker.js'));worker.onmessage=function(e){$('.wishlist-popup').html(e.data);};worker.postMessage({initWishlist:true,ajaxurl:theme.ajax_url,nonce:js_porto_vars.porto_nonce});};if(theme&&theme.isLoaded){setTimeout(function(){init_wishlist();},100);}else{$(window).on('load',function(){init_wishlist();});}
$('.wishlist-popup').on('click','.remove_from_wishlist',function(e){e.preventDefault();var $this=$(this),id=$this.attr('data-product_id'),$table=$('.wishlist_table #yith-wcwl-row-'+id+' .remove_from_wishlist');$this.closest('.wishlist-item').find('.ajax-loading').show();if($table.length){$table.trigger('click');}else{if(typeof yith_wcwl_l10n!=='undefined'){$.ajax({url:yith_wcwl_l10n.ajax_url,data:{action:yith_wcwl_l10n.actions.remove_from_wishlist_action,remove_from_wishlist:id,nonce:typeof yith_wcwl_l10n.nonce!=='undefined'?yith_wcwl_l10n.nonce.remove_from_wishlist_nonce:'',from:'theme'},method:'post',success:function(data){var $wcwlWrap=$('.yith-wcwl-add-to-wishlist.add-to-wishlist-'+id);if($wcwlWrap.length){var fragmentOptions=$wcwlWrap.data('fragment-options'),$link=$wcwlWrap.find('a');if($link.length){if(fragmentOptions.in_default_wishlist){delete fragmentOptions.in_default_wishlist;$wcwlWrap.attr(JSON.stringify(fragmentOptions));}
$wcwlWrap.removeClass('exists');$wcwlWrap.find('.yith-wcwl-wishlistexistsbrowse').addClass('yith-wcwl-add-button').removeClass('yith-wcwl-wishlistexistsbrowse');$wcwlWrap.find('.yith-wcwl-wishlistaddedbrowse').addClass('yith-wcwl-add-button').removeClass('yith-wcwl-wishlistaddedbrowse');$link.attr('href',location.href+'?post_type=product&amp;add_to_wishlist='+id).attr('data-product-id',id).attr('data-product-type',fragmentOptions.product_type);var text=$('.single_add_to_wishlist').data('title');if(!text){text='Add to wishlist';}
$link.attr('title',text).attr('data-title',text).addClass('add_to_wishlist single_add_to_wishlist').html('<span>'+text+'</span>');}}
$(document.body).trigger('removed_from_wishlist');}});}}});$(document.body).on('added_to_wishlist removed_from_wishlist',function(e){if(worker){worker.postMessage({loadWishlist:true,ajaxurl:theme.ajax_url,nonce:js_porto_vars.porto_nonce});}});}
$(document).on('yith_wcwl_add_to_wishlist_data',function(e,$el){if($el.length){$el.tooltip('hide');}});}).apply(this,[window.theme,jQuery]);
(function(t,a){"use strict";var e;t=t||{},a.extend(t,{PostAjaxModal:{defaults:{elements:".page-portfolios"},initialize:function(t,e){return this.$elements=t||a(this.defaults.elements),void 0===e&&(e="portfolio"),this.build(e),this},build:function(o){var n={$wrapper:null,modals:[],currentModal:0,total:0,p_type:"portfolio",build:function(t,e){var o=this;o.$wrapper=t,o.$wrapper&&(o.modals=[],o.total=0,o.p_type=e,t.find("a[data-ajax-on-modal]").each((function(){o.add(a(this))})),t.off("mousedown","a[data-ajax-on-modal]").on("mousedown","a[data-ajax-on-modal]",(function(t){if(2==t.which)return t.preventDefault(),!1})))},add:function(t){var a=this,e=t.attr("href"),o=a.total;a.modals.push({src:e}),a.total++,t.off("click").on("click",(function(t){return t.preventDefault(),a.show(o),!1}))},next:function(){var t=this;t.currentModal+1<t.total?t.show(t.currentModal+1):t.show(0)},prev:function(){var t=this;t.currentModal-1>=0?t.show(t.currentModal-1):t.show(t.total-1)},show:function(o){var n=this;if(n.currentModal=o,o<0||o>n.total-1)return!1;a.magnificPopup.close(),a.magnificPopup.open(a.extend(!0,{},t.mfpConfig,{type:"ajax",items:n.modals,gallery:{enabled:!0},ajax:{settings:{type:"post",data:{ajax_action:n.p_type+"_ajax_modal"}}},mainClass:n.p_type+"-ajax-modal",fixedContentPos:!1,callbacks:{parseAjax:function(t){var e=a(t.data),o=e.find("#content article."+n.p_type),i=e.filter('style[data-type]:not("")'),l="";i.each((function(){l+=a(this).text()})),a("#"+n.p_type+"AjaxCSS").get(0)?a("#"+n.p_type+"AjaxCSS").text(l):a('<style id="'+n.p_type+'AjaxCSS">'+l+"</style>").appendTo("head"),o.find("."+n.p_type+"-nav-all").html('<a href="#" data-ajax-'+n.p_type+'-close data-bs-tooltip data-original-title="'+js_porto_vars.popup_close+'" data-bs-placement="bottom"><i class="fas fa-th"></i></a>'),o.find("."+n.p_type+"-nav").html('<a href="#" data-ajax-'+n.p_type+'-prev class="'+n.p_type+'-nav-prev" data-bs-tooltip data-original-title="'+js_porto_vars.popup_prev+'" data-bs-placement="bottom"><i class="fa"></i></a><a href="#" data-toggle="tooltip" data-ajax-'+n.p_type+'-next class="'+n.p_type+'-nav-next" data-bs-tooltip data-original-title="'+js_porto_vars.popup_next+'" data-bs-placement="bottom"><i class="fa"></i></a>'),o.find(".elementor-invisible").removeClass("elementor-invisible"),0==o.length&&(o=e.find(".main-content>.porto-block")),t.data='<div class="ajax-container">'+o.html()+"</div>"},ajaxContentAdded:function(){var o=a("."+n.p_type+"-ajax-modal");o.find("a[data-ajax-"+n.p_type+"-close]").on("click",(function(t){return t.preventDefault(),a.magnificPopup.close(),!1})),e=o.find(".rev_slider, rs-module"),n.modals.length<=1?o.find("a[data-ajax-"+n.p_type+"-prev], a[data-ajax-"+n.p_type+"-next]").remove():(o.find("a[data-ajax-"+n.p_type+"-prev]").on("click",(function(t){if(t.preventDefault(),e&&e.get(0))try{e.revkill()}catch(t){}return o.find(".mfp-arrow-left").trigger("click"),!1})),o.find("a[data-ajax-"+n.p_type+"-next]").on("click",(function(t){if(t.preventDefault(),e&&e.get(0))try{e.revkill()}catch(t){}return o.find(".mfp-arrow-right").trigger("click"),!1}))),"portfolio"==n.p_type&&a(window).trigger("resize"),porto_init(),t.refreshVCContent(o),setTimeout((function(){var t=o.find("video");t.get(0)&&t.each((function(){a(this)[0].play(),a(this).parent().parent().parent().find(".video-controls").attr("data-action","play"),a(this).parent().parent().parent().find(".video-controls").html('<i class="ult-vid-cntrlpause"></i>')}))}),600),o.off("scroll").on("scroll",(function(){a.fn.appear.run()}))},change:function(){a(".mfp-wrap .ajax-container").trigger("click")},beforeClose:function(){if(e&&e.get(0))try{e.revkill()}catch(t){}a("."+n.p_type+"-ajax-modal").off("scroll")}}}),o)}};return this.$elements.each((function(){var t=a(this);t.find("a[data-ajax-on-modal]").get(0)&&(t.data(o+"AjaxOnModal")||(n.build(t,o),t.data(o+"AjaxOnModal",n)))})),this}}}),a(document.documentElement).on("keydown",(function(t){try{37!=t.keyCode&&39!=t.keyCode||e&&e.get(0)&&e.revkill()}catch(t){}}))}).apply(this,[window.theme,jQuery]),jQuery(document).ready((function(t){"use strict";void 0!==theme.PostAjaxModal&&(t(".page-portfolios").length&&t(".page-portfolios").each((function(){theme.PostAjaxModal.initialize(t(this))})),t(".page-members").length&&t(".page-members").each((function(){theme.PostAjaxModal.initialize(t(this),"member")})))}));
(function(e,t){"use strict";var a;e=e||{},t.extend(e,{MemberAjaxPage:{defaults:{elements:".page-members"},initialize:function(e){return this.$elements=e||t(this.defaults.elements),this.build(),this},build:function(){return this.$elements.each((function(){var n=t(this);if(n.find("#memberAjaxBox").get(0)){var o={$wrapper:t(this),pages:[],currentPage:0,total:0,$ajaxBox:n.find("#memberAjaxBox"),$ajaxBoxContent:n.find("#memberAjaxBoxContent"),build:function(){var e=this;e.pages=[],e.total=0,n.find("a[data-ajax-on-page]").each((function(){e.add(t(this))})),n.off("mousedown","a[data-ajax-on-page]").on("mousedown","a[data-ajax-on-page]",(function(e){if(2==e.which)return e.preventDefault(),!1}))},add:function(e){var t=this,a=e.attr("href");t.pages.push(a),t.total++,e.off("click").on("click",(function(e){return e.preventDefault(),t.show(t.pages.indexOf(a)),!1}))},next:function(){var e=this;e.currentPage+1<e.total?e.show(e.currentPage+1):e.show(0)},prev:function(){var e=this;e.currentPage-1>=0?e.show(e.currentPage-1):e.show(e.total-1)},show:function(n){var o=this;if(a=null,o.$ajaxBoxContent.find(".rev_slider, rs-module").get(0))try{o.$ajaxBoxContent.find(".rev_slider, rs-module").revkill()}catch(e){}if(o.$ajaxBoxContent.empty(),o.$ajaxBox.removeClass("ajax-box-init").addClass("ajax-box-loading"),e.scrolltoContainer(o.$ajaxBox),o.currentPage=n,n<0||n>o.total-1)return o.close(),!1;t.ajax({url:o.pages[n],complete:function(n){var i=t(n.responseText),r=i.find("#content article.member"),s=i.filter('style[data-type]:not("")'),l="";s.each((function(){l+=t(this).text()})),t("#memberAjaxCSS").get(0)?t("#memberAjaxCSS").text(l):t('<style id="memberAjaxCSS">'+l+"</style>").appendTo("head");var d=o.$ajaxBox.find(".ajax-content-append"),c="";d.length&&(c=d.html()),o.$ajaxBoxContent.html(r.html()).prepend('<div class="row"><div class="col-lg-12"><hr class="tall m-t-none"></div></div>').append('<div class="row"><div class="col-md-12"><hr class="m-t-md"></div></div>'+c),o.$ajaxBox.removeClass("ajax-box-loading"),t(window).trigger("resize"),porto_init(),e.refreshVCContent(o.$ajaxBoxContent),a=o}})}};o.build(),n.data("memberAjaxOnPage",o)}})),this}}}),t(document.documentElement).on("keyup",(function(e){try{if(!a)return;39==e.keyCode&&a.next(),37==e.keyCode&&a.prev()}catch(e){}}))}).apply(this,[window.theme,jQuery]),jQuery(document).ready((function(e){"use strict";void 0!==theme.MemberAjaxPage&&theme.MemberAjaxPage.initialize()}));
(function(){'use strict';if(typeof yith_wcwl_l10n!='undefined'){yith_wcwl_l10n.enable_tooltip=false;}
function portoCalcSliderButtonsPosition($parent,padding){var $buttons=$parent.find('.show-nav-title .owl-nav');if($buttons.length){if(window.theme.rtl){$buttons.css('left',padding);}else{$buttons.css('right',padding);}
if($buttons.closest('.porto-products').length&&$buttons.closest('.porto-products').parent().children('.products-slider-title').length){var $title=$buttons.closest('.porto-products').parent().children('.products-slider-title'),newMT=$title.offset().top-$parent.offset().top-parseInt($title.css('padding-top'),10)-parseInt($title.css('line-height'),10)/2+$buttons.children().outerHeight()-parseInt($buttons.children().css('margin-top'),10);$buttons.css('margin-top',newMT);}}}
if(typeof jQuery.fn.owlCarousel=='function'){(function(theme,$){theme=theme||{};var instanceName='__wooProductsSlider';var WooProductsSlider=function($el,opts){return this.initialize($el,opts);};WooProductsSlider.defaults={rtl:theme.rtl,autoplay:theme.slider_autoplay=='1'?true:false,autoplayTimeout:theme.slider_speed?theme.slider_speed:5000,loop:theme.slider_loop,nav:false,navText:["",""],dots:false,autoplayHoverPause:true,items:1,responsive:{},autoHeight:true,lazyLoad:true};WooProductsSlider.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this;}
this.$el=$el;this.setData().setOptions(opts).build();return this;},setData:function(){this.$el.data(instanceName,true);return this;},setOptions:function(opts){this.options=$.extend(true,{},WooProductsSlider.defaults,opts,{wrapper:this.$el});return this;},calcOwlHeight:function($el){var h=0;$el.find('.owl-item.active').each(function(){if(h<$(this).height())
h=$(this).height();});$el.find('.owl-stage-outer').height(h);},build:function(){var self=this,$el=this.options.wrapper,lg=this.options.lg,md=this.options.md,xs=this.options.xs,ls=this.options.ls,$slider_wrapper=$el.closest('.slider-wrapper'),single=this.options.single,dots=this.options.dots,nav=this.options.nav,responsive={},items,scrollWidth=0,count=$el.find('> *').length,w_xs=576-scrollWidth,w_md=768-scrollWidth,w_xl=theme.screen_xl-scrollWidth,w_sl=theme.screen_xxl-scrollWidth;if($el.find('.product-col').get(0)){portoCalcSliderButtonsPosition($slider_wrapper,$el.find('.product-col').css('padding-left'));}
if(single){items=1;}else{items=lg?lg:1;if(this.options.xl){responsive[w_sl]={items:this.options.xl,loop:(this.options.loop&&count>this.options.xl)?true:false};}
responsive[w_xl]={items:items,loop:(this.options.loop&&count>items)?true:false};if(md)responsive[w_md]={items:md,loop:(this.options.loop&&count>md)?true:false};if(xs)responsive[w_xs]={items:xs,loop:(this.options.loop&&count>xs)?true:false};if(ls)responsive[0]={items:ls,loop:(this.options.loop&&count>ls)?true:false};}
this.options=$.extend(true,{},this.options,{loop:(this.options.loop&&count>items)?true:false,items:items,responsive:responsive,onRefresh:function(){if($el.find('.product-col').get(0)){portoCalcSliderButtonsPosition($slider_wrapper,$el.find('.product-col').css('padding-left'));}},onInitialized:function(){if($el.find('.product-col').get(0)){portoCalcSliderButtonsPosition($slider_wrapper,$el.find('.product-col').css('padding-left'));}
if($el.find('.owl-item.cloned').length){setTimeout(function(){var ins=$el.find('.owl-item.cloned .porto-lazyload:not(.lazy-load-loaded)').themePluginLazyLoad({effect:'fadeIn',effect_speed:400});if(ins&&ins.loadAndDestroy){ins.loadAndDestroy();}},100);}},touchDrag:(count==1)?false:true,mouseDrag:(count==1)?false:true});if(this.options.autoHeight){var thisobj=this;$(window).on('resize',function(){thisobj.calcOwlHeight($el);});if(theme.isLoaded){setTimeout(function(){thisobj.calcOwlHeight($el);},100);}else{$(window).on('load',function(){thisobj.calcOwlHeight($el);});}}
$el.owlCarousel(this.options);return this;}};$.extend(theme,{WooProductsSlider:WooProductsSlider});$.fn.themeWooProductsSlider=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this;}else{return new theme.WooProductsSlider($this,opts);}});}}).apply(this,[window.theme,jQuery]);}
(function(theme,$){var $supports_html5_storage;try{$supports_html5_storage=('sessionStorage'in window&&window.sessionStorage!==null);window.sessionStorage.setItem('wc','test');window.sessionStorage.removeItem('wc');}catch(err){$supports_html5_storage=false;}
var setCartCreationTimestamp=function(){if($supports_html5_storage){sessionStorage.setItem('wc_cart_created',(new Date()).getTime());}};var setCartHash=function(cart_hash){if($supports_html5_storage&&wc_cart_fragments_params){localStorage.setItem(wc_cart_fragments_params.cart_hash_key,cart_hash);sessionStorage.setItem(wc_cart_fragments_params.cart_hash_key,cart_hash);}};var initAjaxRemoveCartItem=function(){$(document).off('click','.widget_shopping_cart .remove-product, .shop_table.cart .remove-product').on('click','.widget_shopping_cart .remove-product, .shop_table.cart .remove-product',function(e){e.preventDefault();var $this=$(this);var cart_id=$this.data("cart_id");var product_id=$this.data("product_id");$this.closest('li').find('.ajax-loading').show();$.ajax({type:'POST',dataType:'json',url:theme.ajax_url,data:{action:"porto_cart_item_remove",nonce:js_porto_vars.porto_nonce,cart_id:cart_id},success:function(response){var this_page=window.location.toString(),item_count=$(response.fragments['div.widget_shopping_cart_content']).find('.mini_cart_item').length;this_page=this_page.replace('add-to-cart','added-to-cart');updateCartFragment(response);$(document.body).trigger('wc_fragments_refreshed');$('.viewcart-'+product_id).removeClass('added');$('.porto_cart_item_'+cart_id).remove();if(item_count==0&&($('body').hasClass('woocommerce-cart')||$('body').hasClass('woocommerce-checkout'))){$('.page-content').fadeTo(400,0.8).block({message:null,overlayCSS:{opacity:0.2}});}else{$('.shop_table.cart, .shop_table.review-order, .updating, .cart_totals').fadeTo(400,0.8).block({message:null,overlayCSS:{opacity:0.2}});}
$('.widget_shopping_cart, .updating').stop(true).css('opacity','1').unblock();if(item_count==0&&($('body').hasClass('woocommerce-cart')||$('body').hasClass('woocommerce-checkout'))){$('.page-content').load(this_page+' .page-content:eq(0) > *',function(){$('.page-content').stop(true).css('opacity','1').unblock();});}else{$('.shop_table.cart').load(this_page+' .shop_table.cart:eq(0) > *',function(){$('.shop_table.cart').stop(true).css('opacity','1').unblock();});$('.cart_totals').load(this_page+' .cart_totals:eq(0) > *',function(){$('.cart_totals').stop(true).css('opacity','1').unblock();});$('.shop_table.review-order').load(this_page+' .shop_table.review-order:eq(0) > *',function(){$('.shop_table.review-order').stop(true).css('opacity','1').unblock();});}}});return false;});};var refreshCartFragment=function(){initAjaxRemoveCartItem();if($.cookie('woocommerce_items_in_cart')>0){$('.hide_cart_widget_if_empty').closest('.widget_shopping_cart').show();}else{$('.hide_cart_widget_if_empty').closest('.widget_shopping_cart').hide();}};var updateCartFragment=function(data){if(data&&data.fragments){var fragments=data.fragments,cart_hash=data.cart_hash;$.each(fragments,function(key,value){$(key).replaceWith(value);});if(typeof wc_cart_fragments_params==='undefined'){return;}
if($supports_html5_storage){var prev_cart_hash=sessionStorage.getItem('wc_cart_hash');if(prev_cart_hash===null||prev_cart_hash===undefined||prev_cart_hash===''){setCartCreationTimestamp();}
sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(fragments));setCartHash(cart_hash);}}};$(function(){refreshCartFragment();$(document).on('click','.add_to_cart_button',function(e){var $this=$(this);if($this.is('.product_type_simple')){if($this.attr('data-product_id')){$this.addClass('product-adding');}
if($this.hasClass('viewcart-style-2')||$this.hasClass('viewcart-style-3')){$('body').append('<div id="loading-mask"><div class="background-overlay"></div></div>');if(!$(this).closest('.product').find('.loader-container').length){$(this).closest('.product').find('.product-image').append('<div class="loader-container"><div class="loader"><i class="porto-ajax-loader"></i></div></div>');}
$(this).closest('.product').find('.loader-container').show();}}});$(document).on('click','span.add_to_cart_button',function(e){var $this=$(this);if($this.is('.product_type_simple')){if(!$this.attr('data-product_id')){window.location.href=$this.attr('href');}}else{window.location.href=$this.attr('href');}});$(document.body).on('added_to_cart',function(){$('ul.products li.product .added_to_cart, .porto-tb-item .added_to_cart').remove();initAjaxRemoveCartItem();});$(document.body).on('wc_cart_button_updated',function(){$('ul.products li.product .added_to_cart, .porto-tb-item .added_to_cart').remove();});$(document.body).on('wc_fragments_refreshed wc_fragments_loaded',function(){refreshCartFragment();});$(document).on('click','.product-image .viewcart, .after-loading-success-message .viewcart',function(e){if(wc_add_to_cart_params.cart_url){window.location.href=wc_add_to_cart_params.cart_url;}
e.preventDefault();});var porto_product_add_cart_timer=null;$(document).on('added_to_cart','body',function(event){var $mc_item=$('#mini-cart .cart-items');if($mc_item.length){$mc_item.addClass('count-updating');setTimeout(function(){$mc_item.removeClass('count-updating');},1000);}
$('body #loading-mask').remove();$('.add_to_cart_button.product-adding').each(function(){var $link=$(this);$link.removeClass('product-adding');if($link.hasClass('viewcart-style-1')){$link.closest('.product').find('.viewcart').addClass('added');$('.minicart-offcanvas').addClass('minicart-opened');}else{$link.closest('.product').find('.loader-container').hide();if($link.closest('li.outofstock').length){return;}
var $msg;if($link.hasClass('viewcart-style-2')){$msg=$('.after-loading-success-message .success-message-container').eq(0);$msg.find('.product-name').text($link.closest('.product').find('.woocommerce-loop-product__title').text());}else{$msg=$('.after-loading-success-message .success-message-container').last().clone().removeClass('d-none');$msg.find('.product-name').empty().append($link.closest('.product').find('.product-loop-title, .post-title a').clone());}
$msg.find('.msg-box img').remove();if($link.closest('.product').find('.product-image img').length){var $img=$link.closest('.product').find('.product-image img').eq(0);$('<img />').attr('src',$img.data('oi')?$img.data('oi'):$img.attr('src')).appendTo($msg.find('.msg-box'));}
$('.after-loading-success-message').eq(0).stop().show();if($link.hasClass('viewcart-style-2')){if(porto_product_add_cart_timer){clearTimeout(porto_product_add_cart_timer);}
porto_product_add_cart_timer=setTimeout(function(){$('.after-loading-success-message').eq(0).hide();},4000);}else{$msg.prependTo('.after-loading-success-message');theme.requestFrame(function(){$msg.addClass('active');});setTimeout(function(){$msg.find('.mfp-close').trigger('click');},5000);}}});});$('.after-loading-success-message .continue_shopping').on('click',function(){$('.after-loading-success-message').eq(0).fadeOut(200);});$('.after-loading-success-message').on('click','.mfp-close',function(){var $obj=$(this).closest('.success-message-container');$obj.removeClass('active');theme.requestTimeout(function(){$obj.slideUp(300,function(){$obj.remove();});},350);});$(document.body).on('click','.variations_form .variations .filter-item-list .filter-color, .variations_form .variations .filter-item-list .filter-item',function(e){e.preventDefault();var $this=$(this),$selector=$this.closest('ul').siblings('select');if(!$selector.length||$this.hasClass('disabled')){return;}
var $li_obj=$this.closest('li');if($li_obj.hasClass('active')){$li_obj.removeClass('active');$selector.val('');}else{$li_obj.addClass('active').siblings().removeClass('active');$selector.val($this.data('value'));}
$selector.trigger('change.wc-variation-form');});$(document).on('wc_variation_form','.variations_form',function(){$(this).addClass('vf_init');if($(this).find('.filter-item-list').length<1){return;}
$(this).find('.variations select').trigger('focusin');});$(document).on('updated_wc_div',function(){$('.woocommerce-cart-form .porto-lazyload').themePluginLazyLoad();});$(document).on('found_variation reset_data','.variations_form',function(e,args){var $this=$(this);if($this.find('.product-attr-description').length){if(typeof args=='undefined'){$this.find('.product-attr-description').removeClass('active');}else{$this.find('.product-attr-description').addClass('active');$this.find('.product-attr-description .attr-desc').removeClass('active');$this.find('.variations select').each(function(){var $obj=$(this);$this.find('.product-attr-description .attr-desc[data-attrid="'+$obj.val()+'"]').addClass('active');});}}
if($this.find(".filter-item-list").length<1){return;}
$this.find(".filter-item-list").each(function(){if($(this).next("select").length<1){return;}
var selector=$(this).next("select"),$list=$(this);$list.find('li.active').removeClass('active');$list.find('.filter-color, .filter-item').removeClass('enabled').removeClass('disabled');selector.children("option").each(function(){if(!$(this).val()){return;}
$list.find('[data-value="'+$(this).val()+'"]').addClass('enabled');if($(this).val()==selector.val()){$list.find('[data-value="'+$(this).val()+'"]').parent().addClass('active');}});$list.find('.filter-color:not(.enabled), .filter-item:not(.enabled)').addClass('disabled');});});$(document).on('found_variation reset_data','.variations_form',function(e,obj){var $wrapper=$(this).closest('.product'),$timer=$wrapper.find('.sale-product-daily-deal.for-some-variations');if(!$timer.length){$timer=$wrapper.find('.porto-product-sale-timer').eq(0);if(!$timer.length){return;}}
if(obj&&obj.is_purchasable&&typeof obj.porto_date_on_sale_to!='undefined'&&obj.porto_date_on_sale_to){var saleTimer=$timer.find('.porto_countdown-dateAndTime');if(saleTimer.data('terminal-date')!=obj.porto_date_on_sale_to){var newDate=new Date(obj.porto_date_on_sale_to);saleTimer.porto_countdown('option',{until:newDate});saleTimer.data('terminal-date',obj.porto_date_on_sale_to);}
$timer.slideDown();}else{if($timer.is(':hidden')){$timer.hide();}else{$timer.slideUp();}}});$('body').on('click','.product-attr-description > a',function(e){e.preventDefault();$(this).next().stop().slideToggle(400);});if($(document.body).hasClass('single-product')){$(document).on('woocommerce_variation_has_changed','.variations_form',function(e,variation){$(document.body).removeClass('single-add-to-cart');});$(document).on('found_variation','.variations_form',function(e,variation){try{var cart_items=JSON.parse(sessionStorage.getItem(wc_cart_fragments_params.fragment_name));if(cart_items['div.widget_shopping_cart_content']){var cart_item=$(cart_items['div.widget_shopping_cart_content']).find('.porto-variation-'+variation.variation_id);if(cart_item.length){theme.requestFrame(function(){$(document.body).addClass('single-add-to-cart');});}}}catch(e){}});}
var timeout;$(document).on('change input','.cart_list .quantity .qty',function(){var input=$(this);var qtyVal=input.val();var itemID=input.parents('.woocommerce-mini-cart-item').data('key');var maxValue=input.attr('max');clearTimeout(timeout);if(parseInt(qtyVal)>parseInt(maxValue)){qtyVal=maxValue;}
timeout=setTimeout(function(){input.parents('.mini_cart_item').find('.ajax-loading').show();$.ajax({url:theme.ajax_url,data:{action:'porto_update_cart_item',item_id:itemID,qty:qtyVal},success:function(data){if(data&&data.fragments){updateCartFragment(data);$(document.body).trigger('wc_fragments_refreshed');}
input.parents('.mini_cart_item').find('.ajax-loading').hide();},dataType:'json',method:'GET'});},500);});});}).apply(this,[window.theme,jQuery]);(function(theme,$){theme=theme||{};var duration=300,flag=false;$.extend(theme,{WooProductImageSlider:{defaults:{elements:'.product-image-slider'},initialize:function($elements){if(!$.fn.owlCarousel)return false;this.$elements=($elements||$(this.defaults.elements));if(!this.$elements.length&&!$('.product-images-block').length){return this;}
this.build();return this;},build:function(){var self=this,thumbs_count=theme.product_thumbs_count;if(theme.product_zoom&&(!('ontouchstart'in document)||(('ontouchstart'in document)&&theme.product_zoom_mobile))){var zoomConfig={responsive:true,zoomWindowFadeIn:200,zoomWindowFadeOut:100,zoomType:js_porto_vars.zoom_type,cursor:'grab'};if(js_porto_vars.zoom_type=='lens'){zoomConfig.scrollZoom=js_porto_vars.zoom_scroll;zoomConfig.lensSize=js_porto_vars.zoom_lens_size;zoomConfig.lensShape=js_porto_vars.zoom_lens_shape;zoomConfig.containLensZoom=js_porto_vars.zoom_contain_lens;zoomConfig.lensBorderSize=js_porto_vars.zoom_lens_border;zoomConfig.borderColour=js_porto_vars.zoom_border_color;}
if(js_porto_vars.zoom_type=='inner'){zoomConfig.borderSize=0;}else{zoomConfig.borderSize=js_porto_vars.zoom_border;}
if(!self.$elements.length){var $images_grid=$('.product-images-block');if($images_grid.length){$images_grid.find('img').each(function(){var $this=$(this);zoomConfig.zoomContainer=$this.parent();if($.fn.elevateZoom){$this.elevateZoom(zoomConfig);}else{setTimeout(function(){if($.fn.elevateZoom){$this.elevateZoom(zoomConfig);}},1000);}});}}}
self.$elements.each(function(){var $this=$(this),$product=$this.closest('.product');if(!$product.length){$product=$this.closest('.product_layout, .product-layout-image').eq(0);}
var $thumbs_slider=$product.find('.product-thumbs-slider'),$thumbs=$product.find('.product-thumbnails-inner'),$thumbs_vertical_slider=$product.find('.product-thumbs-vertical-slider'),currentSlide=0,count=$this.find('> *').length;$this.find('> *:first-child').imagesLoaded(function(){$thumbs_slider.owlCarousel({rtl:theme.rtl,loop:false,autoplay:false,items:thumbs_count,nav:false,navText:["",""],dots:false,rewind:true,margin:8,stagePadding:1,lazyLoad:true,onInitialized:function(){self.selectThumb(null,$thumbs_slider,0);if($thumbs_slider.find('.owl-item').length>=thumbs_count)
$thumbs_slider.append('<div class="thumb-nav"><div class="thumb-prev"></div><div class="thumb-next"></div></div>');}}).on('click','.owl-item',function(){self.selectThumb($this,$thumbs_slider,$(this).index());});if($thumbs_vertical_slider.length>0&&typeof $.fn.slick=='function'){var slickOptions={dots:false,vertical:true,slidesToShow:thumbs_count,slidesToScroll:1,infinite:false,}
if(thumbs_count>=5){slickOptions['responsive']=[{breakpoint:992,settings:{slidesToShow:4,}},{breakpoint:768,settings:{slidesToShow:3,}}]}
$thumbs_vertical_slider.slick(slickOptions).on('click','.img-thumbnail',function(){self.selectVerticalSliderThumb($this,$thumbs_vertical_slider,$(this).data('slick-index'));});self.selectVerticalSliderThumb(null,$thumbs_vertical_slider,0);if($thumbs_vertical_slider.find('.porto-lazyload').length){theme.requestTimeout(function(){$thumbs_vertical_slider.find('.slick-cloned .porto-lazyload:not(.lazy-load-loaded)').each(function(){$(this).attr('src',$(this).data('oi')).removeAttr('data-oi').addClass('lazy-load-loaded');});},100);}}
self.selectVerticalThumb(null,$thumbs,0);$thumbs.off('click','.img-thumbnail').on('click','.img-thumbnail',function(){self.selectVerticalThumb($this,$thumbs,$(this).index());});$thumbs_slider.off('click','.thumb-prev').on('click','.thumb-prev',function(e){var currentThumb=$thumbs_slider.data('currentThumb');self.selectThumb($this,$thumbs_slider,--currentThumb);});$thumbs_slider.off('click','.thumb-next').on('click','.thumb-next',function(e){var currentThumb=$thumbs_slider.data('currentThumb');self.selectThumb($this,$thumbs_slider,++currentThumb);});var links=[];if(theme.product_image_popup){var i=0;$this.find('img').each(function(){var slide={};slide.src=$(this).attr('href');slide.title=$(this).attr('alt');links[i]=slide;i++;});}
var itemsCount=typeof $this.data('items')!='undefined'?$this.data('items'):1,itemsResponsive=typeof $this.data('responsive')!='undefined'?$this.data('responsive'):{},centerItem=typeof $this.data('centeritem')!='undefined'?true:false,margin=typeof $this.data('margin')!='undefined'?$this.data('margin'):0,loop=(count>1)?(typeof $this.data('loop')!='undefined'?$this.data('loop'):true):false;for(var itemCount in itemsResponsive){itemsResponsive[itemCount]={items:itemsResponsive[itemCount]};}
$this.owlCarousel({rtl:theme.rtl,loop:loop,autoplay:false,items:itemsCount,margin:margin,responsive:itemsResponsive,autoHeight:true,nav:true,navText:["",""],dots:false,rewind:true,lazyLoad:true,center:centerItem,onInitialized:function(){if($this.find('.owl-item.cloned').length){setTimeout(function(){var ins=$this.find('.owl-item.cloned .porto-lazyload:not(.lazy-load-loaded)').themePluginLazyLoad({effect:'fadeIn',effect_speed:400});if(ins&&ins.loadAndDestroy){ins.loadAndDestroy();}},100);}
if(theme.product_zoom&&(!('ontouchstart'in document)||(('ontouchstart'in document)&&theme.product_zoom_mobile))){$this.find('img').each(function(){var $this=$(this);zoomConfig.zoomContainer=$this.parent();if($.fn.elevateZoom){$this.elevateZoom(zoomConfig);}else{setTimeout(function(){if($.fn.elevateZoom){$this.elevateZoom(zoomConfig);}},1000);}});}},onTranslate:function(event){currentSlide=event.item.index-$this.find('.cloned').length/2;currentSlide=(currentSlide+event.item.count)%event.item.count;self.selectThumb(null,$thumbs_slider,currentSlide);self.selectVerticalThumb(null,$thumbs,currentSlide);self.selectVerticalSliderThumb(null,$thumbs_vertical_slider,currentSlide);},onRefreshed:function(){if(theme.product_zoom&&(!('ontouchstart'in document)||(('ontouchstart'in document)&&theme.product_zoom_mobile))){$this.find('img').each(function(){var $this=$(this),src=typeof $this.attr('href')!='undefined'?$this.attr('href'):($this.data('oi')?$this.data('oi'):$this.attr('src')),elevateZoom=$this.data('elevateZoom'),smallImage=$this.data('src')?$this.data('src'):($this.data('oi')?$this.data('oi'):$this.attr('src'));if(typeof elevateZoom!='undefined'){elevateZoom.startZoom();elevateZoom.swaptheimage(smallImage,src);}else if($.fn.elevateZoom){zoomConfig.zoomContainer=$this.parent();$this.elevateZoom(zoomConfig);}});}}});$this.data('links',links);if(theme.product_image_popup){var $zoom_buttons=$this.siblings('.zoom');$zoom_buttons.off('click').on('click',function(e){e.preventDefault();if($.fn.magnificPopup){$.magnificPopup.close();$.magnificPopup.open($.extend(true,{},theme.mfpConfig,{items:$this.data('links'),gallery:{enabled:true},type:'image'}),currentSlide);}});}});});return self;},selectThumb:function($image_slider,$thumbs_slider,index){if(flag||!$thumbs_slider.length)return;flag=true;var len=$thumbs_slider.find('.owl-item').length,actives=[],i=0;index=(index+len)%len;if($image_slider){$image_slider.trigger('to.owl.carousel',[index,duration,true]);}
$thumbs_slider.find('.owl-item').removeClass('selected');$thumbs_slider.find('.owl-item:eq('+index+')').addClass('selected');$thumbs_slider.data('currentThumb',index);$thumbs_slider.find('.owl-item.active').each(function(){actives[i++]=$(this).index();});if($.inArray(index,actives)==-1){if(Math.abs(index-actives[0])>Math.abs(index-actives[actives.length-1])){$thumbs_slider.trigger('to.owl.carousel',[(index-actives.length+1)%len,duration,true]);}else{$thumbs_slider.trigger('to.owl.carousel',[index%len,duration,true]);}}
flag=false;},selectVerticalSliderThumb:function($image_slider,$thumbs_vertical_slider,index){if(flag||!$thumbs_vertical_slider.length)return;flag=true;if('undefined'==typeof $thumbs_vertical_slider[0].slick){return;}
var len=$thumbs_vertical_slider[0].slick.slideCount,actives=[],i=0;index=(index+len)%len;if($image_slider){$image_slider.trigger('to.owl.carousel',[index,duration,true]);}
$thumbs_vertical_slider.find('.img-thumbnail').removeClass('selected');$thumbs_vertical_slider.find('.img-thumbnail:eq('+index+')').addClass('selected');$thumbs_vertical_slider.data('currentThumb',index);$thumbs_vertical_slider.find('.img-thumbnail.slick-active').each(function(){actives[i++]=$(this).index();});if($.inArray(index,actives)==-1){if(Math.abs(index-actives[0])>Math.abs(index-actives[actives.length-1])){$thumbs_vertical_slider.get(0).slick.goTo((index-actives.length+1)%len,false);}else{$thumbs_vertical_slider.get(0).slick.goTo(index%len,false);}}
flag=false;},selectVerticalThumb:function($image_slider,$thumbs,index){if(flag||!$thumbs.length)return;flag=true;var len=$thumbs.find('.img-thumbnail').length,i=0;index=(index+len)%len;if($image_slider){$image_slider.trigger('to.owl.carousel',[index,duration,true]);}
$thumbs.find('.img-thumbnail').removeClass('selected');$thumbs.find('.img-thumbnail:eq('+index+')').addClass('selected');$thumbs.data('currentThumb',index);flag=false;}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){theme=theme||{};$.extend(theme,{WooQuickView:{initialize:function(){this.events();return this;},events:function(){var self=this;$(document).on('click','.quickview',function(e){e.preventDefault();if(!$.fn.elevateZoom&&!$('#porto-script-jquery-elevatezoom').length){var js=document.createElement('script');js.id='porto-script-jquery-elevatezoom';$(js).appendTo('body').attr('src',js_porto_vars.ajax_loader_url.replace('/images/ajax-loader@2x.gif','/js/libs/jquery.elevatezoom.min.js'));}
var $this=$(this),pid=$this.attr('data-id');function init_quick_view_window(){var args={href:theme.ajax_url,ajax:{data:{action:'porto_product_quickview',variation_flag:typeof wc_add_to_cart_variation_params!=='undefined',pid:pid,nonce:js_porto_vars.porto_nonce}},type:'ajax',helpers:{overlay:{locked:true,fixed:true}},tpl:{error:'<p class="fancybox-error">'+theme.request_error+'</p>',closeBtn:'<a title="'+js_porto_vars.popup_close+'" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="'+js_porto_vars.popup_next+'" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="'+js_porto_vars.popup_prev+'" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},autoSize:true,autoWidth:true,afterShow:function(flag){theme.requestTimeout(function(){if(typeof flag=='undefined'||flag){porto_woocommerce_init();}
theme.WooProductImageSlider.initialize($('.quickview-wrap-'+pid).find('.product-image-slider'));if($(document.body).hasClass('yith-booking')){$(document).trigger('yith-wcbk-init-booking-form');}
var form_variation=$('.quickview-wrap-'+pid).find('form.variations_form');if(form_variation.length>0){form_variation.wc_variation_form();}
$(document.body).trigger('porto_init_countdown',[$('.quickview-wrap-'+pid)]);if(('undefined'!==typeof yith_wcwl_l10n)&&yith_wcwl_l10n.enable_ajax_loading){if($('.fancybox-opened .wishlist-fragment').length){var options={},$product=$('.fancybox-opened .wishlist-fragment'),id=$product.attr('class').split(' ').filter((val)=>{return val.length&&val!=='exists';}).join(yith_wcwl_l10n.fragments_index_glue);options[id]=$product.data('fragment-options');if(!options){return;}
var ajaxData={action:yith_wcwl_l10n.actions.load_fragments,context:'frontend',fragments:options};if(typeof yith_wcwl_l10n.nonce!='undefined'){ajaxData.nonce=yith_wcwl_l10n.nonce.load_fragments_nonce;}
$.ajax({ajaxData,method:'post',success:function(data){if(typeof data.fragments!=='undefined'){$.each(data.fragments,function(i,v){var itemSelector='.'+i.split(yith_wcwl_l10n.fragments_index_glue).filter((val)=>{return val.length&&val!=='exists'&&val!=='with-count';}).join('.'),toReplace=$(itemSelector);var replaceWith=$(v).filter(itemSelector);if(!replaceWith.length){replaceWith=$(v).find(itemSelector);}
if(toReplace.length&&replaceWith.length){toReplace.replaceWith(replaceWith);}});}},url:yith_wcwl_l10n.ajax_url});}}},200);},onUpdate:function(){theme.requestTimeout(function(){if(js_porto_vars.use_skeleton_screen.indexOf('quickview')==-1||!js_porto_vars.quickview_skeleton){porto_woocommerce_init();}
var $slider=$('.quickview-wrap-'+pid).find('.product-image-slider');if(typeof $slider.data('owl.carousel')!='undefined'&&typeof $slider.data('owl.carousel')._invalidated!='undefined')
$slider.data('owl.carousel')._invalidated.width=true;$slider.trigger('refresh.owl.carousel');$(document.body).trigger('porto_init_countdown',[$('.quickview-wrap-'+pid)]);},300);}};if(js_porto_vars.use_skeleton_screen.indexOf('quickview')!=-1&&js_porto_vars.quickview_skeleton){delete args['href'];delete args['ajax'];args['type']='inline';$.fancybox.open(js_porto_vars.quickview_skeleton,args);$.ajax({url:theme.ajax_url,type:'post',dataType:'html',data:{action:'porto_product_quickview',variation_flag:typeof wc_add_to_cart_variation_params!=='undefined',pid:pid,nonce:js_porto_vars.porto_nonce},success:function(res){var $res=$(res);$res.imagesLoaded(function(){$('.skeleton-body.product').replaceWith($res);theme.WooQtyField.initialize();$(window).trigger('resize');args['afterShow'].call(false);});}});}else{$.fancybox(args);}}
if($.fn.fancybox){init_quick_view_window();}else if(!$('#porto-script-jquery-fancybox').length){var js1=document.createElement('script');js1.id='porto-script-jquery-fancybox';$(js1).appendTo('body').on('load',function(){init_quick_view_window();}).attr('src',js_porto_vars.ajax_loader_url.replace('/images/ajax-loader@2x.gif','/js/libs/jquery.fancybox.min.js'));}
return false;});if(typeof wc_add_to_cart_params!='undefined'){$(document.body).on('click','.single-product .single_add_to_cart_button:not(.disabled)',function(e){if($(this).closest('.single-product').hasClass('product-type-external')||$(this).closest('.single-product').hasClass('product-type-grouped')){return true;}
e.preventDefault();var $button=$(this),product_id=$button.val(),variation_id=$button.closest('form').find('input[name="variation_id"]').val(),quantity=$button.closest('form').find('input[name="quantity"]').val();if($button.hasClass('loading')){return false;}
$button.removeClass('added');$button.addClass('loading');$button.parent().addClass('porto-ajax-loading');if(!$button.siblings('.porto-loading-icon').length){$('<span class="porto-loading-icon"></span>').insertAfter($button);}
var data={action:'porto_add_to_cart',product_id:variation_id?variation_id:product_id,quantity:quantity};if(variation_id){var $variations=$button.closest('form').find('.variations select');if($variations.length){$variations.each(function(){var name=$(this).data('attribute_name'),val=$(this).val();if(name&&val){data[name]=val;}});}}
$(document.body).trigger('adding_to_cart',[$button,data]);$.ajax({type:'POST',url:theme.ajax_url,data:data,dataType:'json',success:function(response){$button.parent().removeClass('porto-ajax-loading');if(!response){return;}
if(response.error&&response.product_url){window.location=response.product_url;return;}
if(wc_add_to_cart_params.cart_redirect_after_add==='yes'){window.location=wc_add_to_cart_params.cart_url;return;}
$(document.body).trigger('added_to_cart',[response.fragments,response.cart_hash,$button]);}});});}
return self;}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){theme=theme||{};$.extend(theme,{WooQtyField:{initialize:function(){this.build().events();return this;},qty_handler:function(){var $obj=$(this);if($obj.closest('.quantity').next('.add_to_cart_button[data-quantity]').length){var count=$obj.val();if(count){$obj.closest('.quantity').next('.add_to_cart_button[data-quantity]').attr('data-quantity',count);}}},build:function(){var self=this;$('div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)').addClass('buttons_added').append('<button type="button" value="+" class="plus">+</button>').prepend('<button type="button" value="-" class="minus">-</button>');$('input.qty:not(.product-quantity input.qty)').each(function(){var min=parseFloat($(this).attr('min'));if(min&&min>0&&parseFloat($(this).val())<min){$(this).val(min);}});$('input.qty:not(.product-quantity input.qty)').off('change',self.qty_handler).on('change',self.qty_handler);$(document).off('click','.quantity .plus, .quantity .minus').on('click','.quantity .plus, .quantity .minus',function(){var $qty=$(this).closest('.quantity').find('.qty'),currentVal=parseFloat($qty.val()),max=parseFloat($qty.attr('max')),min=parseFloat($qty.attr('min')),step=$qty.attr('step');if(!currentVal||currentVal===''||currentVal==='NaN')currentVal=0;if(max===''||max==='NaN')max='';if(min===''||min==='NaN')min=0;if(step==='any'||step===''||step===undefined||parseFloat(step)==='NaN')step=1;if($(this).is('.plus')){if(max&&(max==currentVal||currentVal>max)){$qty.val(max);}else{$qty.val(currentVal+parseFloat(step));}}else{if(min&&(min==currentVal||currentVal<min)){$qty.val(min);}else if(currentVal>0){$qty.val(currentVal-parseFloat(step));}}
$qty.trigger('change');});return self;},events:function(){var self=this;$(document).ajaxComplete(function(event,xhr,options){self.build();});return self;}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){theme=theme||{};var duration=300;$.extend(theme,{WooVariationForm:{initialize:function(){this.init().events();return this;},init:function(){$('.variations_form').each(function(){var $variation_form=$(this),$reset_variations=$variation_form.find('.reset_variations');if($reset_variations.css('visibility')=='hidden')
$reset_variations.hide();});return this;},events:function(){var self=this;$(document).on('check_variations','.variations_form',function(event,exclude,focus){var $variation_form=$(this),$reset_variations=$variation_form.find('.reset_variations');if($reset_variations.css('visibility')=='hidden')
$reset_variations.hide();});$(document).on('reset_image','.variations_form',function(event){var $product=$(this).closest('.product, .product-col'),$product_img=$product.find('div.product-images .woocommerce-main-image');if($product.hasClass('product-col')){$product_img=$product.find('div.product-image .inner img:first-child');}else if($product.hasClass('porto-tb-item')){$product_img=$product.find('.porto-tb-featured-image img').eq(0);}
var o_src=$product_img.attr('data-o_src'),o_title=$product_img.attr('data-o_title'),o_href=$product_img.attr('data-o_href'),$thumb_img=$product.find('.woocommerce-main-thumb'),o_thumb_src=$thumb_img.attr('data-o_src');var $image_slider=$product.find('.product-image-slider'),$thumbs_slider=$product.find('.product-thumbs-slider'),links;if($image_slider.length){$image_slider.trigger('to.owl.carousel',[0,duration,true]);links=$image_slider.data('links');}
if($thumbs_slider.length){$thumbs_slider.trigger('to.owl.carousel',[0,duration,true]);$thumbs_slider.find('.owl-item:eq(0)').trigger('click');}
if(o_src){$product_img.attr('src',o_src).attr('srcset','').attr('alt',o_title).attr('href',o_href);$product_img.each(function(){var elevateZoom=$(this).data('elevateZoom');if(typeof elevateZoom!='undefined'){elevateZoom.swaptheimage($(this).attr('src'),$(this).attr('src'));}});if(theme.product_image_popup&&typeof links!='undefined'){links[0].src=o_href;links[0].title=o_title;}}
if(o_thumb_src){$thumb_img.attr('src',o_thumb_src);}});$(document).on('found_variation','.variations_form',function(event,variation){if(typeof variation=='undefined'){return;}
var $product=$(this).closest('.product, .product-col'),$image_slider=$product.find('.product-image-slider'),$thumbs_slider=$product.find('.product-thumbs-slider'),links;if($image_slider.length){$image_slider.trigger('to.owl.carousel',[0,duration,true]);links=$image_slider.data('links');}
if($thumbs_slider.length){$thumbs_slider.trigger('to.owl.carousel',[0,duration,true]);$thumbs_slider.find('.owl-item:eq(0)').trigger('click');}
var $shop_single_image=$product.find('div.product-images .woocommerce-main-image').length?$product.find('div.product-images .woocommerce-main-image'):$('.single-product div.product-images .woocommerce-main-image'),productimage=$shop_single_image.attr('data-o_src'),imagetitle=$shop_single_image.attr('data-o_title'),imagehref=$shop_single_image.attr('data-o_href'),$shop_thumb_image=$product.find('.woocommerce-main-thumb'),thumbimage=$shop_thumb_image.attr('data-o_src'),variation_image=variation.image_src,variation_link=variation.image_link,variation_title=variation.image_title,variation_thumb=variation.image_thumb;if($product.hasClass('product-col')){$shop_single_image=$product.find('div.product-image .inner img:first-child');variation_image=variation.image.thumb_src;}else if($product.hasClass('porto-tb-item')){$shop_single_image=$product.find('.porto-tb-featured-image img').eq(0);variation_image=variation.image.thumb_src;}
if(!productimage){productimage=$shop_single_image.attr('data-oi')?$shop_single_image.attr('data-oi'):((!$shop_single_image.attr('src'))?'':$shop_single_image.attr('src'));$shop_single_image.attr('data-o_src',productimage);}
if(!imagehref){imagehref=(!$shop_single_image.attr('href'))?'':$shop_single_image.attr('href');$shop_single_image.attr('data-o_href',imagehref);}
if(!imagetitle){imagetitle=(!$shop_single_image.attr('alt'))?'':$shop_single_image.attr('alt');$shop_single_image.attr('data-o_title',imagetitle);}
if(!thumbimage){thumbimage=$shop_thumb_image.attr('data-oi')?$shop_thumb_image.attr('data-oi'):((!$shop_thumb_image.attr('src'))?'':$shop_thumb_image.attr('src'));$shop_thumb_image.attr('data-o_src',thumbimage);}
if(variation_image){$shop_single_image.attr('src',variation_image);$shop_single_image.attr('srcset','');$shop_single_image.attr('alt',variation_title);$shop_single_image.attr('href',variation_link);$shop_thumb_image.attr('src',variation_thumb);if(theme.product_image_popup&&typeof links!='undefined'){links[0].src=variation_link;links[0].title=variation_title;}}else{$shop_single_image.attr('src',productimage);$shop_single_image.attr('srcset','');$shop_single_image.attr('alt',imagetitle);$shop_single_image.attr('href',imagehref);$shop_thumb_image.attr('src',thumbimage);if(theme.product_image_popup&&typeof links!='undefined'){links[0].src=imagehref;links[0].title=imagetitle;}}
$shop_single_image.each(function(){var elevateZoom=$(this).data('elevateZoom');if(typeof elevateZoom!='undefined'){elevateZoom.swaptheimage($(this).attr('src'),$(this).attr('src'));}});});var porto_fb_update_trigger=null;$(document).on('found_variation reset_image','.variations_form',function(event,variation){if($(this).closest('.fancybox-inner').length&&$.fancybox){$(window).off('resize.fb',$.fancybox.update);if(porto_fb_update_trigger){theme.deleteTimeout(porto_fb_update_trigger);}
porto_fb_update_trigger=theme.requestTimeout(function(){$(window).on('resize.fb',$.fancybox.update);porto_fb_update_trigger=false;},160);}});return self;}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){theme=theme||{};$.extend(theme,{WooEvents:{initialize:function(){this.events();return this;},events:function(){var self=this;$('.wcml-switcher li').on('click',function(){if($(this).parent().attr('disabled')=='disabled')
return;var currency=$(this).attr('rel');self.loadCurrency(currency);});$('.woocs-switcher li').on('click',function(){if($(this).parent().attr('disabled')=='disabled')
return;var currency=$(this).attr('rel');self.loadWoocsCurrency(currency);});return self;},loadCurrency:function(currency){$('.wcml-switcher').attr('disabled','disabled');$('.wcml-switcher').append('<li class="loading"></li>');var data={action:'wcml_switch_currency',currency:currency};$.ajax({type:'post',url:theme.ajax_url,data:{action:'wcml_switch_currency',currency:currency},success:function(response){$('.wcml-switcher').removeAttr('disabled');$('.wcml-switcher').find('.loading').remove();window.location=window.location.href;}});},loadWoocsCurrency:function(currency){$('.woocs-switcher').attr('disabled','disabled');$('.woocs-switcher').append('<li class="loading"></li>');var l=window.location.href;l=l.split('?');l=l[0];var string_of_get='?';woocs_array_of_get.currency=currency;if(Object.keys(woocs_array_of_get).length>0){jQuery.each(woocs_array_of_get,function(index,value){string_of_get=string_of_get+"&"+index+"="+value;});}
window.location=l+string_of_get;},removeParameterFromUrl:function(url,parameter){return url.replace(new RegExp('[?&]'+parameter+'=[^&#]*(#.*)?$'),'$1').replace(new RegExp('([?&])'+parameter+'=[^&]*&'),'$1');}}});}).apply(this,[window.theme,jQuery]);(function(theme,$){$(document).ready(function(){if(typeof theme.WooQtyField!=='undefined'){theme.WooQtyField.initialize();}
if(typeof theme.WooQuickView!=='undefined'){theme.WooQuickView.initialize();}
if(typeof theme.WooEvents!=='undefined'){theme.WooEvents.initialize();}
if(!('ontouchstart'in document)){$('.mini-cart').on('hide.bs.dropdown',function(){return false;});}else{$('#mini-cart .cart-head').on('click',function(e){$(this).parent().toggleClass('open');});$('html,body').on('click',function(e){if($('#mini-cart').hasClass('open')&&!$(e.target).closest('#mini-cart').length){$('#mini-cart').removeClass('open');}});}
$(document).on('tabactivate','.woocommerce-tabs',function(e,ui){var label=$(ui).attr('aria-controls');var panel=$('[aria-labelledby="'+label+'"');theme.refreshVCContent(panel);});});}).apply(this,[window.theme,jQuery]);(function(theme,$,undefined){$(document).ready(function(){$('.product-col .quickview, .product-col .add_to_cart_read_more, .product-col .add_to_cart_button, .product-col a.compare, .product-col .add_to_wishlist, .product-col .yith-wcwl-wishlistaddedbrowse > a, .product-col .yith-wcwl-wishlistexistsbrowse > a').each(function(){let _this=$(this);let $productCol=_this.closest('.product-col');if(_this.closest('.porto-tb-woo-link').hasClass('no-tooltip')){return;}
if(_this.hasClass('add_to_cart_read_more')||_this.hasClass('add_to_cart_button')){if($productCol.hasClass('product-wq_onimage')||$productCol.hasClass('product-onimage')||$productCol.hasClass('product-outimage')||$productCol.hasClass('product-default')){return;}
if(_this.closest('ul.products').hasClass('list')){return;}}
if(_this.hasClass('quickview')){if($productCol.hasClass('product-wq_onimage')||$productCol.hasClass('product-onimage3')||$productCol.hasClass('product-onimage2')||$productCol.hasClass('product-onimage')||$productCol.hasClass('product-outimage_aq_onimage')){return;}}
if(!_this.attr('title')){_this.attr('title',_this.text().trim());}
_this.tooltip();});$(document).on('yith_wcwl_init_after_ajax',function(){$('.product-col .add_to_wishlist:not([data-bs-original-title]), .product-col .yith-wcwl-wishlistaddedbrowse > a:not([data-bs-original-title]), .product-col .yith-wcwl-wishlistexistsbrowse > a:not([data-bs-original-title])').each(function(){let _this=$(this);if(!_this.attr('title')){_this.attr('title',_this.text().trim());}
_this.tooltip();});});theme.WooVariationForm.initialize();if(typeof theme.initAsync=='function'){theme.WooProductImageSlider.initialize();porto_woocommerce_init();}else{$.when(theme.asyncDeferred).done(function(){theme.WooProductImageSlider.initialize();porto_woocommerce_init();});}
$(window).on('vc_reload',function(){porto_woocommerce_init();$('.type-product').addClass('product');});$(document).on('click','.porto-product-filters-toggle a',function(e){e.preventDefault();$(this).closest('.porto-product-filters-toggle').toggleClass('opened');var $products_wrapper=$(this).closest('#main').find('.main-content').find('ul.products'),offset,$main=$(this).closest('#main').find('.main-content-wrap');$main.toggleClass('opened');if($main.hasClass('opened')){offset=-1;}else{offset=1;}
if($products_wrapper.hasClass('grid')){var cols_lg_index=0,cols_md_index=0,width_lg_index=0,width_md_index=0;for(var i=1;i<=8;i++){if(!cols_lg_index&&$products_wrapper.hasClass('pcols-lg-'+i)){cols_lg_index=i;if(i+offset>=1){$products_wrapper.removeClass('pcols-lg-'+i);$products_wrapper.addClass('pcols-lg-'+(i+offset));}}
if(!cols_md_index&&$products_wrapper.hasClass('pcols-md-'+i)){cols_md_index=i;if(i+offset>=1){$products_wrapper.removeClass('pcols-md-'+i);if(offset===-1){$products_wrapper.addClass('pcols-sm-'+i);}
$products_wrapper.addClass('pcols-md-'+(i+offset));}}
if(!width_lg_index&&$products_wrapper.hasClass('pwidth-lg-'+i)){width_lg_index=i;if(i+offset>=1){$products_wrapper.removeClass('pwidth-lg-'+i);$products_wrapper.addClass('pwidth-lg-'+(i+offset));}}
if(!width_md_index&&$products_wrapper.hasClass('pwidth-md-'+i)){width_md_index=i;if(i+offset>=1){$products_wrapper.removeClass('pwidth-md-'+i);$products_wrapper.addClass('pwidth-md-'+(i+offset));}}}}
theme.requestTimeout(function(){$(window).trigger('scroll');$(document).find('.owl-carousel').each(function(e){var $this=$(this);if($this.data('owl.carousel')){$this.trigger('refresh.owl.carousel');}});$(document).find('.swiper-container').each(function(e){var $this=$(this),$instance=$this.data('swiper');if($instance){$instance.update();}});},300);if($main.hasClass('opened')){$.cookie('porto_horizontal_filter','opened');}else{$.cookie('porto_horizontal_filter','closed');}
theme.refreshStickySidebar(true);return false;});if($.cookie&&'opened'==$.cookie('porto_horizontal_filter')&&$('#main .porto-products-filter-body').length&&!theme.isTablet()){$('.porto-product-filters-toggle a').trigger('click');$('#main .porto-products-filter-body [data-plugin-sticky]:not(.manual)').addClass('manual');setTimeout(function(){var $obj=$('#main .porto-products-filter-body [data-plugin-sticky].manual'),pluginOptions=$obj.data('plugin-options');$obj.removeClass('manual').themeSticky(pluginOptions);theme.requestTimeout(function(){$(window).trigger('scroll');},100);},500);}
$(document).on('click','.porto-product-filters.style2 .widget-title',function(e){e.preventDefault();if($(this).next().is(':hidden')){$('.porto-product-filters.style2 .widget-title').next().hide();$('.porto-product-filters.style2 .widget').removeClass('opened');$(this).next().show();$(this).next().find('input[type="text"]:first-child').focus();}else{$(this).next().hide();}
$(this).parent().toggleClass('opened');return false;});$('body').on('click',function(e){if(!$(e.target).is('.porto-product-filters')&&!$(e.target).is('.porto-product-filters *')){$('.porto-product-filters.style2 .widget-title').next().hide();$('.porto-product-filters.style2 .widget').removeClass('opened');}});$('body').on('click','#login-form-popup form .woocommerce-Button',function(e){var $this=$(this),$form=$this.closest('form'),isLogin=$this.hasClass('login-btn');if(!isLogin&&!$this.hasClass('register-btn')){isLogin=$form.hasClass('login');}
$form.find('#email').val($form.find('#username').val());$form.find('p.status').show().text('Please wait...').addClass('loading');$form.find('button[type=submit]').attr('disabled','disabled');$.ajax({type:'POST',dataType:'json',url:theme.ajax_url,data:$form.serialize()+'&action=porto_account_login_popup_'+(isLogin?'login':'register'),success:function(data){$form.find('p.status').html(data.message.replace('/<script.*?\/script>/s','')).removeClass('loading');$form.find('button[type=submit]').removeAttr('disabled');if(data.loggedin===true){window.location.reload();}}});e.preventDefault();});var $ajax_tab_cache={};$(document).on('click','.porto-products.show-category .product-categories a',function(e){e.preventDefault();var $this=$(this),$form=$this.closest('.porto-products').find('.pagination-form'),id=$this.closest('.porto-products').attr('id'),group=[];$(this).parent().siblings().removeClass('current');$(this).parent().addClass('current');if(typeof $this.data('sort_id')!='undefined'){$form.find('input[name="orderby"]').val($this.data('sort_id'));group=$this.data('sort_id');$form.find('input[name="category"]').val('');}
if(typeof $this.data('cat_id')!='undefined'){if(typeof $this.data('sort_id')=='undefined'){$form.find('input[name="orderby"]').val($form.find('input[name="original_orderby"]').val());group=$form.find('input[name="original_orderby"]').val();}
if(typeof $form.data('original_cat_id')=='undefined'){$form.data('original_cat_id',$form.find('input[name="category"]').val());group=$form.find('input[name="category"]').val();}
if($this.data('cat_id')){$form.find('input[name="category"]').val($this.data('cat_id'));group=$this.data('cat_id');}else{if($form.data('original_cat_id')){$form.find('input[name="category"]').val($form.data('original_cat_id'));group=$form.data('original_cat_id');}else{$form.find('input[name="category"]').val('');group='';}}}
var data=$form.serialize()+'&product-page=1&action=porto_woocommerce_shortcodes_products&nonce='+js_porto_vars.porto_nonce;$this.closest('.porto-products').find('ul.products').trigger('porto_update_products',[data,'',$this,id,group]);});$(document).on('click','.porto-products .page-numbers a',function(e){var $this=$(this),pagination_style,$shop_container=$this.closest('.porto-products').find('ul.products'),cur_page=$shop_container.data('cur_page'),max_page=$shop_container.data('max_page'),$form=$this.closest('.porto-products').find('.pagination-form');e.preventDefault();if($this.closest('.pagination').hasClass('load-more')){if(!cur_page||!max_page||++cur_page>max_page){return;}
pagination_style='load_more';$this.data('text',$this.text());$this.text(js_porto_vars.loader_text);}else{var url=new RegExp("product-page(=|/)([^(&|/)]*)","i").exec(this.href);cur_page=url&&unescape(url[2])||"";pagination_style='default';}
var page_var=cur_page?'&product-page='+escape(cur_page):'',data=$form.serialize()+page_var+'&action=porto_woocommerce_shortcodes_products&nonce='+js_porto_vars.porto_nonce;$shop_container.trigger('porto_update_products',[data,pagination_style,$this]);if('default'==pagination_style){theme.scrolltoContainer($shop_container);}});$(document).on('porto_update_products','ul.products',function(e,data,pagination_style,$obj,id,group){var $this=$(this);if(undefined==$ajax_tab_cache[id]||-1==Object.keys($ajax_tab_cache[id]).indexOf(group)){porto_ajax_load_products($this,data,pagination_style,$ajax_tab_cache,id,group);}else{var response=$ajax_tab_cache[id][group];$this.css('opacity',0);$this.animate({'opacity':1,},400,function(){$this.css('opacity','');});porto_ajax_load_products_success($this,response,pagination_style);}});});$(document).on('porto_theme_init',function(){var $sticky_product_obj=$('.single-product .sticky-product'),is_elementor_editor=$(document.body).hasClass('elementor-editor-active');var init_sticky_add_to_cart_fn=function($sticky_product_obj,is_elementor_editor){if(is_elementor_editor&&elementorFrontend&&elementorFrontend.hooks){elementorFrontend.hooks.addAction('frontend/element_ready/porto_cp_addcart_sticky.default',function($obj){$sticky_product_obj=$('.single-product .sticky-product');window.dispatchEvent(new Event('scroll'));});}
window.addEventListener('scroll',function(){var scrollTop=$(window).scrollTop(),offset=theme.adminBarHeight()+theme.StickyHeader.sticky_height;if($('form.cart').length&&$('form.cart').offset().top+$('form.cart').height()/2<=scrollTop+offset){$sticky_product_obj.removeClass('hide');if(!$sticky_product_obj.hasClass('pos-bottom')){$sticky_product_obj.css('top',offset);}}else{$sticky_product_obj.addClass('hide');}},{passive:true});$sticky_product_obj.find('.add-to-cart .button').on('click',function(e){e.preventDefault();if($sticky_product_obj.find('.add-to-cart .qty').length){$('.single-product form .quantity .qty').filter(function(){if($(this).closest('.product-col').length){return false;}
return true;}).val($sticky_product_obj.find('.add-to-cart .qty').val());}
$('.single-product form .single_add_to_cart_button').filter(function(){if($(this).closest('.product-col').length){return false;}
return true;}).eq(0).trigger('click');});$('.single-product .entry-summary .quantity').clone().prependTo('.single-product .sticky-product .add-to-cart');var origin_img=$sticky_product_obj.find('.sticky-image img').data('oi')?$sticky_product_obj.find('.sticky-image img').data('oi'):$sticky_product_obj.find('.sticky-image img').attr('src'),origin_price=$sticky_product_obj.find('.price').html(),origin_stock=$sticky_product_obj.find('.availability').html(),is_variation=false;$(document).on('found_variation reset_data','.variations_form',function(e,obj){if(obj){is_variation=true;$sticky_product_obj.find('.sticky-image img').attr('src',obj.image_thumb?obj.image_thumb:origin_img);$sticky_product_obj.find('.price').replaceWith(obj.price_html);$sticky_product_obj.find('.availability').html(obj.availability_html?obj.availability_html:origin_stock);}else if(is_variation){is_variation=false;$sticky_product_obj.find('.sticky-image img').attr('src',origin_img);$sticky_product_obj.find('.price').html(origin_price);$sticky_product_obj.find('.availability').html(origin_stock);}});};if($sticky_product_obj.length||is_elementor_editor){init_sticky_add_to_cart_fn($sticky_product_obj,is_elementor_editor);}else{$(document.body).on('porto_elementor_editor_init',function(){var $sticky_product_obj=$('.single-product .sticky-product'),is_elementor_editor=$(document.body).hasClass('elementor-editor-active');if($sticky_product_obj.length||is_elementor_editor){init_sticky_add_to_cart_fn($sticky_product_obj,is_elementor_editor);}});}
if(1===$('.shop-loop-before').length&&$('.mobile-sidebar').length){var porto_progress_obj=$('.porto-scroll-progress.fixed-under-header'),porto_progress_height=0;if(porto_progress_obj.length){var flag=false;if(porto_progress_obj.is(':hidden')){porto_progress_obj.show();flag=true;}
porto_progress_height=porto_progress_obj.height();if(flag){porto_progress_obj.hide();}}else{porto_progress_height=0;}
var init_filter_sticky=function(){var $obj=$('.shop-loop-before'),prevScrollPos=$obj.data('prev-pos')?$obj.data('prev-pos'):0,scrollUpOffset=0,$pageWrapper=$('.page-wrapper');if(!$obj.prev('.filter-placeholder').length){$('<div class="filter-placeholder m-0"></div>').insertBefore($obj);}
var $ph=$obj.prev('.filter-placeholder'),scrollTop=$(window).scrollTop(),offset=theme.adminBarHeight()+theme.StickyHeader.sticky_height+porto_progress_height-1,objHeight=$obj.outerHeight()+parseInt($obj.css('margin-bottom'));if($('.page-wrapper').hasClass('sticky-scroll-up')&&!$('html').hasClass('porto-search-opened')){if(scrollTop>=prevScrollPos){$obj.addClass('scroll-down');}else{$obj.removeClass('scroll-down');}
scrollUpOffset=-theme.StickyHeader.sticky_height;if('undefined'==typeof(theme.StickyHeader.sticky_height)){$obj.data('prev-pos',0);}else{var $transitionOffset=(offset>100)?offset:100;if($ph.offset().top+objHeight+$transitionOffset<scrollTop+offset+scrollUpOffset){$obj.addClass('sticky-ready');}else{$obj.removeClass('sticky-ready');}
$obj.data('prev-pos',scrollTop);}}
if($('html.filter-sidebar-opened').length){$ph.css('height','');return;}
if(($ph.offset().top+objHeight<scrollTop+offset+scrollUpOffset)){if(!$pageWrapper.hasClass('sticky-scroll-up')||($pageWrapper.hasClass('sticky-scroll-up')&&0!==prevScrollPos)){$ph.css('height',objHeight);$obj.css('top',offset);$obj.addClass('sticky');}}else{$ph.css('height','');$obj.removeClass('sticky').css('top','');}};if(window.innerWidth<992){window.removeEventListener('scroll',init_filter_sticky);window.addEventListener('scroll',init_filter_sticky,{passive:true});init_filter_sticky();}
var request_timer=null,old_win_width=window.innerWidth;$(window).on('resize',function(){if(old_win_width!=window.innerWidth){if(request_timer){theme.deleteTimeout(request_timer);request_timer=false;}
if(window.innerWidth<992){request_timer=theme.requestTimeout(function(){window.removeEventListener('scroll',init_filter_sticky);window.addEventListener('scroll',init_filter_sticky,{passive:true});$(window).trigger('scroll');},100);}else{window.removeEventListener('scroll',init_filter_sticky);$('.shop-loop-before').removeClass('sticky').css('top','').prev('.filter-placeholder').css('height','');}
old_win_width=window.innerWidth;}});}});$('.cart-v2 .cart_totals .accordion-toggle.out').removeClass('out');$(document).ajaxComplete(function(event,xhr,options){$('.cart-v2 .cart_totals .accordion-toggle.out').each(function(){if($($(this).attr('href')).length&&$($(this).attr('href')).is(':hidden')){$(this).removeClass('collapsed');$($(this).attr('href')).addClass('show');}});});$('.porto_products_filter_form .btn-submit').on('click',function(e){e.preventDefault();var data=$(this).closest('form').serializeArray(),submit_data='';for(var i in data){var param=data[i];if(param.value){if(submit_data){submit_data+='&';}
submit_data+=param.name+'='+param.value;if('min_price'==param.name){var max_price=$(this).closest('form').find('.porto_dropdown_price_range option:selected').data('maxprice');if(max_price){submit_data+='&max_price='+max_price;}}}}
location.href=$(this).closest('form').attr('action')+'?'+submit_data;});if($('.wishlist_table.responsive').length){$(window).on('resize',function(){var media=window.matchMedia('(max-width: 768px)'),$wishlist_table=$('.wishlist_table.responsive');if($wishlist_table.hasClass('traditional')){if(media.matches){$wishlist_table.addClass('mobile');}else{$wishlist_table.removeClass('mobile');}}});}
if(js_porto_vars.pre_order){var porto_pre_order={init:function(){this.$add_to_cart_btn=$('.product-summary-wrap .single_add_to_cart_button');this.add_to_cart_label=this.$add_to_cart_btn.html();$('.product-summary-wrap form.variations_form').on('show_variation',function(e,v,p){if(v.porto_pre_order){porto_pre_order.$add_to_cart_btn.html(v.porto_pre_order_label);if(v.porto_pre_order_date){$(this).find('.woocommerce-variation-description').append(v.porto_pre_order_date);}}else{porto_pre_order.$add_to_cart_btn.html(porto_pre_order.add_to_cart_label);}}).on('hide_variation',function(){porto_pre_order.$add_to_cart_btn.html(porto_pre_order.add_to_cart_label);});}};if($('div.product.skeleton-loading').length){$('div.product.skeleton-loading').on('skeleton-loaded',function(){porto_pre_order.init();});}else{porto_pre_order.init();}}
if($('#header .my-wishlist .wishlist-count').length){$(document.body).on('added_to_wishlist removed_from_wishlist added_to_cart',function(e){var $obj=$('#header .my-wishlist .wishlist-count');if($obj.text()){$.ajax({type:'POST',dataType:'json',url:theme.ajax_url,data:{action:'porto_refresh_wishlist_count',nonce:js_porto_vars.porto_nonce,},success:function(response){if(response||0===response){$obj.addClass('count-updating').text(Number(response));setTimeout(function(){$obj.removeClass('count-updating');},1000);}}});}});}
if($(document.body).hasClass('woocommerce-cart')&&$('.wpcf7 .screen-reader-response').length){$('.wpcf7 .screen-reader-response').attr('role','');}
$('#dokan-store-listing-filter-form-wrap .store-search-input').on('keydown',function(e){if(e.which&&event.which==13){$(this).closest('form').find('#apply-filter-btn').trigger('click');e.preventDefault();}});if($.fn.block){var funcBlock=$.fn.block;$.fn.block=function(opts){if(this.hasClass('yith-wcwl-add-to-wishlist')){this.children().addClass('pe-none opacity-6');return this;}
if(this.is('.woocommerce-checkout')){this.append('<div class="loader-container d-block"><div class="loader"><i class="porto-ajax-loader"></i></div></div>');}
return funcBlock.call(this,opts);}
var funcUnblock=$.fn.unblock;$.fn.unblock=function(opts){if(this.hasClass('yith-wcwl-add-to-wishlist')){this.children().removeClass('pe-none opacity-6');return this;}
funcUnblock.call(this,opts);this.is('.processing')||(this.is('.woocommerce-checkout')&&this.children('.loader-container').remove());return this;}}})(window.theme,jQuery);(function(theme,$){theme=theme||{};$.extend(theme,{porto_comapre_add_query_arg:function(key,value){key=escape(key);value=escape(value);var s=document.location.search;var kvp=key+"="+value;var r=new RegExp("(&|\\?)"+key+"=[^\&]*");s=s.replace(r,"$1"+kvp);if(!RegExp.$1){s+=(s.length>0?'&':'?')+kvp;};return s;}});$(document).ready(function(){$('body').on('click','.wishlist_table a.compare.added',function(e){e.preventDefault();$('body').trigger('yith_woocompare_open_popup',{response:theme.porto_comapre_add_query_arg('action',yith_woocompare.actionview)+'&iframe=true'});});$(document).off('click','.product a.compare:not(.added)').on('click','.product a.compare:not(.added), .wishlist_table a.compare:not(.added)',function(e){e.preventDefault();if(typeof theme.comparePopup!='undefined'){theme.comparePopup.initialize($(this));}
var button=$(this),data={action:yith_woocompare.actionadd,id:button.data('product_id'),context:'frontend'},widget_list=$('.yith-woocompare-widget ul.products-list');button.addClass('added');$.ajax({type:'post',url:yith_woocompare.ajaxurl.toString().replace('%%endpoint%%',yith_woocompare.actionadd),data:data,dataType:'json',success:function(response){$('.yith-woocompare-open .compare-count').each(function(){this.innerHTML=parseInt(this.innerHTML)+1;});var added_icon_html='';if(button.data('added_icon')){added_icon_html+='<i class="'+button.data('added_icon')+'"></i>';}
var added_label=yith_woocompare.added_label;if('hide'==button.data('hide_title')){added_label='';}
button.attr('href',response.table_url).html(!button.data('icon_pos')?added_icon_html+added_label:added_label+added_icon_html);widget_list.html(response.widget_table);if((typeof yith_woocompare!='undefined')&&('yes'==yith_woocompare.auto_open)){button.trigger('click');}}}).fail(function(){button.removeClass('added');});});});$('body').on('click','a.yith-woocompare-open, .product a.compare.added, .wishlist_table a.compare.added',function(){var scrollbarWidth=window.innerWidth-document.body.clientWidth;$('html').css({'overflow':'hidden','margin-right':scrollbarWidth});});$('body').on('click','.yith_woocompare_colorbox #cboxClose, #cboxOverlay',function(){$('html').css({'overflow':'','margin-right':''});});$('body').on('yith_woocompare_open_popup',function(){setTimeout(function(){if($('body').find('iframe').length){var childWindow=$('body').find('#cboxLoadedContent iframe')[0].contentWindow;if(childWindow.jQuery){childWindow.jQuery(childWindow).on('yith_woocompare_product_removed',function(){$('.yith-woocompare-open .compare-count').each(function(){this.innerHTML=Math.max(0,parseInt(this.innerHTML)-1);});});}}},2000);});})(window.theme,window.jQuery);})();function porto_woocommerce_init($wrap){'use strict';if(!$wrap){$wrap=jQuery(document.body);}
(function($){if($.fn.themeWooWidgetToggle){$(function(){$wrap.find('.widget_product_categories, .widget_price_filter, .widget_layered_nav, .widget_layered_nav_filters, .widget_rating_filter, .widget-woof, .porto_widget_price_filter, #wcfmmp-store .widget.sidebar-box, #wcfmmp-store-lists-sidebar .sidebar-box').find('.widget-title').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeWooWidgetToggle(opts);});});}
if($.fn.themeWooWidgetAccordion){$(function(){$wrap.find('.widget_product_categories, .widget_price_filter, .widget_layered_nav, .widget_layered_nav_filters, .widget_rating_filter, .widget-woof, #wcfmmp-store .widget.sidebar-box, #wcfmmp-store-lists-sidebar .sidebar-box').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeWooWidgetAccordion(opts);});});}
if($.fn.themeWooProductsSlider){$(function(){var $direct_carousels=$wrap.find('.products-slider:not(.manual)').filter(function(){if($(this).closest('.porto-carousel:not(.owl-loaded)').length){return false;}
return true;});var $parent_carousel=$wrap.find('.porto-carousel:not(.owl-loaded)').filter(function(){if($(this).find('.products-slider:not(.manual)').length){return true;}
return false;});if($parent_carousel.length){$parent_carousel.one('initialized.owl.carousel',function(){$(this).find('.products-slider:not(.manual)').each(function(){var $this=$(this);$this.themeWooProductsSlider($this.data('plugin-options'));});});}
$direct_carousels.each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;setTimeout(function(){$this.themeWooProductsSlider(opts);},0);});});}})(jQuery);}
function porto_woocommerce_variations_init($parent_obj){'use strict';theme.requestTimeout(function(){var form_variation=$parent_obj.find('form.variations_form:not(.vf_init)');if(form_variation.length&&jQuery.fn.wc_variation_form){form_variation.each(function(){var data_a=jQuery._data(this,'events');if(!data_a||!data_a['show_variation']){jQuery(this).wc_variation_form();}});}},100);}
function porto_ajax_load_products($obj,data,pagination_style,$ajax_tab_cache,id,group){'use strict';(function($){if($obj.hasClass('loading')){return;}
$obj.addClass('loading');if('load_more'!=pagination_style){$obj.addClass('yith-wcan-loading');if(!$obj.children('.porto-loading-icon').length){$obj.append('<i class="porto-loading-icon"></i>');}}
if($ajax_tab_cache[id]==undefined){$ajax_tab_cache[id]={};}
$.ajax({url:theme.ajax_url,data:data,type:'post',success:function(response){if($(response).length){$ajax_tab_cache[id][group]=$(response).html();}else{$ajax_tab_cache[id][group]='';}
porto_ajax_load_products_success($obj,response,pagination_style);},complete:function(){$obj.removeClass('loading');}});})(jQuery);}
function porto_ajax_load_products_success($obj,success,pagination_style){'use strict';(function($){let _successProducts=$(success).find('ul.products');if($obj.data('cur_page')&&_successProducts.data('cur_page')){$obj.data('cur_page',_successProducts.data('cur_page'));}
if(!($obj.hasClass('grid-creative')&&typeof $obj.attr('data-plugin-masonry')!='undefined')){_successProducts.children(':not(.grid-col-sizer)').addClass('fadeInUp animated');}
if('load_more'==pagination_style){$obj.append(_successProducts.html());}else{if($obj.hasClass('owl-carousel')){$obj.parent().css('min-height',$obj.parent().height());}
if($obj.hasClass('grid-creative')&&typeof $obj.attr('data-plugin-masonry')!='undefined'){$obj.isotope('remove',$obj.children());$obj.find('.grid-col-sizer').remove();var newItems=_successProducts.children();$obj.append(newItems);$obj.isotope('appended',newItems);$obj.imagesLoaded(function(){$obj.isotope('layout');});}else{if($(success).length){$obj.html(_successProducts.html());}else{$obj.html('');}}}
if($obj.hasClass('owl-carousel')&&$.fn.themeWooProductsSlider){$obj.trigger('destroy.owl.carousel');theme.requestTimeout(function(){var pluginOptions=$obj.data('plugin-options'),opts;if(pluginOptions)
opts=pluginOptions;$obj.data('__wooProductsSlider','').themeWooProductsSlider(opts);$obj.parent().css('min-height','');},100);}
if($obj.closest('.porto-products').find('.shop-loop-after').length){if($(success).find('.shop-loop-after').length){$obj.closest('.porto-products').find('.shop-loop-after').replaceWith($(success).find('.shop-loop-after'));}else{$obj.closest('.porto-products').find('.shop-loop-after').remove();}}
if(typeof $obj.data('infinitescroll')!='undefined'){var infinitescrollData=$obj.data('infinitescroll');infinitescrollData.options.state.currPage=1;$obj.data('infinitescroll',infinitescrollData);}
$obj.removeClass('yith-wcan-loading');if('load_more'==pagination_style&&typeof $obj!='undefined'&&typeof $obj.data('text')!='undefined'){$obj.text($obj.data('text'));}
$(document).trigger("yith-wcan-ajax-filtered");})(jQuery);};
(function(t,e){t=t||{};var i="__wooWidgetToggle",n=function(t,e){return this.initialize(t,e)};n.defaults={},n.prototype={initialize:function(t,e){return t.data(i)||(this.$el=t,this.setData().setOptions(e).build()),this},setData:function(){return this.$el.data(i,this),this},setOptions:function(t){return this.options=e.extend(!0,{},n.defaults,t,{wrapper:this.$el}),this},build:function(){var e=this.options.wrapper;return e.parent().removeClass("closed"),e.find(".toggle").length||e.append('<span class="toggle"></span>'),e.find(".toggle").on("click",(function(){e.next().is(":visible")?e.parent().addClass("closed"):e.parent().removeClass("closed"),e.next().stop().slideToggle(200),t.refreshVCContent()})),this}},e.extend(t,{WooWidgetToggle:n}),e.fn.themeWooWidgetToggle=function(n){return this.map((function(){var s=e(this);return s.data(i)?s.data(i):new t.WooWidgetToggle(s,n)}))}}).apply(this,[window.theme,jQuery]),function(t,e){t=t||{};var i="__wooWidgetAccordion",n=function(t,e){return this.initialize(t,e)};n.defaults={},n.prototype={initialize:function(t,e){return t.data(i)||(this.$el=t,this.setData().setOptions(e).build()),this},setData:function(){return this.$el.data(i,this),this},setOptions:function(t){return this.options=e.extend(!0,{},n.defaults,t,{wrapper:this.$el}),this},build:function(){var i=this.options.wrapper;return i.find("ul.children").each((function(){var i=e(this);i.prev().hasClass("toggle")||i.before(e('<span class="toggle"></span>').on("click",(function(){var i=e(this);i.next().is(":visible")?i.parent().removeClass("open").addClass("closed"):i.parent().addClass("open").removeClass("closed"),i.next().stop().slideToggle(200),t.refreshVCContent()})))})),i.find('li[class*="current-"]').addClass("current"),this}},e.extend(t,{WooWidgetAccordion:n}),e.fn.themeWooWidgetAccordion=function(n){return this.map((function(){var s=e(this);return s.data(i)?s.data(i):new t.WooWidgetAccordion(s,n)}))}}.apply(this,[window.theme,jQuery]);
!function(t){t.fn.extend({easyResponsiveTabs:function(a){var e=a=t.extend({type:"default",width:"auto",fit:!0,closed:!1,activate:function(){}},a),s=e.type,i=e.fit,n=e.width,r=window.location.hash;!window.history||history.replaceState;t(this).on("tabactivate",(function(t,e){"function"==typeof a.activate&&a.activate.call(e,t)})),this.each((function(){var e=t(this);if(!(e.find(".resp-accordion").length>0)){var c,o=e.find("ul.resp-tabs-list"),d=e.attr("id");e.find("ul.resp-tabs-list li").addClass("resp-tab-item"),e.css({display:"block",width:n}),e.find(".resp-tabs-container > div").addClass("resp-tab-content"),function(){"vertical"==s&&e.addClass("resp-vtabs");1==i&&e.css({width:"100%"});"accordion"==s&&(e.addClass("resp-easy-accordion"),e.find(".resp-tabs-list").css("display","none"))}(),e.find(".resp-tab-content").before("<h2 class='resp-accordion' role='tab'><span class='resp-arrow'></span></h2>");var l=0;e.find(".resp-accordion").each((function(){c=t(this);var a=e.find(".resp-tab-item:eq("+l+")"),s=e.find(".resp-accordion:eq("+l+")");s.append(a.html()),s.data(a.data()),c.attr("aria-controls","tab_item-"+l),l++}));var p=0;e.find(".resp-tab-item").each((function(){$tabItem=t(this),$tabItem.attr("aria-controls","tab_item-"+p),$tabItem.attr("role","tab");var a=0;e.find(".resp-tab-content").each((function(){t(this).attr("aria-labelledby","tab_item-"+a),a++})),p++}));var b=0;if(""!=r){var f=r.match(new RegExp(d+"([0-9]+)"));null!==f&&2===f.length&&(b=parseInt(f[1],10)-1)>p&&(b=0)}t(e.find(".resp-tab-item")[b]).addClass("resp-tab-active"),!0===a.closed||"accordion"===a.closed&&!o.is(":visible")||"tabs"===a.closed&&o.is(":visible")?t(e.find(".resp-tab-content")[b]).addClass("resp-tab-content-active resp-accordion-closed"):(t(e.find(".resp-accordion")[b]).addClass("resp-tab-active"),t(e.find(".resp-tab-content")[b]).addClass("resp-tab-content-active").attr("style","display:block")),e.find("[role=tab]").each((function(){t(this).on("click",(function(){var a=t(this),s=a.attr("aria-controls");if(a.hasClass("resp-accordion")&&a.hasClass("resp-tab-active"))return e.find(".resp-tab-content-active").slideUp("",(function(){t(this).addClass("resp-accordion-closed")})),a.removeClass("resp-tab-active"),!1;!a.hasClass("resp-tab-active")&&a.hasClass("resp-accordion")?(e.find(".resp-tab-active").removeClass("resp-tab-active"),e.find(".resp-tab-content-active").slideUp().removeClass("resp-tab-content-active resp-accordion-closed"),e.find("[aria-controls="+s+"]").addClass("resp-tab-active"),e.find(".resp-tab-content[aria-labelledby = "+s+"]").slideDown().addClass("resp-tab-content-active")):(e.find(".resp-tab-active").removeClass("resp-tab-active"),e.find(".resp-tab-content-active").removeAttr("style").removeClass("resp-tab-content-active").removeClass("resp-accordion-closed"),e.find("[aria-controls="+s+"]").addClass("resp-tab-active"),e.find(".resp-tab-content[aria-labelledby = "+s+"]").addClass("resp-tab-content-active").attr("style","display:block")),a.trigger("tabactivate",a)}))})),t(window).on("resize",(function(){e.find(".resp-accordion-closed").removeAttr("style")}))}}))}})}(jQuery);