PageSourceSearch

https://marsworks.com/wp-content/cache/autoptimize/js/autoptimize_2cba3d1e0fdccd7e114ec1d2a064f96c.js

js marsworks.com collected 2026-10-07 13:03:14 UTC 500,030 bytes, 2,947 lines download raw bytes

1/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
2"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}
2,"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={}
2,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});
3"function"==typeof jQuery&&jQuery(document).ready(function(a){a("body").on("post-load",function(){window.a2a&&a2a.init_all()})});
4jQuery(document).ready(function(){jQuery('.contact-form .radio-dropdown li:nth-child(1) label').click(function(){jQuery('.contact-form .radio-dropdown ul').css("margin-top","-2px");jQuery('.contact-form .radio-dropdown li label .fa').remove('');jQuery(this).append('<i class="fa fa-chevron-down"></i>');jQuery('.contact-form .radio-dropdown ul').toggleClass("expanded");if(jQuery(window).width()<641){jQuery('.contact-form .radio-dropdown ul').css("margin-bottom","2px");};})
5jQuery('.contact-form .radio-dropdown li:nth-child(2) label').click(function(){jQuery('.contact-form .radio-dropdown ul').css("margin-top","-50px");jQuery('.contact-form .radio-dropdown li label .fa').remove('');jQuery(this).append('<i class="fa fa-chevron-down"></i>');jQuery('.contact-form .radio-dropdown ul').toggleClass("expanded");if(jQuery(window).width()<641){jQuery('.contact-form .radio-dropdown ul').css("margin-bottom","52px");};})
6jQuery('.contact-form .radio-dropdown li:nth-child(3) label').click(function(){jQuery('.contact-form .radio-dropdown ul').css("margin-top","-98px");jQuery('.contact-form .radio-dropdown li label .fa').remove('');jQuery(this).append('<i class="fa fa-chevron-down"></i>');jQuery('.contact-form .radio-dropdown ul').toggleClass("expanded");if(jQuery(window).width()<641){jQuery('.contact-form .radio-dropdown ul').css("margin-bottom","100px");};})
7jQuery('.contact-form .radio-dropdown li:nth-child(4) label').click(function(){jQuery('.contact-form .radio-dropdown ul').css("margin-top","-146px");jQuery('.contact-form .radio-dropdown li label .fa').remove('');jQuery(this).append('<i class="fa fa-chevron-down"></i>');jQuery('.contact-form .radio-dropdown ul').toggleClass("expanded");if(jQuery(window).width()<641){jQuery('.contact-form .radio-dropdown ul').css("margin-bottom","148px");};})});
8(()=>
8{if(!window.gtm4wp_form_move_inited){window.gtm4wp_form_move_inited=!0;const i=window.gtm4wp_form_move_config||{filledOnly:!1},m="input,select,textarea,button,meter,progress",a=["checkbox","radio","button","submit","reset","image"],s=new WeakMap;function t(t){const e=t.tagName?t.tagName.toLowerCase():"";if("textarea"===e||"select"===e)return!0;if("input"!==e)return!1;const n=String(t.type||"text").toLowerCase();return-1===a.indexOf(n)}function e(t){const e=t.value;return""===("string"==typeof e?e:"").trim()}function n(t,e){var n;window[gtm4wp_datalayer_name].push({event:e,inputID:t.getAttribute("id")||"(no input ID)",inputName:t.getAttribute("name")||"(no input name)",inputClass:t.getAttribute("class")||"(no input class)",formID:t.form&&t.form.getAttribute("id")||"(no form ID)",formName:t.form&&t.form.getAttribute("name")||"(no form name)",formClass:t.form&&t.form.getAttribute("class")||"(no form class)",...(n=t.form,n?{"gtm.elementId":n.getAttribute("id")||"","gtm.elementClasses":n.getAttribute("class")||"","gtm.elementUrl":r(n),"gtm.elementTarget":n.getAttribute("target")||""}:{})})}function r(t){try{return new URL(t.getAttribute("action")||"",document.baseURI).href}catch(t){return""}}function o(t){return t&&t.target&&t.target.closest&&t.target.closest(m)}document.addEventListener("focusin",function(r){const m=o(r);m&&(i.filledOnly&&t(m)&&s.set(m,e(m)),n(m,"gtm4wp.formElementEnter"))},!1),document.addEventListener("focusout",function(r){const m=o(r);if(m){if(i.filledOnly&&t(m)){const t=s.get(m);if(s.delete(m),!0!==t||e(m))return}n(m,"gtm4wp.formElementLeave")}},!1)}})();
9"use strict";(globalThis.webpackChunkpojo_accessibility=globalThis.webpackChunkpojo_accessibility||[]).push([[5168],{40396(e,t,s){let r=s(77793);class i extends r{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=i,i.default=i,r.registerAtRule(i)},49371(e,t,s){let r=s(63152);class i extends r{constructor(e){super(e),this.type="comment"}}e.exports=i,i.default=i},77793(e,t,s){let r,i,n,o,l=s(49371),a=s(35238),h=s(63152),{isClean:u,my:c}=s(84151);function p(e){return e.map(e=>(e.nodes&&(e.nodes=p(e.nodes)),delete e.source,e))}function f(e){if(e[u]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)f(t)}class d extends h{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;
vendor: 4,553 bytes, line 9
9let t,s,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],s=e(this.proxyOf.nodes[t],t),!1!==s);)this.indexes[r]+=1;return delete this.indexes[r],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...s)=>e[t](...s.map(e=>"function"==typeof e?(t,s)=>e(t.toProxy(),s):e)):"every"===t||"some"===t?s=>e[t]((e,...t)=>s(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,s)=>(e[t]===s||(e[t]=s,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let s,r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)s=this.indexes[e],r<s&&(this.indexes[e]=s+i.length);return this.markDirty(),this}insertBefore(e,t){let s,r=this.index(e),i=0===r&&"prepend",n=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let e of n)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)s=this.indexes[e],r<=s&&(this.indexes[e]=s+n.length);return this.markDirty(),this}normalize(e,t){if("string"==typeof e)e=p(i(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new a(e)]}else if(e.selector||e.selectors)e=[new o(e)];else if(e.name)e=[new r(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new l(e)]}return e.map(e=>(e[c]||d.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[u]&&f(e),e.raws||(e.raws={}),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let s in this.indexes)t=this.indexes[s],t>=e&&(this.indexes[s]=t-1);return this.markDirty(),this}replaceValues(e,t,s){return s||(s=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,s))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,s)=>{let r;try{r=e(t,s)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((s,r)=>{if("atrule"===s.type&&e.test(s.name))return t(s,r)}):this.walk((s,r)=>{if("atrule"===s.type&&s.name===e)return t(s,r)}):(t=e,this.walk((e,s)=>{if("atrule"===e.type)return t(e,s)}))}walkComments(e){return this.walk((t,s)=>{if("comment"===t.type)return e(t,s)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((s,r)=>{if("decl"===s.type&&e.test(s.prop))return t(s,r)}):this.walk((s,r)=>{if("decl"===s.type&&s.prop===e)return t(s,r)}):(t=e,this.walk((e,s)=>{if("decl"===e.type)return t(e,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((s,r)=>{if("rule"===s.type&&e.test(s.selector))return t(s,r)}):this.walk((s,r)=>{if("rule"===s.type&&s.selector===e)return t(s,r)}):(t=e,this.walk((e,s)=>{if("rule"===e.type)return t(e,s)}))}}d.registerParse=e=>{i=e},d.registerRule=e=>{o=e},d.registerAtRule=e=>{r=e},d.registerRoot=e=>{n=e},e.exports=d,d.default=d,d.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,r.prototype):"rule"===e.type?Object.setPrototypeOf(e,o.prototype):"decl"===e.type?Object.setPrototypeOf(e,a.prototype):"comment"===e.type?Object.setPrototypeOf(e,l.prototype):"root"===e.type&&Object.setPrototypeOf(e,n.prototype),e[c]=!0,e.nodes&&e.nodes.forEac
vendor: 15,214 bytes, line 9
9h(e=>{d.rebuild(e)})}},53614(e,t,s){let r=s(48633),i=s(49746);class n extends Error{constructor(e,t,s,r,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),r&&(this.source=r),o&&(this.plugin=o),void 0!==t&&void 0!==s&&("number"==typeof t?(this.line=t,this.column=s):(this.line=t.line,this.column=t.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=r.isColorSupported);let s=e=>e,n=e=>e,o=e=>e;if(e){let{bold:e,gray:t,red:l}=r.createColors(!0);n=t=>e(l(t)),s=e=>t(e),i&&(o=e=>i(e))}let l=t.split(/\r?\n/),a=Math.max(this.line-3,0),h=Math.min(this.line+2,l.length),u=String(h).length;return l.slice(a,h).map((e,t)=>{let r=a+1+t,i=" "+(" "+r).slice(-u)+" | ";if(r===this.line){if(e.length>160){let t=20,r=Math.max(0,this.column-t),l=Math.max(this.column+t,this.endColumn+t),a=e.slice(r,l),h=s(i.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,t-1)).replace(/[^\t]/g," ");return n(">")+s(i)+o(a)+"\n "+h+n("^")}let t=s(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+s(i)+o(e)+"\n "+t+n("^")}return" "+s(i)+o(e)}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=n,n.default=n},35238(e,t,s){let r=s(63152);class i extends r{get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}}e.exports=i,i.default=i},40145(e,t,s){let r,i,n=s(77793);class o extends n{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new r(new i,this,e).stringify()}}o.registerLazyResult=e=>{r=e},o.registerProcessor=e=>{i=e},e.exports=o,o.default=o},33438(e,t,s){let r=s(40396),i=s(49371),n=s(35238),o=s(61106),l=s(93878),a=s(25644),h=s(61534);function u(e,t){if(Array.isArray(e))return e.map(e=>u(e));let{inputs:s,...c}=e;if(s){t=[];for(let e of s){let s={...e,__proto__:o.prototype};s.map&&(s.map={...s.map,__proto__:l.prototype}),t.push(s)}}if(c.nodes&&(c.nodes=e.nodes.map(e=>u(e,t))),c.source){let{inputId:e,...s}=c.source;c.source=s,null!=e&&(c.source.input=t[e])}if("root"===c.type)return new a(c);if("decl"===c.type)return new n(c);if("rule"===c.type)return new h(c);if("comment"===c.type)return new i(c);if("atrule"===c.type)return new r(c);throw new Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},61106(e,t,s){let{nanoid:r}=s(95042),{isAbsolute:i,resolve:n}=s(197),{SourceMapConsumer:o,SourceMapGenerator:l}=s(21866),{fileURLToPath:a,pathToFileURL:h}=s(52739),u=s(53614),c=s(93878),p=s(49746),f=Symbol("lineToIndexCache"),d=Boolean(o&&l),m=Boolean(n&&i);function g(e){if(e[f])return e[f];let t=e.css.split("\n"),s=new Array(t.length),r=0;for(let e=0,i=t.length;e<i;e++)s[e]=r,r+=t[e].length+1;return e[f]=s,s}class w{get from(){return this.file||this.id}constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!m||/^\w+:\/\//.test(t.from)||i(t.from)?this.file=t.from:this.file=n(t.from)),m&&d){let e=new c(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+r(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,s,r={}){let i,n,o,l,a;if(t&&"object"==typeof t){let e=t,r=s;if("number"==typeof e.offset){l=e.offset;let r=this.fromOffset(l);t=r.line,s=r.col}else t=e.line,s=e.column,l=this.fromLineAndColumn(t,s);if("number"==typeof r.offset){o=r.offset;let e=this.fromOffset(o);n=e.line,i=e.col}else n=r.line,i=r.column,o=this.fromLineAndColumn(r.line,r.column)}else if(s)l=this.fromLineAndColumn(t,s);else{l=t;let e=this.fromOffset(l);t=e.line,s=e.col}let c=this.origin(t,s,n,i);return a=c?new u(e,void 0===c.endLine?c.line:{column:c.column,line:c.line},void 0===c.endLine?c.column:{column:c.endColumn,line:c.endLine},c.source,c.file,r.plugin):new u(e,void 0===n?t:{column:s,line:t},void 0===n?s:{column:i,line:n},this.css,this.file,r.plugin),a.input={column:s,endColumn:i,endLine:n,endOffset:o,line:t,offset:l,source:this.css},this.file&&(h&&(a.input.url=h(this.file).toString()),a.input.file=this.file),a}fromLineAndColumn(e,t){return g(this)[e-1]+t-1}fromOffset(e){let t=g(this),s=0;if(e>=t[t.length-1])s=t.length-1;else{let r,i=t.length-2;for(;s<i;)if(r=s+(i-s>>1),e<t[r])i=r-1;else{if(!(e>=t[r+1])){s=r;break}s=r+1}}return{col:e-t[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:n(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,s,r){if(!this.map)return!1;let n,o,l=this.map.consumer(),u=l.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof s&&(n=l.originalPositionFor({column:r,line:s})),o=i(u.source)?h(u.source):new URL(u.source,this.map.consumer().sourceRoot||h(this.map.mapFile));let c={column:u.column,endColumn:n&&n.column,endLine:n&&n.line,line:u.line,url:o.toString()};if("file:"===o.protocol){if(!a)throw new Error("file: protocol is not available in this PostCSS build");c.file=a(o)}let p=l.sourceContentFor(u.source);return p&&(c.source=p),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}e.exports=w,w.default=w,p&&p.registerInput&&p.registerInput(w)},96966(e,t,s){let r=s(77793),i=s(40145),n=s(13604),o=s(69577),l=s(33717),a=s(25644),h=s(83303),{isClean:u,my:c}=s(84151);s(6156);const p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},d={Once:!0,postcssPlugin:!0,prepare:!0};function m(e){return"object"==typeof e&&"function"==typeof e.then}function g(e){let t=!1,s=p[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[s,s+"-"+t,0,s+"Exit",s+"Exit-"+t]:t?[s,s+"-"+t,s+"Exit",s+"Exit-"+t]:e.append?[s,0,s+"Exit"]:[s,s+"Exit"]}function w(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:g(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function y(e){return e[u]=!1,e.nodes&&e.nodes.forEach(e=>y(e)),e}let x={};class b{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,t,s){let i;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof b||t instanceof l)i=y(t.root),t.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=t.map);else{let e=o;s.syntax&&(e=s.syntax.parse),s.parser&&(e=s.parser),e.parse&&(e=e.parse);try{i=e(t,s)}catch(e){this.processed=!0,this.error=e}i&&!i[c]&&r.rebuild(i)}else i=y(t);this.result=new l(e,i,s),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let s=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?s.postcssVersion:(e.plugin=s.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,s)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,s])};for(let t of this.plugins)if("object"==typeof t)for(let s in t){if(!f[s]&&/^[A-Z]/.test(s))throw new Error(`Unknown event ${s} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!d[s])if("object"==typeof t[s])for(let r in t[s])e(t,"*"===r?s:s+"-"+r.toLowerCase(),t[s][r]);else"function"==typeof t[s]&&e(t,s,t[s])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],s=this.runOnRoot(t);if(m(s))try{await s}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[u];){e[u]=!0;let t=[w(e)];for(;t.length>0;){let e=this.visitTick(t);if(m(e))try{await e}catch(e){let s=t[t.length-1].node;throw this.handleError(e,s)}}}if(this.listeners.OnceExit)for(let[t,s]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>s(e,this.helpers));await Promise.all(t)}else await s(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return m(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=h;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=this.result.root.source;if(void 0===e.map&&!(s&&s.input&&s.input.map)){let e="";return t(this.result.root,t=>{e+=t}),this.result.css=e,this.result}let r=new n(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(m(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[u];)e[u]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[s,r]of e){let e;this.result.lastPlugin=s;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(m(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:s,visitors:r}=t;if("root"!==s.type&&"document"!==s.type&&!s.parent)return void e.pop();if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(s.toProxy(),this.helpers)}catch(e){throw this.handleError(e,s)}}if(0!==t.iterator){let r,i=t.iterator;for(;r=s.nodes[s.indexes[i]];)if(s.indexes[i]+=1,!r[u])return r[u]=!0,void e.push(w(r));t.iterator=0,delete s.indexes[i]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,0===e)return void(s.nodes&&s.nodes.length&&(s[u]=!0,t.iterator=s.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[u]=!0;let t=g(e);for(let s of t)if(0===s)e.nodes&&e.each(e=>{e[u]||this.walkSync(e)});else{let t=this.listeners[s];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}}b.registerPostcss=e=>{x=e},e.exports=b,b.default=b,a.registerLazyResult(b),i.registerLazyResult(b)},81752(e){let t={comma:e=>t.split(e,[","],!0),space:e=>t.split(e,[" ","\n","\t"]),split(e,t,s){let r=[],i="",n=!1,o=0,l=!1,a="",h=!1;for(let s of e)h?h=!1:"\\"===s?h=!0:l?s===a&&(l=!1):'"'===s||"'"===s?(l=!0,a=s):"("===s?o+=1:")"===s?o>0&&(o-=1):0===o&&t.includes(s)&&(n=!0),n?(""!==i&&r.push(i.trim()),i="",n=!1):i+=s;return(s||""!==i)&&r.push(i.trim()),r}};e.exports=t,t.default=t},13604(e,t,s){let{dirname:r,relative:i,resolve:n,sep:o}=s(197),{SourceMapConsumer:l,SourceMapGenerator:a}=s(21866),{pathToFileURL:h}=s(52739),u=s(61106),c=Boolean(l&&a),p=Boolean(r&&n&&i&&o);e.exports=class{constructor(e,t,s,r){this.stringify=e,this.mapOpts=s.map||{},this.root=t,this.opts=s,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,s=this.toUrl(this.path(e.file)),i=e.root||r(e.file);!1===this.mapOpts.sourcesContent?(t=new l(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,s,this.toUrl(this.path(i)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else if(this.css){let e;for(;-1!==(e=this.css.lastIndexOf("/*#"));){let t=this.css.indexOf("*/",e+3);if(-1===t)break;for(;e>0&&"\n"===this.css[e-1];)e--;this.css=this.css.slice(0,e)+this.css.slice(t+2)}}}generate(){if(this.clearAnnotation(),p&&c&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=a.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,s=1,r=1,i="<no source>
9",n={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,l,a)=>{if(this.css+=o,l&&"end"!==a&&(n.generated.line=s,n.generated.column=r-1,l.source&&l.source.start?(n.source=this.sourcePath(l),n.original.line=l.source.start.line,n.original.column=l.source.start.column-1,this.map.addMapping(n)):(n.source=i,n.original.line=1,n.original.column=0,this.map.addMapping(n))),t=o.match(/\n/g),t?(s+=t.length,e=o.lastIndexOf("\n"),r=o.length-e):r+=o.length,l&&"start"!==a){let e=l.parent||{raws:{}};("decl"===l.type||"atrule"===l.type&&!l.nodes)&&l===e.last&&!e.raws.semicolon||(l.source&&l.source.end?(n.source=this.sourcePath(l),n.original.line=l.source.end.line,n.original.column=l.source.end.column-1,n.generated.line=s,n.generated.column=r-2,this.map.addMapping(n)):(n.source=i,n.original.line=1,n.original.column=0,n.generated.line=s,n.generated.column=r-1,this.map.addMapping(n)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let s=this.opts.to?r(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(s=r(n(s,this.mapOpts.annotation)));let o=i(s,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new u(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let s=t.source.input.from;if(s&&!e[s]){e[s]=!0;let r=this.usesFileUrls?this.toFileUrl(s):this.toUrl(this.path(s));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(h){let t=h(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===o&&(e=e.replace(/\\/g,"/"));let s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s}}},84211(e,t,s){let r=s(13604),i=s(69577),n=s(33717),o=s(83303);s(6156);class l{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=i;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,s){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=s,this._map=void 0;let i=o;this.result=new n(this._processor,void 0,this._opts),this.result.css=t;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let a=new r(i,void 0,this._opts,t);if(a.isMap()){let[e,t]=a.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else a.clearAnnotation(),this.result.css=a.css}
9async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}}e.exports=l,l.default=l},63152(e,t,s){let r=s(53614),i=s(47668),n=s(83303),{isClean:o,my:l}=s(84151);function a(e,t){let s=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let i=e[r],n=typeof i;"parent"===r&&"object"===n?t&&(s[r]=t):"source"===r?s[r]=i:Array.isArray(i)?s[r]=i.map(e=>a(e,s)):("object"===n&&null!==i&&(i=a(i)),s[r]=i)}return s}function h(e,t){if(t&&void 0!==t.offset)return t.offset;let s=1,r=1,i=0;for(let n=0;n<e.length;n++){if(r===t.line&&s===t.column){i=n;break}"\n"===e[n]?(s=1,r+=1):s+=1}return i}class u{get proxyOf(){return this}constructor(e={}){this.raws={},this[o]=!1,this[l]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let s of e[t])"function"==typeof s.clone?this.append(s.clone()):this.append(s)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=a(this);for(let s in e)t[s]=e[s];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:s,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:s.column,line:s.line},t)}return new r(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,s)=>(e[t]===s||(e[t]=s,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markClean(){this[o]=!0}
vendor: 5,510 bytes, line 9
9markDirty(){if(this[o]){this[o]=!1;let e=this;for(;e=e.parent;)e[o]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let s="document"in this.source.input?this.source.input.document:this.source.input.css,r=s.slice(h(s,this.source.start),h(s,this.source.end)).indexOf(e.word);-1!==r&&(t=this.positionInside(r))}return t}positionInside(e){let t=this.source.start.column,s=this.source.start.line,r="document"in this.source.input?this.source.input.document:this.source.input.css,i=h(r,this.source.start),n=i+e;for(let e=i;e<n;e++)"\n"===r[e]?(t=1,s+=1):t+=1;return{column:t,line:s,offset:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,s={column:this.source.start.column,line:this.source.start.line,offset:h(t,this.source.start)},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:"number"==typeof this.source.end.offset?this.source.end.offset:h(t,this.source.end)+1}:{column:s.column+1,line:s.line,offset:s.offset+1};if(e.word){let i=t.slice(h(t,this.source.start),h(t,this.source.end)).indexOf(e.word);-1!==i&&(s=this.positionInside(i),r=this.positionInside(i+e.word.length))}else e.start?s={column:e.start.column,line:e.start.line,offset:h(t,e.start)}:e.index&&(s=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line,offset:h(t,e.end)}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<s.line||r.line===s.line&&r.column<=s.column)&&(r={column:s.column+1,line:s.line,offset:s.offset+1}),{end:r,start:s}}raw(e,t){return(new i).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,s=!1;for(let r of e)r===this?s=!0:s?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);s||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let s={},r=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))s[e]=r.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof r&&r.toJSON)s[e]=r.toJSON(null,t);else if("source"===e){if(null==r)continue;let n=t.get(r.input);null==n&&(n=i,t.set(r.input,i),i++),s[e]={end:r.end,inputId:n,start:r.start}}else s[e]=r}return r&&(s.inputs=[...t.keys()].map(e=>e.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=n){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,s={}){let r={node:this};for(let e in s)r[e]=s[e];return e.warn(t,r)}}e.exports=u,u.default=u},69577(e,t,s){let r=s(77793),i=s(61106),n=s(68339);function o(e,t){let s=new i(e,t),r=new n(s);try{r.parse()}catch(e){throw e}return r.root}e.exports=o,o.default=o,r.registerParse(o)},68339(e,t,s){let r=s(40396),i=s(49371),n=s(35238),o=s(25644),l=s(61534),a=s(45781);const h={empty:!0,space:!0};function u(e,t,s){let r="";for(let i=t;i<s;i++)r+=e[i][1];return r}e.exports=class{constructor(e){this.input=e,this.root=new o,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,s,i,n=new r;n.name=e[1].slice(1),""===n.name&&this.unnamedAtrule(n,e),this.init(n,e[2]);let o=!1,l=!1,a=[],h=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?h.push("("===t?")":"]"):"{"===t&&h.length>0?h.push("}"):t===h[h.length-1]&&h.pop(),0===h.length){if(";"===t){n.source.end=this.getPosition(e[2]),n.source.end.offset++,this.semicolon=!0;break}if("{"===t){l=!0;break}if("}"===t){if(a.length>0){for(i=a.length-1,s=a[i];s&&"space"===s[0];)s=a[--i];s&&(n.source.end=this.getPosition(s[3]||s[2]),n.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(n.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(n,"params",a),o&&(e=a[a.length-1],n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),l&&(n.nodes=[],this.current=n)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let s,r=0;for(let i=t-1;i>=0&&(s=e[i],"space"===s[0]||(r+=1,2!==r));i--);throw this.input.error("Missed semicolon","word"===s[0]?s[3]+1:s[2])}colon(e){let t,s,r,i=0;for(let[n,o]of e.entries()){if(s=o,r=s[0],"("===r&&(i+=1),")"===r&&(i-=1),0===i&&":"===r){if(t){if("word"===t[0]&&"progid"===t[1])continue;return n}this.doubleColon(s)}t=s}return!1}comment(e){let t=new i;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let s=e[1].slice(2,-2);if(s.trim()){let e=s.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}else t.text="",t.raws.left=s,t.raws.right=""}createTokenizer(){this.tokenizer=a(this.input)}decl(e,t){let s=new n;this.init(s,e[0][2]);let r=e[e.length-1];";"===r[0]&&(this.semicolon=!0,e.pop()),s.source.end=this.getPosition(r[3]||r[2]||function(e){for(let t=e.length-1;t>=0;t--){let s=e[t],r=s[3]||s[2];
vendor: 4,114 bytes, line 9
9if(r)return r}}(e)),s.source.end.offset++;let i=0;for(;"word"!==e[i][0];)i===e.length-1&&this.unknownWord([e[i]]),i++;s.raws.before+=u(e,0,i),s.source.start=this.getPosition(e[i][2]);let o=i;for(;i<e.length;){let t=e[i][0];if(":"===t||"space"===t||"comment"===t)break;i++}s.prop=u(e,o,i);let l,a=i;for(;i<e.length&&(l=e[i],i++,":"!==l[0]);)"word"===l[0]&&/\w/.test(l[1])&&this.unknownWord([l]);s.raws.between=u(e,a,i),"_"!==s.prop[0]&&"*"!==s.prop[0]||(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));let h=i;for(;i<e.length;){let t=e[i][0];if("space"!==t&&"comment"!==t)break;i++}let c=e.slice(h,i);e=e.slice(i),this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(l=e[t],"!important"===l[1].toLowerCase()){s.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(s.raws.important=r);break}if("important"===l[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(i.trim().startsWith("!")&&"space"!==t)break;i=r.pop()[1]+i}i.trim().startsWith("!")&&(s.important=!0,s.raws.important=i,e=r)}if("space"!==l[0]&&"comment"!==l[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(s.raws.between+=c.map(e=>e[1]).join(""),c=[]),this.raw(s,"value",c.concat(e),t),s.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new l;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,s=null,r=!1,i=null,n=[],o=e[1].startsWith("--"),l=[],a=e;for(;a;){if(s=a[0],l.push(a),"("===s||"["===s)i||(i=a),n.push("("===s?")":"]");else if(o&&r&&"{"===s)i||(i=a),n.push("}");else if(0===n.length){if(";"===s){if(r)return void this.decl(l,o);break}if("{"===s)return void this.rule(l);if("}"===s){this.tokenizer.back(l.pop()),t=!0;break}":"===s&&(r=!0)}else s===n[n.length-1]&&(n.pop(),0===n.length&&(i=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;l.length&&(a=l[l.length-1][0],"space"===a||"comment"===a);)this.tokenizer.back(l.pop());this.decl(l,o)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,s,r){let i,n,o,l,a=s.length,u="",c=!0;for(let e=0;e<a;e+=1)i=s[e],n=i[0],"space"!==n||e!==a-1||r?"comment"===n?(l=s[e-1]?s[e-1][0]:"empty",o=s[e+1]?s[e+1][0]:"empty",h[l]||h[o]||","===u.slice(-1)?c=!1:u+=i[1]):u+=i[1]:c=!1;if(!c){let r=s.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:r,value:u}}e[t]=u}rule(e){e.pop();let t=new l;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}
vendor: 13,771 bytes, line 9
9spacesAndCommentsFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)s=e.pop()[1]+s;return s}spacesAndCommentsFromStart(e){let t,s="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)s+=e.shift()[1];return s}spacesFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)s=e.pop()[1]+s;return s}stringFrom(e,t){let s="";for(let r=t;r<e.length;r++)s+=e[r][1];return e.splice(t,e.length-t),s}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}},12895(e,t,s){let r=s(40396),i=s(49371),n=s(77793),o=s(53614),l=s(35238),a=s(40145),h=s(33438),u=s(61106),c=s(96966),p=s(81752),f=s(63152),d=s(69577),m=s(96846),g=s(33717),w=s(25644),y=s(61534),x=s(83303),b=s(60038);function v(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new m(e)}v.plugin=function(e,t){let s,r=!1;function i(...s){console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let i=t(...s);return i.postcssPlugin=e,i.postcssVersion=(new m).version,i}return Object.defineProperty(i,"postcss",{get:()=>(s||(s=i()),s)}),i.process=function(e,t,s){return v([i(s)]).process(e,t)},i},v.stringify=x,v.parse=d,v.fromJSON=h,v.list=p,v.comment=e=>new i(e),v.atRule=e=>new r(e),v.decl=e=>new l(e),v.rule=e=>new y(e),v.root=e=>new w(e),v.document=e=>new a(e),v.CssSyntaxError=o,v.Declaration=l,v.Container=n,v.Processor=m,v.Document=a,v.Comment=i,v.Warning=b,v.AtRule=r,v.Result=g,v.Input=u,v.Rule=y,v.Root=w,v.Node=f,c.registerPostcss(v),e.exports=v,v.default=v},93878(e,t,s){let{existsSync:r,readFileSync:i}=s(19977),{dirname:n,join:o}=s(197),{SourceMapConsumer:l,SourceMapGenerator:a}=s(21866);class h{constructor(e,t){if(!1===t.map)return;t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let s=t.map?t.map.prev:void 0,r=this.loadMap(t.from,s);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=n(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new l(this.json||this.text)),this.consumerCache}decodeInline(e){let t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));let s=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(s)return r=e.substr(s[0].length),Buffer?Buffer.from(r,"base64").toString():window.atob(r);var r;let i=e.slice(22);throw i=i.slice(0,i.indexOf(",")),new Error("Unsupported source map encoding "+i)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let s=e.lastIndexOf(t.pop()),r=e.indexOf("*/",s);s>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,r)))}loadFile(e,t,s){if(s||this.unsafeMap||/\.map$/i.test(e))return this.root=n(e),r(e)?(this.mapFile=e,i(e,"utf-8").toString().trim()):void 0}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof l)return a.fromSourceMap(t).toString();if(t instanceof a)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let s=t(e);if(s){let t=this.loadFile(s,e,!0);if(!t)throw new Error("Unable to load previous source map: "+s.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;e&&(t=o(n(e),t));let s=this.loadFile(t,e,!1);if(s)try{this.json=JSON.parse(s.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return s}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=h,h.default=h},96846(e,t,s){let r=s(40145),i=s(96966),n=s(84211),o=s(25644);class l{constructor(e=[]){this.version="8.5.15",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let s of e)if(!0===s.postcss?s=s():s.postcss&&(s=s.postcss),"object"==typeof s&&Array.isArray(s.plugins))t=t.concat(s.plugins);else if("object"==typeof s&&s.postcssPlugin)t.push(s);else if("function"==typeof s)t.push(s);else if("object"!=typeof s||!s.parse&&!s.stringify)throw new Error(s+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new i(this,e,t):new n(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=l,l.default=l,o.registerProcessor(l),r.registerProcessor(l)},33717(e,t,s){let r=s(60038);class i{get content(){return this.css}constructor(e,t,s){this.processor=e,this.messages=[],this.root=t,this.opts=s,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let s=new r(e,t);return this.messages.push(s),s}warnings(){return this.messages.filter(e=>"warning"===e.type)}}e.exports=i,i.default=i},25644(e,t,s){let r,i,n=s(77793);class o extends n{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,s){let r=super.normalize(e);if(t)if("prepend"===s)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}removeChild(e,t){let s=this.index(e);return!t&&0===s&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(e)}toResult(e={}){return new r(new i,this,e).stringify()}}o.registerLazyResult=e=>{r=e},o.registerProcessor=e=>{i=e},e.exports=o,o.default=o,n.registerRoot(o)},61534(e,t,s){let r=s(77793),i=s(81752);class n extends r{get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,s=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}}e.exports=n,n.default=n,r.registerRule(n)},47668(e){const t=/(<)(\/?style\b)/gi,s=/(<)(!--)/g;function r(e){return"string"!=typeof e?e:e.includes("<")?e.replace(t,"\\3c $2").replace(s,"\\3c $2"):e}const i={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};class n{constructor(e){this.builder=e}atrule(e,t){let s=e.raws,i="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==s.afterName?i+=s.afterName:n&&(i+=" "),e.nodes)this.block(e,i+n);else{let o=(s.between||"")+(t?";":"");this.builder(r(i+n+o),e)}}beforeAfter(e,t){let s;s="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,i=0;for(;r&&"root"!==r.type;)i+=1,r=r.parent;if(s.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)s+=t}return s}block(e,t){let s,i=this.raw(e,"between","beforeOpen");this.builder(r(t+i)+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(r(s)),this.builder("}",e,"end")}body(e){let t=e.nodes,s=t.length-1;for(;s>0&&"comment"===t[s].type;)s-=1;let i=this.raw(e,"semicolon"),n="document"===e.type;for(let e=0;e<t.length;e++){let o=t[e],l=this.raw(o,"before");l&&this.builder(n?l:r(l)),this.stringify(o,s!==e||i)}}comment(e){let t=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder(r("/*"+t+e.text+s+"*/"),e)}decl(e,t){let s=e.raws,i=this.raw(e,"between","colon"),n=e.prop+i+this.rawValue(e,"value");e.important&&(n+=s.important||" !important"),t&&(n+=";"),this.builder(r(n),e)}document(e){this.body(e)}raw(e,t,s){let r;if(s||(s=t),t&&(r=e.raws[t],void 0!==r))return r;let n=e.parent;if("before"===s){if(!n||"root"===n.type&&n.first===e)return"";if(n&&"document"===n.type)return""}if(!n)return i[s];let o=e.root(),l=o.rawCache||(o.rawCache={});if(void 0!==l[s])return l[s];if("before"===s||"after"===s)return this.beforeAfter(e,s);{let i="raw"+((a=s)[0].toUpperCase()+a.slice(1));this[i]?r=this[i](o,e):o.walk(e=>{if(r=e.raws[t],void 0!==r)return!1})}var a;return void 0===r&&(r=i[s]),l[s]=r,r}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let s;return e.walkComments(e=>{if(void 0!==e.raws.before)return s=e.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),void 0===s?s=this.raw(t,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(e,t){let s;return e.walkDecls(e=>{if(void 0!==e.raws.before)return s=e.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),void 0===s?s=this.raw(t,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawBeforeRule(e){let t;return e.walk(s=>{if(s.nodes&&(s.parent!==e||e.first!==s)&&void 0!==s.raws.before)return t=s.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(s=>{let r=s.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==s.raws.before){let e=s.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let s=e[t],r=e.raws[t];return r&&r.value===s?r.raw:s}root(e){if(this.body(e),e.raws.after){let t=e.raws.after,s=e.parent&&"document"===e.parent.type;this.builder(s?t:r(t))}}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(r(e.raws.ownSemicolon),e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}e.exports=n,n.default=n},83303(e,t,s){let r=s(47668);function i(e,t){new r(t).stringify(e)}e.exports=i,i.default=i},84151(e){e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},45781(e){const t="'".charCodeAt(0),s='"'.charCodeAt(0),r="\\".charCodeAt(0),i="/".charCodeAt(0),n="\n".charCodeAt(0),o=" ".charCodeAt(0),l="\f".charCodeAt(0),a="\t".charCodeAt(0),h="\r".charCodeAt(0),u="[".charCodeAt(0),c="]".charCodeAt(0),p="(".charCodeAt(0),f=")".charCodeAt(0),d="{".charCodeAt(0),m="}".charCodeAt(0),g=";".charCodeAt(0),w="*".charCodeAt(0),y=":".charCodeAt(0),x="@".charCodeAt(0),b=/[\t\n\f\r "#'()/;[\\\]{}]/g,v=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,C=/.[\r\n"'(/\\]/,k=/[\da-f]/i;e.exports=function(e,O={}){let S,A,P,R,E,M,I,U,F,L,j=e.css.valueOf(),z=O.ignoreErrors,B=j.length,D=0,_=[],T=[],N=-1;function $(t){throw e.error("Unclosed "+t,D)}return{back:function(e){T.push(e)},endOfFile:function(){return 0===T.length&&D>=B},nextToken:function(e){if(T.length)return T.pop();if(D>=B)return;let O=!!e&&e.ignoreUnclosed;switch(S=j.charCodeAt(D),S){case n:case o:case a:case h:case l:R=D;do{R+=1,S=j.charCodeAt(R)}while(S===o||S===n||S===a||S===h||S===l);M=["space",j.slice(D,R)],D=R-1;break;case u:case c:case d:case m:case y:case g:case f:{let e=String.fromCharCode(S);M=[e,e,D];break}case p:if(L=_.length?_.pop()[1]:"",F=j.charCodeAt(D+1),"url"===L&&F!==t&&F!==s&&F!==o&&F!==n&&F!==a&&F!==l&&F!==h){R=D;do{if(I=!1,R=j.indexOf(")",R+1),-1===R){if(z||O){R=D;break}$("bracket")}for(U=R;j.charCodeAt(U-1)===r;)U-=1,I=!I}while(I);M=["brackets",j.slice(D,R+1),D,R],D=R}else D<=N?M=["(","(",D]:(R=j.indexOf(")",D+1),A=j.slice(D,R+1),-1===R||C.test(A)?(N=-1===R?B:R,M=["(","(",D]):(M=["brackets",A,D,R],D=R));break;case t:case s:E=S===t?"'":'"',R=D;do{if(I=!1,R=j.indexOf(E,R+1),-1===R){if(z||O){R=D+1;break}$("string")}for(U=R;j.charCodeAt(U-1)===r;)U-=1,I=!I}while(I);M=["string",j.slice(D,R+1),D,R],D=R;break;case x:b.lastIndex=D+1,b.test(j),R=0===b.lastIndex?j.length-1:b.lastIndex-2,M=["at-word",j.slice(D,R+1),D,R],D=R;break;case r:for(R=D,P=!0;j.charCodeAt(R+1)===r;)R+=1,P=!P;if(S=j.charCodeAt(R+1),P&&S!==i&&S!==o&&S!==n&&S!==a&&S!==h&&S!==l&&(R+=1,k.test(j.charAt(R)))){for(;k.test(j.charAt(R+1));)R+=1;j.charCodeAt(R+1)===o&&(R+=1)}M=["word",j.slice(D,R+1),D,R],D=R;break;default:S===i&&j.charCodeAt(D+1)===w?(R=j.indexOf("*/",D+2)+1,0===R&&(z||O?R=j.length:$("comment")),M=["comment",j.slice(D,R+1),D,R],D=R):(v.lastIndex=D+1,v.test(j),R=0===v.lastIndex?j.length-1:v.lastIndex-2,M=["word",j.slice(D,R+1),D,R],_.push(M),D=R)}return D++,M},position:function(){return D}}}},6156(e){let t={};e.exports=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},60038(e){class t{constructor(e,t={}
9){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},37347(e,t,s){s.d(t,{Ay:()=>i});var r=s(12895);const i=r;r.stringify,r.fromJSON,r.plugin,r.parse,r.list,r.document,r.comment,r.atRule,r.rule,r.decl,r.root,r.CssSyntaxError,r.Declaration,r.Container,r.Processor,r.Document,r.Comment,r.Warning,r.AtRule,r.Result,r.Input,r.Rule,r.Root,r.Node}}]);
10(()=>{var e,t={95137(e,t,r){"use strict";const n="update",a="remove";class o{constructor(e,t){this.dom=e,this.data=t}run(){throw new Error(`Action type '${this.data.type}' - not implemented`)}incrementBodyDivIndex(e){const t=/(\/body\[\d+\]\/div\[)(\d+)/;return e.match(t)?e.replace(t,(e,t,r)=>`${t}${parseInt(r,10)+1}`):e}getElementByXPath(e){let t=e.replace("svg","*[name()='svg']");return document.getElementById("wpadminbar")&&(t=this.incrementBodyDivIndex(t)),this.dom.evaluate(t,this.dom,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}getElementByXPathFallbackSnippet(e,t=null){const r=t?this.getElementByXPath(t):null,n="string"==typeof e&&""!==e.trim();if(r&&n){const t=e.replace(/\s+/g," ").trim().toLowerCase();if(r.outerHTML.replace(/\s+/g," ").trim().toLowerCase().includes(t))return r}if(!n)return r||null;const a=(new DOMParser).parseFromString(e.trim(),"text/html").body.firstElementChild;if(!a)return r||null;const o=a.tagName.toLowerCase();if(a.id||a.classList.length){const e=[o];a.id&&e.push(`#${a.id}`),a.classList.length&&e.push(`.${Array.from(a.classList).join(".")}`);const t=e.join("");return document.querySelector(t)||r||null}return this.findBestMatchingElementByTag(o,e)||r||null}findBestMatchingElementByTag(e,t){const r=t.replace(/\s+/g," ").trim().toLowerCase(),n=document.getElementsByTagName(e);for(const e of n)if(e.outerHTML.replace(/\s+/g," ").trim().toLowerCase().includes(r))return e;return n[0]||null}createElement(e,t=[],r=""){const n=document.createElement(e);return t.forEach(e=>{n.setAttribute(e.name,e.value)}),r&&(n.textContent=r),n}}class i extends o{run(){const{xpath:e,action:t,attribute_name:r,attribute_value:o,find:i}=this.data,l=e.replace("svg","*[name()='svg']"),s=this.getElementByXPathFallbackSnippet(i,l);if(!s)return!1;switch(t){case"add":case n:s.setAttribute(r,o);const e={alt:["role","title"],role:["alt","title"]};e[r]&&e[r].forEach(e=>s.removeAttribute(e));break;case a:s.removeAttribute(r);break;case"clear":s.setAttribute(r,"")}return!0}}class l extends o{run(){const{xpath:e,action:t,content:r,child:o,find:i}=this.data,l=this.getElementByXPathFallbackSnippet(i,e);if(!l)return!1;let s=null;if(o)try{s=this.createElement(o.tag,o.attributes||[],o.content||"")}catch(e){return}switch(t){case n:l.nodeValue=r;break;case a:l.remove();break;case"add_child":s&&l.appendChild(s);break;case"remove_child":s&&l.removeChild(s);break;case"add_before":s&&l.parentNode&&l.parentNode.insertBefore(s,l);break;case"add_after":s&&l.parentNode&&l.parentNode.insertBefore(s,l.nextSibling)}return!0}}class s extends o{replaceIgnoreCase(e,t,r,n,a){const o=n.indexOf(a);return-1===o?e:e.substring(0,o)+r+e.substring(o+t.length)}run(){const{xpath:e,find:t,replace:r}=this.data,n=this.getElementByXPathFallbackSnippet(t,e);if(!n)return!1;const a=n.outerHTML;if("string"!=typeof t||"string"!=typeof r)return!1;const o=a.toLowerCase(),i=t.toLowerCase();if(!o.includes(i))return!1;const l=this.replaceIgnoreCase(a,t,r,o,i);if(l===a)return!1;const s=document.createElement("div");s.innerHTML=l;const c=s.firstElementChild;return c&&n.parentNode&&n.parentNode.replaceChild(c,n),!0}}var c=r(76105),d=r.n(c),u=r(37347);const h=e=>{try{return!(!e||"string"!=typeof e||(u.Ay.parse(e),0))}catch(e){return!1}},g=e=>{const t=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/i);if(!t)return null;const r=parseInt(t[1]).toString(16).padStart(2,"0"),n=parseInt(t[2]).toString(16).padStart(2,"0"),a=parseInt(t[3]).toString(16).padStart(2,"0");return void 0!==t[4]&&parseFloat(t[4])<1?`#${r}${n}${a}${Math.round(255*parseFloat(t[4])).toString(16).padStart(2,"0")}`.toUpperCase():`#${r}${n}${a}`.toUpperCase()};class m extends o{constructor(e,t){super(e,t),this.maybeAddStyleTag()}maybeAddStyleTag(){let e=this.dom.querySelector("style#ea11y-remediation-styles");e||(e=this.dom.createElement("style"),e.id="ea11y-remediation-styles",this.dom.body.appendChild(e))}getStyleTag(){return this.dom.querySelector("style#ea11y-remediation-styles")}getElementCSSSelector(e){let t=this.getElementByXPath(e);if(!(t&&t instanceof Element))return null;const r=[];for(;t&&t.nodeType===Node.ELEMENT_NODE;){let e=t.tagName.toLowerCase();if(t.id){e+=`#${t.id}`,r.unshift(e);break}if(t.className&&"body"!==t.tagName.toLowerCase()){const r=t.className.trim().split(/\s+/);r.length&&(e+="."+r.join("."))}const n=t.parentNode;if(n&&("body"!==n.tagName?.toLowerCase()||"div"!==t.tagName?.toLowerCase())){const r=Array.from(n.children).filter(e=>e.tagName===t.tagName);r.length>1&&(e+=`:nth-of-type(${r.indexOf(t)+1})`)}r.unshift(e),t=t.parentElement}return r.join(" > ")}getCssRulesForContrast(e=null,t=null,r=null,n=null){try{const a=e?this.getElementCSSSelector(e):null,o=r?this.getElementCSSSelector(r):null,i=`${a&&t?`${a}{color:${t}!important;}`:""}${o&&n?`${o}{background-color:${n}!important;}`:""}`;return h(i)?i:""}catch(e){return console.warn("Failed to convert XPath to CSS selector",e),""}}run(){const e=this.getStyleTag();if(!e)return!1;let t=this.data.rule;if("1"===this.data.global){const e=(()=>{const e={color:null,background:null},t=this.data.rule.matchAll(/([^{]+)\s*\{([^}]+)\}/g);for(const[,r,n]of t){let t;try{t=document.querySelector(r.trim())}catch{continue}const a=n.match(/(?<!background-)color\s*:\s*([^;!]+)/i),o=n.match(/background-color\s*:\s*([^;!]+)/i),i=a?a[1].trim():null,l=o?o[1].trim():null;if(i&&!e.color&&(e.color={item:t,value:i}),l&&!e.background&&(e.background={item:t,value:l}),e.color&&e.background)break}const r=e.color?.item||e.background?.item;if(r){const t=window.getComputedStyle(r);e.color||(e.color={item:r,value:g(t.getPropertyValue("color"))}),e.background||(e.background={item:r,value:g(t.getPropertyValue("background-color"))})}return e})(),r=d()(this.getElementByXPathFallbackSnippet(this.data.xpath,this.data.find)),n=d()(this.getElementByXPathFallbackSnippet(this.data.parentXPath,this.data.parentFind));t=this.getCssRulesForContrast(r,e.color.value,n,e.background.value)}return h(this.data.rule)&&(e.innerText+=t),!0}}class p{constructor(e){this.remediations=e,this.classMap={attribute:i,element:l,replace:s,styles:m,global:s},this.checkTimeout=null,this.runAll()}runAll(){this.remediations=this.remediations.filter(e=>!this.runRemediation(e))}runRemediation(e){const t=("1"===e.global?"global":e.type).toLowerCase(),r=this.classMap[t];if(r)try{return new r(document,e).run()}catch(t){window.AllyRemediations?.debug&&window.AllyRemediations.debug&&console.error("Remediation failed",t,e)}return!1}checkRemediations(){this.isComplete()||this.runAll()}isComplete(){return 0===this.remediations.length}}if(window?.AllyRemediations&&Array.isArray(window.AllyRemediations?.remediations)){let b=null,f=null,y=!1;
10function v(){y?b.runAll():(y=!0,b=new p(window.AllyRemediations.remediations),window.MutationObserver&&b.remediations.length>0&&(f=new MutationObserver(e=>{let t=!1;for(const r of e)if("childList"===r.type&&r.addedNodes.length>0){t=!0;break}t&&(clearTimeout(b.checkTimeout),b.checkTimeout=setTimeout(()=>{b.checkRemediations(),b.isComplete()&&f&&(f.disconnect(),f=null)},100))}),f.observe(document.body,{childList:!0,subtree:!0})))}window.AllyRemediations.initialize=v,window.addEventListener("DOMContentLoaded",function(){setTimeout(()=>{v()},400)}),"loading"!==document.readyState&&setTimeout(()=>{v()},400)}},76105(e){e.exports=function(){function e(){return(e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var t={ignoreId:!1},r="undefined"!=typeof Node,n=r?Node.ELEMENT_NODE:1,a=r?Node.TEXT_NODE:3,o=r?Node.DOCUMENT_TYPE_NODE:10;return function(r,i){var l=e({},t,i),s=r;if(s&&s.id&&!l.ignoreId)return'//*[@id="'+s.id+'"]';for(var c=[];s&&(n===s.nodeType||a===s.nodeType);){for(var d=0,u=!1,h=s.previousSibling;h;)h.nodeType!==o&&h.nodeName===s.nodeName&&d++,h=h.previousSibling;for(h=s.nextSibling;h;){if(h.nodeName===s.nodeName){u=!0;break}h=h.nextSibling}var g=d||u?"["+(d+1)+"]":"";c.push(s.nodeType!=a?(s.prefix?s.prefix+":":"")+s.localName+g:"text()"+(g||"[1]")),s=s.parentNode}return c.length?"/"+c.reverse().join("/"):""}}()},48633(e){var t=String,r=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreen
10Bright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=r(),e.exports.createColors=r},49746(){},19977(){},197(){},21866(){},52739(){},95042(e){e.exports={nanoid:(e=21)=>{let t="",r=0|e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let n="",a=0|r;for(;a--;)n+=e[Math.random()*e.length|0];return n}}}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var o=r[e]={exports:{}};return t[e].call(o.exports,o,o.exports,n),o.exports}n.m=t,e=[],n.O=(t,r,a,o)=>{if(!r){var i=1/0;for(d=0;d<e.length;d++){for(var[r,a,o]=e[d],l=!0,s=0;s<r.length;s++)(!1&o||i>=o)&&Object.keys(n.O).every(e=>n.O[e](r[s]))?r.splice(s--,1):(l=!1,o<i&&(i=o));if(l){e.splice(d--,1);var c=a();void 0!==c&&(t=c)}}return t}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[r,a,o]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={1275:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var a,o,[i,l,s]=r,c=0;if(i.some(t=>0!==e[t])){for(a in l)n.o(l,a)&&(n.m[a]=l[a]);if(s)var d=s(n)}for(t&&t(r);c<i.length;c++)o=i[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(d)},r=globalThis.webpackChunkpojo_accessibility=globalThis.webpackChunkpojo_accessibility||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var a=n.O(void 0,[5168],()=>n(95137));a=n.O(a)})();
11(function(){var defaultOptions={frameRate:150,animationTime:400,stepSize:100,pulseAlgorithm:true,pulseScale:4,pulseNormalize:1,accelerationDelta:50,accelerationMax:3,keyboardSupport:true,arrowScroll:50,touchpadSupport:true,fixedBackground:true,excluded:''};var options=defaultOptions;var isExcluded=false;var isFrame=false;var direction={x:0,y:0};var initDone=false;var root=document.documentElement;var activeElement;var observer;var refreshSize;var deltaBuffer=[];var isMac=/^Mac/.test(navigator.platform);var key={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36};function initTest(){if(options.keyboardSupport){addEvent('keydown',keydown);}}
12function init(){if(initDone||!document.body)return;initDone=true;var body=document.body;var html=document.documentElement;var windowHeight=window.innerHeight;var scrollHeight=body.scrollHeight;var rootScrollHeight=function(){var adminbar=document.querySelector('#wpadminbar');if(!adminbar){return root.scrollHeight;}
13return root.scrollHeight-adminbar.offsetHeight;}
14root=(document.compatMode.indexOf('CSS')>=0)?html:body;activeElement=body;initTest();if(top!=self){isFrame=true;}
15else if(scrollHeight>windowHeight&&(body.offsetHeight<=windowHeight||html.offsetHeight<=windowHeight)){var fullPageElem=document.createElement('div');fullPageElem.style.cssText='position:absolute; z-index:-10000; '+'top:0; left:0; right:0; height:'+
16rootScrollHeight()+'px';document.body.appendChild(fullPageElem);var pendingRefresh;refreshSize=function(){if(pendingRefresh)return;pendingRefresh=setTimeout(function(){if(isExcluded)return;fullPageElem.style.height='0';fullPageElem.style.height=rootScrollHeight()+'px';pendingRefresh=null;},500);};setTimeout(refreshSize,10);addEvent('resize',refreshSize);window.addResizeListener(document.getElementById('mk-theme-container'),refreshSize);var config={attributes:true,childList:true,characterData:false};observer=new MutationObserver(refreshSize);observer.observe(body,config);if(root.offsetHeight<=windowHeight){var clearfix=document.createElement('div');clearfix.style.clear='both';body.appendChild(clearfix);}}
17if(!options.fixedBackground&&!isExcluded){body.style.backgroundAttachment='scroll';html.style.backgroundAttachment='scroll';}}
18function cleanup(){observer&&observer.disconnect();removeEvent(wheelEvent,wheel);removeEvent('mousedown',mousedown);removeEvent('keydown',keydown);removeEvent('resize',refreshSize);removeEvent('load',init);}
19var que=[];var pending=false;var lastScroll=Date.now();function scrollArray(elem,left,top){directionCheck(left,top);if(options.accelerationMax!=1){var now=Date.now();var elapsed=now-lastScroll;if(elapsed<options.accelerationDelta){var factor=(1+(50/elapsed))/2;if(factor>1){factor=Math.min(factor,options.accelerationMax);left*=factor;top*=factor;}}
20lastScroll=Date.now();}
21que.push({x:left,y:top,lastX:(left<0)?0.99:-0.99,lastY:(top<0)?0.99:-0.99,start:Date.now()});if(pending){return;}
22var scrollWindow=(elem===document.body);var step=function(time){var now=Date.now();var scrollX=0;var scrollY=0;for(var i=0;i<que.length;i++){var item=que[i];var elapsed=now-item.start;var finished=(elapsed>=options.animationTime);var position=(finished)?1:elapsed/options.animationTime;if(options.pulseAlgorithm){position=pulse(position);}
23var x=(item.x*position-item.lastX)>>0;var y=(item.y*position-item.lastY)>>0;scrollX+=x;scrollY+=y;item.lastX+=x;item.lastY+=y;if(finished){que.splice(i,1);i--;}}
24if(scrollWindow){window.scrollBy(scrollX,scrollY);}
25else{if(scrollX)elem.scrollLeft+=scrollX;if(scrollY)elem.scrollTop+=scrollY;}
26if(!left&&!top){que=[];}
27if(que.length){requestFrame(step,elem,(1000/options.frameRate+1));}
27else{pending=false;}};requestFrame(step,elem,0);pending=true;}
28function wheel(event){if(!initDone){init();}
29var target=event.target;var overflowing=overflowingAncestor(target);if(!overflowing||event.defaultPrevented||event.ctrlKey){return true;}
30if(isNodeName(activeElement,'embed')||(isNodeName(target,'embed')&&/\.pdf/i.test(target.src))||isNodeName(activeElement,'object')){return true;}
31var deltaX=-event.wheelDeltaX||event.deltaX||0;var deltaY=-event.wheelDeltaY||event.deltaY||0;if(isMac){options.touchpadSupport=false;if(event.wheelDeltaX&&isDivisible(event.wheelDeltaX,120)){deltaX=-120*(event.wheelDeltaX/Math.abs(event.wheelDeltaX));}
32if(event.wheelDeltaY&&isDivisible(event.wheelDeltaY,120)){deltaY=-120*(event.wheelDeltaY/Math.abs(event.wheelDeltaY));}}
33if(!deltaX&&!deltaY){deltaY=-event.wheelDelta||0;}
34if(event.deltaMode===1){deltaX*=40;deltaY*=40;}
35if(!options.touchpadSupport&&isTouchpad(deltaY)){return true;}
36if(Math.abs(deltaX)>1.2){deltaX*=options.stepSize/120;}
37if(Math.abs(deltaY)>1.2){deltaY*=options.stepSize/120;}
38scrollArray(overflowing,deltaX,deltaY);scheduleClearCache();}
39function keydown(event){var target=event.target;var modifier=event.ctrlKey||event.altKey||event.metaKey||(event.shiftKey&&event.keyCode!==key.spacebar);if(!document.body.contains(activeElement)){activeElement=document.activeElement;}
40var inputNodeNames=/^(textarea|select|embed|object)$/i;var buttonTypes=/^(button|submit|radio|checkbox|file|color|image)$/i;if(inputNodeNames.test(target.nodeName)||isNodeName(target,'input')&&!buttonTypes.test(target.type)||isNodeName(activeElement,'video')||isInsideYoutubeVideo(event)||target.isContentEditable||event.defaultPrevented||modifier){return true;}
41if((isNodeName(target,'button')||isNodeName(target,'input')&&buttonTypes.test(target.type))&&event.keyCode===key.spacebar){return true;}
42var shift,x=0,y=0;var elem=overflowingAncestor(activeElement);var clientHeight=elem.clientHeight;if(elem==document.body){clientHeight=window.innerHeight;}
43switch(event.keyCode){case key.up:y=-options.arrowScroll;break;case key.down:y=options.arrowScroll;break;case key.spacebar:shift=event.shiftKey?1:-1;y=-shift*clientHeight*0.9;break;case key.pageup:y=-clientHeight*0.9;break;case key.pagedown:y=clientHeight*0.9;break;case key.home:y=-elem.scrollTop;break;case key.end:var damt=elem.scrollHeight-elem.scrollTop-clientHeight;y=(damt>0)?damt+10:0;break;case key.left:x=-options.arrowScroll;break;case key.right:x=options.arrowScroll;break;default:return true;}
44scrollArray(elem,x,y);event.preventDefault();scheduleClearCache();}
45function mousedown(event){activeElement=event.target;}
46var uniqueID=(function(){var i=0;return function(el){return el.uniqueID||(el.uniqueID=i++);};})();var cache={};var clearCacheTimer;function scheduleClearCache(){clearTimeout(clearCacheTimer);clearCacheTimer=setInterval(function(){cache={};},1*1000);}
47function setCache(elems,overflowing){for(var i=elems.length;i--;)
48cache[uniqueID(elems[i])]=overflowing;return overflowing;}
49function overflowingAncestor(el){var elems=[];var body=document.body;var rootScrollHeight=root.scrollHeight;do{var cached=cache[uniqueID(el)];if(cached){return setCache(elems,cached);}
50elems.push(el);if(rootScrollHeight===el.scrollHeight){var topOverflowsNotHidden=overflowNotHidden(root)&&overflowNotHidden(body);var isOverflowCSS=topOverflowsNotHidden||overflowAutoOrScroll(root);if(isFrame&&isContentOverflowing(root)||!isFrame&&isOverflowCSS){return setCache(elems,getScrollRoot());}}else if(isContentOverflowing(el)&&overflowAutoOrScroll(el)){return setCache(elems,el);}}while(el=el.parentElement);}
51function isContentOverflowing(el){return(el.clientHeight+10<el.scrollHeight);}
52function overflowNotHidden(el){var overflow=getComputedStyle(el,'').getPropertyValue('overflow-y');return(overflow!=='hidden');}
53function overflowAutoOrScroll(el){var overflow=getComputedStyle(el,'').getPropertyValue('overflow-y');return(overflow==='scroll'||overflow==='auto');}
54function addEvent(type,fn){window.addEventListener(type,fn,false);}
55function removeEvent(type,fn){window.removeEventListener(type,fn,false);}
56function isNodeName(el,tag){return(el.nodeName||'').toLowerCase()===tag.toLowerCase();}
57function directionCheck(x,y){x=(x>0)?1:-1;y=(y>0)?1:-1;
57if(direction.x!==x||direction.y!==y){direction.x=x;direction.y=y;que=[];lastScroll=0;}}
58var deltaBufferTimer;if(window.localStorage&&localStorage.SS_deltaBuffer){deltaBuffer=localStorage.SS_deltaBuffer.split(',');}
59function isTouchpad(deltaY){if(!deltaY)return;if(!deltaBuffer.length){deltaBuffer=[deltaY,deltaY,deltaY];}
60deltaY=Math.abs(deltaY);deltaBuffer.push(deltaY);deltaBuffer.shift();clearTimeout(deltaBufferTimer);deltaBufferTimer=setTimeout(function(){if(window.localStorage){localStorage.SS_deltaBuffer=deltaBuffer.join(',');}},1000);return!allDeltasDivisableBy(120)&&!allDeltasDivisableBy(100);}
61function isDivisible(n,divisor){return(Math.floor(n/divisor)==n/divisor);}
62function allDeltasDivisableBy(divisor){return(isDivisible(deltaBuffer[0],divisor)&&isDivisible(deltaBuffer[1],divisor)&&isDivisible(deltaBuffer[2],divisor));}
63function isInsideYoutubeVideo(event){var elem=event.target;var isControl=false;if(document.URL.indexOf('www.youtube.com/watch')!=-1){do{isControl=(elem.classList&&elem.classList.contains('html5-video-controls'));if(isControl)break;}while(elem=elem.parentNode);}
64return isControl;}
65var requestFrame=(function(){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(callback,element,delay){window.setTimeout(callback,delay||(1000/60));});})();var MutationObserver=(window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver);var getScrollRoot=(function(){var SCROLL_ROOT;return function(){if(!SCROLL_ROOT){var dummy=document.createElement('div');dummy.style.cssText='height:10000px;width:1px;';document.body.appendChild(dummy);var bodyScrollTop=document.body.scrollTop;var docElScrollTop=document.documentElement.scrollTop;window.scrollBy(0,3);if(document.body.scrollTop!=bodyScrollTop)
66(SCROLL_ROOT=document.body);else
67(SCROLL_ROOT=document.documentElement);window.scrollBy(0,-3);document.body.removeChild(dummy);}
68return SCROLL_ROOT;};})();function pulse_(x){var val,start,expx;x=x*options.pulseScale;if(x<1){val=x-(1-Math.exp(-x));}else{start=Math.exp(-1);x-=1;expx=1-Math.exp(-x);val=start+(expx*(1-start));}
69return val*options.pulseNormalize;}
70function pulse(x){if(x>=1)return 1;if(x<=0)return 0;if(options.pulseNormalize==1){options.pulseNormalize/=pulse_(1);}
71return pulse_(x);}
72var userAgent=window.navigator.userAgent;var isIE=/Trident/.test(userAgent);var isEdge=/Edge/.test(userAgent);var isChrome=/chrome/i.test(userAgent)&&!isEdge;var isSafari=/safari/i.test(userAgent)&&!isEdge;var isMobile=/mobile/i.test(userAgent);var isIEWin7=/Windows NT 6.1/i.test(userAgent)&&/rv:11/i.test(userAgent);var isEnabledForBrowser=(isChrome||isIEWin7||isIE||isEdge)&&!isMobile;var wheelEvent;if('onwheel'in document.createElement('div'))
73wheelEvent='wheel';else if('onmousewheel'in document.createElement('div'))
74wheelEvent='mousewheel';if(wheelEvent&&isEnabledForBrowser){addEvent(wheelEvent,wheel);addEvent('mousedown',mousedown);addEvent('load',init);}
75function SmoothScroll(optionsToSet){for(var key in optionsToSet)
76if(defaultOptions.hasOwnProperty(key))
77options[key]=optionsToSet[key];}
78SmoothScroll.destroy=cleanup;if(window.SmoothScrollOptions)
79SmoothScroll(window.SmoothScrollOptions)
80if(typeof define==='function'&&define.amd)
81define(function(){return SmoothScroll;});else if('object'==typeof exports)
82module.exports=SmoothScroll;else
83window.SmoothScroll=SmoothScroll;})();
84(function($){var MK={api:{},ui:{},component:{},};window.MK=MK;'use strict';console.log(23423);(function(root,factory){if(typeof define==="function"&&define.amd){define(factory);}else if(typeof exports==="object"){module.exports=factory();}else{root.ResizeSensor=factory();}}(typeof window!=='undefined'?window:this,function(){if(typeof window==="undefined"){return null;}
85var requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(fn){return window.setTimeout(fn,20);};function forEachElement(elements,callback){var elementsType=Object.prototype.toString.call(elements);var isCollectionTyped=('[object Array]'===elementsType||('[object NodeList]'===elementsType)||('[object HTMLCollection]'===elementsType)||('[object Object]'===elementsType)||('undefined'!==typeof jQuery&&elements instanceof jQuery)||('undefined'!==typeof Elements&&elements instanceof Elements));var i=0,j=elements.length;if(isCollectionTyped){for(;i<j;i++){callback(elements[i]);}}else{callback(elements);}}
86function getElementSize(element){if(!element.getBoundingClientRect){return{width:element.offsetWidth,height:element.offsetHeight}}
87var rect=element.getBoundingClientRect();return{width:Math.round(rect.width),height:Math.round(rect.height)}}
88var ResizeSensor=function(element,callback){function EventQueue(){var q=[];this.add=function(ev){q.push(ev);};var i,j;this.call=function(){for(i=0,j=q.length;i<j;i++){q[i].call();}};this.remove=function(ev){var newQueue=[];for(i=0,j=q.length;i<j;i++){if(q[i]!==ev)newQueue.push(q[i]);}
89q=newQueue;};this.length=function(){return q.length;}}
90function attachResizeEvent(element,resized){if(!element)return;if(element.resizedAttached){element.resizedAttached.add(resized);return;}
91element.resizedAttached=new EventQueue();element.resizedAttached.add(resized);element.resizeSensor=document.createElement('div');element.resizeSensor.dir='ltr';element.resizeSensor.className='resize-sensor';var style='position: absolute; left: -10px; top: -10px; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;';var styleChild='position: absolute; left: 0; top: 0; transition: 0s;';element.resizeSensor.style.cssText=style;element.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="'+style+'">'+'<div style="'+styleChild+'"></div>'+'</div>'+'<div class="resize-sensor-shrink" style="'+style+'">'+'<div style="'+styleChild+' width: 200%; height: 200%"></div>'+'</div>';element.appendChild(element.resizeSensor);var position=window.getComputedStyle(element).getPropertyPriority('position');
91if('absolute'!==position&&'relative'!==position&&'fixed'!==position){element.style.position='relative';}
92var expand=element.resizeSensor.childNodes[0];var expandChild=expand.childNodes[0];var shrink=element.resizeSensor.childNodes[1];var dirty,rafId,newWidth,newHeight;var size=getElementSize(element);var lastWidth=size.width;var lastHeight=size.height;var reset=function(){var invisible=element.offsetWidth===0&&element.offsetHeight===0;if(invisible){var saveDisplay=element.style.display;element.style.display='block';}
93expandChild.style.width='100000px';expandChild.style.height='100000px';expand.scrollLeft=100000;expand.scrollTop=100000;shrink.scrollLeft=100000;shrink.scrollTop=100000;if(invisible){element.style.display=saveDisplay;}};element.resizeSensor.resetSensor=reset;var onResized=function(){rafId=0;if(!dirty)return;lastWidth=newWidth;lastHeight=newHeight;if(element.resizedAttached){element.resizedAttached.call();}};var onScroll=function(){var size=getElementSize(element);var newWidth=size.width;var newHeight=size.height;dirty=newWidth!=lastWidth||newHeight!=lastHeight;if(dirty&&!rafId){rafId=requestAnimationFrame(onResized);}
94reset();};var addEvent=function(el,name,cb){if(el.attachEvent){el.attachEvent('on'+name,cb);}else{el.addEventListener(name,cb);}};addEvent(expand,'scroll',onScroll);addEvent(shrink,'scroll',onScroll);requestAnimationFrame(reset);}
95forEachElement(element,function(elem){attachResizeEvent(elem,callback);});this.detach=function(ev){ResizeSensor.detach(element,ev);};this.reset=function(){element.resizeSensor.resetSensor();};};ResizeSensor.reset=function(element,ev){forEachElement(element,function(elem){elem.resizeSensor.resetSensor();});};ResizeSensor.detach=function(element,ev){forEachElement(element,function(elem){if(!elem)return;if(elem.resizedAttached&&typeof ev==="function"){elem.resizedAttached.remove(ev);if(elem.resizedAttached.length())return;}
96if(elem.resizeSensor){if(elem.contains(elem.resizeSensor)){elem.removeChild(elem.resizeSensor);}
97delete elem.resizeSensor;delete elem.resizedAttached;}});};return ResizeSensor;}));'use strict';(function(root,factory){if(typeof define==="function"&&define.amd){define(['./ResizeSensor.js'],factory);}else if(typeof exports==="object"){module.exports=factory(require('./ResizeSensor.js'));}else{root.ElementQueries=factory(root.ResizeSensor);root.ElementQueries.listen();}}(typeof window!=='undefined'?window:this,function(ResizeSensor){var ElementQueries=function(){var cssStyleElement;var allQueries={};var idToSelectorMapping=[];function getEmSize(element){if(!element){element=document.documentElement;}
98var fontSize=window.getComputedStyle(element,null).fontSize;return parseFloat(fontSize)||16;}
99function getElementSize(element){if(!element.getBoundingClientRect){return{width:element.offsetWidth,height:element.offsetHeight}}
100var rect=element.getBoundingClientRect();return{width:Math.round(rect.width),height:Math.round(rect.height)}}
101function convertToPx(element,value){var numbers=value.split(/\d/);var units=numbers[numbers.length-1];value=parseFloat(value);switch(units){case"px":return value;case"em":return value*getEmSize(element);case"rem":return value*getEmSize();case"vw":return value*document.documentElement.clientWidth/100;case"vh":return value*document.documentElement.clientHeight/100;case"vmin":case"vmax":var vw=document.documentElement.clientWidth/100;var vh=document.documentElement.clientHeight/100;var chooser=Math[units==="vmin"?"min":"max"];return value*chooser(vw,vh);default:return value;}}
102function SetupInformation(element,id){this.element=element;var key,option,elementSize,value,actualValue,attrValues,attrValue,attrName;var attributes=['min-width','min-height','max-width','max-height'];this.call=function(){elementSize=getElementSize(this.element);attrValues={};for(key in allQueries[id]){if(!allQueries[id].hasOwnProperty(key)){continue;}
103option=allQueries[id][key];value=convertToPx(this.element,option.value);actualValue=option.property==='width'?elementSize.width:elementSize.height;attrName=option.mode+'-'+option.property;attrValue='';if(option.mode==='min'&&actualValue>=value){attrValue+=option.value;}
104if(option.mode==='max'&&actualValue<=value){attrValue+=option.value;}
105if(!attrValues[attrName])attrValues[attrName]='';if(attrValue&&-1===(' '+attrValues[attrName]+' ').indexOf(' '+attrValue+' ')){attrValues[attrName]+=' '+attrValue;}}
106for(var k in attributes){if(!attributes.hasOwnProperty(k))continue;if(attrValues[attributes[k]]){this.element.setAttribute(attributes[k],attrValues[attributes[k]].substr(1));}else{this.element.removeAttribute(attributes[k]);}}};}
107function setupElement(element,id){if(!element.elementQueriesSetupInformation){element.elementQueriesSetupInformation=new SetupInformation(element,id);}
108if(!element.elementQueriesSensor){element.elementQueriesSensor=new ResizeSensor(element,function(){element.elementQueriesSetupInformation.call();});}
109element.elementQueriesSetupInformation.call();}
110function queueQuery(selector,mode,property,value){if(typeof(allQueries[selector])==='undefined'){allQueries[selector]=[];var id=idToSelectorMapping.length;cssStyleElement.innerHTML+='\n'+selector+' {animation: 0.1s element-queries;}';cssStyleElement.innerHTML+='\n'+selector+' > .resize-sensor {min-width: '+id+'px;}';idToSelectorMapping.push(selector);}
111allQueries[selector].push({mode:mode,property:property,value:value});}
112function getQuery(container){var query;if(document.querySelectorAll)query=(container)?container.querySelectorAll.bind(container):document.querySelectorAll.bind(document);if(!query&&'undefined'!==typeof $$)query=$$;if(!query&&'undefined'!==typeof jQuery)query=jQuery;if(!query){throw'No document.querySelectorAll, jQuery or Mootools\'s $$ found.';}
113return query;}
114function findElementQueriesElements(container){var query=getQuery(container);for(var selector in allQueries)if(allQueries.hasOwnProperty(mode)){var elements=query(selector,container);for(var i=0,j=elements.length;i<j;i++){setupElement(elements[i],selector);}}}
115function attachResponsiveImage(element){var children=[];var rules=[];var sources=[];var defaultImageId=0;var lastActiveImage=-1;var loadedImages=[];for(var i in element.children){if(!element.children.hasOwnProperty(i))continue;if(element.children[i].tagName&&element.children[i].tagName.toLowerCase()==='img'){children.push(element.children[i]);var minWidth=element.children[i].getAttribute('min-width')||element.children[i].getAttribute('data-min-width');var src=element.children[i].getAttribute('data-src')||element.children[i].getAttribute('url');sources.push(src);var rule={minWidth:minWidth};rules.push(rule);if(!minWidth){defaultImageId=children.length-1;element.children[i].style.display='block';}else{element.children[i].style.display='none';}}}
116lastActiveImage=defaultImageId;function check(){var imageToDisplay=false,i;for(i in children){if(!children.hasOwnProperty(i))continue;if(rules[i].minWidth){if(element.offsetWidth>rules[i].minWidth){imageToDisplay=i;}}}
117if(!imageToDisplay){imageToDisplay=defaultImageId;}
118if(lastActiveImage!==imageToDisplay){if(!loadedImages[imageToDisplay]){var image=new Image();image.onload=function(){children[imageToDisplay].src=sources[imageToDisplay];children[lastActiveImage].style.display='none';children[imageToDisplay].style.display='block';loadedImages[imageToDisplay]=true;lastActiveImage=imageToDisplay;};image.src=sources[imageToDisplay];}else{children[lastActiveImage].style.display='none';children[imageToDisplay].style.display='block';lastActiveImage=imageToDisplay;}}else{children[imageToDisplay].src=sources[imageToDisplay];}}
119element.resizeSensor=new ResizeSensor(element,check);check();}
120function findResponsiveImages(){var query=getQuery();var elements=query('[data-responsive-image],[responsive-image]');for(var i=0,j=elements.length;i<j;i++){attachResponsiveImage(elements[i]);}}
121var regex=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/mgi;var attrRegex=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/mgi;function extractQuery(css){var match,smatch,attrs,attrMatch;css=css.replace(/'/g,'"');while(null!==(match=regex.exec(css))){smatch=match[1]+match[3];attrs=match[2];while(null!==(attrMatch=attrRegex.exec(attrs))){queueQuery(smatch,attrMatch[1],attrMatch[2],attrMatch[3]);}}}
122function readRules(rules){var selector='';if(!rules){return;}
123if('string'===typeof rules){rules=rules.toLowerCase();if(-1!==rules.indexOf('min-width')||-1!==rules.indexOf('max-width')){extractQuery(rules);}}else{for(var i=0,j=rules.length;i<j;i++){if(1===rules[i].type){selector=rules[i].selectorText||rules[i].cssText;if(-1!==selector.indexOf('min-height')||-1!==selector.indexOf('max-height')){extractQuery(selector);}else if(-1!==selector.indexOf('min-width')||-1!==selector.indexOf('max-width')){extractQuery(selector);}}else if(4===rules[i].type){readRules(rules[i].cssRules||rules[i].rules);}else if(3===rules[i].type){readRules(rules[i].styleSheet.cssRules);}}}}
124var defaultCssInjected=false;this.init=function(){var animationStart='animationstart';if(typeof document.documentElement.style['webkitAnimationName']!=='undefined'){animationStart='webkitAnimationStart';}else if(typeof document.documentElement.style['MozAnimationName']!=='undefined'){animationStart='mozanimationstart';}else if(typeof document.documentElement.style['OAnimationName']!=='undefined'){animationStart='oanimationstart';}
125document.body.addEventListener(animationStart,function(e){var element=e.target;var styles=window.getComputedStyle(element,null);if(-1!==styles.getPropertyValue('animation-name').indexOf('element-queries')){element.elementQueriesSensor=new ResizeSensor(element,function(){if(element.elementQueriesSetupInformation){element.elementQueriesSetupInformation.call();}});var sensorStyles=window.getComputedStyle(element.resizeSensor,null);var id=sensorStyles.getPropertyValue('min-width');id=parseInt(id.replace('px',''));setupElement(e.target,idToSelectorMapping[id]);}});if(!defaultCssInjected){cssStyleElement=document.createElement('style');cssStyleElement.type='text/css';cssStyleElement.innerHTML='[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}';cssStyleElement.innerHTML+='\n@keyframes element-queries { 0% { visibility: inherit; } }';document.getElementsByTagName('head')[0].appendChild(cssStyleElement);defaultCssInjected=true;}
126for(var i=0,j=document.styleSheets.length;i<j;i++){try{if(document.styleSheets[i].href&&0===document.styleSheets[i].href.indexOf('file://')){console.log("CssElementQueries: unable to parse local css files, "+document.styleSheets[i].href);}
127readRules(document.styleSheets[i].cssRules||document.styleSheets[i].rules||document.styleSheets[i].cssText);}catch(e){}}
128findResponsiveImages();};this.findElementQueriesElements=function(container){findElementQueriesElements(container);};this.update=function(){this.init();};};ElementQueries.update=function(){ElementQueries.instance.update(
128);};ElementQueries.detach=function(element){if(element.elementQueriesSetupInformation){element.elementQueriesSensor.detach();delete element.elementQueriesSetupInformation;delete element.elementQueriesSensor;}else if(element.resizeSensor){element.resizeSensor.detach();delete element.resizeSensor;}};ElementQueries.init=function(){if(!ElementQueries.instance){ElementQueries.instance=new ElementQueries();}
129ElementQueries.instance.init();};var domLoaded=function(callback){if(document.addEventListener){document.addEventListener('DOMContentLoaded',callback,false);}
130else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent)){var DOMLoadTimer=setInterval(function(){if(/loaded|complete/i.test(document.readyState)){callback();clearInterval(DOMLoadTimer);}},10);}
131else window.onload=callback;};ElementQueries.findElementQueriesElements=function(container){ElementQueries.instance.findElementQueriesElements(container);};ElementQueries.listen=function(){domLoaded(ElementQueries.init);};return ElementQueries;}));(function($){'use strict';$.exists=function(selector){return($(selector).length>0);};$.getCachedScript=function(url){var options={dataType:"script",cache:true,url:url};return $.ajax(options);};$.fn.mk_imagesLoaded=function(){var $imgs=this.find('img[src!=""]');if(!$imgs.length){return $.Deferred().resolve().promise();}
132var dfds=[];$imgs.each(function(){var dfd=$.Deferred();dfds.push(dfd);var img=new Image();img.onload=function(){dfd.resolve();};img.onerror=function(){dfd.resolve();};img.src=this.src;});return $.when.apply($,dfds);};}(jQuery));(function(){var attachEvent=document.attachEvent,stylesCreated=false;if(!attachEvent){var requestFrame=(function(){var raf=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(fn){return window.setTimeout(fn,20);};return function(fn){return raf(fn);};})();var cancelFrame=(function(){var cancel=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.clearTimeout;return function(id){return cancel(id);};})();function resetTriggers(element){var triggers=element.__resizeTriggers__,expand=triggers.firstElementChild,contract=triggers.lastElementChild,expandChild=expand.firstElementChild;contract.scrollLeft=contract.scrollWidth;contract.scrollTop=contract.scrollHeight;expandChild.style.width=expand.offsetWidth+1+'px';expandChild.style.height=expand.offsetHeight+1+'px';expand.scrollLeft=expand.scrollWidth;expand.scrollTop=expand.scrollHeight;};function checkTriggers(element){return element.offsetWidth!=element.__resizeLast__.width||element.offsetHeight!=element.__resizeLast__.height;}
133function scrollListener(e){var element=this;resetTriggers(this);if(this.__resizeRAF__)cancelFrame(this.__resizeRAF__);this.__resizeRAF__=requestFrame(function(){if(checkTriggers(element)){element.__resizeLast__.width=element.offsetWidth;element.__resizeLast__.height=element.offsetHeight;element.__resizeListeners__.forEach(function(fn){fn.call(element,e);});}});};var animation=false,animationstring='animation',keyframeprefix='',animationstartevent='animationstart',domPrefixes='Webkit Moz O ms'.split(' '),startEvents='webkitAnimationStart animationstart oAnimationStart MSAnimationStart'.split(' '),pfx='';{var elm=document.createElement('fakeelement');if(elm.style.animationName!==undefined){animation=true;}
134if(animation===false){for(var i=0;i<domPrefixes.length;i++){if(elm.style[domPrefixes[i]+'AnimationName']!==undefined){pfx=domPrefixes[i];animationstring=pfx+'Animation';keyframeprefix='-'+pfx.toLowerCase()+'-';animationstartevent=startEvents[i];animation=true;break;}}}}
135var animationName='resizeanim';var animationKeyframes='@'+keyframeprefix+'keyframes '+animationName+' { from { opacity: 0; } to { opacity: 0; } } ';var animationStyle=keyframeprefix+'animation: 1ms '+animationName+'; ';}
136function createStyles(){if(!stylesCreated){var css=(animationKeyframes?animationKeyframes:'')+'.resize-triggers { '+(animationStyle?animationStyle:'')+'visibility: hidden; opacity: 0; } '+'.resize-triggers, .resize-triggers > div, .contract-trigger:before { content: \" \"; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',head=document.head||document.getElementsByTagName('head')[0],style=document.createElement('style');style.type='text/css';if(style.styleSheet){style.styleSheet.cssText=css;}else{style.appendChild(document.createTextNode(css));}
137head.appendChild(style);stylesCreated=true;}}
138window.addResizeListener=function(element,fn){if(attachEvent)element.attachEvent('onresize',fn);else{if(!element.__resizeTriggers__){if(getComputedStyle(element).position=='static')element.style.position='relative';createStyles();element.__resizeLast__={};element.__resizeListeners__=[];(element.__resizeTriggers__=document.createElement('div')).className='resize-triggers';element.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div>'+'<div class="contract-trigger"></div>';element.appendChild(element.__resizeTriggers__);resetTriggers(element);element.addEventListener('scroll',scrollListener,true);animationstartevent&&element.__resizeTriggers__.addEventListener(animationstartevent,function(e){if(e.animationName==animationName)
139resetTriggers(element);});}
140element.__resizeListeners__.push(fn);}}
vendor: 4,286 bytes, lines 140-164
140;window.removeResizeListener=function(element,fn){if(attachEvent)element.detachEvent('onresize',fn);else{element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn),1);if(!element.__resizeListeners__.length){element.removeEventListener('scroll',scrollListener);element.__resizeTriggers__=!element.removeChild(element.__resizeTriggers__);}}}})();;(function(window,document){var version='3.7.3';var options=window.html5||{};var reSkip=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i;var saveClones=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i;var supportsHtml5Styles;var expando='_html5shiv';var expanID=0;var expandoData={};var supportsUnknownElements;(function(){try{var a=document.createElement('a');a.innerHTML='<xyz></xyz>';supportsHtml5Styles=('hidden'in a);supportsUnknownElements=a.childNodes.length==1||(function(){(document.createElement)('a');var frag=document.createDocumentFragment();return(typeof frag.cloneNode=='undefined'||typeof frag.createDocumentFragment=='undefined'||typeof frag.createElement=='undefined');}());}catch(e){supportsHtml5Styles=true;supportsUnknownElements=true;}}());function addStyleSheet(ownerDocument,cssText){var p=ownerDocument.createElement('p'),parent=ownerDocument.getElementsByTagName('head')[0]||ownerDocument.documentElement;p.innerHTML='x<style>'+cssText+'</style>';return parent.insertBefore(p.lastChild,parent.firstChild);}
141function getElements(){var elements=html5.elements;return typeof elements=='string'?elements.split(' '):elements;}
142function addElements(newElements,ownerDocument){var elements=html5.elements;if(typeof elements!='string'){elements=elements.join(' ');}
143if(typeof newElements!='string'){newElements=newElements.join(' ');}
144html5.elements=elements+' '+newElements;shivDocument(ownerDocument);}
145function getExpandoData(ownerDocument){var data=expandoData[ownerDocument[expando]];if(!data){data={};expanID++;ownerDocument[expando]=expanID;expandoData[expanID]=data;}
146return data;}
147function createElement(nodeName,ownerDocument,data){if(!ownerDocument){ownerDocument=document;}
148if(supportsUnknownElements){return ownerDocument.createElement(nodeName);}
149if(!data){data=getExpandoData(ownerDocument);}
150var node;if(data.cache[nodeName]){node=data.cache[nodeName].cloneNode();}else if(saveClones.test(nodeName)){node=(data.cache[nodeName]=data.createElem(nodeName)).cloneNode();}else{node=data.createElem(nodeName);}
151return node.canHaveChildren&&!reSkip.test(nodeName)&&!node.tagUrn?data.frag.appendChild(node):node;}
152function createDocumentFragment(ownerDocument,data){if(!ownerDocument){ownerDocument=document;}
153if(supportsUnknownElements){return ownerDocument.createDocumentFragment();}
154data=data||getExpandoData(ownerDocument);var clone=data.frag.cloneNode(),i=0,elems=getElements(),l=elems.length;for(;i<l;i++){clone.createElement(elems[i]);}
155return clone;}
156function shivMethods(ownerDocument,data){if(!data.cache){data.cache={};data.createElem=ownerDocument.createElement;data.createFrag=ownerDocument.createDocumentFragment;data.frag=data.createFrag();}
157ownerDocument.createElement=function(nodeName){if(!html5.shivMethods){return data.createElem(nodeName);}
158return createElement(nodeName,ownerDocument,data);};ownerDocument.createDocumentFragment=Function('h,f','return function(){'+'var n=f.cloneNode(),c=n.createElement;'+'h.shivMethods&&('+
159getElements().join().replace(/[\w\-:]+/g,function(nodeName){data.createElem(nodeName);data.frag.createElement(nodeName);return'c("'+nodeName+'")';})+');return n}')(html5,data.frag);}
160function shivDocument(ownerDocument){if(!ownerDocument){ownerDocument=document;}
161var data=getExpandoData(ownerDocument);if(html5.shivCSS&&!supportsHtml5Styles&&!data.hasCSS){data.hasCSS=!!addStyleSheet(ownerDocument,'article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}'+'mark{background:#FF0;color:#000}'+'template{display:none}');}
162if(!supportsUnknownElements){shivMethods(ownerDocument,data);}
163return ownerDocument;}
164var html5={'elements':options.elements||'abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video','ver
164sion':version,'shivCSS':(options.shivCSS!==false),'supportsUnknownElements':supportsUnknownElements,'shivMethods':(options.shivMethods!==false),'type':'default','shivDocument':shivDocument,createElement:createElement,createDocumentFragment:createDocumentFragment,addElements:addElements};window.html5=html5;shivDocument(document);if(typeof module=='object'&&module.exports){module.exports=html5;}}(typeof window!=="undefined"?window:this,document));
165/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. Dual MIT/BSD license */
166window.matchMedia||(window.matchMedia=function(){"use strict";var styleMedia=(window.styleMedia||window.media);if(!styleMedia){var style=document.createElement('style'),script=document.getElementsByTagName('script')[0],info=null;style.type='text/css';style.id='matchmediajs-test';script.parentNode.insertBefore(style,script);info=('getComputedStyle'in window)&&window.getComputedStyle(style,null)||style.currentStyle;styleMedia={matchMedium:function(media){var text='@media '+media+'{ #matchmediajs-test { width: 1px; } }';if(style.styleSheet){style.styleSheet.cssText=text;}else{style.textContent=text;}
167return info.width==='1px';}};}
168return function(media){return{matches:styleMedia.matchMedium(media||'all'),media:media||'all'};};}());
169/*!
170 * The MIT License
171 *
172 * Copyright (c) 2012 James Allardice
173 *
174 * Permission is hereby granted, free of charge, to any person obtaining a copy
175 * of this software and associated documentation files (the "Software"), to
176 * deal in the Software without restriction, including without limitation the
177 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
178 * sell copies of the Software, and to permit persons to whom the Software is
179 * furnished to do so, subject to the following conditions:
180 *
181 * The above copyright notice and this permission notice shall be included in
182 * all copies or substantial portions of the Software.
183 *
184 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
185 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
186 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
187 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
188 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
189 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
190 * IN THE SOFTWARE.
191 */
192(function(global){'use strict';var test=document.createElement('input');var nativeSupport=test.placeholder!==void 0;global.Placeholders={nativeSupport:nativeSupport,disable:nativeSupport?noop:disablePlaceholders,enable:nativeSupport?noop:enablePlaceholders};if(nativeSupport){return;}
193var validTypes=['text','search','url','tel','email','password','number','textarea'];var badKeys=[27,33,34,35,36,37,38,39,40,8,46];var placeholderStyleColor='#ccc';var placeholderClassName='placeholdersjs';var classNameRegExp=new RegExp('(?:^|\\s)'+placeholderClassName+'(?!\\S)');var ATTR_CURRENT_VAL='data-placeholder-value';var ATTR_ACTIVE='data-placeholder-active';var ATTR_INPUT_TYPE='data-placeholder-type';var ATTR_FORM_HANDLED='data-placeholder-submit';var ATTR_EVENTS_BOUND='data-placeholder-bound';var ATTR_OPTION_FOCUS='data-placeholder-focus';var ATTR_OPTION_LIVE='data-placeholder-live';var ATTR_MAXLENGTH='data-placeholder-maxlength';var UPDATE_INTERVAL=100;var head=document.getElementsByTagName('head')[0];var root=document.documentElement;var Placeholders=global.Placeholders;var keydownVal;var inputs=document.getElementsByTagName('input');var textareas=document.getElementsByTagName('textarea');var hideOnInput=root.getAttribute(ATTR_OPTION_FOCUS)==='false';var liveUpdates=root.getAttribute(ATTR_OPTION_LIVE)!=='false';var styleElem=document.createElement('style');styleElem.type='text/css';var styleRules=document.createTextNode('.'+placeholderClassName+' {'+'color:'+placeholderStyleColor+';'+'}');if(styleElem.styleSheet){styleElem.styleSheet.cssText=styleRules.nodeValue;}else{styleElem.appendChild(styleRules);}
194head.insertBefore(styleElem,head.firstChild);var placeholder;var elem;for(var i=0,len=inputs.length+textareas.length;i<len;i++){elem=i<inputs.length?inputs[i]:textareas[i-inputs.length];placeholder=elem.attributes.placeholder;if(placeholder){placeholder=placeholder.nodeValue;if(placeholder&&inArray(validTypes,elem.type)){newElement(elem);}}}
195var timer=setInterval(function(){for(var i=0,len=inputs.length+textareas.length;i<len;i++){elem=i<inputs.length?inputs[i]:textareas[i-inputs.length];placeholder=elem.attributes.placeholder;if(placeholder){placeholder=placeholder.nodeValue;if(placeholder&&inArray(validTypes,elem.type)){if(!elem.getAttribute(ATTR_EVENTS_BOUND)){newElement(elem);}
196if(placeholder!==elem.getAttribute(ATTR_CURRENT_VAL)||(elem.type==='password'&&!elem.getAttribute(ATTR_INPUT_TYPE))){if(elem.type==='password'&&!elem.getAttribute(ATTR_INPUT_TYPE)&&changeType(elem,'text')){elem.setAttribute(ATTR_INPUT_TYPE,'password');}
197if(elem.value===elem.getAttribute(ATTR_CURRENT_VAL)){elem.value=placeholder;}
198elem.setAttribute(ATTR_CURRENT_VAL,placeholder);}}}else if(elem.getAttribute(ATTR_ACTIVE)){hidePlaceholder(elem);elem.removeAttribute(ATTR_CURRENT_VAL);}}
199if(!liveUpdates){clearInterval(timer);}},UPDATE_INTERVAL);addEventListener(global,'beforeunload',function(){Placeholders.disable();});function noop(){}
200function safeActiveElement(){try{return document.activeElement;}catch(err){}}
201function inArray(arr,item){for(var i=0,len=arr.length;i<len;i++){if(arr[i]===item){return true;}}
202return false;}
203function addEventListener(elem,event,fn){if(elem.addEventListener){return elem.addEventListener(event,fn,false);}
204if(elem.attachEvent){return elem.attachEvent('on'+event,fn);}}
205function moveCaret(elem,index){var range;if(elem.createTextRange){range=elem.createTextRange();range.move('character',index);range.select();}else if(elem.selectionStart){elem.focus();elem.setSelectionRange(index,index);}}
206function changeType(elem,type){try{elem.type=type;return true;}catch(e){return false;}}
207function handleElem(node,callback){if(node&&node.getAttribute(ATTR_CURRENT_VAL)){callback(node);}else{var handleInputs=node?node.getElementsByTagName('input'):inputs;var handleTextareas=node?node.getElementsByTagName('textarea'):textareas;var handleInputsLength=handleInputs?handleInputs.length:0;
207var handleTextareasLength=handleTextareas?handleTextareas.length:0;var len=handleInputsLength+handleTextareasLength;var elem;for(var i=0;i<len;i++){elem=i<handleInputsLength?handleInputs[i]:handleTextareas[i-handleInputsLength];callback(elem);}}}
208function disablePlaceholders(node){handleElem(node,hidePlaceholder);}
209function enablePlaceholders(node){handleElem(node,showPlaceholder);}
210function hidePlaceholder(elem,keydownValue){var valueChanged=!!keydownValue&&elem.value!==keydownValue;var isPlaceholderValue=elem.value===elem.getAttribute(ATTR_CURRENT_VAL);if((valueChanged||isPlaceholderValue)&&elem.getAttribute(ATTR_ACTIVE)==='true'){elem.removeAttribute(ATTR_ACTIVE);elem.value=elem.value.replace(elem.getAttribute(ATTR_CURRENT_VAL),'');elem.className=elem.className.replace(classNameRegExp,'');var maxLength=elem.getAttribute(ATTR_MAXLENGTH);if(parseInt(maxLength,10)>=0){elem.setAttribute('maxLength',maxLength);elem.removeAttribute(ATTR_MAXLENGTH);}
211var type=elem.getAttribute(ATTR_INPUT_TYPE);if(type){elem.type=type;}
212return true;}
213return false;}
214function showPlaceholder(elem){var val=elem.getAttribute(ATTR_CURRENT_VAL);if(elem.value===''&&val){elem.setAttribute(ATTR_ACTIVE,'true');elem.value=val;elem.className+=' '+placeholderClassName;var maxLength=elem.getAttribute(ATTR_MAXLENGTH);if(!maxLength){elem.setAttribute(ATTR_MAXLENGTH,elem.maxLength);elem.removeAttribute('maxLength');}
215var type=elem.getAttribute(ATTR_INPUT_TYPE);if(type){elem.type='text';}else if(elem.type==='password'&&changeType(elem,'text')){elem.setAttribute(ATTR_INPUT_TYPE,'password');}
216return true;}
217return false;}
218function makeFocusHandler(elem){return function(){if(hideOnInput&&elem.value===elem.getAttribute(ATTR_CURRENT_VAL)&&elem.getAttribute(ATTR_ACTIVE)==='true'){moveCaret(elem,0);}else{hidePlaceholder(elem);}};}
219function makeBlurHandler(elem){return function(){showPlaceholder(elem);};}
220function makeSubmitHandler(form){return function(){disablePlaceholders(form);};}
221function makeKeydownHandler(elem){return function(e){keydownVal=elem.value;if(elem.getAttribute(ATTR_ACTIVE)==='true'&&keydownVal===elem.getAttribute(ATTR_CURRENT_VAL)&&inArray(badKeys,e.keyCode)){if(e.preventDefault){e.preventDefault();}
222return false;}};}
223function makeKeyupHandler(elem){return function(){hidePlaceholder(elem,keydownVal);if(elem.value===''){elem.blur();moveCaret(elem,0);}};}
224function makeClickHandler(elem){return function(){if(elem===safeActiveElement()&&elem.value===elem.getAttribute(ATTR_CURRENT_VAL)&&elem.getAttribute(ATTR_ACTIVE)==='true'){moveCaret(elem,0);}};}
225function newElement(elem){var form=elem.form;if(form&&typeof form==='string'){form=document.getElementById(form);if(!form.getAttribute(ATTR_FORM_HANDLED)){addEventListener(form,'submit',makeSubmitHandler(form));form.setAttribute(ATTR_FORM_HANDLED,'true');}}
226addEventListener(elem,'focus',makeFocusHandler(elem));addEventListener(elem,'blur',makeBlurHandler(elem));if(hideOnInput){addEventListener(elem,'keydown',makeKeydownHandler(elem));addEventListener(elem,'keyup',makeKeyupHandler(elem));addEventListener(elem,'click',makeClickHandler(elem));}
227elem.setAttribute(ATTR_EVENTS_BOUND,'true');elem.setAttribute(ATTR_CURRENT_VAL,placeholder);if(hideOnInput||elem!==safeActiveElement()){showPlaceholder(elem);}}}(this));(function rAFPolyfill(){var lastTime,vendors,x;lastTime=0;vendors=["webkit","moz"];x=0;while(x<vendors.length&&!window.requestAnimationFrame){window.requestAnimationFrame=window[vendors[x]+"RequestAnimationFrame"];window.cancelAnimationFrame=window[vendors[x]+"CancelAnimationFrame"]||window[vendors[x]+"CancelRequestAnimationFrame"];++x;}
228if(!window.requestAnimationFrame){window.requestAnimationFrame=function(callback,element){var currTime,id,timeToCall;currTime=new Date().getTime();timeToCall=Math.max(0,16-(currTime-lastTime));id=window.setTimeout(function(){callback(currTime+timeToCall);},timeToCall);lastTime=currTime+timeToCall;return id;};}
229if(!window.cancelAnimationFrame){window.cancelAnimationFrame=function(id){clearTimeout(id);};}})();(function($){'use strict';var MK=window.MK||{};MK.core={};var _loadedDependencies=[];var _inQueue={};MK.core.initAll=function(scope){var $el=$(scope).find('.js-el'),$components=$el.filter('[data-mk-component]'),component=null;var init=function init(name,el){var $el=$(el);if($el.data('init-'+name))return;if(typeof MK.component[name]!=='function')console.log('Component init error: ',name);else{component=new MK.component[name](el);component.init();$el.data('init-'+name,true);MK.utils.eventManager.publish('component-inited');}};$components.each(function(){var self=this,$this=$(this),names=$this.data('mk-component');if(typeof names==='string'){var name=names;init(name,self);}
229else{names.forEach(function(name){init(name,self);});}});};MK.core.loadDependencies=function(dependencies,callback){var _callback=callback||function(){};if(!dependencies){_callback();return;}
230var newDeps=dependencies.map(function(dep){if(_loadedDependencies.indexOf(dep)===-1){if(typeof _inQueue[dep]==='undefined'){return dep;}else{_inQueue[dep].push(_callback);return true;}}else{return false;}});if(newDeps[0]===true){return;}
231if(newDeps[0]===false){_callback();return;}
232var queue=newDeps.map(function(script){_inQueue[script]=[_callback];return $.getCachedScript(script);});var onLoad=function onLoad(){var index;newDeps.map(function(loaded){_inQueue[loaded].forEach(function(callback){callback();});delete _inQueue[loaded];_loadedDependencies.push(loaded);});};$.when.apply(null,queue).done(onLoad);};MK.core.path={theme:mk_theme_dir,plugins:mk_theme_js_path+'/plugins/async/min/',ajaxUrl:window.PHP.ajax};})(jQuery);(function($){'use strict';var MK=window.MK||{};MK.utils=window.MK.utils||{};MK.utils.actions={};MK.utils.actions.activate=function(el){$(el).addClass('is-active');};MK.utils.actions.deactivate=function(el){$(el).removeClass('is-active');};}(jQuery));(function($){'use strict';var MK=window.MK||{};MK.utils=window.MK.utils||{};MK.utils.browser=(function(){var dataBrowser=[{string:navigator.userAgent,subString:"Edge",identity:"Edge"},{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"MSIE",identity:"IE"},{string:navigator.userAgent,subString:"Trident",identity:"IE"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.userAgent,subString:"Safari",identity:"Safari"},{string:navigator.userAgent,subString:"Opera",identity:"Opera"}];var versionSearchString=null;var searchString=function(data){for(var i=0;i<data.length;i++){var dataString=data[i].string;versionSearchString=data[i].subString;if(dataString.indexOf(data[i].subString)!==-1){return data[i].identity;}}};var searchVersion=function(dataString){var index=dataString.indexOf(versionSearchString);if(index===-1){return;}
233var rv=dataString.indexOf("rv:");if(versionSearchString==="Trident"&&rv!==-1){return parseFloat(dataString.substring(rv+3));}else{return parseFloat(dataString.substring(index+versionSearchString.length+1));}};var name=searchString(dataBrowser)||"Other";var version=searchVersion(navigator.userAgent)||searchVersion(navigator.appVersion)||"Unknown";$('html').addClass(name).addClass(name+version);return{name:name,version:version};})();MK.utils.OS=(function(){if(navigator.appVersion.indexOf("Win")!=-1)return"Windows";if(navigator.appVersion.indexOf("Mac")!=-1)return"OSX";if(navigator.appVersion.indexOf("X11")!=-1)return"UNIX";if(navigator.appVersion.indexOf("Linux")!=-1)return"Linux";})();MK.utils.isMobile=function(){function android(){return navigator.userAgent.match(/Android/i);}
234function blackBerry(){return navigator.userAgent.match(/BlackBerry/i);}
235function iOS(){return navigator.userAgent.match(/iPhone|iPad|iPod/i);}
236function opera(){return navigator.userAgent.match(/Opera Mini/i);}
237function windows(){return navigator.userAgent.match(/IEMobile/i);}
238return(android()||blackBerry()||iOS()||opera()||windows()||matchMedia('(max-width: 1024px)').matches);};MK.utils.isResponsiveMenuState=function(){return window.matchMedia('(max-width: '+mk_responsive_nav_width+'px)').matches;};MK.utils.getUrlParameter=function getUrlParameter(sParam){var sPageURL=decodeURIComponent(window.location.search.substring(1)),sURLVariables=sPageURL.split('&'),sParameterName,i;for(i=0;i<sURLVariables.length;i++){sParameterName=sURLVariables[i].split('=');if(sParameterName[0]===sParam){return sParameterName[1]===undefined?true:sParameterName[1];}}};MK.utils.isSmoothScroll=(function(){var isUserChoice=(mk_smooth_scroll==='true');return isUserChoice;}());MK.utils.showBackgroundVideo=(function(){var isUserChoice=(mk_show_background_video==='true');return isUserChoice;}());}(jQuery));(function($){'use strict';var MK=window.MK||{};MK.utils=window.MK.utils||{};MK.utils.eventManager={};MK.utils.eventManager.subscribe=function(evt,func){$(this).on(evt,func);};MK.utils.eventManager.unsubscribe=function(evt,func){$(this).off(evt,func);};MK.utils.eventManager.publish=function(evt,params){$(this).trigger(evt,[params]);};}(jQuery));(function($){'use strict';var MK=window.MK||{};MK.utils=window.MK.utils||{};MK.utils.fullscreen={};MK.utils.launchIntoFullscreen=function(element){if(element.requestFullscreen){element.requestFullscreen();}else if(element.mozRequestFullScreen){element.mozRequestFullScreen();}else if(element.webkitRequestFullscreen){element.webkitRequestFullscreen();}else if(element.msRequestFullscreen){element.msRequestFullscreen();}};MK.utils.exitFullscreen=function(){if(document.exitFullscreen){document.exitFullscreen();}else if(document.mozCancelFullScreen){document.mozCancelFullScreen();}else if(document.webkitExitFullscreen){document.webkitExitFullscreen();}};}(jQuery));(function($){'use strict';var MK=window.MK||{};MK.utils=window.MK.utils||{};MK.utils.misc={};MK.utils.offsets=function($els){return $.map($els,function(el){return $(el).offset().top;});};MK.utils.nextHigherVal=function(val,arr){var i=0,higher=null;var check=function(){if(val>arr[i]){i+=1;check();}else{higher=arr[i];}};check();return higher;};MK.utils.throttle=function(delay,fn){var last;var deferTimer;return function(){var context=this;var args=arguments;var now=+new Date;if(last&&now<last+delay){clearTimeout(deferTimer);deferTimer=setTimeout(function(){last=now;fn.apply(context,args);},delay);}else{last=now;fn.apply(context,args);}};};MK.utils.isElementInViewport=function(el){var elemTop=el.getBoundingClientRect().top;var isVisible=(elemTop<window.innerHeight);return isVisible;};})(jQuery);(function($){'use strict';var MK=window.MK||{};MK.utils=window.MK.utils||{};MK.utils.scrollTo=function(offset){$('html, body').stop().animate({scrollTop:offset},{duration:1200,easing:"easeInOutExpo"});};MK.utils.scrollToAnchor=function(hash){hash=hash.substring(1).replace(/[!"#$%&'()*+,./:;<=>?@[\]^`{|}~]/g,"\\$&");hash="#"+hash;var $target=$(hash);if(!$target.length)return;var offset=$target.offset().top;offset=offset-MK.val.offsetHeaderHeight(offset);if(hash==='#top-of-page')window.history.replaceState(undefined,undefined,' ');else window.history.replaceState(undefined,undefined,hash);MK.utils.scrollTo(offset);};MK.utils.scroll=(function(){var keys=[38,40];function preventDefault(e){e=e||window.event;e.preventDefault();e.returnValue=false;}
239function wheel(e){preventDefault(e);}
240function keydown(e){for(var i=keys.length;i--;){if(e.keyCode===keys[i]){preventDefault(e);return;}}}
241function disableScroll(){if(window.addEventListener){window.addEventListener('DOMMouseScroll',wheel,fal
241se);}
242window.onmousewheel=document.onmousewheel=wheel;document.onkeydown=keydown;}
243function enableScroll(){if(window.removeEventListener){window.removeEventListener('DOMMouseScroll',wheel,false);}
244window.onmousewheel=document.onmousewheel=document.onkeydown=null;}
245return{disable:disableScroll,enable:enableScroll};})();MK.utils.detectAnchor=function(el){var $this=$(el),loc=window.location,currentPage=loc.origin+loc.pathname,href=$this.attr('href'),linkSplit=(href)?href.split('#'):'',hrefPage=linkSplit[0]?linkSplit[0]:'',hrefHash=linkSplit[1]?linkSplit[1]:'';if(typeof hrefHash!=='undefined'&&hrefHash!==''){return'#'+hrefHash;}else{return false;}};MK.utils.scrollToURLHash=function(){var loc=window.location,hash=loc.hash;if(hash.length&&hash.substring(1).length){hash=hash.replace('!loading','');setTimeout(function(){MK.utils.scrollToAnchor(hash);},1000);setTimeout(function(){window.history.replaceState(undefined,undefined,hash);},1001);}};MK.utils.scrollSpy=function(toSpy,config){var $window=$(window),container=document.getElementById('mk-theme-container'),isObj=(typeof toSpy==='object'),offset=(isObj)?MK.val.dynamicOffset(toSpy,config.position,config.threshold):function(){return toSpy;},height=(isObj)?MK.val.dynamicHeight(toSpy):function(){return 0;},cacheVals={},_p='before';var checkPosition=function(){var s=MK.val.scroll(),o=offset(),h=height();if(s<o&&_p!=='before'){if(config.before)config.before();_p='before';}
246else if(s>=o&&s<=o+h&&_p!=='active'){if(config.active)config.active(o);_p='active';}
247else if(s>o+h&&_p!=='after'){if(config.after)config.after(o+h);_p='after';}};var rAF=function(){window.requestAnimationFrame(checkPosition);};var exportVals=function(){return cacheVals;};var updateCache=function(){var o=offset(),h=height();cacheVals={before:o-$window.height(),active:o,after:o+h};};if(config.cache){config.cache(exportVals);}
248checkPosition();$window.on('load',checkPosition);$window.on('resize',checkPosition);$window.on('mouseup',checkPosition);window.addResizeListener(container,checkPosition);$window.on('scroll',rAF);updateCache();$window.on('load',updateCache);$window.on('resize',updateCache);window.addResizeListener(container,updateCache);};}(jQuery));(function($){'use strict';$("body").on("click touchend",'.js-taphover',function(e){var $link=$(e.currentTarget);var $target=$(e.target);if($link.hasClass('hover')){return true;}else if(MK.utils.isMobile()){if(($target.hasClass('hover-icon')||$target.closest('.hover-icon').length)&&!$target.closest('.js-taphover').hasClass('hover')){e.preventDefault();}
249$link.addClass('hover');$('.js-taphover').not(e.currentTarget).removeClass('hover');e.stopPropagation();}});$(document).on("click",function(e){$('.js-taphover').removeClass('hover');});}(jQuery));(function($){'use strict';var $videoHolder=$('.mk-center-video'),$wrapper=$videoHolder.parent(),baseAspectRatio=56.25;
249var wrapperHeight,wrapperWidth,wrapperAspectRatio;function calc(){wrapperHeight=$wrapper.height();wrapperWidth=$wrapper.width();wrapperAspectRatio=(wrapperHeight/wrapperWidth)*100;}
250function apply(){var width=(wrapperAspectRatio/baseAspectRatio)*100,widthOverflow=(width-100);$videoHolder.css({'padding-top':wrapperAspectRatio+'%','width':width+'%','left':-(widthOverflow/2)+'%'});}
251function reset(){$videoHolder.css({'padding-top':baseAspectRatio+'%','width':100+'%','left':0});}
252function setCover(){reset();calc();if(wrapperAspectRatio>baseAspectRatio)apply();}
253$(window).on('load',setCover);$(window).on('resize',setCover);}(jQuery));(function($){'use strict';var MK=window.MK||{};MK.val={};MK.val.scroll=(function(){var offset=0,$window=$(window),hasPageYOffset=(window.pageYOffset!==undefined),body=(document.documentElement||document.body.parentNode||document.body);var update=function(){offset=hasPageYOffset?window.pageYOffset:body.scrollTop;};var rAF=function(){window.requestAnimationFrame(update);};update();$window.on('load',update);$window.on('resize',update);$window.on('scroll',rAF);return function(){return offset;};})();MK.val.viewportPercentHeight=function(percent){return $(window).height()*(percent/100);};MK.val.adminbarHeight=function(){if(php.hasAdminbar){return(window.matchMedia('( max-width: 782px )').matches)?46:32;}else{return 0;}};MK.val.stickyOffset=(function(){var $header=$('.mk-header').not('.js-header-shortcode').first();if(!$header.length){return function(){return 0;};}
254var $toolbar=$header.find('.mk-header-toolbar'),config=$header.data(),hasToolbar=$toolbar.length,toolbarHeight=(hasToolbar)?$toolbar.height():0,isVertical=(config.headerStyle===4),headerHeight=(isVertical)?0:config.height;var type=((typeof config.stickyOffset==='number')?'number':false)||((config.stickyOffset==='header')?'header':false)||'percent';var stickyOffset=0;var setOffset=function(){toolbarHeight=(hasToolbar)?$toolbar.height():0;if(MK.utils.isResponsiveMenuState()){headerHeight=config.responsiveHeight;if(hasToolbar){if($toolbar.is(':hidden')){toolbarHeight=0;}}}
255if(type==='number'){stickyOffset=config.stickyOffset;}else if(type==='header'){stickyOffset=headerHeight+toolbarHeight+MK.val.adminbarHeight();}else if(type==='percent'){stickyOffset=MK.val.viewportPercentHeight(parseInt(config.stickyOffset));}};setOffset();$(window).on('resize',setOffset);return function(){return stickyOffset;};}());MK.val.offsetHeaderHeight=(function(){var $header=$('.mk-header').not('.js-header-shortcode').first();if(!$header.length){return function(){return 0;};}
256var $toolbar=$header.find('.mk-header-toolbar'),config=$header.data(),stickyHeight=config.stickyHeight,desktopHeight=config.height,mobileHeight=config.responsiveHeight,isTransparent=$header.hasClass('transparent-header'),isSticky=config.stickyStyle.length,isStickyLazy=config.stickyStyle==='lazy',isVertical=config.headerStyle===4,hasToolbar=$toolbar.length,toolbarHeight=hasToolbar?$toolbar.height():0,bufor=5;if(config.headerStyle===2){stickyHeight=$header.find('.mk-header-nav-container').outerHeight();}
257var $innerHeader=$header.find('.mk-header-inner');var hasInnerHeader=$innerHeader.length;var headerHeight=function(offset){toolbarHeight=hasToolbar?$toolbar.height():0
258var stickyOffset=MK.val.stickyOffset();if(MK.utils.isResponsiveMenuState()){if(hasToolbar&&$toolbar.is(':hidden')){toolbarHeight=0;}
259var headerBorder=0;headerBorder=parseInt($innerHeader.css('border-bottom-width'));var totalHeight=mobileHeight+MK.val.adminbarHeight()+toolbarHeight+headerBorder;if(offset<=totalHeight)return totalHeight;else return MK.val.adminbarHeight();}else{if(offset<=stickyOffset){if(isVertical){if(hasToolbar){return toolbarHeight+MK.val.adminbarHeight();}else{return MK.val.adminbarHeight();}}else if(isTransparent){return MK.val.adminbarHeight();}else{return desktopHeight+toolbarHeight+MK.val.adminbarHeight();}}else if(offset>stickyOffset){if(isVertical){return MK.val.adminbarHeight();}else if(!isSticky){return MK.val.adminbarHeight();}else if(isStickyLazy){return MK.val.adminbarHeight();}else if(isSticky){return stickyHeight+MK.val.adminbarHeight();}}}
260return 0;};return function(offset){return headerHeight(offset-MK.val.adminbarHeight());};})();MK.val.dynamicOffset=function(el,position,threshold){var $window=$(window),$el=$(el),pos=position||'top',thr=threshold||0,container=document.getElementById('mk-theme-container'),currentPos=0;var offset=0,winH=0,rect=0,x=0;var update=function(){winH=$window.height();rect=$el[0].getBoundingClientRect();offset=(rect.top+MK.val.scroll());x=(pos==='top')?MK.val.offsetHeaderHeight(offset):winH+(rect.height-thr);currentPos=offset-x-1;};
vendor: 6,020 bytes, lines 260-262
260update();$window.on('load',update);$window.on('resize',update);window.addResizeListener(container,update);return function(){return currentPos;};};MK.val.dynamicHeight=function(el){var $window=$(window),$el=$(el),container=document.getElementById('mk-theme-container'),currentHeight=0;var update=function(){currentHeight=$el.outerHeight();};update();$window.on('load',update);$window.on('resize',update);window.addResizeListener(container,update);return function(){return currentHeight;};};})(jQuery);jQuery.easing["jswing"]=jQuery.easing["swing"];jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b+c;return-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b+c;return d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b+c;return-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b*b+c;return d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){if(b==0)return c;if(b==e)return c+d;if((b/=e/2)<1)return d/2*Math.pow(2,10*(b-1))+c;return d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){if((b/=e/2)<1)return-d/2*(Math.sqrt(1-b*b)-1)+c;return d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e)==1)return c+d;if(!g)g=e*.3;if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g))+c},easeOutElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e)==1)return c+d;if(!g)g=e*.3;if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*b)*Math.sin((b*e-f)*2*Math.PI/g)+d+c},easeInOutElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e/2)==2)return c+d;if(!g)g=e*.3*1.5;if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);if(b<1)return-.5*h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+c;return h*Math.pow(2,-10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)*.5+d+c},easeInBack:function(a,b,c,d,e,f){if(f==undefined)f=1.70158;return d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){if(f==undefined)f=1.70158;return d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){if(f==undefined)f=1.70158;if((b/=e/2)<1)return d/2*b*b*(((f*=1.525)+1)*b-f)+c;return d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){if((b/=e)<1/2.75){return d*7.5625*b*b+c}else if(b<2/2.75){return d*(7.5625*(b-=1.5/2.75)*b+.75)+c}else if(b<2.5/2.75){return d*(7.5625*(b-=2.25/2.75)*b+.9375)+c}else{return d*(7.5625*(b-=2.625/2.75)*b+.984375)+c}},easeInOutBounce:function(a,b,c,d,e){if(b<e/2)return jQuery.easing.easeInBounce(a,b*2,0,d,e)*.5+c;return jQuery.easing.easeOutBounce(a,b*2-e,0,d,e)*.5+d*.5+c}});(function(window,document,$,undefined){"use strict";window.console=window.console||{info:function(stuff){}};if(!$){return;}
261if($.fn.fancybox){console.info("fancyBox already initialized");return;}
262var defaults={closeExisting:false,loop:false,gutter:50,keyboard:true,preventCaptionOverlap:true,arrows:true,infobar:true,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:false,modal:false,image:{preload:false},ajax:{settings:{data:{fancybox:true}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:true,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}">'+'<source src="{{src}}" type="{{format}}" />'+'Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!'+"</video>",format:"",autoStart:true},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1">'+'<div class="fancybox-bg"></div>'+'<div class="fancybox-inner">'+'<div class="fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div>'+'<div class="fancybox-toolbar">{{buttons}}</div>'+'<div class="fancybox-navigation">{{arrows}}</div>'+'<div class="fancybox-stage"></div>'+'<div class="fancybox-caption"><div class="fancybox-caption__body"></div></div>'+"</div>"+"</div>",spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;">'+'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
262<path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg>'+"</a>",zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}">'+'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg>'+"</button>",close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}">'+'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg>'+"</button>",arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}">'+'<div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div>'+"</button>",arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}">'+'<div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div>'+"</button>",smallBtn:'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}">'+'<svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg>'+"</button>"},parentEl:"body",hideScrollbar:true,autoFocus:true,backFocus:true,trapFocus:true,fullScreen:{autoStart:false},touch:{vertical:true,momentum:true},hash:null,media:{},slideShow:{autoStart:false,speed:3000},thumbs:{autoStart:false,hideOnClose:true,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:$.noop,beforeLoad:$.noop,afterLoad:$.noop,beforeShow:$.noop,afterShow:$.noop,beforeClose:$.noop,afterClose:$.noop,onActivate:$.noop,onDeactivate:$.noop,clickContent:function(current,event){return current.type==="image"?"zoom":false;},clickSlide:"close",clickOutside:"close",dblclickContent:false,dblclickSlide:false,dblclickOutside:false,mobile:{preventCaptionOverlap:false,idleTime:false,clickContent:function(current,event){return current.type==="image"?"toggleControls":false;},clickSlide:function(current,event){return current.type==="image"?"toggleControls":"close";},dblclickContent:function(current,event){return current.type==="image"?"zoom":false;},dblclickSlide:function(current,event){return current.type==="image"?"zoom":false;}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schlie&szlig;en",NEXT:"Weiter",PREV:"Zur&uuml;ck",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergr&ouml;&szlig;ern"}}};var $W=$(window);var $D=$(document);var called=0;var isQuery=function(obj){return obj&&obj.hasOwnProperty&&obj instanceof $;};var requestAFrame=(function(){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(callback){return window.setTimeout(callback,1000/60);});})();var cancelAFrame=(function(){return(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(id){window.clearTimeout(id);});})();var transitionEnd=(function(){var el=document.createElement("fakeelement"),t;var transitions={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};
vendor: 81,251 bytes, lines 262-537
262for(t in transitions){if(el.style[t]!==undefined){return transitions[t];}}
263return"transitionend";})();var forceRedraw=function($el){return $el&&$el.length&&$el[0].offsetHeight;};var mergeOpts=function(opts1,opts2){var rez=$.extend(true,{},opts1,opts2);$.each(opts2,function(key,value){if($.isArray(value)){rez[key]=value;}});return rez;};var inViewport=function(elem){var elemCenter,rez;if(!elem||elem.ownerDocument!==document){return false;}
264$(".fancybox-container").css("pointer-events","none");elemCenter={x:elem.getBoundingClientRect().left+elem.offsetWidth/2,y:elem.getBoundingClientRect().top+elem.offsetHeight/2};rez=document.elementFromPoint(elemCenter.x,elemCenter.y)===elem;$(".fancybox-container").css("pointer-events","");return rez;};var FancyBox=function(content,opts,index){var self=this;self.opts=mergeOpts({index:index},$.fancybox.defaults);if($.isPlainObject(opts)){self.opts=mergeOpts(self.opts,opts);}
265if($.fancybox.isMobile){self.opts=mergeOpts(self.opts,self.opts.mobile);}
266self.id=self.opts.id||++called;self.currIndex=parseInt(self.opts.index,10)||0;self.prevIndex=null;self.prevPos=null;self.currPos=0;self.firstRun=true;self.group=[];self.slides={};self.addContent(content);if(!self.group.length){return;}
267self.init();};$.extend(FancyBox.prototype,{init:function(){var self=this,firstItem=self.group[self.currIndex],firstItemOpts=firstItem.opts,$container,buttonStr;if(firstItemOpts.closeExisting){$.fancybox.close(true);}
268$("body").addClass("fancybox-active");if(!$.fancybox.getInstance()&&firstItemOpts.hideScrollbar!==false&&!$.fancybox.isMobile&&document.body.scrollHeight>window.innerHeight){$("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+
269(window.innerWidth-document.documentElement.clientWidth)+"px;}</style>");$("body").addClass("compensate-for-scrollbar");}
270buttonStr="";$.each(firstItemOpts.buttons,function(index,value){buttonStr+=firstItemOpts.btnTpl[value]||"";});$container=$(self.translate(self,firstItemOpts.baseTpl.replace("{{buttons}}",buttonStr).replace("{{arrows}}",firstItemOpts.btnTpl.arrowLeft+firstItemOpts.btnTpl.arrowRight))).attr("id","fancybox-container-"+self.id).addClass(firstItemOpts.baseClass).data("FancyBox",self).appendTo(firstItemOpts.parentEl);self.$refs={container:$container};["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(item){self.$refs[item]=$container.find(".fancybox-"+item);});self.trigger("onInit");self.activate();self.jumpTo(self.currIndex);},translate:function(obj,str){var arr=obj.opts.i18n[obj.opts.lang]||obj.opts.i18n.en;return str.replace(/\{\{(\w+)\}\}/g,function(match,n){return arr[n]===undefined?match:arr[n];});},addContent:function(content){var self=this,items=$.makeArray(content),thumbs;$.each(items,function(i,item){var obj={},opts={},$item,type,found,src,srcParts;if($.isPlainObject(item)){obj=item;opts=item.opts||item;}else if($.type(item)==="object"&&$(item).length){$item=$(item);opts=$item.data()||{};opts=$.extend(true,{},opts,opts.options);opts.$orig=$item;obj.src=self.opts.src||opts.src||$item.attr("href");if(!obj.type&&!obj.src){obj.type="inline";obj.src=item;}}else{obj={type:"html",src:item+""};}
271obj.opts=$.extend(true,{},self.opts,opts);if($.isArray(opts.buttons)){obj.opts.buttons=opts.buttons;}
272if($.fancybox.isMobile&&obj.opts.mobile){obj.opts=mergeOpts(obj.opts,obj.opts.mobile);}
273type=obj.type||obj.opts.type;src=obj.src||"";if(!type&&src){if((found=src.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))){type="video";if(!obj.opts.video.format){obj.opts.video.format="video/"+(found[1]==="ogv"?"ogg":found[1]);}}else if(src.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)){type="image";}else if(src.match(/\.(pdf)((\?|#).*)?$/i)){type="iframe";obj=$.extend(true,obj,{contentType:"pdf",opts:{iframe:{preload:false}}});}else if(src.charAt(0)==="#"){type="inline";}}
274if(type){obj.type=type;}else{self.trigger("objectNeedsType",obj);}
275if(!obj.contentType){obj.contentType=$.inArray(obj.type,["html","inline","ajax"])>-1?"html":obj.type;}
276obj.index=self.group.length;if(obj.opts.smallBtn=="auto"){obj.opts.smallBtn=$.inArray(obj.type,["html","inline","ajax"])>-1;}
277if(obj.opts.toolbar==="auto"){obj.opts.toolbar=!obj.opts.smallBtn;}
278obj.$thumb=obj.opts.$thumb||null;if(obj.opts.$trigger&&obj.index===self.opts.index){obj.$thumb=obj.opts.$trigger.find("img:first");if(obj.$thumb.length){obj.opts.$orig=obj.opts.$trigger;}}
279if(!(obj.$thumb&&obj.$thumb.length)&&obj.opts.$orig){obj.$thumb=obj.opts.$orig.find("img:first");}
280if(obj.$thumb&&!obj.$thumb.length){obj.$thumb=null;}
281obj.thumb=obj.opts.thumb||(obj.$thumb?obj.$thumb[0].src:null);if($.type(obj.opts.caption)==="function"){obj.opts.caption=obj.opts.caption.apply(item,[self,obj]);}
282if($.type(self.opts.caption)==="function"){obj.opts.caption=self.opts.caption.apply(item,[self,obj]);}
283if(!(obj.opts.caption instanceof $)){obj.opts.caption=obj.opts.caption===undefined?"":obj.opts.caption+"";}
284if(obj.type==="ajax"){srcParts=src.split(/\s+/,2);if(srcParts.length>1){obj.src=srcParts.shift();obj.opts.filter=srcParts.shift();}}
285if(obj.opts.modal){obj.opts=$.extend(true,obj.opts,{trapFocus:true,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:false,clickSlide:false,clickOutside:false,dblclickContent:false,dblclickSlide:false,dblclickOutside:false});}
286self.group.push(obj);});if(Object.keys(self.slides).length){self.updateControls();thumbs=self.Thumbs;if(thumbs&&thumbs.isActive){thumbs.create();thumbs.focus();}}},addEvents:function(){var self=this;self.removeEvents();self.$refs.container.on("click.fb-close","[data-fancybox-close]",function(e){e.stopPropagation();e.preventDefault();self.close(e);}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(e){e.stopPropagation();e.preventDefault();self.previous();}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(e){e.stopPropagation();e.preventDefault();self.next();}).on("click.fb","[data-fancybox-zoom]",function(e){self[self.isScaledDown()?"scaleToActual":"scaleToFit"]();});$W.on("orientationchange.fb resize.fb",function(e){if(e&&e.originalEvent&&e.originalEvent.type==="resize"){if(self.requestId){cancelAFrame(self.requestId);}
287self.requestId=requestAFrame(function(){self.update(e);});}else{if(self.current&&self.current.type==="iframe"){self.$refs.stage.hide();}
288setTimeout(function(){self.$refs.stage.show();self.update(e);},$.fancybox.isMobile?600:250);}});$D.on("keydown.fb",function(e){var instance=$.fancybox?$.fancybox.getInstance():null,current=instance.current,keycode=e.keyCode||e.which;if(keycode==9){if(current.opts.trapFocus){self.focus(e);}
289return;}
290if(!current.opts.keyboard||e.ctrlKey||e.altKey||e.shiftKey||$(e.target).is("input,textarea,video,audio,select")){return;}
291if(keycode===8||keycode===27){e.preventDefault();self.close(e);return;}
292if(keycode===37||keycode===38){e.preventDefault();self.previous();return;}
293if(keycode===39||keycode===40){e.preventDefault();self.next();return;}
294self.trigger("afterKeydown",e,keycode);});if(self.group[self.currIndex].opts.idleTime){self.idleSecondsCounter=0;$D.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(e){self.idleSecondsCounter=0;if(self.isIdle){self.showControls();}
295self.isIdle=false;});self.idleInterval=window.setInterval(function(){self.idleSecondsCounter++;if(self.idleSecondsCounter>=self.group[self.currIndex].opts.idleTime&&!self.isDragging){self.isIdle=true;self.idleSecondsCounter=0;self.hideControls();}},1000);}},removeEvents:function(){var self=this;$W.off("orientationchange.fb resize.fb");$D.off("keydown.fb .fb-idle");this.$refs.container.off(".fb-close .fb-prev .fb-next");if(self.idleInterval){window.clearInterval(self.idleInterval);self.idleInterval=null;}},previous:function(duration){return this.jumpTo(this.currPos-1,duration);},next:function(duration){return this.jumpTo(this.currPos+1,duration);},jumpTo:function(pos,duration){var self=this,groupLen=self.group.length,firstRun,isMoved,loop,current,previous,slidePos,stagePos,prop,diff;if(self.isDragging||self.isClosing||(self.isAnimating&&self.firstRun)){return;}
296pos=parseInt(pos,10);loop=self.current?self.current.opts.loop:self.opts.loop;if(!loop&&(pos<0||pos>=groupLen)){return false;}
297firstRun=self.firstRun=!Object.keys(self.slides).length;previous=self.current;self.prevIndex=self.currIndex;self.prevPos=self.currPos;current=self.createSlide(pos);if(groupLen>1){if(loop||current.index<groupLen-1){self.createSlide(pos+1);}
298if(loop||current.index>0){self.createSlide(pos-1);}}
299self.current=current;self.currIndex=current.index;self.currPos=current.pos;self.trigger("beforeShow",firstRun);self.updateControls();current.forcedDuration=undefined;if($.isNumeric(duration)){current.forcedDuration=duration;}else{duration=current.opts[firstRun?"animationDuration":"transitionDuration"];}
300duration=parseInt(duration,10);isMoved=self.isMoved(current);current.$slide.addClass("fancybox-slide--current");if(firstRun){if(current.opts.animationEffect&&duration){self.$refs.container.css("transition-duration",duration+"ms");}
301self.$refs.container.addClass("fancybox-is-open").trigger("focus");self.loadSlide(current);self.preload("image");return;}
302slidePos=$.fancybox.getTranslate(previous.$slide);stagePos=$.fancybox.getTranslate(self.$refs.stage);$.each(self.slides,function(index,slide){$.fancybox.stop(slide.$slide,true);});if(previous.pos!==current.pos){previous.isComplete=false;}
303previous.$slide.removeClass("fancybox-slide--complete fancybox-slide--current");if(isMoved){diff=slidePos.left-(previous.pos*slidePos.width+previous.pos*previous.opts.gutter);$.each(self.slides,function(index,slide){slide.$slide.removeClass("fancybox-animated").removeClass(function(index,className){return(className.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ");});var leftPos=slide.pos*slidePos.width+slide.pos*slide.opts.gutter;$.fancybox.setTranslate(slide.$slide,{top:0,left:leftPos-stagePos.left+diff});if(slide.pos!==current.pos){slide.$slide.addClass("fancybox-slide--"+(slide.pos>current.pos?"next":"previous"));}
304forceRedraw(slide.$slide);$.fancybox.animate(slide.$slide,{top:0,left:(slide.pos-current.pos)*slidePos.width+(slide.pos-current.pos)*slide.opts.gutter},duration,function(){slide.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous");if(slide.pos===self.currPos){self.complete();}});});}else if(duration&&current.opts.transitionEffect){prop="fancybox-animated fancybox-fx-"+current.opts.transitionEffect;previous.$slide.addClass("fancybox-slide--"+(previous.pos>current.pos?"next":"previous"));$.fancybox.animate(previous.$slide,prop,duration,function(){previous.$slide.removeClass(prop).removeClass("fancybox-slide--next fancybox-slide--previous");},false);}
305if(current.isLoaded){self.revealContent(current);}else{self.loadSlide(current);}
306self.preload("image");},createSlide:function(pos){var self=this,$slide,index;index=pos%self.group.length;index=index<0?self.group.length+index:index;if(!self.slides[pos]&&self.group[index]){$slide=$('<div class="fancybox-slide"></div>').appendTo(self.$refs.stage);self.slides[pos]=$.extend(true,{},self.group[index],{pos:pos,$slide:$slide,isLoaded:false});self.updateSlide(self.slides[pos]);}
307return self.slides[pos];},scaleToActual:function(x,y,duration){var self=this,current=self.current,$content=current.$content,canvasWidth=$.fancybox.getTranslate(current.$slide).width,canvasHeight=$.fancybox.getTranslate(current.$slide).height,newImgWidth=current.width,newImgHeight=current.height,imgPos,posX,posY,scaleX,scaleY;if(self.isAnimating||self.isMoved()||!$content||!(current.type=="image"&&current.isLoaded&&!current.hasError)){return;}
308self.isAnimating=true;$.fancybox.stop($content);x=x===undefined?canvasWidth*0.5:x;y=y===undefined?canvasHeight*0.5:y;imgPos=$.fancybox.getTranslate($content);imgPos.top-=$.fancybox.getTranslate(current.$slide).top;imgPos.left-=$.fancybox.getTranslate(current.$slide).left;scaleX=newImgWidth/imgPos.width;scaleY=newImgHeight/imgPos.height;posX=canvasWidth*0.5-newImgWidth*0.5;posY=canvasHeight*0.5-newImgHeight*0.5;if(newImgWidth>canvasWidth){posX=imgPos.left*scaleX-(x*scaleX-x);if(posX>0){posX=0;}
309if(posX<canvasWidth-newImgWidth){posX=canvasWidth-newImgWidth;}}
310if(newImgHeight>canvasHeight){posY=imgPos.top*scaleY-(y*scaleY-y);if(posY>0){posY=0;}
311if(posY<canvasHeight-newImgHeight){posY=canvasHeight-newImgHeight;}}
312self.updateCursor(newImgWidth,newImgHeight);$.fancybox.animate($content,{top:posY,left:posX,scaleX:scaleX,scaleY:scaleY},duration||366,function(){self.isAnimating=false;});if(self.SlideShow&&self.SlideShow.isActive){self.SlideShow.stop();}},scaleToFit:function(duration){var self=this,current=self.current,$content=current.$content,end;if(self.isAnimating||self.isMoved()||!$content||!(current.type=="image"&&current.isLoaded&&!current.hasError)){return;}
313self.isAnimating=true;$.fancybox.stop($content);end=self.getFitPos(current);self.updateCursor(end.width,end.height);$.fancybox.animate($content,{top:end.top,left:end.left,scaleX:end.width/$content.width(),scaleY:end.height/$content.height()},duration||366,function(){self.isAnimating=false;});},getFitPos:function(slide){var self=this,$content=slide.$content,$slide=slide.$slide,width=slide.width||slide.opts.width,height=slide.height||slide.opts.height,maxWidth,maxHeight,minRatio,aspectRatio,rez={};if(!slide.isLoaded||!$content||!$content.length){return false;}
314maxWidth=$.fancybox.getTranslate(self.$refs.stage).width;maxHeight=$.fancybox.getTranslate(self.$refs.stage).height;maxWidth-=parseFloat($slide.css("paddingLeft"))+
315parseFloat($slide.css("paddingRight"))+
316parseFloat($content.css("marginLeft"))+
317parseFloat($content.css("marginRight"));maxHeight-=parseFloat($slide.css("paddingTop"))+
318parseFloat($slide.css("paddingBottom"))+
319parseFloat($content.css("marginTop"))+
320parseFloat($content.css("marginBottom"));if(!width||!height){width=maxWidth;height=maxHeight;}
321minRatio=Math.min(1,maxWidth/width,maxHeight/height);width=minRatio*width;height=minRatio*height;if(width>maxWidth-0.5){width=maxWidth;}
322if(height>maxHeight-0.5){height=maxHeight;}
323if(slide.type==="image"){rez.top=Math.floor((maxHeight-height)*0.5)+parseFloat($slide.css("paddingTop"));rez.left=Math.floor((maxWidth-width)*0.5)+parseFloat($slide.css("paddingLeft"));}else if(slide.contentType==="video"){aspectRatio=slide.opts.width&&slide.opts.height?width/height:slide.opts.ratio||16/9;if(height>width/aspectRatio){height=width/aspectRatio;}else if(width>height*aspectRatio){width=height*aspectRatio;}}
324rez.width=width;rez.height=height;return rez;},update:function(e){var self=this;$.each(self.slides,function(key,slide){self.updateSlide(slide,e);});},updateSlide:function(slide,e){var self=this,$content=slide&&slide.$content,width=slide.width||slide.opts.width,height=slide.height||slide.opts.height,$slide=slide.$slide;self.adjustCaption(slide);if($content&&(width||height||slide.contentType==="video")&&!slide.hasError){$.fancybox.stop($content);$.fancybox.setTranslate($content,self.getFitPos(slide));if(slide.pos===self.currPos){self.isAnimating=false;self.updateCursor();}}
325self.adjustLayout(slide);if($slide.length){$slide.trigger("refresh");if(slide.pos===self.currPos){self.$refs.toolbar.add(self.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",$slide.get(0).scrollHeight>$slide.get(0).clientHeight);}}
326self.trigger("onUpdate",slide,e);},centerSlide:function(duration){var self=this,current=self.current,$slide=current.$slide;if(self.isClosing||!current){return;}
327$slide.siblings().css({transform:"",opacity:""});$slide.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next");$.fancybox.animate($slide,{top:0,left:0,opacity:1},duration===undefined?0:duration,function(){$slide.css({transform:"",opacity:""});if(!current.isComplete){self.complete();}},false);},isMoved:function(slide){var current=slide||this.current,slidePos,stagePos;if(!current){return false;}
328stagePos=$.fancybox.getTranslate(this.$refs.stage);slidePos=$.fancybox.getTranslate(current.$slide);return(!current.$slide.hasClass("fancybox-animated")&&(Math.abs(slidePos.top-stagePos.top)>0.5||Math.abs(slidePos.left-stagePos.left)>0.5));},updateCursor:function(nextWidth,nextHeight){var self=this,current=self.current,$container=self.$refs.container,canPan,isZoomable;if(!current||self.isClosing||!self.Guestures){return;}
329$container.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan");canPan=self.canPan(nextWidth,nextHeight);isZoomable=canPan?true:self.isZoomable();$container.toggleClass("fancybox-is-zoomable",isZoomable);$("[data-fancybox-zoom]").prop("disabled",!isZoomable);if(canPan){$container.addClass("fancybox-can-pan");}else if(isZoomable&&(current.opts.clickContent==="zoom"||($.isFunction(current.opts.clickContent)&&current.opts.clickContent(current)=="zoom"))){$container.addClass("fancybox-can-zoomIn");}else if(current.opts.touch&&(current.opts.touch.vertical||self.group.length>1)&&current.contentType!=="video"){$container.addClass("fancybox-can-swipe");}},isZoomable:function(){var self=this,current=self.current,fitPos;if(current&&!self.isClosing&&current.type==="image"&&!current.hasError){if(!current.isLoaded){return true;}
330fitPos=self.getFitPos(current);if(fitPos&&(current.width>fitPos.width||current.height>fitPos.height)){return true;}}
331return false;},isScaledDown:function(nextWidth,nextHeight){var self=this,rez=false,current=self.current,$content=current.$content;if(nextWidth!==undefined&&nextHeight!==undefined){rez=nextWidth<current.width&&nextHeight<current.height;}else if($content){rez=$.fancybox.getTranslate($content);rez=rez.width<current.width&&rez.height<current.height;}
332return rez;},canPan:function(nextWidth,nextHeight){var self=this,current=self.current,pos=null,rez=false;if(current.type==="image"&&(current.isComplete||(nextWidth&&nextHeight))&&!current.hasError){rez=self.getFitPos(current);if(nextWidth!==undefined&&nextHeight!==undefined){pos={width:nextWidth,height:nextHeight};}else if(current.isComplete){pos=$.fancybox.getTranslate(current.$content);}
333if(pos&&rez){rez=Math.abs(pos.width-rez.width)>1.5||Math.abs(pos.height-rez.height)>1.5;}}
334return rez;},loadSlide:function(slide){var self=this,type,$slide,ajaxLoad;if(slide.isLoading||slide.isLoaded){return;}
335slide.isLoading=true;if(self.trigger("beforeLoad",slide)===false){slide.isLoading=false;return false;}
336type=slide.type;$slide=slide.$slide;$slide.off("refresh").trigger("onReset").addClass(slide.opts.slideClass);switch(type){case"image":self.setImage(slide);break;case"iframe":self.setIframe(slide);break;case"html":self.setContent(slide,slide.src||slide.content);break;case"video":self.setContent(slide,slide.opts.video.tpl.replace(/\{\{src\}\}/gi,slide.src).replace("{{format}}",slide.opts.videoFormat||slide.opts.video.format||"").replace("{{poster}}",slide.thumb||""));break;case"inline":if($(slide.src).length){self.setContent(slide,$(slide.src));}else{self.setError(slide);}
337break;case"ajax":self.showLoading(slide);ajaxLoad=$.ajax($.extend({},slide.opts.ajax.settings,{url:slide.src,success:function(data,textStatus){if(textStatus==="success"){self.setContent(slide,data);}},error:function(jqXHR,textStatus){if(jqXHR&&textStatus!=="abort"){self.setError(slide);}}}));$slide.one("onReset",function(){ajaxLoad.abort();});break;default:self.setError(slide);break;}
338return true;},setImage:function(slide){var self=this,ghost;setTimeout(function(){var $img=slide.$image;if(!self.isClosing&&slide.isLoading&&(!$img||!$img.length||!$img[0].complete)&&!slide.hasError){self.showLoading(slide);}},50);self.checkSrcset(slide);slide.$content=$('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(slide.$slide.addClass("fancybox-slide--image"));if(slide.opts.preload!==false&&slide.opts.width&&slide.opts.height&&slide.thumb){slide.width=slide.opts.width;slide.height=slide.opts.height;ghost=document.createElement("img");ghost.onerror=function(){$(this).remove();slide.$ghost=null;};ghost.onload=function(){self.afterLoad(slide);};slide.$ghost=$(ghost).addClass("fancybox-image").appendTo(slide.$content).attr("src",slide.thumb);}
339self.setBigImage(slide);},checkSrcset:function(slide){var srcset=slide.opts.srcset||slide.opts.image.srcset,found,temp,pxRatio,windowWidth;if(srcset){pxRatio=window.devicePixelRatio||1;windowWidth=window.innerWidth*pxRatio;temp=srcset.split(",").map(function(el){var ret={};el.trim().split(/\s+/).forEach(function(el,i){var value=parseInt(el.substring(0,el.length-1),10);if(i===0){return(ret.url=el);}
340if(value){ret.value=value;ret.postfix=el[el.length-1];}});return ret;});temp.sort(function(a,b){return a.value-b.value;});for(var j=0;j<temp.length;j++){var el=temp[j];if((el.postfix==="w"&&el.value>=windowWidth)||(el.postfix==="x"&&el.value>=pxRatio)){found=el;break;}}
341if(!found&&temp.length){found=temp[temp.length-1];}
342if(found){slide.src=found.url;if(slide.width&&slide.height&&found.postfix=="w"){slide.height=(slide.width/slide.height)*found.value;slide.width=found.value;}
343slide.opts.srcset=srcset;}}},setBigImage:function(slide){var self=this,img=document.createElement("img"),$img=$(img);slide.$image=$img.one("error",function(){self.setError(slide);}).one("load",function(){var sizes;if(!slide.$ghost){self.resolveImageSlideSize(slide,this.naturalWidth,this.naturalHeight);self.afterLoad(slide);}
344if(self.isClosing){return;}
345if(slide.opts.srcset){sizes=slide.opts.sizes;if(!sizes||sizes==="auto"){sizes=(slide.width/slide.height>1&&$W.width()/$W.height()>1?"100":Math.round((slide.width/slide.height)*100))+"vw";}
346$img.attr("sizes",sizes).attr("srcset",slide.opts.srcset);}
347if(slide.$ghost){setTimeout(function(){if(slide.$ghost&&!self.isClosing){slide.$ghost.hide();}},Math.min(300,Math.max(1000,slide.height/1600)));}
348self.hideLoading(slide);}).addClass("fancybox-image").attr("src",slide.src).appendTo(slide.$content);if((img.complete||img.readyState=="complete")&&$img.naturalWidth&&$img.naturalHeight){$img.trigger("load");}else if(img.error){$img.trigger("error");}},resolveImageSlideSize:function(slide,imgWidth,imgHeight){var maxWidth=parseInt(slide.opts.width,10),maxHeight=parseInt(slide.opts.height,10);slide.width=imgWidth;slide.height=imgHeight;if(maxWidth>0){slide.width=maxWidth;slide.height=Math.floor((maxWidth*imgHeight)/imgWidth);}
349if(maxHeight>0){slide.width=Math.floor((maxHeight*imgWidth)/imgHeight);slide.height=maxHeight;}},setIframe:function(slide){var self=this,opts=slide.opts.iframe,$slide=slide.$slide,$iframe;slide.$content=$('<div class="fancybox-content'+(opts.preload?" fancybox-is-hidden":"")+'"></div>').css(opts.css).appendTo($slide);$slide.addClass("fancybox-slide--"+slide.contentType);slide.$iframe=$iframe=$(opts.tpl.replace(/\{rnd\}/g,new Date().getTime())).attr(opts.attr).appendTo(slide.$content);if(opts.preload){self.showLoading(slide);$iframe.on("load.fb error.fb",function(e){this.isReady=1;slide.$slide.trigger("refresh");self.afterLoad(slide);});$slide.on("refresh.fb",function(){var $content=slide.$content,frameWidth=opts.css.width,frameHeight=opts.css.height,$contents,$body;if($iframe[0].isReady!==1){return;}
350try{$contents=$iframe.contents();$body=$contents.find("body");}catch(ignore){}
351if($body&&$body.length&&$body.children().length){$slide.css("overflow","visible");$content.css({width:"100%","max-width":"100%",height:"9999px"});if(frameWidth===undefined){frameWidth=Math.ceil(Math.max($body[0].clientWidth,$body.outerWidth(true)));}
352$content.css("width",frameWidth?frameWidth:"").css("max-width","");if(frameHeight===undefined){frameHeight=Math.ceil(Math.max($body[0].clientHeight,$body.outerHeight(true)));}
353$content.css("height",frameHeight?frameHeight:"");$slide.css("overflow","auto");}
354$content.removeClass("fancybox-is-hidden");});}else{self.afterLoad(slide);}
355$iframe.attr("src",slide.src);$slide.one("onReset",function(){try{$(this).find("iframe").hide().unbind().attr("src","//about:blank");}catch(ignore){}
356$(this).off("refresh.fb").empty();slide.isLoaded=false;slide.isRevealed=false;});},setContent:function(slide,content){var self=this;if(self.isClosing){return;}
357self.hideLoading(slide);if(slide.$content){$.fancybox.stop(slide.$content);}
358slide.$slide.empty();if(isQuery(content)&&content.parent().length){if(content.hasClass("fancybox-content")||content.parent().hasClass("fancybox-content")){content.parents(".fancybox-slide").trigger("onReset");}
359slide.$placeholder=$("<div>").hide().insertAfter(content);content.css("display","inline-block");}else if(!slide.hasError){if($.type(content)==="string"){content=$("<div>").append($.trim(content)).contents();}
360if(slide.opts.filter){content=$("<div>").html(content).find(slide.opts.filter);}}
361slide.$slide.one("onReset",function(){$(this).find("video,audio").trigger("pause");if(slide.$placeholder){slide.$placeholder.after(content.removeClass("fancybox-content").hide()).remove();slide.$placeholder=null;}
362if(slide.$smallBtn){slide.$smallBtn.remove();slide.$smallBtn=null;}
363if(!slide.hasError){$(this).empty();slide.isLoaded=false;slide.isRevealed=false;}});$(content).appendTo(slide.$slide);if($(content).is("video,audio")){$(content).addClass("fancybox-video");$(content).wrap("<div></div>");slide.contentType="video";slide.opts.width=slide.opts.width||$(content).attr("width");slide.opts.height=slide.opts.height||$(content).attr("height");}
364slide.$content=slide.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first();slide.$content.siblings().hide();if(!slide.$content.length){slide.$content=slide.$slide.wrapInner("<div></div>").children().first();}
365slide.$content.addClass("fancybox-content");slide.$slide.addClass("fancybox-slide--"+slide.contentType);self.afterLoad(slide);},setError:function(slide){slide.hasError=true;slide.$slide.trigger("onReset").removeClass("fancybox-slide--"+slide.contentType).addClass("fancybox-slide--error");slide.contentType="html";this.setContent(slide,this.translate(slide,slide.opts.errorTpl));if(slide.pos===this.currPos){this.isAnimating=false;}},showLoading:function(slide){var self=this;slide=slide||self.current;if(slide&&!slide.$spinner){slide.$spinner=$(self.translate(self,self.opts.spinnerTpl)).appendTo(slide.$slide).hide().fadeIn("fast");}},hideLoading:function(slide){var self=this;slide=slide||self.current;if(slide&&slide.$spinner){slide.$spinner.stop().remove();delete slide.$spinner;}},afterLoad:function(slide){var self=this;if(self.isClosing){return;}
366slide.isLoading=false;slide.isLoaded=true;self.trigger("afterLoad",slide);self.hideLoading(slide);if(slide.opts.smallBtn&&(!slide.$smallBtn||!slide.$smallBtn.length)){slide.$smallBtn=$(self.translate(slide,slide.opts.btnTpl.smallBtn)).appendTo(slide.$content);}
367if(slide.opts.protect&&slide.$content&&!slide.hasError){slide.$content.on("contextmenu.fb",function(e){if(e.button==2){e.preventDefault();}
368return true;});if(slide.type==="image"){$('<div class="fancybox-spaceball"></div>').appendTo(slide.$content);}}
369self.adjustCaption(slide);self.adjustLayout(slide);if(slide.pos===self.currPos){self.updateCursor();}
370self.revealContent(slide);},adjustCaption:function(slide){var self=this,current=slide||self.current,caption=current.opts.caption,preventOverlap=current.opts.preventCaptionOverlap,$caption=self.$refs.caption,$clone,captionH=false;$caption.toggleClass("fancybox-caption--separate",preventOverlap);if(preventOverlap&&caption&&caption.length){if(current.pos!==self.currPos){$clone=$caption.clone().appendTo($caption.parent());$clone.children().eq(0).empty().html(caption);captionH=$clone.outerHeight(true);$clone.empty().remove();}else if(self.$caption){captionH=self.$caption.outerHeight(true);}
371current.$slide.css("padding-bottom",captionH||"");}},adjustLayout:function(slide){var self=this,current=slide||self.current,scrollHeight,marginBottom,inlinePadding,actualPadding;if(current.isLoaded&&current.opts.disableLayoutFix!==true){current.$content.css("margin-bottom","");if(current.$content.outerHeight()>current.$slide.height()+0.5){inlinePadding=current.$slide[0].style["padding-bottom"];actualPadding=current.$slide.css("padding-bottom");if(parseFloat(actualPadding)>0){scrollHeight=current.$slide[0].scrollHeight;current.$slide.css("padding-bottom",0);if(Math.abs(scrollHeight-current.$slide[0].scrollHeight)<1){marginBottom=actualPadding;}
372current.$slide.css("padding-bottom",inlinePadding);}}
373current.$content.css("margin-bottom",marginBottom);}},revealContent:function(slide){var self=this,$slide=slide.$slide,end=false,start=false,isMoved=self.isMoved(slide),isRevealed=slide.isRevealed,effect,effectClassName,duration,opacity;slide.isRevealed=true;effect=slide.opts[self.firstRun?"animationEffect":"transitionEffect"];duration=slide.opts[self.firstRun?"animationDuration":"transitionDuration"];duration=parseInt(slide.forcedDuration===undefined?duration:slide.forcedDuration,10);if(isMoved||slide.pos!==self.currPos||!duration){effect=false;}
374if(effect==="zoom"){if(slide.pos===self.currPos&&duration&&slide.type==="image"&&!slide.hasError&&(start=self.getThumbPos(slide))){end=self.getFitPos(slide);}else{effect="fade";}}
375if(effect==="zoom"){self.isAnimating=true;end.scaleX=end.width/start.width;end.scaleY=end.height/start.height;opacity=slide.opts.zoomOpacity;if(opacity=="auto"){opacity=Math.abs(slide.width/slide.height-start.width/start.height)>0.1;}
376if(opacity){start.opacity=0.1;end.opacity=1;}
377$.fancybox.setTranslate(slide.$content.removeClass("fancybox-is-hidden"),start);forceRedraw(slide.$content);$.fancybox.animate(slide.$content,end,duration,function(){self.isAnimating=false;self.complete();});return;}
378self.updateSlide(slide);if(!effect){slide.$content.removeClass("fancybox-is-hidden");if(!isRevealed&&isMoved&&slide.type==="image"&&!slide.hasError){slide.$content.hide().fadeIn("fast");}
379if(slide.pos===self.currPos){self.complete();}
380return;}
381$.fancybox.stop($slide);effectClassName="fancybox-slide--"+(slide.pos>=self.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+effect;$slide.addClass(effectClassName).removeClass("fancybox-slide--current");slide.$content.removeClass("fancybox-is-hidden");forceRedraw($slide);if(slide.type!=="image"){slide.$content.hide().show(0);}
382$.fancybox.animate($slide,"fancybox-slide--current",duration,function(){$slide.removeClass(effectClassName).css({transform:"",opacity:""});if(slide.pos===self.currPos){self.complete();}},true);},getThumbPos:function(slide){var rez=false,$thumb=slide.$thumb,thumbPos,btw,brw,bbw,blw;if(!$thumb||!inViewport($thumb[0])){return false;}
383thumbPos=$.fancybox.getTranslate($thumb);btw=parseFloat($thumb.css("border-top-width")||0);brw=parseFloat($thumb.css("border-right-width")||0);bbw=parseFloat($thumb.css("border-bottom-width")||0);blw=parseFloat($thumb.css("border-left-width")||0);rez={top:thumbPos.top+btw,left:thumbPos.left+blw,width:thumbPos.width-brw-blw,height:thumbPos.height-btw-bbw,scaleX:1,scaleY:1};return thumbPos.width>0&&thumbPos.height>0?rez:false;},complete:function(){var self=this,current=self.current,slides={},$el;if(self.isMoved()||!current.isLoaded){return;}
384if(!current.isComplete){current.isComplete=true;current.$slide.siblings().trigger("onReset");self.preload("inline");forceRedraw(current.$slide);current.$slide.addClass("fancybox-slide--complete");$.each(self.slides,function(key,slide){if(slide.pos>=self.currPos-1&&slide.pos<=self.currPos+1){slides[slide.pos]=slide;}else if(slide){$.fancybox.stop(slide.$slide);slide.$slide.off().remove();}});self.slides=slides;}
385self.isAnimating=false;self.updateCursor();self.trigger("afterShow");if(!!current.opts.video.autoStart){current.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){if(Document.exitFullscreen){Document.exitFullscreen();}else if(this.webkitExitFullscreen){this.webkitExitFullscreen();}
386self.next();});}
387if(current.opts.autoFocus&&current.contentType==="html"){$el=current.$content.find("input[autofocus]:enabled:visible:first");if($el.length){$el.trigger("focus");}else{self.focus(null,true);}}
388current.$slide.scrollTop(0).scrollLeft(0);},preload:function(type){var self=this,prev,next;if(self.group.length<2){return;}
389next=self.slides[self.currPos+1];prev=self.slides[self.currPos-1];if(prev&&prev.type===type){self.loadSlide(prev);}
390if(next&&next.type===type){self.loadSlide(next);}},focus:function(e,firstRun){var self=this,focusableStr=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(","),focusableItems,focusedItemIndex;if(self.isClosing){return;}
391if(e||!self.current||!self.current.isComplete){focusableItems=self.$refs.container.find("*:visible");}else{focusableItems=self.current.$slide.find("*:visible"+(firstRun?":not(.fancybox-close-small)":""));}
392focusableItems=focusableItems.filter(focusableStr).filter(function(){return $(this).css("visibility")!=="hidden"&&!$(this).hasClass("disabled");});if(focusableItems.length){focusedItemIndex=focusableItems.index(document.activeElement);if(e&&e.shiftKey){if(focusedItemIndex<0||focusedItemIndex==0){e.preventDefault();focusableItems.eq(focusableItems.length-1).trigger("focus");}}else{if(focusedItemIndex<0||focusedItemIndex==focusableItems.length-1){if(e){e.preventDefault();}
393focusableItems.eq(0).trigger("focus");}}}else{self.$refs.container.trigger("focus");}},activate:function(){var self=this;$(".fancybox-container").each(function(){var instance=$(this).data("FancyBox");if(instance&&instance.id!==self.id&&!instance.isClosing){instance.trigger("onDeactivate");instance.removeEvents();instance.isVisible=false;}});self.isVisible=true;if(self.current||self.isIdle){self.update();self.updateControls();}
394self.trigger("onActivate");self.addEvents();},close:function(e,d){var self=this,current=self.current,effect,duration,$content,domRect,opacity,start,end;var done=function(){self.cleanUp(e);};if(self.isClosing){return false;}
395self.isClosing=true;if(self.trigger("beforeClose",e)===false){self.isClosing=false;requestAFrame(function(){self.update();});return false;}
396self.removeEvents();$content=current.$content;effect=current.opts.animationEffect;duration=$.isNumeric(d)?d:effect?current.opts.animationDuration:0;current.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated");if(e!==true){$.fancybox.stop(current.$slide);}else{effect=false;}
397current.$slide.siblings().trigger("onReset").remove();if(duration){self.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",duration+"ms");}
398self.hideLoading(current);self.hideControls(true);self.updateCursor();if(effect==="zoom"&&!($content&&duration&&current.type==="image"&&!self.isMoved()&&!current.hasError&&(end=self.getThumbPos(current)))){effect="fade";}
399if(effect==="zoom"){$.fancybox.stop($content);domRect=$.fancybox.getTranslate($content);start={top:domRect.top,left:domRect.left,scaleX:domRect.width/end.width,scaleY:domRect.height/end.height,width:end.width,height:end.height};opacity=current.opts.zoomOpacity;if(opacity=="auto"){opacity=Math.abs(current.width/current.height-end.width/end.height)>0.1;}
400if(opacity){end.opacity=0;}
401$.fancybox.setTranslate($content,start);forceRedraw($content);$.fancybox.animate($content,end,duration,done);return true;}
402if(effect&&duration){$.fancybox.animate(current.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+effect,duration,done);}else{if(e===true){setTimeout(done,duration);}else{done();}}
403return true;},cleanUp:function(e){var self=this,instance,$focus=self.current.opts.$orig,x,y;self.current.$slide.trigger("onReset");self.$refs.container.empty().remove();self.trigger("afterClose",e);if(!!self.current.opts.backFocus){if(!$focus||!$focus.length||!$focus.is(":visible")){$focus=self.$trigger;}
404if($focus&&$focus.length){x=window.scrollX;y=window.scrollY;$focus.trigger("focus");$("html, body").scrollTop(y).scrollLeft(x);}}
405self.current=null;instance=$.fancybox.getInstance();if(instance){instance.activate();}else{$("body").removeClass("fancybox-active compensate-for-scrollbar");$("#fancybox-style-noscroll").remove();}},trigger:function(name,slide){var args=Array.prototype.slice.call(arguments,1),self=this,obj=slide&&slide.opts?slide:self.current,rez;if(obj){args.unshift(obj);}else{obj=self;}
406args.unshift(self);if($.isFunction(obj.opts[name])){rez=obj.opts[name].apply(obj,args);}
407if(rez===false){return rez;}
408if(name==="afterClose"||!self.$refs){$D.trigger(name+".fb",args);}else{self.$refs.container.trigger(name+".fb",args);}},updateControls:function(){var self=this,current=self.current,index=current.index,$container=self.$refs.container,$caption=self.$refs.caption,caption=current.opts.caption;current.$slide.trigger("refresh");if(caption&&caption.length){self.$caption=$caption;$caption.children().eq(0).html(caption);}else{self.$caption=null;}
409if(!self.hasHiddenControls&&!self.isIdle){self.showControls();}
410$container.find("[data-fancybox-count]").html(self.group.length);$container.find("[data-fancybox-index]").html(index+1);$container.find("[data-fancybox-prev]").prop("disabled",!current.opts.loop&&index<=0);$container.find("[data-fancybox-next]").prop("disabled",!current.opts.loop&&index>=self.group.length-1);if(current.type==="image"){$container.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",current.opts.image.src||current.src).show();}else if(current.opts.toolbar){$container.find("[data-fancybox-download],[data-fancybox-zoom]").hide();}
411if($(document.activeElement).is(":hidden,[disabled]")){self.$refs.container.trigger("focus");}},hideControls:function(andCaption){var self=this,arr=["infobar","toolbar","nav"];if(andCaption||!self.current.opts.preventCaptionOverlap){arr.push("caption");}
412this.$refs.container.removeClass(arr.map(function(i){return"fancybox-show-"+i;}).join(" "));this.hasHiddenControls=true;},showControls:function(){var self=this,opts=self.current?self.current.opts:self.opts,$container=self.$refs.container;self.hasHiddenControls=false;self.idleSecondsCounter=0;$container.toggleClass("fancybox-show-toolbar",!!(opts.toolbar&&opts.buttons)).toggleClass("fancybox-show-infobar",!!(opts.infobar&&self.group.length>1)).toggleClass("fancybox-show-caption",!!self.$caption).toggleClass("fancybox-show-nav",!!(opts.arrows&&self.group.length>1)).toggleClass("fancybox-is-modal",!!opts.modal);},toggleControls:function(){if(this.hasHiddenControls){this.showControls();}else{this.hideControls();}}});$.fancybox={version:"3.5.7",defaults:defaults,getInstance:function(command){var instance=$('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),args=Array.prototype.slice.call(arguments,1);if(instance instanceof FancyBox){if($.type(command)==="string"){instance[command].apply(instance,args);}else if($.type(command)==="function"){command.apply(instance,args);}
413return instance;}
414return false;},open:function(items,opts,index){return new FancyBox(items,opts,index);},close:function(all){var instance=this.getInstance();if(instance){instance.close();if(all===true){this.close(all);}}},destroy:function(){this.close(true);$D.add("body").off("click.fb-start","**");},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:(function(){var div=document.createElement("div");return(window.getComputedStyle&&window.getComputedStyle(div)&&window.getComputedStyle(div).getPropertyValue("transform")&&!(document.documentMode&&document.documentMode<11));})(),getTranslate:function($el){var domRect;if(!$el||!$el.length){return false;}
415domRect=$el[0].getBoundingClientRect();return{top:domRect.top||0,left:domRect.left||0,width:domRect.width,height:domRect.height,opacity:parseFloat($el.css("opacity"))};},setTranslate:function($el,props){var str="",css={};if(!$el||!props){return;}
416if(props.left!==undefined||props.top!==undefined){str=(props.left===undefined?$el.position().left:props.left)+"px, "+
417(props.top===undefined?$el.position().top:props.top)+"px";if(this.use3d){str="translate3d("+str+", 0px)";}else{str="translate("+str+")";}}
418if(props.scaleX!==undefined&&props.scaleY!==undefined){str+=" scale("+props.scaleX+", "+props.scaleY+")";}else if(props.scaleX!==undefined){str+=" scaleX("+props.scaleX+")";}
419if(str.length){css.transform=str;}
420if(props.opacity!==undefined){css.opacity=props.opacity;}
421if(props.width!==undefined){css.width=props.width;}
422if(props.height!==undefined){css.height=props.height;}
423return $el.css(css);},animate:function($el,to,duration,callback,leaveAnimationName){var self=this,from;if($.isFunction(duration)){callback=duration;duration=null;}
424self.stop($el);from=self.getTranslate($el);$el.on(transitionEnd,function(e){if(e&&e.originalEvent&&(!$el.is(e.originalEvent.target)||e.originalEvent.propertyName=="z-index")){return;}
425self.stop($el);if($.isNumeric(duration)){$el.css("transition-duration","");}
426if($.isPlainObject(to)){if(to.scaleX!==undefined&&to.scaleY!==undefined){self.setTranslate($el,{top:to.top,left:to.left,width:from.width*to.scaleX,height:from.height*to.scaleY,scaleX:1,scaleY:1});}}else if(leaveAnimationName!==true){$el.removeClass(to);}
427if($.isFunction(callback)){callback(e);}});if($.isNumeric(duration)){$el.css("transition-duration",duration+"ms");}
428if($.isPlainObject(to)){if(to.scaleX!==undefined&&to.scaleY!==undefined){delete to.width;delete to.height;if($el.parent().hasClass("fancybox-slide--image")){$el.parent().addClass("fancybox-is-scaling");}}
429$.fancybox.setTranslate($el,to);}else{$el.addClass(to);}
430$el.data("timer",setTimeout(function(){$el.trigger(transitionEnd);},duration+33));},stop:function($el,callCallback){if($el&&$el.length){clearTimeout($el.data("timer"));if(callCallback){$el.trigger(transitionEnd);}
431$el.off(transitionEnd).css("transition-duration","");$el.parent().removeClass("fancybox-is-scaling");}}};function _run(e,opts){var items=[],index=0,$target,value,instance;if(e&&e.isDefaultPrevented()){return;}
432e.preventDefault();opts=opts||{};if(e&&e.data){opts=mergeOpts(e.data.options,opts);}
433$target=opts.$target||$(e.currentTarget).trigger("blur");instance=$.fancybox.getInstance();if(instance&&instance.$trigger&&instance.$trigger.is($target)){return;}
434if(opts.selector){items=$(opts.selector);}else{value=$target.attr("data-fancybox")||"";if(value){items=e.data?e.data.items:[];items=items.length?items.filter('[data-fancybox="'+value+'"]'):$('[data-fancybox="'+value+'"]');}else{items=[$target];}}
435index=$(items).index($target);if(index<0){index=0;}
436instance=$.fancybox.open(items,opts,index);instance.$trigger=$target;}
437$.fn.fancybox=function(options){var selector;options=options||{};selector=options.selector||false;if(selector){$("body").off("click.fb-start",selector).on("click.fb-start",selector,{options:options},_run);}else{this.off("click.fb-start").on("click.fb-start",{items:this,options:options},_run);}
438return this;};$D.on("click.fb-start","[data-fancybox]",_run);$D.on("click.fb-start","[data-fancybox-trigger]",function(e){$('[data-fancybox="'+$(this).attr("data-fancybox-trigger")+'"]').eq($(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:$(this)});});(function(){var buttonStr=".fancybox-button",focusStr="fancybox-focus",$pressed=null;$D.on("mousedown mouseup focus blur",buttonStr,function(e){switch(e.type){case"mousedown":$pressed=$(this);break;case"mouseup":$pressed=null;break;case"focusin":$(buttonStr).removeClass(focusStr);if(!$(this).is($pressed)&&!$(this).is("[disabled]")){$(this).addClass(focusStr);}
439break;case"focusout":$(buttonStr).removeClass(focusStr);break;}});})();})(window,document,jQuery);(function($){"use strict";var defaults={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(rez){return("//maps.google."+
440rez[2]+"/?ll="+
441(rez[9]?rez[9]+"&z="+Math.floor(rez[10])+(rez[12]?rez[12].replace(/^\//,"&"):""):rez[12]+"").replace(/\?/,"&")+"&output="+
442(rez[12]&&rez[12].indexOf("layer=c")>0?"svembed":"embed"));}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(rez){return"//maps.google."+rez[2]+"/maps?q="+rez[5].replace("query=","q=").replace("api=1","")+"&output=embed";}}};var format=function(url,rez,params){if(!url){return;}
443params=params||"";if($.type(params)==="object"){params=$.param(params,true);}
444$.each(rez,function(key,value){url=url.replace("$"+key,value||"");});if(params.length){url+=(url.indexOf("?")>0?"&":"?")+params;}
445return url;};$(document).on("objectNeedsType.fb",function(e,instance,item){var url=item.src||"",type=false,media,thumb,rez,params,urlParams,paramObj,provider;media=$.extend(true,{},defaults,item.opts.media);$.each(media,function(providerName,providerOpts){rez=url.match(providerOpts.matcher);if(!rez){return;}
446type=providerOpts.type;provider=providerName;paramObj={};if(providerOpts.paramPlace&&rez[providerOpts.paramPlace]){urlParams=rez[providerOpts.paramPlace];if(urlParams[0]=="?"){urlParams=urlParams.substring(1);}
447urlParams=urlParams.split("&");for(var m=0;m<urlParams.length;++m){var p=urlParams[m].split("=",2);if(p.length==2){paramObj[p[0]]=decodeURIComponent(p[1].replace(/\+/g," "));}}}
448params=$.extend(true,{},providerOpts.params,item.opts[providerName],paramObj);url=$.type(providerOpts.url)==="function"?providerOpts.url.call(this,rez,params,item):format(providerOpts.url,rez,params);thumb=$.type(providerOpts.thumb)==="function"?providerOpts.thumb.call(this,rez,params,item):format(providerOpts.thumb,rez);if(providerName==="youtube"){url=url.replace(/&t=((\d+)m)?(\d+)s/,function(match,p1,m,s){return"&start="+((m?parseInt(m,10)*60:0)+parseInt(s,10));});}else if(providerName==="vimeo"){url=url.replace("&%23","#");}
449return false;});if(type){if(!item.opts.thumb&&!(item.opts.$thumb&&item.opts.$thumb.length)){item.opts.thumb=thumb;}
450if(type==="iframe"){item.opts=$.extend(true,item.opts,{iframe:{preload:false,attr:{scrolling:"no"}}});}
451$.extend(item,{type:type,src:url,origSrc:item.src,contentSource:provider,contentType:type==="image"?"image":provider=="gmap_place"||provider=="gmap_search"?"map":"video"});}else if(url){item.type=item.opts.defaultType;}});var VideoAPILoader={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:false,loaded:false},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:false,loaded:false},load:function(vendor){var _this=this,script;if(this[vendor].loaded){setTimeout(function(){_this.done(vendor);});return;}
452if(this[vendor].loading){return;}
453this[vendor].loading=true;script=document.createElement("script");script.type="text/javascript";script.src=this[vendor].src;if(vendor==="youtube"){window.onYouTubeIframeAPIReady=function(){_this[vendor].loaded=true;_this.done(vendor);};}else{script.onload=function(){_this[vendor].loaded=true;_this.done(vendor);};}
454document.body.appendChild(script);},done:function(vendor){var instance,$el,player;if(vendor==="youtube"){delete window.onYouTubeIframeAPIReady;}
455instance=$.fancybox.getInstance();if(instance){$el=instance.current.$content.find("iframe");if(vendor==="youtube"&&YT!==undefined&&YT){player=new YT.Player($el.attr("id"),{events:{onStateChange:function(e){if(e.data==0){instance.next();}}}});}else if(vendor==="vimeo"&&Vimeo!==undefined&&Vimeo){player=new Vimeo.Player($el);player.on("ended",function(){instance.next();});}}}};$(document).on({"afterShow.fb":function(e,instance,current){if(instance.group.length>1&&(current.contentSource==="youtube"||current.contentSource==="vimeo")){VideoAPILoader.load(current.contentSource);}}});})(jQuery);(function(window,document,$){"use strict";var requestAFrame=(function(){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(callback){return window.setTimeout(callback,1000/60);});})();var cancelAFrame=(function(){return(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(id){window.clearTimeout(id);});})();var getPointerXY=function(e){var result=[];e=e.originalEvent||e||window.e;e=e.touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e];for(var key in e){if(e[key].pageX){result.push({x:e[key].pageX,y:e[key].pageY});}else if(e[key].clientX){result.push({x:e[key].clientX,y:e[key].clientY});}}
456return result;};var distance=function(point2,point1,what){if(!point1||!point2){return 0;}
457if(what==="x"){return point2.x-point1.x;}else if(what==="y"){return point2.y-point1.y;}
458return Math.sqrt(Math.pow(point2.x-point1.x,2)+Math.pow(point2.y-point1.y,2));};var isClickable=function($el){if($el.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||$.isFunction($el.get(0).onclick)||$el.data("selectable")){return true;}
459for(var i=0,atts=$el[0].attributes,n=atts.length;i<n;i++){if(atts[i].nodeName.substr(0,14)==="data-fancybox-"){return true;}}
460return false;};var hasScrollbars=function(el){var overflowY=window.getComputedStyle(el)["overflow-y"],overflowX=window.getComputedStyle(el)["overflow-x"],vertical=(overflowY==="scroll"||overflowY==="auto")&&el.scrollHeight>el.clientHeight,horizontal=(overflowX==="scroll"||overflowX==="auto")&&el.scrollWidth>el.clientWidth;return vertical||horizontal;};var isScrollable=function($el){var rez=false;while(true){rez=hasScrollbars($el.get(0));if(rez){break;}
461$el=$el.parent();if(!$el.length||$el.hasClass("fancybox-stage")||$el.is("body")){break;}}
462return rez;};var Guestures=function(instance){var self=this;self.instance=instance;self.$bg=instance.$refs.bg;self.$stage=instance.$refs.stage;self.$container=instance.$refs.container;self.destroy();self.$container.on("touchstart.fb.touch mousedown.fb.touch",$.proxy(self,"ontouchstart"));};Guestures.prototype.destroy=function(){var self=this;self.$container.off(".fb.touch");$(document).off(".fb.touch");if(self.requestId){cancelAFrame(self.requestId);self.requestId=null;}
463if(self.tapped){clearTimeout(self.tapped);self.tapped=null;}};Guestures.prototype.ontouchstart=function(e){var self=this,$target=$(e.target),instance=self.instance,current=instance.current,$slide=current.$slide,$content=current.$content,isTouchDevice=e.type=="touchstart";if(isTouchDevice){self.$container.off("mousedown.fb.touch");}
464if(e.originalEvent&&e.originalEvent.button==2){return;}
465if(!$slide.length||!$target.length||isClickable($target)||isClickable($target.parent())){return;}
466if(!$target.is("img")&&e.originalEvent.clientX>$target[0].clientWidth+$target.offset().left){return;}
467if(!current||instance.isAnimating||current.$slide.hasClass("fancybox-animated")){e.stopPropagation();e.preventDefault();return;}
468self.realPoints=self.startPoints=getPointerXY(e);if(!self.startPoints.length){return;}
469if(current.touch){e.stopPropagation();}
470self.startEvent=e;self.canTap=true;self.$target=$target;self.$content=$content;self.opts=current.opts.touch;self.isPanning=false;self.isSwiping=false;self.isZooming=false;self.isScrolling=false;self.canPan=instance.canPan();self.startTime=new Date().getTime();self.distanceX=self.distanceY=self.distance=0;self.canvasWidth=Math.round($slide[0].clientWidth);self.canvasHeight=Math.round($slide[0].clientHeight);self.contentLastPos=null;self.contentStartPos=$.fancybox.getTranslate(self.$content)||{top:0,left:0};self.sliderStartPos=$.fancybox.getTranslate($slide);self.stagePos=$.fancybox.getTranslate(instance.$refs.stage);self.sliderStartPos.top-=self.stagePos.top;self.sliderStartPos.left-=self.stagePos.left;self.contentStartPos.top-=self.stagePos.top;self.contentStartPos.left-=self.stagePos.left;$(document).off(".fb.touch").on(isTouchDevice?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",$.proxy(self,"ontouchend")).on(isTouchDevice?"touchmove.fb.touch":"mousemove.fb.touch",$.proxy(self,"ontouchmove"));if($.fancybox.isMobile){document.addEventListener("scroll",self.onscroll,true);}
471if(!(self.opts||self.canPan)||!($target.is(self.$stage)||self.$stage.find($target).length)){if($target.is(".fancybox-image")){e.preventDefault();}
472if(!($.fancybox.isMobile&&$target.parents(".fancybox-caption").length)){return;}}
473self.isScrollable=isScrollable($target)||isScrollable($target.parent());if(!($.fancybox.isMobile&&self.isScrollable)){e.preventDefault();}
474if(self.startPoints.length===1||current.hasError){if(self.canPan){$.fancybox.stop(self.$content);self.isPanning=true;}else{self.isSwiping=true;}
475self.$container.addClass("fancybox-is-grabbing");}
476if(self.startPoints.length===2&&current.type==="image"&&(current.isLoaded||current.$ghost)){self.canTap=false;self.isSwiping=false;self.isPanning=false;self.isZooming=true;$.fancybox.stop(self.$content);self.centerPointStartX=(self.startPoints[0].x+self.startPoints[1].x)*0.5-$(window).scrollLeft();self.centerPointStartY=(self.startPoints[0].y+self.startPoints[1].y)*0.5-$(window).scrollTop();self.percentageOfImageAtPinchPointX=(self.centerPointStartX-self.contentStartPos.left)/self.contentStartPos.width;self.percentageOfImageAtPinchPointY=(self.centerPointStartY-self.contentStartPos.top)/self.contentStartPos.height;self.startDistanceBetweenFingers=distance(self.startPoints[0],self.startPoints[1]);}};Guestures.prototype.onscroll=function(e){var self=this;self.isScrolling=true;document.removeEventListener("scroll",self.onscroll,true);};Guestures.prototype.ontouchmove=function(e){var self=this;if(e.originalEvent.buttons!==undefined&&e.originalEvent.buttons===0){self.ontouchend(e);return;}
477if(self.isScrolling){self.canTap=false;return;}
478self.newPoints=getPointerXY(e);if(!(self.opts||self.canPan)||!self.newPoints.length||!self.newPoints.length){return;}
479if(!(self.isSwiping&&self.isSwiping===true)){e.preventDefault();}
480self.distanceX=distance(self.newPoints[0],self.startPoints[0],"x");self.distanceY=distance(self.newPoints[0],self.startPoints[0],"y");self.distance=distance(self.newPoints[0],self.startPoints[0]);if(self.distance>0){if(self.isSwiping){self.onSwipe(e);}else if(self.isPanning){self.onPan();}else if(self.isZooming){self.onZoom();}}};Guestures.prototype.onSwipe=function(e){var self=this,instance=self.instance,swiping=self.isSwiping,left=self.sliderStartPos.left||0,angle;if(swiping===true){if(Math.abs(self.distance)>10){self.canTap=false;if(instance.group.length<2&&self.opts.vertical){self.isSwiping="y";}else if(instance.isDragging||self.opts.vertical===false||(self.opts.vertical==="auto"&&$(window).width()>800)){self.isSwiping="x";}else{angle=Math.abs((Math.atan2(self.distanceY,self.distanceX)*180)/Math.PI);self.isSwiping=angle>45&&angle<135?"y":"x";}
481if(self.isSwiping==="y"&&$.fancybox.isMobile&&self.isScrollable){self.isScrolling=true;return;}
482instance.isDragging=self.isSwiping;self.startPoints=self.newPoints;$.each(instance.slides,function(index,slide){var slidePos,stagePos;$.fancybox.stop(slide.$slide);slidePos=$.fancybox.getTranslate(slide.$slide);stagePos=$.fancybox.getTranslate(instance.$refs.stage);slide.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(index,className){return(className.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ");});if(slide.pos===instance.current.pos){self.sliderStartPos.top=slidePos.top-stagePos.top;self.sliderStartPos.left=slidePos.left-stagePos.left;}
483$.fancybox.setTranslate(slide.$slide,{top:slidePos.top-stagePos.top,left:slidePos.left-stagePos.left});});if(instance.SlideShow&&instance.SlideShow.isActive){instance.SlideShow.stop();}}
484return;}
485if(swiping=="x"){if(self.distanceX>0&&(self.instance.group.length<2||(self.instance.current.index===0&&!self.instance.current.opts.loop))){left=left+Math.pow(self.distanceX,0.8);}else if(self.distanceX<0&&(self.instance.group.length<2||(self.instance.current.index===self.instance.group.length-1&&!self.instance.current.opts.loop))){left=left-Math.pow(-self.distanceX,0.8);}else{left=left+self.distanceX;}}
486self.sliderLastPos={top:swiping=="x"?0:self.sliderStartPos.top+self.distanceY,left:left};if(self.requestId){cancelAFrame(self.requestId);self.requestId=null;}
487self.requestId=requestAFrame(function(){if(self.sliderLastPos){$.each(self.instance.slides,function(index,slide){var pos=slide.pos-self.instance.currPos;$.fancybox.setTranslate(slide.$slide,{top:self.sliderLastPos.top,left:self.sliderLastPos.left+pos*self.canvasWidth+pos*slide.opts.gutter});});self.$container.addClass("fancybox-is-sliding");}});};Guestures.prototype.onPan=function(){var self=this;if(distance(self.newPoints[0],self.realPoints[0])<($.fancybox.isMobile?10:5)){self.startPoints=self.newPoints;return;}
488self.canTap=false;self.contentLastPos=self.limitMovement();if(self.requestId){cancelAFrame(self.requestId);}
489self.requestId=requestAFrame(function(){$.fancybox.setTranslate(self.$content,self.contentLastPos);});};Guestures.prototype.limitMovement=function(){var self=this;var canvasWidth=self.canvasWidth;var canvasHeight=self.canvasHeight;var distanceX=self.distanceX;var distanceY=self.distanceY;var contentStartPos=self.contentStartPos;var currentOffsetX=contentStartPos.left;var currentOffsetY=contentStartPos.top;var currentWidth=contentStartPos.width;var currentHeight=contentStartPos.height;var minTranslateX,minTranslateY,maxTranslateX,maxTranslateY,newOffsetX,newOffsetY;if(currentWidth>canvasWidth){newOffsetX=currentOffsetX+distanceX;}else{newOffsetX=currentOffsetX;}
490newOffsetY=currentOffsetY+distanceY;minTranslateX=Math.max(0,canvasWidth*0.5-currentWidth*0.5);minTranslateY=Math.max(0,canvasHeight*0.5-currentHeight*0.5);maxTranslateX=Math.min(canvasWidth-currentWidth,canvasWidth*0.5-currentWidth*0.5);maxTranslateY=Math.min(canvasHeight-currentHeight,canvasHeight*0.5-currentHeight*0.5);if(distanceX>0&&newOffsetX>minTranslateX){newOffsetX=minTranslateX-1+Math.pow(-minTranslateX+currentOffsetX+distanceX,0.8)||0;}
491if(distanceX<0&&newOffsetX<maxTranslateX){newOffsetX=maxTranslateX+1-Math.pow(maxTranslateX-currentOffsetX-distanceX,0.8)||0;}
492if(distanceY>0&&newOffsetY>minTranslateY){newOffsetY=minTranslateY-1+Math.pow(-minTranslateY+currentOffsetY+distanceY,0.8)||0;}
493if(distanceY<0&&newOffsetY<maxTranslateY){newOffsetY=maxTranslateY+1-Math.pow(maxTranslateY-currentOffsetY-distanceY,0.8)||0;}
494return{top:newOffsetY,left:newOffsetX};};Guestures.prototype.limitPosition=function(newOffsetX,newOffsetY,newWidth,newHeight){var self=this;var canvasWidth=self.canvasWidth;var canvasHeight=self.canvasHeight;if(newWidth>canvasWidth){newOffsetX=newOffsetX>0?0:newOffsetX;newOffsetX=newOffsetX<canvasWidth-newWidth?canvasWidth-newWidth:newOffsetX;}else{newOffsetX=Math.max(0,canvasWidth/2-newWidth/2);}
495if(newHeight>canvasHeight){newOffsetY=newOffsetY>0?0:newOffsetY;newOffsetY=newOffsetY<canvasHeight-newHeight?canvasHeight-newHeight:newOffsetY;}else{newOffsetY=Math.max(0,canvasHeight/2-newHeight/2);}
496return{top:newOffsetY,left:newOffsetX};};Guestures.prototype.onZoom=function(){var self=this;var contentStartPos=self.contentStartPos;var currentWidth=contentStartPos.width;var currentHeight=contentStartPos.height;var currentOffsetX=contentStartPos.left;var currentOffsetY=contentStartPos.top;var endDistanceBetweenFingers=distance(self.newPoints[0],self.newPoints[1]);var pinchRatio=endDistanceBetweenFingers/self.startDistanceBetweenFingers;var newWidth=Math.floor(currentWidth*pinchRatio);var newHeight=Math.floor(currentHeight*pinchRatio);var translateFromZoomingX=(currentWidth-newWidth)*self.percentageOfImageAtPinchPointX;var translateFromZoomingY=(currentHeight-newHeight)*self.percentageOfImageAtPinchPointY;var centerPointEndX=(self.newPoints[0].x+self.newPoints[1].x)/2-$(window).scrollLeft();var centerPointEndY=(self.newPoints[0].y+self.newPoints[1].y)/2-$(window).scrollTop();var translateFromTranslatingX=centerPointEndX-self.centerPointStartX;var translateFromTranslatingY=centerPointEndY-self.centerPointStartY;var newOffsetX=currentOffsetX+(translateFromZoomingX+translateFromTranslatingX);var newOffsetY=currentOffsetY+(translateFromZoomingY+translateFromTranslatingY);var newPos={top:newOffsetY,left:newOffsetX,scaleX:pinchRatio,scaleY:pinchRatio};self.canTap=false;self.newWidth=newWidth;self.newHeight=newHeight;self.contentLastPos=newPos;if(self.requestId){cancelAFrame(self.requestId);}
497self.requestId=requestAFrame(function(){$.fancybox.setTranslate(self.$content,self.contentLastPos);});};Guestures.prototype.ontouchend=function(e){var self=this;var swiping=self.isSwiping;var panning=self.isPanning;var zooming=self.isZooming;var scrolling=self.isScrolling;self.endPoints=getPointerXY(e);self.dMs=Math.max(new Date().getTime()-self.startTime,1);self.$container.removeClass("fancybox-is-grabbing");$(document).off(".fb.touch");document.removeEventListener("scroll",self.onscroll,true);if(self.requestId){cancelAFrame(self.requestId);self.requestId=null;}
498self.isSwiping=false;self.isPanning=false;self.isZooming=false;self.isScrolling=false;self.instance.isDragging=false;if(self.canTap){return self.onTap(e);}
499self.speed=100;self.velocityX=(self.distanceX/self.dMs)*0.5;self.velocityY=(self.distanceY/self.dMs)*0.5;if(panning){self.endPanning();}else if(zooming){self.endZooming();}else{self.endSwiping(swiping,scrolling);}
500return;};Guestures.prototype.endSwiping=function(swiping,scrolling){var self=this,ret=false,len=self.instance.group.length,distanceX=Math.abs(self.distanceX),canAdvance=swiping=="x"&&len>1&&((self.dMs>130&&distanceX>10)||distanceX>50),speedX=300;self.sliderLastPos=null;if(swiping=="y"&&!scrolling&&Math.abs(self.distanceY)>50){$.fancybox.animate(self.instance.current.$slide,{top:self.sliderStartPos.top+self.distanceY+self.velocityY*150,opacity:0},200);ret=self.instance.close(true,250);}else if(canAdvance&&self.distanceX>0){ret=self.instance.previous(speedX);}else if(canAdvance&&self.distanceX<0){ret=self.instance.next(speedX);}
501if(ret===false&&(swiping=="x"||swiping=="y")){self.instance.centerSlide(200);}
502self.$container.removeClass("fancybox-is-sliding");};Guestures.prototype.endPanning=function(){var self=this,newOffsetX,newOffsetY,newPos;if(!self.contentLastPos){return;}
503if(self.opts.momentum===false||self.dMs>350){newOffsetX=self.contentLastPos.left;newOffsetY=self.contentLastPos.top;}else{newOffsetX=self.contentLastPos.left+self.velocityX*500;newOffsetY=self.contentLastPos.top+self.velocityY*500;}
504newPos=self.limitPosition(newOffsetX,newOffsetY,self.contentStartPos.width,self.contentStartPos.height);newPos.width=self.contentStartPos.width;newPos.height=self.contentStartPos.height;$.fancybox.animate(self.$content,newPos,366);};Guestures.prototype.endZooming=function(){var self=this;var current=self.instance.current;var newOffsetX,newOffsetY,newPos,reset;var newWidth=self.newWidth;var newHeight=self.newHeight;if(!self.contentLastPos){return;}
505newOffsetX=self.contentLastPos.left;newOffsetY=self.contentLastPos.top;reset={top:newOffsetY,left:newOffsetX,width:newWidth,height:newHeight,scaleX:1,scaleY:1};$.fancybox.setTranslate(self.$content,reset);if(newWidth<self.canvasWidth&&newHeight<self.canvasHeight){self.instance.scaleToFit(150);}else if(newWidth>current.width||newHeight>current.height){self.instance.scaleToActual(self.centerPointStartX,self.centerPointStartY,150);}else{newPos=self.limitPosition(newOffsetX,newOffsetY,newWidth,newHeight);$.fancybox.animate(self.$content,newPos,150);}};Guestures.prototype.onTap=function(e){var self=this;var $target=$(e.target);var instance=self.instance;var current=instance.current;var endPoints=(e&&getPointerXY(e))||self.startPoints;var tapX=endPoints[0]?endPoints[0].x-$(window).scrollLeft()-self.stagePos.left:0;var tapY=endPoints[0]?endPoints[0].y-$(window).scrollTop()-self.stagePos.top:0;var where;var process=function(prefix){var action=current.opts[prefix];if($.isFunction(action)){action=action.apply(instance,[current,e]);}
506if(!action){return;}
507switch(action){case"close":instance.close(self.startEvent);break;case"toggleControls":instance.toggleControls();break;case"next":instance.next();break;case"nextOrClose":if(instance.group.length>1){instance.next();}else{instance.close(self.startEvent);}
508break;case"zoom":if(current.type=="image"&&(current.isLoaded||current.$ghost)){if(instance.canPan()){instance.scaleToFit();}else if(instance.isScaledDown()){instance.scaleToActual(tapX,tapY);}else if(instance.group.length<2){instance.close(self.startEvent);}}
509break;}};if(e.originalEvent&&e.originalEvent.button==2){return;}
510if(!$target.is("img")&&tapX>$target[0].clientWidth+$target.offset().left){return;}
511if($target.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container")){where="Outside";}else if($target.is(".fancybox-slide")){where="Slide";}else if(instance.current.$content&&instance.current.$content.find($target).addBack().filter($target).length){where="Content";}else{return;}
512if(self.tapped){clearTimeout(self.tapped);self.tapped=null;if(Math.abs(tapX-self.tapX)>50||Math.abs(tapY-self.tapY)>50){return this;}
513process("dblclick"+where);}else{self.tapX=tapX;self.tapY=tapY;if(current.opts["dblclick"+where]&&current.opts["dblclick"+where]!==current.opts["click"+where]){self.tapped=setTimeout(function(){self.tapped=null;if(!instance.isAnimating){process("click"+where);}},500);}else{process("click"+where);}}
514return this;};$(document).on("onActivate.fb",function(e,instance){if(instance&&!instance.Guestures){instance.Guestures=new Guestures(instance);}}).on("beforeClose.fb",function(e,instance){if(instance&&instance.Guestures){instance.Guestures.destroy();}});})(window,document,jQuery);(function(document,$){"use strict";$.extend(true,$.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}">'+'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg>'+'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg>'+"</button>"},slideShow:{autoStart:false,speed:3000,progress:true}});var SlideShow=function(instance){this.instance=instance;this.init();};$.extend(SlideShow.prototype,{timer:null,isActive:false,$button:null,init:function(){var self=this,instance=self.instance,opts=instance.group[instance.currIndex].opts.slideShow;self.$button=instance.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){self.toggle();});if(instance.group.length<2||!opts){self.$button.hide();}else if(opts.progress){self.$progress=$('<div class="fancybox-progress"></div>').appendTo(instance.$refs.inner);}},set:function(force){var self=this,instance=self.instance,current=instance.current;if(current&&(force===true||current.opts.loop||instance.currIndex<instance.group.length-1)){if(self.isActive&&current.contentType!=="video"){if(self.$progress){$.fancybox.animate(self.$progress.show(),{scaleX:1},current.opts.slideShow.speed);}
515self.timer=setTimeout(function(){if(!instance.current.opts.loop&&instance.current.index==instance.group.length-1){instance.jumpTo(0);}else{instance.next();}},current.opts.slideShow.speed);}}else{self.stop();instance.idleSecondsCounter=0;instance.showControls();}},clear:function(){var self=this;clearTimeout(self.timer);self.timer=null;if(self.$progress){self.$progress.removeAttr("style").hide();}},start:function(){var self=this,current=self.instance.current;if(current){self.$button.attr("title",(current.opts.i18n[current.opts.lang]||current.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause");self.isActive=true;if(current.isComplete){self.set(true);}
516self.instance.trigger("onSlideShowChange",true);}},stop:function(){var self=this,current=self.instance.current;self.clear();self.$button.attr("title",(current.opts.i18n[current.opts.lang]||current.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play");self.isActive=false;self.instance.trigger("onSlideShowChange",false);if(self.$progress){self.$progress.removeAttr("style").hide();}},toggle:function(){var self=this;if(self.isActive){self.stop();}else{self.start();}}});$(document).on({"onInit.fb":function(e,instance){if(instance&&!instance.SlideShow){instance.SlideShow=new SlideShow(instance);}},"beforeShow.fb":function(e,instance,current,firstRun){var SlideShow=instance&&instance.SlideShow;if(firstRun){if(SlideShow&&current.opts.slideShow.autoStart){SlideShow.start();}}else if(SlideShow&&SlideShow.isActive){SlideShow.clear();}},"afterShow.fb":function(e,instance,current){var SlideShow=instance&&instance.SlideShow;if(SlideShow&&SlideShow.isActive){SlideShow.set();}},"afterKeydown.fb":function(e,instance,current,keypress,keycode){var SlideShow=instance&&instance.SlideShow;if(SlideShow&&current.opts.slideShow&&(keycode===80||keycode===32)&&!$(document.activeElement).is("button,a,input")){keypress.preventDefault();SlideShow.toggle();}},"beforeClose.fb onDeactivate.fb":function(e,instance){var SlideShow=instance&&instance.SlideShow;if(SlideShow){SlideShow.stop();}}});$(document).on("visibilitychange",function(){if($.fancybox.version!='3.5.7'){return;}
517var instance=$.fancybox.getInstance(),SlideShow=instance&&instance.SlideShow;if(SlideShow&&SlideShow.isActive){if(document.hidden){SlideShow.clear();}else{SlideShow.set();}}});})(document,jQuery);(function(document,$){"use strict";var fn=(function(){var fnMap=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];var ret={};for(var i=0;i<fnMap.length;i++){var val=fnMap[i];if(val&&val[1]in document){for(var j=0;j<val.length;j++){ret[fnMap[0][j]]=val[j];}
518return ret;}}
519return false;})();if(fn){var FullScreen={request:function(elem){elem=elem||document.documentElement;elem[fn.requestFullscreen](elem.ALLOW_KEYBOARD_INPUT);},exit:function(){document[fn.exitFullscreen]();},toggle:function(elem){elem=elem||document.documentElement;if(this.isFullscreen()){this.exit();}else{this.request(elem);}},isFullscreen:function(){return Boolean(document[fn.fullscreenElement]);},enabled:function(){return Boolean(document[fn.fullscreenEnabled]);}};$.extend(true,$.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}">'+'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>'+'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg>'+"</button>"},fullScreen:{autoStart:false}});$(document).on(fn.fullscreenchange,function(){var isFullscreen=FullScreen.isFullscreen(),instance=$.fancybox.getInstance();if(instance){if(instance.current&&instance.current.type==="image"&&instance.isAnimating){instance.isAnimating=false;instance.update(true,true,0);if(!instance.isComplete){instance.complete();}}
520instance.trigger("onFullscreenChange",isFullscreen);instance.$refs.container.toggleClass("fancybox-is-fullscreen",isFullscreen);instance.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!isFullscreen).toggleClass("fancybox-button--fsexit",isFullscreen);}});}
521$(document).on({"onInit.fb":function(e,instance){var $container;if(!fn){instance.$refs.toolbar.find("[data-fancybox-fullscreen]").remove();return;}
522if(instance&&instance.group[instance.currIndex].opts.fullScreen){$container=instance.$refs.container;$container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(e){e.stopPropagation();e.preventDefault();FullScreen.toggle();});if(instance.opts.fullScreen&&instance.opts.fullScreen.autoStart===true){FullScreen.request();}
523instance.FullScreen=FullScreen;}else if(instance){instance.$refs.toolbar.find("[data-fancybox-fullscreen]").hide();}},"afterKeydown.fb":function(e,instance,current,keypress,keycode){if(instance&&instance.FullScreen&&keycode===70){keypress.preventDefault();instance.FullScreen.toggle();}},"beforeClose.fb":function(e,instance){if(instance&&instance.FullScreen&&instance.$refs.container.hasClass("fancybox-is-fullscreen")){FullScreen.exit();}}});})(document,jQuery);(function(document,$){"use strict";var CLASS="fancybox-thumbs",CLASS_ACTIVE=CLASS+"-active";$.fancybox.defaults=$.extend(true,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}">'+'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg>'+"</button>"},thumbs:{autoStart:false,hideOnClose:true,parentEl:".fancybox-container",axis:"y"}},$.fancybox.defaults);var FancyThumbs=function(instance){this.init(instance);};$.extend(FancyThumbs.prototype,{$button:null,$grid:null,$list:null,isVisible:false,isActive:false,init:function(instance){var self=this,group=instance.group,enabled=0;self.instance=instance;self.opts=group[instance.currIndex].opts.thumbs;instance.Thumbs=self;self.$button=instance.$refs.toolbar.find("[data-fancybox-thumbs]");for(var i=0,len=group.length;i<len;i++){if(group[i].thumb){enabled++;}
524if(enabled>1){break;}}
525if(enabled>1&&!!self.opts){self.$button.removeAttr("style").on("click",function(){self.toggle();});self.isActive=true;}else{self.$button.hide();}},create:function(){var self=this,instance=self.instance,parentEl=self.opts.parentEl,list=[],src;if(!self.$grid){self.$grid=$('<div class="'+CLASS+" "+CLASS+"-"+self.opts.axis+'"></div>').appendTo(instance.$refs.container.find(parentEl).addBack().filter(parentEl));self.$grid.on("click","a",function(){instance.jumpTo($(this).attr("data-index"));});}
526if(!self.$list){self.$list=$('<div class="'+CLASS+'__list">').appendTo(self.$grid);}
527$.each(instance.group,function(i,item){src=item.thumb;if(!src&&item.type==="image"){src=item.src;}
528list.push('<a href="javascript:;" tabindex="0" data-index="'+
529i+'"'+
530(src&&src.length?' style="background-image:url('+src+')"':'class="fancybox-thumbs-missing"')+"></a>");});self.$list[0].innerHTML=list.join("");if(self.opts.axis==="x"){self.$list.width(parseInt(self.$grid.css("padding-right"),10)+
531instance.group.length*self.$list.children().eq(0).outerWidth(true));}},focus:function(duration){var self=this,$list=self.$list,$grid=self.$grid,thumb,thumbPos;if(!self.instance.current){return;}
532thumb=$list.children().removeClass(CLASS_ACTIVE).filter('[data-index="'+self.instance.current.index+'"]').addClass(CLASS_ACTIVE);thumbPos=thumb.position();if(self.opts.axis==="y"&&(thumbPos.top<0||thumbPos.top>$list.height()-thumb.outerHeight())){$list.stop().animate({scrollTop:$list.scrollTop()+thumbPos.top},duration);}else if(self.opts.axis==="x"&&(thumbPos.left<$grid.scrollLeft()||thumbPos.left>$grid.scrollLeft()+($grid.width()-thumb.outerWidth()))){$list.parent().stop().animate({scrollLeft:thumbPos.left},duration);}},update:function(){var that=this;that.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible);if(that.isVisible){if(!that.$grid){that.create();}
533that.instance.trigger("onThumbsShow");that.focus(0);}else if(that.$grid){that.instance.trigger("onThumbsHide");}
534that.instance.update();},hide:function(){this.isVisible=false;this.update();},show:function(){this.isVisible=true;this.update();},toggle:function(){this.isVisible=!this.isVisible;this.update();}});$(document).on({"onInit.fb":function(e,instance){var Thumbs;if(instance&&!instance.Thumbs){Thumbs=new FancyThumbs(instance);if(Thumbs.isActive&&Thumbs.opts.autoStart===true){Thumbs.show();}}},"beforeShow.fb":function(e,instance,item,firstRun){var Thumbs=instance&&instance.Thumbs;if(Thumbs&&Thumbs.isVisible){Thumbs.focus(firstRun?0:250);}},"afterKeydown.fb":function(e,instance,current,keypress,keycode){var Thumbs=instance&&instance.Thumbs;if(Thumbs&&Thumbs.isActive&&keycode===71){keypress.preventDefault();Thumbs.toggle();}},"beforeClose.fb":function(e,instance){var Thumbs=instance&&instance.Thumbs;if(Thumbs&&Thumbs.isVisible&&Thumbs.opts.hideOnClose!==false){Thumbs.$grid.hide();}}});})(document,jQuery);(function(document,$){"use strict";$.extend(true,$.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}">'+'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg>'+"</button>"},share:{url:function(instance,item){return((!instance.currentHash&&!(item.type==="inline"||item.type==="html")?item.origSrc||item.src:false)||window.location);},tpl:'<div class="fancybox-share">'+"<h1>{{SHARE}}</h1>"+"<p>"+'<a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}">'+'<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg>'+"<span>Facebook</span>"+"</a>"+'<a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}">'+'<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg>'+"<span>Twitter</span>"+"</a>"+'<a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}">'+'<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg>'+"<span>Pinterest</span>"+"</a>"+"</p>"+'<p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p>'+"</div>"}});function escapeHtml(string){var entityMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(string).replace(/[&<>"'`=\/]/g,function(s){return entityMap[s];});}
535$(document).on("click","[data-fancybox-share]",function(){var instance=$.fancybox.getInstance(),current=instance.current||null,url,tpl;if(!current){return;}
536if($.type(current.opts.share.url)==="function"){url=current.opts.share.url.apply(current,[instance,current]);}
537tpl=current.opts.share.tpl.replace(/\{\{media\}\}/g,current.type==="image"?encodeURIComponent(current.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(url)).replace(/\{\{url_raw\}\}/g,escapeHtml(url)).replace(/\{\{descr\}\}/g,instance.$caption?encodeURIComponent(instance.$caption.text()):"");$.fancybox.open({src:instance.translate(instance,tpl),type:"html",opts:{touch:false,animationEffect:false,afterLoad:function(shareInstance,shareCurrent){instance.$refs.container.one("beforeClose.fb",function(){shareInstance.close(null,0);});shareCurrent.$content.find(".fancybox-share__button").on('click',function(){window.open(this.href,"Share","width=550, height=450");return false;});}
537,mobile:{autoFocus:false}}});});})(document,jQuery);(function(window,document,$){"use strict";if(!$.escapeSelector){$.escapeSelector=function(sel){var rcssescape=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;var fcssescape=function(ch,asCodePoint){if(asCodePoint){if(ch==="\0"){return"\uFFFD";}
538return ch.slice(0,-1)+"\\"+ch.charCodeAt(ch.length-1).toString(16)+" ";}
539return"\\"+ch;};return(sel+"").replace(rcssescape,fcssescape);};}
540function parseUrl(){var hash=window.location.hash.substr(1),rez=hash.split("-"),index=rez.length>1&&/^\+?\d+$/.test(rez[rez.length-1])?parseInt(rez.pop(-1),10)||1:1,gallery=rez.join("-");return{hash:hash,index:index<1?1:index,gallery:gallery};}
541function triggerFromUrl(url){if(url.gallery!==""){$("[data-fancybox='"+$.escapeSelector(url.gallery)+"']").eq(url.index-1).focus().trigger("click.fb-start");}}
542function getGalleryID(instance){var opts,ret;if(!instance){return false;}
543opts=instance.current?instance.current.opts:instance.opts;ret=opts.hash||(opts.$orig?opts.$orig.data("fancybox")||opts.$orig.data("fancybox-trigger"):"");return ret===""?false:ret;}
544$(function(){if($.fancybox.version!='3.5.7'){return;}
545if($.fancybox.defaults.hash===false){return;}
546$(document).on({"onInit.fb":function(e,instance){var url,gallery;if(instance.group[instance.currIndex].opts.hash===false){return;}
547url=parseUrl();gallery=getGalleryID(instance);if(gallery&&url.gallery&&gallery==url.gallery){instance.currIndex=url.index-1;}},"beforeShow.fb":function(e,instance,current,firstRun){var gallery;if(!current||current.opts.hash===false){return;}
548gallery=getGalleryID(instance);if(!gallery){return;}
549instance.currentHash=gallery+(instance.group.length>1?"-"+(current.index+1):"");if(window.location.hash==="#"+instance.currentHash){return;}
550if(firstRun&&!instance.origHash){instance.origHash=window.location.hash;}
551if(instance.hashTimer){clearTimeout(instance.hashTimer);}
552instance.hashTimer=setTimeout(function(){if("replaceState"in window.history){window.history[firstRun?"pushState":"replaceState"]({},document.title,window.location.pathname+window.location.search+"#"+instance.currentHash);if(firstRun){instance.hasCreatedHistory=true;}}else{window.location.hash=instance.currentHash;}
553instance.hashTimer=null;},300);},"beforeClose.fb":function(e,instance,current){if(!current||current.opts.hash===false){return;}
554clearTimeout(instance.hashTimer);if(instance.currentHash&&instance.hasCreatedHistory){window.history.back();}else if(instance.currentHash){if("replaceState"in window.history){window.history.replaceState({},document.title,window.location.pathname+window.location.search+(instance.origHash||""));}else{window.location.hash=instance.origHash;}}
555instance.currentHash=null;}});$(window).on("hashchange.fb",function(){var url=parseUrl(),fb=null;$.each($(".fancybox-container").get().reverse(),function(index,value){var tmp=$(value).data("FancyBox");if(tmp&&tmp.currentHash){fb=tmp;return false;}});if(fb){if(fb.currentHash!==url.gallery+"-"+url.index&&!(url.index===1&&fb.currentHash==url.gallery)){fb.currentHash=null;fb.close();}}else if(url.gallery!==""){triggerFromUrl(url);}});setTimeout(function(){if($.fancybox.version!='3.5.7'){return;}
556if(!$.fancybox.getInstance()){triggerFromUrl(parseUrl());}},50);});})(window,document,jQuery);(function(document,$){"use strict";var prevTime=new Date().getTime();$(document).on({"onInit.fb":function(e,instance,current){instance.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(e){var current=instance.current,currTime=new Date().getTime();if(instance.group.length<2||current.opts.wheel===false||(current.opts.wheel==="auto"&&current.type!=="image")){return;}
557e.preventDefault();e.stopPropagation();if(current.$slide.hasClass("fancybox-animated")){return;}
558e=e.originalEvent||e;if(currTime-prevTime<250){return;}
559prevTime=currTime;instance[(-e.deltaY||-e.deltaX||e.wheelDelta||-e.detail)<0?"next":"previous"]();});}});})(document,jQuery);;(function($,window,document,undefined){var pluginName="MegaMenu",defaults={propertyName:"value"};var delayOut=400;var menus=[];function CustomMenu(element,options){this.element=element;this.options=$.extend({},defaults,options);this._defaults=defaults;this._name=pluginName;this.init();}
560CustomMenu.prototype={isOpen:false,timeout:null,init:function(){var that=this;$(this).each(function(index,menu){that.node=menu.element;that.addListeners(menu.element);var $menu=$(menu.element);$menu.addClass("dropdownJavascript");menus.push(menu.element);$menu.find('ul > li').each(function(index,submenu){if($(submenu).find('ul').length>0){$(submenu).addClass('with-menu');}});});},addListeners:function(menu){var that=this;$(menu).on('mouseover',function(e){that.handleMouseOver.call(that,e);}).on('mouseout',function(e){that.handleMouseOut.call(that,e);});},handleMouseOver:function(e){var that=this;this.clearTimeout();var item=e.target||e.srcElement;while(item.nodeName!='LI'&&item!=this.node){item=item.parentNode;}
561if(item.nodeName=='LI'){this.toOpen=item;this.timeout=setTimeout(function(){that.open.call(that);},this.options.delay);}},handleMouseOut:function(){var that=this;this.clearTimeout();var _delayOut=this.options.delay;if(delayOut){_delayOut=delayOut;}
562this.timeout=setTimeout(function(){that.close.call(that);},_delayOut);},clearTimeout:function(){if(this.timeout){clearTimeout(this.timeout);this.timeout=null;}},open:function(){var that=this;this.isOpen=true;var items=$(this.toOpen).parent().children('li');$(items).each(function(index,item){$(item).find("ul").each(function(index,submenu){if(item!=that.toOpen){$(item).removeClass("dropdownOpen");that.close(item);}else if(!$(item).hasClass('dropdownOpen')){$(item).addClass("dropdownOpen");var left=0;var node=submenu;while(node){left+=Math.abs(node.offsetLeft);node=node.offsetParent;}
563var right=left+submenu.offsetWidth;var menuHeight=$(submenu).outerHeight();var parentTop=$(submenu).offset().top-$(window).scrollTop();
563var totalHeight=menuHeight+parentTop;var windowHeight=window.innerHeight;$(item).removeClass('dropdownRightToLeft');if(left<0)$(item).addClass('dropdownLeftToRight');if(right>document.body.clientWidth){$(item).addClass('dropdownRightToLeft');}}});});},close:function(node){if(!node){this.isOpen=false;node=this.node;}
564$(node).find('li').each(function(index,item){$(item).removeClass('dropdownOpen');});}};$.fn[pluginName]=function(options){return this.each(function(){if(!$.data(this,"plugin_"+pluginName)){$.data(this,"plugin_"+pluginName,new CustomMenu(this,options));}});};})(jQuery,window,document);
565/*!
566 * modernizr v3.3.1
567 * Build https://modernizr.com/download?-cssanimations-csstransitions-touchevents-domprefixes-prefixed-prefixes-setclasses-shiv-testallprops-testprop-teststyles-dontmin
568 *
569 * Copyright (c)
570 *  Faruk Ates
571 *  Paul Irish
572 *  Alex Sexton
573 *  Ryan Seddon
574 *  Patrick Kettner
575 *  Stu Cox
576 *  Richard Herrera
577
578 * MIT License
579 */
580;(function(window,document,undefined){var classes=[];var tests=[];var ModernizrProto={_version:'3.3.1',_config:{'classPrefix':'','enableClasses':true,'enableJSClass':true,'usePrefixes':true},_q:[],on:function(test,cb){var self=this;setTimeout(function(){cb(self[test]);},0);},addTest:function(name,fn,options){tests.push({name:name,fn:fn,options:options});},addAsyncTest:function(fn){tests.push({name:null,fn:fn});}};var Modernizr=function(){};Modernizr.prototype=ModernizrProto;Modernizr=new Modernizr();var prefixes=(ModernizrProto._config.usePrefixes?' -webkit- -moz- -o- -ms- '.split(' '):['','']);ModernizrProto._prefixes=prefixes;function is(obj,type){return typeof obj===type;};function testRunner(){var featureNames;var feature;var aliasIdx;var result;var nameIdx;var featureName;var featureNameSplit;for(var featureIdx in tests){if(tests.hasOwnProperty(featureIdx)){featureNames=[];feature=tests[featureIdx];if(feature.name){featureNames.push(feature.name.toLowerCase());if(feature.options&&feature.options.aliases&&feature.options.aliases.length){for(aliasIdx=0;aliasIdx<feature.options.aliases.length;aliasIdx++){featureNames.push(feature.options.aliases[aliasIdx].toLowerCase());}}}
581result=is(feature.fn,'function')?feature.fn():feature.fn;for(nameIdx=0;nameIdx<featureNames.length;nameIdx++){featureName=featureNames[nameIdx];featureNameSplit=featureName.split('.');if(featureNameSplit.length===1){Modernizr[featureNameSplit[0]]=result;}else{if(Modernizr[featureNameSplit[0]]&&!(Modernizr[featureNameSplit[0]]instanceof Boolean)){Modernizr[featureNameSplit[0]]=new Boolean(Modernizr[featureNameSplit[0]]);}
582Modernizr[featureNameSplit[0]][featureNameSplit[1]]=result;}
583classes.push((result?'':'no-')+featureNameSplit.join('-'));}}}};var docElement=document.documentElement;var isSVG=docElement.nodeName.toLowerCase()==='svg';function setClasses(classes){var className=docElement.className;var classPrefix=Modernizr._config.classPrefix||'';if(isSVG){className=className.baseVal;}
584if(Modernizr._config.enableJSClass){var reJS=new RegExp('(^|\\s)'+classPrefix+'no-js(\\s|$)');className=className.replace(reJS,'$1'+classPrefix+'js$2');}
585if(Modernizr._config.enableClasses){className+=' '+classPrefix+classes.join(' '+classPrefix);isSVG?docElement.className.baseVal=className:docElement.className=className;}};var html5;if(!isSVG){;(function(window,document){var version='3.7.3';var options=window.html5||{};var reSkip=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i;var saveClones=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i;var supportsHtml5Styles;var expando='_html5shiv';var expanID=0;var expandoData={};var supportsUnknownElements;(function(){try{var a=document.createElement('a');a.innerHTML='<xyz></xyz>';supportsHtml5Styles=('hidden'in a);supportsUnknownElements=a.childNodes.length==1||(function(){(document.createElement)('a');var frag=document.createDocumentFragment();return(typeof frag.cloneNode=='undefined'||typeof frag.createDocumentFragment=='undefined'||typeof frag.createElement=='undefined');}());}catch(e){supportsHtml5Styles=true;supportsUnknownElements=true;}}());function addStyleSheet(ownerDocument,cssText){var p=ownerDocument.createElement('p'),parent=ownerDocument.getElementsByTagName('head')[0]||ownerDocument.documentElement;p.innerHTML='x<style>'+cssText+'</style>';return parent.insertBefore(p.lastChild,parent.firstChild);}
586function getElements(){var elements=html5.elements;return typeof elements=='string'?elements.split(' '):elements;}
587function addElements(newElements,ownerDocument){var elements=html5.elements;if(typeof elements!='string'){elements=elements.join(' ');}
588if(typeof newElements!='string'){newElements=newElements.join(' ');}
589html5.elements=elements+' '+newElements;shivDocument(ownerDocument);}
590function getExpandoData(ownerDocument){var data=expandoData[ownerDocument[expando]];if(!data){data={};expanID++;ownerDocument[expando]=expanID;expandoData[expanID]=data;}
591return data;}
592function createElement(nodeName,ownerDocument,data){if(!ownerDocument){ownerDocument=document;}
593if(supportsUnknownElements){return ownerDocument.createElement(nodeName);}
594if(!data){data=getExpandoData(ownerDocument);}
595var node;
595if(data.cache[nodeName]){node=data.cache[nodeName].cloneNode();}else if(saveClones.test(nodeName)){node=(data.cache[nodeName]=data.createElem(nodeName)).cloneNode();}else{node=data.createElem(nodeName);}
596return node.canHaveChildren&&!reSkip.test(nodeName)&&!node.tagUrn?data.frag.appendChild(node):node;}
597function createDocumentFragment(ownerDocument,data){if(!ownerDocument){ownerDocument=document;}
598if(supportsUnknownElements){return ownerDocument.createDocumentFragment();}
599data=data||getExpandoData(ownerDocument);var clone=data.frag.cloneNode(),i=0,elems=getElements(),l=elems.length;for(;i<l;i++){clone.createElement(elems[i]);}
600return clone;}
601function shivMethods(ownerDocument,data){if(!data.cache){data.cache={};data.createElem=ownerDocument.createElement;data.createFrag=ownerDocument.createDocumentFragment;data.frag=data.createFrag();}
602ownerDocument.createElement=function(nodeName){if(!html5.shivMethods){return data.createElem(nodeName);}
603return createElement(nodeName,ownerDocument,data);};ownerDocument.createDocumentFragment=Function('h,f','return function(){'+'var n=f.cloneNode(),c=n.createElement;'+'h.shivMethods&&('+
604getElements().join().replace(/[\w\-:]+/g,function(nodeName){data.createElem(nodeName);data.frag.createElement(nodeName);return'c("'+nodeName+'")';})+');return n}')(html5,data.frag);}
605function shivDocument(ownerDocument){if(!ownerDocument){ownerDocument=document;}
606var data=getExpandoData(ownerDocument);if(html5.shivCSS&&!supportsHtml5Styles&&!data.hasCSS){data.hasCSS=!!addStyleSheet(ownerDocument,'article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}'+'mark{background:#FF0;color:#000}'+'template{display:none}');}
607if(!supportsUnknownElements){shivMethods(ownerDocument,data);}
608return ownerDocument;}
609var html5={'elements':options.elements||'abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video','version':version,'shivCSS':(options.shivCSS!==false),'supportsUnknownElements':supportsUnknownElements,'shivMethods':(options.shivMethods!==false),'type':'default','shivDocument':shivDocument,createElement:createElement,createDocumentFragment:createDocumentFragment,addElements:addElements};window.html5=html5;shivDocument(document);if(typeof module=='object'&&module.exports){module.exports=html5;}}(typeof window!=="undefined"?window:this,document));};var omPrefixes='Moz O ms Webkit';var domPrefixes=(ModernizrProto._config.usePrefixes?omPrefixes.toLowerCase().split(' '):[]);ModernizrProto._domPrefixes=domPrefixes;function cssToDOM(name){return name.replace(/([a-z])-([a-z])/g,function(str,m1,m2){return m1+m2.toUpperCase();}).replace(/^-/,'');};var cssomPrefixes=(ModernizrProto._config.usePrefixes?omPrefixes.split(' '):[]);ModernizrProto._cssomPrefixes=cssomPrefixes;var atRule=function(prop){var length=prefixes.length;var cssrule=window.CSSRule;var rule;if(typeof cssrule==='undefined'){return undefined;}
610if(!prop){return false;}
611prop=prop.replace(/^@/,'');rule=prop.replace(/-/g,'_').toUpperCase()+'_RULE';if(rule in cssrule){return'@'+prop;}
612for(var i=0;i<length;i++){var prefix=prefixes[i];var thisRule=prefix.toUpperCase()+'_'+rule;if(thisRule in cssrule){return'@-'+prefix.toLowerCase()+'-'+prop;}}
613return false;};ModernizrProto.atRule=atRule;function contains(str,substr){return!!~(''+str).indexOf(substr);};function createElement(){if(typeof document.createElement!=='function'){return document.createElement(arguments[0]);}else if(isSVG){return document.createElementNS.call(document,'http://www.w3.org/2000/svg',arguments[0]);}else{return document.createElement.apply(document,arguments);}};function getBody(){var body=document.body;if(!body){body=createElement(isSVG?'svg':'body');body.fake=true;}
614return body;};function injectElementWithStyles(rule,callback,nodes,testnames){var mod='modernizr';var style;var ret;var node;var docOverflow;var div=createElement('div');var body=getBody();if(parseInt(nodes,10)){while(nodes--){node=createElement('div');node.id=testnames?testnames[nodes]:mod+(nodes+1);div.appendChild(node);}}
615style=createElement('style');style.type='text/css';style.id='s'+mod;(!body.fake?div:body).appendChild(style);body.appendChild(div);if(style.styleSheet){style.styleSheet.cssText=rule;}else{style.appendChild(document.createTextNode(rule));}
616div.id=mod;if(body.fake){body.style.background='';body.style.overflow='hidden';docOverflow=docElement.style.overflow;docElement.style.overflow='hidden';docElement.appendChild(body);}
617ret=callback(div,rule);
617if(body.fake){body.parentNode.removeChild(body);docElement.style.overflow=docOverflow;docElement.offsetHeight;}else{div.parentNode.removeChild(div);}
618return!!ret;};var testStyles=ModernizrProto.testStyles=injectElementWithStyles;function fnBind(fn,that){return function(){return fn.apply(that,arguments);};};function testDOMProps(props,obj,elem){var item;for(var i in props){if(props[i]in obj){if(elem===false){return props[i];}
619item=obj[props[i]];if(is(item,'function')){return fnBind(item,elem||obj);}
620return item;}}
621return false;};var modElem={elem:createElement('modernizr')};Modernizr._q.push(function(){delete modElem.elem;});var mStyle={style:modElem.elem.style};Modernizr._q.unshift(function(){delete mStyle.style;});function domToCSS(name){return name.replace(/([A-Z])/g,function(str,m1){return'-'+m1.toLowerCase();}).replace(/^ms-/,'-ms-');};function nativeTestProps(props,value){var i=props.length;if('CSS'in window&&'supports'in window.CSS){while(i--){if(window.CSS.supports(domToCSS(props[i]),value)){return true;}}
622return false;}
623else if('CSSSupportsRule'in window){var conditionText=[];while(i--){conditionText.push('('+domToCSS(props[i])+':'+value+')');}
624conditionText=conditionText.join(' or ');return injectElementWithStyles('@supports ('+conditionText+') { #modernizr { position: absolute; } }',function(node){return getComputedStyle(node,null).position=='absolute';});}
625return undefined;};function testProps(props,prefixed,value,skipValueTest){skipValueTest=is(skipValueTest,'undefined')?false:skipValueTest;if(!is(value,'undefined')){var result=nativeTestProps(props,value);if(!is(result,'undefined')){return result;}}
626var afterInit,i,propsLength,prop,before;var elems=['modernizr','tspan','samp'];while(!mStyle.style&&elems.length){afterInit=true;mStyle.modElem=createElement(elems.shift());mStyle.style=mStyle.modElem.style;}
627function cleanElems(){if(afterInit){delete mStyle.style;delete mStyle.modElem;}}
628propsLength=props.length;for(i=0;i<propsLength;i++){prop=props[i];before=mStyle.style[prop];if(contains(prop,'-')){prop=cssToDOM(prop);}
629if(mStyle.style[prop]!==undefined){if(!skipValueTest&&!is(value,'undefined')){try{mStyle.style[prop]=value;}catch(e){}
630if(mStyle.style[prop]!=before){cleanElems();return prefixed=='pfx'?prop:true;}}
631else{cleanElems();return prefixed=='pfx'?prop:true;}}}
632cleanElems();return false;};var testProp=ModernizrProto.testProp=function(prop,value,useValue){return testProps([prop],undefined,value,useValue);};function testPropsAll(prop,prefixed,elem,value,skipValueTest){var ucProp=prop.charAt(0).toUpperCase()+prop.slice(1),props=(prop+' '+cssomPrefixes.join(ucProp+' ')+ucProp).split(' ');if(is(prefixed,'string')||is(prefixed,'undefined')){return testProps(props,prefixed,value,skipValueTest);}else{props=(prop+' '+(domPrefixes).join(ucProp+' ')+ucProp).split(' ');return testDOMProps(props,prefixed,elem);}}
633ModernizrProto.testAllProps=testPropsAll;var prefixed=ModernizrProto.prefixed=function(prop,obj,elem){if(prop.indexOf('@')===0){return atRule(prop);}
634if(prop.indexOf('-')!=-1){prop=cssToDOM(prop);}
635if(!obj){return testPropsAll(prop,'pfx');}else{return testPropsAll(prop,obj,elem);}};function testAllProps(prop,value,skipValueTest){return testPropsAll(prop,undefined,undefined,value,skipValueTest);}
636ModernizrProto.testAllProps=testAllProps;
637/*!
638{
639  "name": "CSS Animations",
640  "property": "cssanimations",
641  "caniuse": "css-animation",
642  "polyfills": ["transformie", "csssandpaper"],
643  "tags": ["css"],
644  "warnings": ["Android < 4 will pass this test, but can only animate a single property at a time"],
645  "notes": [{
646    "name" : "Article: 'Dispelling the Android CSS animation myths'",
647    "href": "https://goo.gl/OGw5Gm"
648  }]
649}
650!*/
651Modernizr.addTest('cssanimations',testAllProps('animationName','a',true));
652/*!
653{
654  "name": "CSS Transitions",
655  "property": "csstransitions",
656  "caniuse": "css-transitions",
657  "tags": ["css"]
658}
659!*/
660Modernizr.addTest('csstransitions',testAllProps('transition','all',true));
661/*!
662{
663  "name": "Touch Events",
664  "property": "touchevents",
665  "caniuse" : "touch",
666  "tags": ["media", "attribute"],
667  "notes": [{
668    "name": "Touch Events spec",
669    "href": "https://www.w3.org/TR/2013/WD-touch-events-20130124/"
670  }],
671  "warnings": [
672    "Indicates if the browser supports the Touch Events spec, and does not necessarily reflect a touchscreen device"
673  ],
674  "knownBugs": [
675    "False-positive on some configurations of Nokia N900",
676    "False-positive on some BlackBerry 6.0 builds – https://github.com/Modernizr/Modernizr/issues/372#issuecomment-3112695"
677  ]
678}
679!*/
680Modernizr.addTest('touchevents',function(){var bool;if(('ontouchstart'in window)||window.DocumentTouch&&document instanceof DocumentTouch){bool=true;}else{var query=['@media (',prefixes.join('touch-enabled),('),'heartz',')','{#modernizr{top:9px;position:absolute}}'].join('');testStyles(query,function(node){bool=node.offsetTop===9;});}
681return bool;});testRunner();setClasses(classes);delete ModernizrProto.addTest;delete ModernizrProto.addAsyncTest;for(var i=0;i<Modernizr._q.length;i++){Modernizr._q[i]();}
682window.Modernizr=Modernizr;;})(window,document);$(function(){ParallaxScroll.init();});var ParallaxScroll={showLogs:false,round:1000,init:function(){this._log("init");if(this._inited){this._log("Already Inited");this._inited=true;return;}
683this._requestAnimationFrame=(function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback,element){window.setTimeout(callback,1000/60);};})();this._onScroll(true);},_inited:false,_properties:['x','y','z','rotateX','rotateY','rotateZ','scaleX','scaleY','scaleZ','scale'],_requestAnimationFrame:null,_log:function(message){if(this.showLogs)console.log("Parallax Scroll / "+message);},_onScroll:function(noSmooth){var scroll=$(document).scrollTop();var windowHeight=$(window).height();this._log("onScroll "+scroll);$("[data-parallax]").each($.proxy(function(index,el){var $el=$(el);var properties=[];var applyProperties=false;var style=$el.data("style");if(style==undefined){style=$el.attr("style")||"";$el.data("style",style);}
684var datas=[$el.data("parallax")];var iData;for(iData=2;;iData++){if($el.data("parallax"+iData)){datas.push($el.data("parallax-"+iData));}
685else{break;}}
686var datasLength=datas.length;for(iData=0;iData<datasLength;iData++){var data=datas[iData];var scrollFrom=data["from-scroll"];if(scrollFrom==undefined)scrollFrom=Math.max(0,$(el).offset().top-windowHeight);scrollFrom=scrollFrom|0;var scrollDistance=data["distance"];var scrollTo=data["to-scroll"];if(scrollDistance==undefined&&scrollTo==undefined)scrollDistance=windowHeight;scrollDistance=Math.max(scrollDistance|0,1);var easing=data["easing"];var easingReturn=data["easing-return"];if(easing==undefined||!$.easing||!$.easing[easing])easing=null;if(easingReturn==undefined||!$.easing||!$.easing[easingReturn])easingReturn=easing;if(easing){var totalTime=data["duration"];if(totalTime==undefined)totalTime=scrollDistance;totalTime=Math.max(totalTime|0,1);var totalTimeReturn=data["duration-return"];if(totalTimeReturn==undefined)totalTimeReturn=totalTime;scrollDistance=1;var currentTime=$el.data("current-time");if(currentTime==undefined)currentTime=0;}
687if(scrollTo==undefined)scrollTo=scrollFrom+scrollDistance;scrollTo=scrollTo|0;var smoothness=data["smoothness"];
687if(smoothness==undefined)smoothness=30;smoothness=smoothness|0;if(noSmooth||smoothness==0)smoothness=1;smoothness=smoothness|0;var scrollCurrent=scroll;scrollCurrent=Math.max(scrollCurrent,scrollFrom);scrollCurrent=Math.min(scrollCurrent,scrollTo);if(easing){if($el.data("sens")==undefined)$el.data("sens","back");if(scrollCurrent>scrollFrom){if($el.data("sens")=="back"){currentTime=1;$el.data("sens","go");}
688else{currentTime++;}}
689if(scrollCurrent<scrollTo){if($el.data("sens")=="go"){currentTime=1;$el.data("sens","back");}
690else{currentTime++;}}
691if(noSmooth)currentTime=totalTime;$el.data("current-time",currentTime);}
692this._properties.map($.proxy(function(prop){var defaultProp=0;var to=data[prop];if(to==undefined)return;if(prop=="scale"||prop=="scaleX"||prop=="scaleY"||prop=="scaleZ"){defaultProp=1;}
693else{to=to|0;}
694var prev=$el.data("_"+prop);if(prev==undefined)prev=defaultProp;var next=((to-defaultProp)*((scrollCurrent-scrollFrom)/(scrollTo-scrollFrom)))+defaultProp;var val=prev+(next-prev)/smoothness;if(easing&&currentTime>0&&currentTime<=totalTime){var from=defaultProp;if($el.data("sens")=="back"){from=to;to=-to;easing=easingReturn;totalTime=totalTimeReturn;}
695val=$.easing[easing](null,currentTime,from,to,totalTime);}
696val=Math.ceil(val*this.round)/this.round;if(val==prev&&next==to)val=to;if(!properties[prop])properties[prop]=0;properties[prop]+=val;if(prev!=properties[prop]){$el.data("_"+prop,properties[prop]);applyProperties=true;}},this));}
697if(applyProperties){if(properties["z"]!=undefined){var perspective=data["perspective"];if(perspective==undefined)perspective=800;var $parent=$el.parent();if(!$parent.data("style"))$parent.data("style",$parent.attr("style")||"");$parent.attr("style","perspective:"+perspective+"px; -webkit-perspective:"+perspective+"px; "+$parent.data("style"));}
698if(properties["scaleX"]==undefined)properties["scaleX"]=1;if(properties["scaleY"]==undefined)properties["scaleY"]=1;if(properties["scaleZ"]==undefined)properties["scaleZ"]=1;if(properties["scale"]!=undefined){properties["scaleX"]*=properties["scale"];properties["scaleY"]*=properties["scale"];properties["scaleZ"]*=properties["scale"];}
699var translate3d="translate3d("+(properties["x"]?properties["x"]:0)+"px, "+(properties["y"]?properties["y"]:0)+"px, "+(properties["z"]?properties["z"]:0)+"px)";var rotate3d="rotateX("+(properties["rotateX"]?properties["rotateX"]:0)+"deg) rotateY("+(properties["rotateY"]?properties["rotateY"]:0)+"deg) rotateZ("+(properties["rotateZ"]?properties["rotateZ"]:0)+"deg)";var scale3d="scaleX("+properties["scaleX"]+") scaleY("+properties["scaleY"]+") scaleZ("+properties["scaleZ"]+")";var cssTransform=translate3d+" "+rotate3d+" "+scale3d+";";this._log(cssTransform);$el.attr("style","transform:"+cssTransform+" -webkit-transform:"+cssTransform+" "+style);}},this));if(window.requestAnimationFrame){window.requestAnimationFrame($.proxy(this._onScroll,this,false));}
700else{this._requestAnimationFrame($.proxy(this._onScroll,this,false));}}};;(function($,window,undefined){'use strict';var Modernizr=window.Modernizr,$body=$('body');$.DLMenu=function(options,element){this.$el=$(element);this._init(options);};$.DLMenu.defaults={animationClasses:{classin:'mk-vm-animate-in-'+mk_vertical_header_anim,classout:'mk-vm-animate-out-'+mk_vertical_header_anim},onLevelClick:function(el,name){return false;},onLinkClick:function(el,ev){return false;}};$.DLMenu.prototype={_init:function(options){this.options=$.extend(true,{},$.DLMenu.defaults,options);this._config();var animEndEventNames={'WebkitAnimation':'webkitAnimationEnd','OAnimation':'oAnimationEnd','msAnimation':'MSAnimationEnd','animation':'animationend'},transEndEventNames={'WebkitTransition':'webkitTransitionEnd','MozTransition':'transitionend','OTransition':'oTransitionEnd','msTransition':'MSTransitionEnd','transition':'transitionend'};this.animEndEventName=animEndEventNames[Modernizr.prefixed('animation')]+'.dlmenu';this.transEndEventName=transEndEventNames[Modernizr.prefixed('transition')]+'.dlmenu';this.animEndEventNameUnsufixed=animEndEventNames[Modernizr.prefixed('animation')];this.transEndEventNameUnsufixed=transEndEventNames[Modernizr.prefixed('transition')];this.supportAnimations=Modernizr.cssanimations;this.supportTransitions=Modernizr.csstransitions;this._initEvents();},_config:function(){this.open=false;this.$trigger=this.$el.children('.mk-vm-trigger');this.$menu=this.$el.children('ul.mk-vm-menu');this.$menuitems=this.$menu.find('li:not(.mk-vm-back)');this.$back=this.$menu.find('li.mk-vm-back');},_initEvents:function(){var self=this;$('.mk-vm-menuwrapper a').on('transitionend',function(event){event.stopPropagation();});this.$menuitems.on('click.dlmenu','a',function(event){var $item=$(event.delegateTarget),$submenu=$(event.currentTarget).siblings('ul.sub-menu');if($submenu.length>0){var $flyin=$submenu.clone().css('opacity',0).insertAfter(self.$menu);var onAnimationEndFn=function(){var $parent=$item.parents('.mk-vm-subviewopen:first');self.$menu.off(self.animEndEventName).removeClass(self.options.animationClasses.classout).addClass('mk-vm-subview');$item.addClass('mk-vm-subviewopen')
701$parent.removeClass('mk-vm-subviewopen').addClass('mk-vm-subview');$flyin.remove();var $txt=$item.find('.meni-item-text');$txt.css('opacity',0.99);setTimeout(function(){$txt.css('opacity',1)},0);};setTimeout(function(){$flyin.addClass(self.options.animationClasses.classin);self.$menu.addClass(self.options.animationClasses.classout);if(self.supportAnimations){self.$menu.on(self.animEndEventName,onAnimationEndFn);}else{onAnimationEndFn.call();}
702self.options.onLevelClick($item,$item.children('a:first').text());});return false;}else{self.options.onLinkClick($item,event);}});this.$back.on('click.dlmenu',function(event){var $this=$(this),$submenu=$this.parents('ul.sub-menu:first'),$item=$submenu.parent(),$flyin=$submenu.clone().insertAfter(self.$menu);var onAnimationEndFn=function(){self.$menu.off(self.animEndEventName).removeClass(self.options.animationClasses.classin);$flyin.remove();};setTimeout(function(){$flyin.addClass(self.options.animationClasses.classout);self.$menu.addClass(self.options.animationClasses.classin);if(self.supportAnimations){self.$menu.on(self.animEndEventName,onAnimationEndFn);}else{onAnimationEndFn.call();}
703$item.removeClass('mk-vm-subviewopen');var $subview=$this.parents('.mk-vm-subview:first');if($subview.is('li')){$subview.addClass('mk-vm-subviewopen');}
704$subview.removeClass('mk-vm-subview');});return false;});},closeMenu:function(){if(this.open){this._closeMenu();}},_closeMenu:function(){var self=this,onTransitionEndFn=function(){self.$menu.off(self.transEndEventName);self._resetMenu();};this.$menu.removeClass('mk-vm-menuopen');this.$menu.addClass('mk-vm-menu-toggle');this.$trigger.removeClass('mk-vm-active');if(this.supportTransitions){this.$menu.on(this.transEndEventName,onTransitionEndFn);}else{onTransitionEndFn.call();}
705this.open=false;},openMenu:function(){if(!this.open){this._openMenu();}},_openMenu:function(){var self=this;$body.off('click').on('click.dlmenu',function(){self._closeMenu();});this.$menu.addClass('mk-vm-menuopen mk-vm-menu-toggle').on(this.transEndEventName,function(){$(this).removeClass('mk-vm-menu-toggle');});this.$trigger.addClass('mk-vm-active');this.open=true;},_resetMenu:function(){this.$menu.removeClass('mk-vm-subview');this.$menuitems.removeClass('mk-vm-subview mk-vm-subviewopen');}};var logError=function(message){if(window.console){window.console.error(message);}};$.fn.dlmenu=function(options){if(typeof options==='string'){var args=Array.prototype.slice.call(arguments,1
705);this.each(function(){var instance=$.data(this,'dlmenu');if(!instance){logError("cannot call methods on dlmenu prior to initialization; "+"attempted to call method '"+options+"'");return;}
706if(!$.isFunction(instance[options])||options.charAt(0)==="_"){logError("no such method '"+options+"' for dlmenu instance");return;}
707instance[options].apply(instance,args);});}else{this.each(function(){var instance=$.data(this,'dlmenu');if(instance){instance._init();}else{instance=$.data(this,'dlmenu',new $.DLMenu(options,this));}});}
708return this;};})(jQuery,window);(function($){'use strict';$('.mk-main-navigation .menu-item-has-children').children('a').attr('aria-haspopup','true');$('.animated-column-item').attr('aria-haspopup','true');})(jQuery);(function($){'use strict';var Accordion=function(el){var that=this,$el=$(el),initial=$el.data('initialindex'),timeout;this.$el=$el;this.$single=$('.'+this.dom.single,$el);this.isExpendable=($el.data('style')==='toggle-action');this.bindClicks();$(window).on('load',function(){if(initial!==-1)that.show(that.$single.eq(initial),true)});$(window).on('resize',function(){clearTimeout(timeout);timeout=setTimeout(that.bindClicks.bind(that),500);});}
709Accordion.prototype.dom={single:'mk-accordion-single',tab:'mk-accordion-tab',pane:'mk-accordion-pane',current:'current',mobileToggle:'mobile-false',mobileBreakPoint:767}
710Accordion.prototype.bindClicks=function(){this.$single.off('click','.'+this.dom.tab);if(!(window.matchMedia('(max-width: '+this.dom.mobileBreakPoint+'px)').matches&&this.$el.hasClass(this.dom.mobileToggle))){this.$single.on('click','.'+this.dom.tab,this.handleEvent.bind(this));var $current=$('.'+this.dom.current,this.$el);if($('.'+this.dom.pane,$current).css('display')==='none')this.show($current);}}
711Accordion.prototype.handleEvent=function(e){e.preventDefault();e.stopPropagation();var $single=$(e.delegateTarget);if(!$single.hasClass(this.dom.current)){this.show($single);}
712else{if(this.isExpendable)this.hide($single);}}
713Accordion.prototype.hide=function($single){$single.removeClass(this.dom.current);
713$('.'+this.dom.pane,$single).slideUp();}
714Accordion.prototype.show=function($single,initial){if(!this.isExpendable){var that=this;this.hide($('.'+this.dom.current,that.$el));}
715$single.addClass(this.dom.current);$('.'+this.dom.pane,$single).slideDown('',function(){if(initial||!$(this).parents('.mk-accordion').hasClass('scroll-click')){return;}
716if(typeof $single.prev()==='undefined'){$single=$single.prev()}
717window.scrollTo({top:$single.offset().top-100,left:0,behavior:'smooth'});});}
718function init(){$('.mk-accordion').each(function(){new Accordion(this);});}
719init();$(window).on('vc_reload',init);})(jQuery);(function($){'use strict';var SkillDiagram=function(el){this.el=el;}
720SkillDiagram.prototype={init:function(){this.cacheElements();this.createDiagram();this.$skills.each(this.createSkill.bind(this));},cacheElements:function(){this.$el=$(this.el);this.$skills=this.$el.find('.mk-meter-arch');this.config=this.$el.data();this.config.radius=this.config.dimension/2;},random:function(l,u){return Math.floor((Math.random()*(u-l+1))+l);},createDiagram:function(){var self=this;$(this.el).find('svg').remove();this.diagram=Raphael(this.el,this.config.dimension,this.config.dimension);this.diagram.setViewBox(0,0,this.config.dimension,this.config.dimension,true);this.diagram.setSize('90%','90%');this.diagram.circle(this.config.radius,this.config.radius,80).attr({stroke:'none',fill:this.config.circleColor});this.title=this.diagram.text(this.config.radius,this.config.radius,this.config.defaultText).attr({font:"22px helvetica",fill:this.config.defaultTextColor}).toFront();this.diagram.customAttributes.arc=function(value,color,rad){var v=3.6*value,alpha=v==360?359.99:v,r=self.random(91,240),a=(r-alpha)*Math.PI/180,b=r*Math.PI/180,sx=self.config.radius+rad*Math.cos(b),sy=self.config.radius-rad*Math.sin(b),x=self.config.radius+rad*Math.cos(a),y=self.config.radius-rad*Math.sin(a),path=[['M',sx,sy],['A',rad,rad,0,+(alpha>180),1,x,y]];return{path:path,stroke:color}}},createSkill:function(id,el){var self=this,$this=$(el),config=$this.data(),radMin=72,radVal=27,newRad=radMin+(radVal*(id+1));var $path=this.diagram.path().attr({'stroke-width':28,arc:[config.percent,config.color,newRad]});$path.mouseover(function(){self.showSkill(this,config.name,config.percent);}).mouseout(function(){self.hideSkill(this)});},showSkill:function(self,name,percent){var $this=self,time=250;if(Raphael.type!='VML')$this.toFront();$this.animate({'stroke-width':50,'opacity':0.9,},800,'elastic');this.title.stop().animate({opacity:0}
720,time,'>',function(){this.attr({text:name+'\n'+percent+'%'}).animate({opacity:1},time,'<');}).toFront();},hideSkill:function(self){var $this=self,self=this,time=250;$this.stop().animate({'stroke-width':28,opacity:1},time*4,'elastic');self.title.stop().animate({opacity:0},time,'>',function(){self.title.attr({text:self.config.defaultText}).animate({opacity:1},time,'<');});}}
721var init=function init(){if(typeof Raphael==='undefined')return;$('.mk-skill-diagram').each(function(){var diagram=new SkillDiagram(this);diagram.init();});}
722init();$(window).on('vc_reload',init);})(jQuery);(function($){'use strict';$('[data-js="tab-delegation"]').each(tabDelegation);function tabDelegation(){var $this=$(this),data=$this.data();if(data.tab)$this.on('click','a',openInTab);}
723function openInTab(e){e.preventDefault();var $this=$(this),url=$this.attr('href');window.open(url,'_blank');}})(jQuery);(function($){'use strict';var init=function init(){var Toggle=function(el){var that=this,$el=$(el);this.$el=$el;$el.on('click',function(){$el.hasClass('active-toggle')?that.close():that.open()});};Toggle.prototype.dom={pane:'mk-toggle-pane',active:'active-toggle'};Toggle.prototype.open=function(){var $this=this.$el;$this.addClass(this.dom.active);$this.siblings('.'+this.dom.pane).slideDown(200);};Toggle.prototype.close=function(){var $this=this.$el;$this.removeClass(this.dom.active);$this.siblings('.'+this.dom.pane).slideUp(200);};var $toggle=$('.mk-toggle-title');if(!$toggle.length)return;$toggle.each(function(){new Toggle(this);});}
724$(window).on('load vc_reload',init);})(jQuery);window.ajaxInit=function(){mk_lightbox_init();mk_click_events();mk_social_share_global();mk_gallery();loop_audio_init();};window.ajaxDelayedInit=function(){mk_flexslider_init();};$(document).ready(function(){mk_lightbox_init();mk_login_form();mk_backgrounds_parallax();mk_flexslider_init();mk_event_countdown();mk_skill_meter();mk_milestone();mk_ajax_search();mk_hover_events();mk_portfolio_ajax();product_loop_add_cart();loop_audio_init();mk_portfolio_widget();mk_contact_form();mk_blog_carousel();mk_header_searchform();mk_click_events();mk_text_typer();mk_tab_slider_func();mkPositionSidebar();$(window).on('load',function(){mk_unfold_footer();mk_tabs();mk_accordion_toggles_tooltip();mk_gallery();mk_theatre_responsive_calculator();mk_tabs_responsive();mk_start_tour_resize();mk_header_social_resize();mk_page_section_social_video_bg();mk_one_page_scroller();setTimeout(function(){mk_mobile_tablet_responsive_calculator();},300);console.log("ready for rock");});var onDebouncedResize=function(){mk_theatre_responsive_calculator();mk_mobile_tablet_responsive_calculator();mk_tabs_responsive();mk_accordion_toggles_tooltip();mk_start_tour_resize();mk_header_social_resize();setTimeout(function(){mk_unfold_footer();},300);};var debounceResize=null;$(window).on("resize",function(){if(debounceResize!==null){clearTimeout(debounceResize);}
725debounceResize=setTimeout(onDebouncedResize,300);});var onDebouncedScroll=function(){mk_skill_meter();mk_milestone();};var debounceScroll=null;$(window).on("scroll",function(){if(debounceScroll!==null){clearTimeout(debounceScroll);}
726debounceScroll=setTimeout(onDebouncedScroll,100);});if(MK.utils.isMobile()){$('body').addClass('no-transform');}});$(window).on("vc_reload",function(){mk_flexslider_init();loop_audio_init();mk_tab_slider_func();mk_event_countdown();videoLoadState();mk_page_section_social_video_bg();mk_hover_events();setTimeout(function(){mkPositionSidebar();},200);});$(document).on('click','.vc_control-btn-delete',function(){$(window).trigger('vc_reload');});$(document).on('sortupdate','.ui-sortable',function(){$(window).trigger('vc_reload');});function mk_text_typer(){"use strict";$('[data-typer-targets]').each(function(){var that=this;MK.core.loadDependencies([MK.core.path.plugins+'jquery.typed.js'],function(){var $this=$(that),$first_string=[$this.text()],$rest_strings=$this.attr('data-typer-targets').split(','),$strings=$first_string.concat($rest_strings);$this.text('');$this.typed({strings:$strings,typeSpeed:30,backDelay:1200,loop:true,loopCount:false,});});});}
727function mk_tab_slider_func(){"use strict";$('.mk-tab-slider').each(function(){var that=this;MK.core.loadDependencies([MK.core.path.plugins+'jquery.swiper.js'],function(){var $this=$(that),id=$this.data('id'),$autoplayTime=$this.data('autoplay'),$content=$('.mk-slider-content');var mk_tab_slider=$this.swiper({wrapperClass:'mk-tab-slider-wrapper',slideClass:'mk-tab-slider-item',calculateHeight:true,speed:500,autoplay:isTest?false:$autoplayTime,onSlideChangeStart:function(){$('.mk-tab-slider-nav[data-id="'+id+'"]').find(".active").removeClass('active')
728$('.mk-tab-slider-nav[data-id="'+id+'"]').find("a").eq(mk_tab_slider.activeIndex).addClass('active')}});function repaintFirefox(){$content.css('display','block');setTimeout(function(){mk_tab_slider.reInit();$content.css('display','table');},100);}
729$('.mk-tab-slider-nav[data-id="'+id+'"]').find("a").first().addClass('active');$('.mk-tab-slider-nav[data-id="'+id+'"]').find("a").on('touchstart mousedown',function(e){e.preventDefault()
730$('.mk-tab-slider-nav[data-id="'+id+'"]').find(".active").removeClass('active')
731$(this).addClass('active')
732mk_tab_slider.swipeTo($(this).index())});$('.mk-tab-slider-nav[data-id="'+id+'"]').find("a").on('click',function(e){e.preventDefault();});repaintFirefox();$(window).on('resize',repaintFirefox);});});}
733function mk_one_page_scroller(){"use strict";$('.mk-edge-one-pager').each(function(){var self=this;MK.core.loadDependencies([MK.core.path.plugins+'jquery.fullpage.js'],function(){var $this=$(self),anchorArr=[];$this.find('.section').each(function(){anchorArr.push($(this).attr('data-title'));});var scrollable=true;$this.find('.section').each(function(){var $section=$(this),$content=$section.find('.edge-slide-content'),sectionHeight=$section.height(),contentHeight=$content.innerHe
733ight();if((contentHeight+30)>$(window).height()){scrollable=false;}});if(!scrollable){$this.find('.section').each(function(){var $section=$(this);$section.addClass('active').css({'padding-bottom':'50px'});});}
734if(scrollable){$this.fullpage({verticalCentered:false,resize:true,slidesColor:['#ccc','#fff'],anchors:anchorArr,scrollingSpeed:600,easing:'easeInQuart',menu:false,navigation:true,navigationPosition:'right',navigationTooltips:false,slidesNavigation:true,slidesNavPosition:'bottom',loopBottom:false,loopTop:false,loopHorizontal:true,autoScrolling:true,scrollOverflow:false,css3:true,paddingTop:0,paddingBottom:0,normalScrollElements:'.mk-header, .mk-responsive-wrap',normalScrollElementTouchThreshold:5,keyboardScrolling:true,touchSensitivity:15,continuousVertical:false,animateAnchor:true,onLeave:function(index,nextIndex,direction){var currentSkin=$this.find('.one-pager-slide').eq(nextIndex-1).attr('data-header-skin');MK.utils.eventManager.publish('firstElSkinChange',currentSkin);$('#fullPage-nav').removeClass('light-skin dark-skin').addClass(currentSkin+'-skin');},afterRender:function(){var $nav=$('#fullPage-nav');setTimeout(function(){var currentSkin=$this.find('.one-pager-slide').eq(0).attr('data-header-skin');MK.utils.eventManager.publish('firstElSkinChange',currentSkin);if($nav.length)$nav.removeClass('light-skin dark-skin').addClass(currentSkin+'-skin');},300);var $slide=$this.find('.section'),headerHeight=MK.val.offsetHeaderHeight(0),windowHeight=$(window).height();$slide.height(windowHeight-headerHeight);if($nav.length){$nav.css({'top':'calc(50% + '+(headerHeight/2)+'px)','marginTop':0});var style=$this.attr('data-pagination');$nav.addClass('pagination-'+style);}
735setTimeout(mk_one_pager_resposnive,1000);},afterResize:function(){var $slide=$this.find('.section'),headerHeight=MK.val.offsetHeaderHeight(0),windowHeight=$(window).height();$slide.height(windowHeight-headerHeight);$('#fullPage-nav').css({'top':'calc(50% + '+(headerHeight/2)+'px)','marginTop':0});setTimeout(mk_one_pager_resposnive,1000);console.log('Reposition pager content.');},});}
736function swipeTo(href,e){href='_'+href;if(!~href.indexOf('#'))return;var section=href.split('#')[1];if(~anchorArr.indexOf(section)){if(typeof e!=='undefined')e.preventDefault();if(scrollable)$.fn.fullpage.moveTo(section);else MK.utils.scrollToAnchor('[data-title="'+section+'"]');}}
737var loc=window.location;if(loc.hash)swipeTo(loc.hash);$(document).on('click','a',function(e){var $link=$(e.currentTarget);swipeTo($link.attr('href'),e);});});});}
738function mk_one_pager_resposnive(){"use strict";$('.mk-edge-one-pager').each(function(){var $pager=$(this),headerHeight=MK.val.offsetHeaderHeight(0),windowHeight=$(window).height()-headerHeight;$pager.find('.one-pager-slide').each(function(){var $slide=$(this),$content=$slide.find('.edge-slide-content');if($slide.hasClass('left_center')||$slide.hasClass('center_center')||$slide.hasClass('right_center')){var contentHeight=$content.height(),distanceFromTop=(windowHeight-contentHeight)/2;distanceFromTop=(distanceFromTop<50)?50+headerHeight:distanceFromTop;$content.css('marginTop',distanceFromTop);}
739if($slide.hasClass('left_bottom')||$slide.hasClass('center_bottom')||$slide.hasClass('right_bottom')){var distanceFromTop=windowHeight-$content.height()-90;$content.css('marginTop',(distanceFromTop));}});var $row=$pager.parents('.vc_row.vc_row-fluid.mk-fullwidth-true');if($row.length>0){var $wrapper=$('.mk-main-wrapper-holder');var $grid=$row.children('.mk-grid');var rowWidth=$row.width();var wrapperWidth=$wrapper.width();if(rowWidth>=wrapperWidth||$grid.length>0){return;}
740var $content=$wrapper.find('.theme-content');var oriPos=$content.position();var oriPadLeft=$content.css('padding-left');var oriLeft=parseInt(oriPos.left)+parseInt(oriPadLeft);if(wrapperWidth<=0||oriLeft<=0){return;}
741$row.css({'width':wrapperWidth,'left':oriLeft*-1,});}});}
742function mk_gallery(){"use strict";$('.mk-gallery .mk-gallery-item.hover-overlay_layer .item-holder').each(function(){var itemHolder=$(this),galleryDesc=itemHolder.find('.gallery-desc');function updatePosition(){var parentHeight=itemHolder.outerHeight(),contentHeight=galleryDesc.innerHeight();var paddingVal=(parentHeight-contentHeight)/2;galleryDesc.css({'top':paddingVal,});}
743updatePosition();$(window).on('resize',function(){setTimeout(function(){updatePosition();},1000);});});if($(window).width()<=1024){$('.mk-gallery .mk-gallery-item').on('click',function(e){var clicks=$(this).data('clicks');if(clicks){$(this).toggleClass('hover-state');}else{$(this).toggleClass('hover-state');}
744$(this).data("clicks",!clicks);});}}
745function mk_theatre_responsive_calculator(){var $laptopContainer=$(".laptop-theatre-slider");var $computerContainer=$(".desktop-theatre-slider");$laptopContainer.each(function(){var $this=$(this),$window=$(window),$windowWidth=$window.outerWidth(),$windowHeight=$window.outerHeight(),$width=$this.outerWidth(),$height=$this.outerHeight(),$paddingTop=38,$paddingRight=143,$paddingBottom=78,$paddingLeft=143;var $player=$this.find('.player-container');if($windowWidth>$width){$player.css({'padding-left':parseInt(($width*$paddingLeft)/1200),'padding-right':parseInt(($width*$paddingRight)/1200),'padding-top':parseInt(($height*$paddingTop)/690),'padding-bottom':parseInt(($height*$paddingBottom)/690),});}});$computerContainer.each(function(){var $this=$(this),$window=$(window),$windowWidth=$window.outerWidth(),$windowHeight=$window.outerHeight(),$width=$this.outerWidth(),$height=$this.outerHeight(),$paddingTop=60,$paddingRight=52,$paddingBottom=290,$paddingLeft=49;var $player=$this.find('.player-container');if($windowWidth>$width){$player.css({'padding-left':parseInt(($width*$paddingLeft)/1200),'padding-right':parseInt(($width*$paddingRight)/1200),'padding-top':parseInt(($height*$paddingTop)/969),'padding-bottom':parseInt(($height*$paddingBottom)/969),});}});}
746function mk_mobile_tablet_responsive_calculator(){var $laptopSlideshow=$(".mk-laptop-slideshow-shortcode");var $lcdSlideshow=$(".mk-lcd-slideshow");if($.exists(".mk-laptop-slideshow-shortcode")){$laptopSlideshow.each(function(){var $this=$(this),$window=$(window),$windowWidth=$window.outerWidth(),$windowHeight=$window.outerHeight(),$width=$this.outerWidth(),$height=$this.outerHeight(),$paddingTop=28,$paddingRight=102,$paddingBottom=52,$paddingLeft=102;var $player=$this.find(".slideshow-container");$player.css({"padding-left":parseInt(($width*$paddingLeft)/836),"padding-right":parseInt(($width*$paddingRight)/836),"padding-top":parseInt(($height*$paddingTop)/481),"padding-bottom":parseInt(($height*$paddingBottom)/481),});});}
747if($.exists(".mk-lcd-slideshow")){$lcdSlideshow.each(function(){var $this=$(this),$window=$(window),$windowWidth=$window.outerWidth(),$windowHeight=$window.outerHeight(),$width=$this.outerWidth(),$height=$this.outerHeight(),$paddingTop=35,$paddingRight=39,$paddingBottom=213,$paddingLeft=36;var $player=$this.find(".slideshow-container");$player.css({"padding-left":parseInt(($width*$paddingLeft)/886),"padding-right":parseInt(($width*$paddingRight)/886),"padding-top":parseInt(($height*$paddingTop)/713),"padding-bottom":parseInt(($height*$paddingBottom)/713),});});}}
748function mk_start_tour_resize(){$('.mk-header-start-tour').each(function(){var $windowWidth=$(document).width(),$this=$(this),$linkWidth=$this.width()+15,$padding=($windowWidth-mk_responsive_nav_width)/2;function updateStartTour(){if($windowWidth<mk_responsive_nav_width){$this.removeClass('hidden');$this.addClass('show');}else{if($padding<$linkWidth){$this.removeClass('show');$this.addClass('hidden');}else{$this.removeClass('hidden');$this.addClass('show');}}}
749setTimeout(function(){updateStartTour();},300);});}
750function mk_header_social_resize(){$('.mk-header-social.header-section').each(function(){var $windowWidth=$(document).width(),$this=$(this),$linkWidth=$this.width()+15,$padding=($windowWidth-mk_responsive_nav_width)/2;function updateStartTour(){if($windowWidth<mk_responsive_nav_width){$this.removeClass('hidden');$this.addClass('show');}else{if($padding<$linkWidth){$this.removeClass('show');$this.addClass('hidden');}else{$this.removeClass('hidden');$this.addClass('show');}}}
751setTimeout(function(){updateStartTour();},300);});}
752function mk_page_section_social_video_bg(){$(".mk-page-section.social-hosted").each(function(){var $container=$(this),$sound=$container.data('sound'),$source=$container.data('source'),player,timer=1000;if($('body').hasClass('.compose-mode')){timer=2000;}
753if($source=='youtube'){var youtube=$container.find('iframe')[0];try{player=new YT.Player(youtube,{events:{'onReady':function(){player.playVideo();if($sound==false){player.mute();}}}});}catch(e){console.log(e);}}
754if($source=='vimeo'){var vimeo=$container.find('iframe')[0];player=$f(vimeo);setTimeout(function(){player.api('play');if($sound===false){player.api('setVolume',0);}},timer);}});}
755function videoLoadState(){$('.mk-section-video video').each(function(){var mkVideo=this;mkVideo.play();this.onload=fire();function fire(){setTimeout(function(){$(mkVideo).animate({'opacity':1},300);},1000);}});}
756videoLoadState();(function($){$(window).on('load vc_reload',initialize);function initialize(){var $gmap=$('.gmap_widget');if($gmap.length&&typeof google!=='undefined')$gmap.each(run);}
757function run(){var $mapHolder=$(this);var myLatlng=new google.maps.LatLng($mapHolder.data('latitude'),$mapHolder.data('longitude'));var mapOptions=$mapHolder.data('options');mapOptions.mapTypeId=google.maps.MapTypeId.ROADMAP;mapOptions.center=myLatlng;var map=new google.maps.Map(this,mapOptions);new google.maps.Marker({position:myLatlng,map:map});}}(jQuery));(function($){$(window).on('load',function(){var $feeds=$('.mk-instagram-feeds');if($feeds.length)$feeds.each(run);});function run(){var options=$(this).data('options');options.template='<a class="featured-image '+options.tmp_col+'-columns" href="{{link}}" target="_'+options.tmp_target+'"><div class="item-holder"><img src="{{image}}" /><div class="image-hover-overlay"></div></div></a>';var feed=new Instafeed(options);feed.run();}}(jQuery));(function($){$(window).on('load',function(){setTimeout(function(){$('.chrome-flipbox-backface-fix').removeClass('chrome-flipbox-backface-fix');},300);});}(jQuery));(function($){$(window).on('load',function(){$('.vc_tta-tab a').on('click',function(){setTimeout(function(){$(window).trigger('resize');},100);});});}(jQuery));(function($){$(window).on('load',function(){$('#mk-vm-menu .menu-item-has-children, #mk-vm-menu .mk-vm-back').on('mouseenter',function(){var $header_inner=$(this).closest('.mk-header-inner'),$header_inner_height=$header_inner.outerHeight(),$header_bg=$header_inner.find('.mk-header-bg'),total_height=0;$header_bg.css('height','100%');setTimeout(function(){$header_inner.children(':visible').each(function(){total_height+=$(this).outerHeight(true);});total_height-=$header_bg.height();if(total_height<$header_inner_height){$header_bg.css('height','100%');}else{$header_bg.css('height',total_height+'px');}},600);});});}(jQuery));(function($){$(window).on('load',function(){if($('.woo-variation-gallery-thumbnail-wrapper').length>0){return;}
758var $variations_form=$('.variations_form');if($variations_form.length){var $varitions_selects=$variations_form.find('.variations').find('.value').find('select');$varitions_selects.on('change',function(){var $all_img_container=$('.mk-product-image .mk-woocommerce-main-image');if($all_img_container.length){$($all_img_container).each(set_lightbox_href);}});$varitions_selects.trigger('change');}});function set_lightbox_href(){var $product_img=$(this).find('img'),$lightbox=$(this).find('.mk-lightbox');setTimeout(function(){var image_url=$product_img.attr('src'),image_suffix=image_url.substr(image_url.lastIndexOf('.')-image_url.length),image_url=image_url.slice(0,image_url.lastIndexOf('-'));$lightbox.attr('href',image_url+image_suffix);},300);}}(jQuery));if(!MK.utils.showBackgroundVideo){(function($){if(MK.utils.isMobile()){$('.mk-section-video video').remove();$('.mk-section-video').addClass('mk-section-video-disable');}}(jQuery));}
759(function($){$(window).on('load',function(){$(document).on('yith-wcan-ajax-filtered yith_infs_added_elem yith-wcan-ajax-reset-filtered',function(){setTimeout(function(){MK.utils.eventManager.publish('ajaxLoaded');MK.core.initAll(document);},1000);});$(document).on('yith-wcan-ajax-filtered yith-wcan-ajax-reset-filtered',function(){setTimeout(function(){$('.woocommerce-ordering').on('change','select.orderby',function(){$(this).closest('form').submit();});},1000);});});}(jQuery));!function(e){var a=window.location,n=a.hash;if(n.length&&n.substring(1).length){var hSuf=n.substring(1).replace(/[!"#$%&'()*+,./:;<=>?@[\]^`{|}~]/g,"\\$&");var r=e(".vc_row, .mk-main-wrapper-holder, .mk-page-section, #comments"),t=r.filter("#"+hSuf);if(!t.length)return;n=n.replace("!loading","");var i=n+"!loading";a.hash=i}}(jQuery);function mkPositionSidebar(){var themeContent=$('.theme-content'),lastFullWidthChild=themeContent.find('.vc_row-full-width').last(),top,sidebar=$('#theme-page > .mk-main-wrapper-holder > .theme-page-wrapper > #mk-sidebar');if(!lastFullWidthChild.length){sidebar.removeAttr('style');return;}
760top=lastFullWidthChild.offset().top-themeContent.offset().top;
760sidebar.css('padding-top',top);}
761function mk_accordion_toggles_tooltip(){"use strict";$('.box-close-btn').on('click',function(){$(this).parent().fadeOut(300);return false;});}
762function mk_portfolio_ajax(){"use strict";var headerHeight=0;if($.exists("#wpadminbar")){headerHeight+=$("#wpadminbar").height();}
763if(!$.exists('.mk-vm-menuwrapper')){headerHeight+=parseInt($('.mk-header').attr('data-sticky-height'));}
764function init(){var $portfolio=$('.portfolio-grid.portfolio-ajax-enabled');if(!$portfolio.length)return;MK.core.loadDependencies([MK.core.path.plugins+'jquery.ajax.portfolio.js'],function(){setTimeout(function(){$portfolio.each(function(){$(this).ajaxPortfolio({extraOffset:headerHeight});});},100);});}
765init();MK.utils.eventManager.subscribe('ajaxLoaded',init);}
766function mk_ajax_search(){"use strict";if(mk_ajax_search_option!=="beside_nav"){return;}
767var minimumLengthToSearch=3;var $mkAjaxSearchInput=$('#mk-ajax-search-input');var security=$mkAjaxSearchInput.siblings('input[name="security"]').val();var wpHttpReferer=$mkAjaxSearchInput.siblings('input[name="_wp_http_referer"]').val();var querySpliter=(ajaxurl.indexOf('?')>-1)?'&':'?';var ul=document.getElementById('mk-nav-search-result');var searchTerm;var requestCounter=0;var responseCounter=0;$mkAjaxSearchInput.on('paste input propertychange',onSearchBoxInput);function onSearchBoxInput(e){var target=e.target||e.srcElement;var newValue=target.value;if(searchTerm!==newValue){searchTerm=newValue;ul.innerHTML='';if(searchTerm.length>=minimumLengthToSearch){$mkAjaxSearchInput.addClass('ajax-searching');requestCounter++;$.getJSON(ajaxurl+querySpliter+'callback=?&action=mk_ajax_search&security='+security+'&_wp_http_referer='+wpHttpReferer+'&term='+searchTerm).done(showSearchResult).fail(showErrorMessage);}}}
768function showSearchResult(data){responseCounter++;if(isCorrectResponse()){if(data.length>0){for(var i=0;i<data.length;i++){var item=data[i];$('<li>').append('<a href="'+item.link+'">'+item.image+'<span class="search-title">'+item.label+'</span><span class="search-date">'+item.date+'</span></a>').appendTo(ul);}}else{ul.innerHTML='<li class="mk-nav-search-result-zero">No Result.</li>';}
769$mkAjaxSearchInput.parent('form').removeClass('ajax-searching').addClass('ajax-search-complete');}}
770function showErrorMessage(){responseCounter++;if(isCorrectResponse()){ul.innerHTML='<li class="mk-nav-search-error-message">Can not search! Please try again.</li>';}}
771function isCorrectResponse(){return requestCounter===responseCounter;}}
772function mk_backgrounds_parallax(){"use strict";if(mk_header_parallax==true){$('.mk-header-bg').addClass('mk-parallax-enabled');}
773if(mk_body_parallax==true){$('body').addClass('mk-parallax-enabled');}
774if(mk_banner_parallax==true){$('.mk-header').addClass('mk-parallax-enabled');}
775if(mk_footer_parallax==true){$('#mk-footer').addClass('mk-parallax-enabled');}
776$('.mk-parallax-enabled').each(function(){var $this=$(this);if(!MK.utils.isMobile()){MK.core.loadDependencies([MK.core.path.plugins+'jquery.parallax.js'],function(){$this.parallax("49%",0.3);});}});$('.mk-fullwidth-slideshow.parallax-slideshow').each(function(){var $this=$(this);if(!MK.utils.isMobile()){MK.core.loadDependencies([MK.core.path.plugins+'jquery.parallax.js'],function(){var speed_factor=$this.attr('data-speedFactor');$this.parallax("49%",speed_factor);});}});}
777function loop_audio_init(){if(!$.exists('.jp-jplayer')){return;}
778$('.jp-jplayer.mk-blog-audio').each(function(){var $this=$(this);var $thisControls=$this.next('.jp-audio');var audio=$this.find('.mk-audio')[0];$thisControls.find('.jp-current-time').text('0:0');$thisControls.find('.jp-volume-bar-value').css('width',25);audio.addEventListener('loadeddata',jsPlayerloaded(audio,$thisControls),false);audio.addEventListener('loadedmetadata',function(){var minutes=Math.floor(audio.duration/60);var seconds=Math.floor(audio.duration%60);if(!isNaN(minutes)){$thisControls.find('.jp-duration').text(minutes+':'+seconds);}
779$thisControls.removeClass('jp-audio-loading').addClass('jp-audio-loaded');});audio.addEventListener('timeupdate',function(){var minutes=Math.floor(audio.currentTime/60);var seconds=Math.floor(audio.currentTime%60);$thisControls.find('.jp-current-time').text(minutes+':'+seconds);var position=((audio.currentTime-0)/(audio.duration-0))*(100-0)+0;
779$thisControls.find('.jp-play-bar').css('width',position+'%');});audio.addEventListener('ended',function(){$thisControls.removeClass('jp-audio-playing');$thisControls.find('.jp-play-bar').css('width',0);$thisControls.find('.jp-current-time').text('0:0');});$thisControls.find('.jp-play').on('click',function(){audio.play();$thisControls.addClass('jp-audio-playing').removeClass('jp-audio-paused');});$thisControls.find('.jp-pause').on('click',function(){audio.pause();$thisControls.addClass('jp-audio-paused').removeClass('jp-audio-playing');});$thisControls.find('.jp-volume-bar svg').on('click',function(){audio.muted=!audio.muted;$(this).parent().toggleClass('jp-muted');});$thisControls.find('.inner-value-adjust').on('click',function(e){var position=e.pageX-$(this).offset().left;var volume=((position-0)/(25-0))*(1-0)+0;audio.volume=volume;$(this).find('.jp-volume-bar-value').css('width',position);});$thisControls.find('.jp-seek-bar').on('click',function(e){var position=e.pageX-$(this).offset().left;var currnetTime=((position-0)/($(this).width()-0))*(audio.duration-0)+0;audio.currentTime=currnetTime;$thisControls.find('.jp-play-bar').css('width',currnetTime+'%');});});function jsPlayerloaded(audio,$thisControls){var minutes=Math.floor(audio.duration/60);var seconds=Math.floor(audio.duration%60);if(!isNaN(minutes)){$thisControls.find('.jp-duration').text(minutes+':'+seconds);}
780$thisControls.removeClass('jp-audio-loading').addClass('jp-audio-loaded');}}
781function mk_blog_carousel(){"use strict";if(!$.exists('.mk-blog-showcase')){return;}
782$('.mk-blog-showcase ul li').each(function(){$(this).mouseenter(function(){$(this).siblings('li').removeClass('mk-blog-first-el').end().addClass('mk-blog-first-el');});});}
783function mk_contact_form(){"use strict";var mkContactForms=document.getElementsByClassName('mk-contact-form');if(mkContactForms.length===0){return;}
784var captchaImageHolder=$('.captcha-image-holder');var activeClassName='is-active';var invalidClassName='mk-invalid';for(var i=0;i<mkContactForms.length;
784i++){initializeForm(mkContactForms[i],activeClassName,invalidClassName);}
785if(captchaImageHolder.length>0){$(window).on('load',initializeCaptchas);}
786function initializeForm(form,activeClassName,invalidClassName){var inputs=getFormInputs(form);for(var i=0;i<inputs.length;i++){markActiveClass(inputs[i]);}
787form.addEventListener('submit',function(e){validateForm(e,invalidClassName);});function setActiveClass(){addClass(this.parentNode,activeClassName);}
788function unsetActiveClass(){if(this.value===''){removeClass(this.parentNode,activeClassName);}}
789function markActiveClass(input){input.addEventListener('focus',setActiveClass);input.addEventListener('blur',unsetActiveClass);}}
790function validateForm(e,invalidClassName){e.preventDefault();var form=e.target||e.srcElement;var inputs=getFormInputs(form);var isValidForm=true;var hasCaptchaField=false;for(var i=0;i<inputs.length;i++){var input=inputs[i];input.value=String(input.value).trim();switch(input.type){case'hidden':break;case'checkbox':isValidForm=validateCheckBox(input,invalidClassName)&&isValidForm;break;case'email':isValidForm=validateEmail(input,invalidClassName)&&isValidForm;break;case'textarea':isValidForm=validateText(input,invalidClassName)&&isValidForm;break;case'text':if(input.dataset.type==='captcha'){isValidForm=validateText(input,invalidClassName)&&isValidForm;hasCaptchaField=true;}else if(input.dataset.type==='email'){isValidForm=validateEmail(input,invalidClassName)&&isValidForm;}else{isValidForm=validateText(input,invalidClassName)&&isValidForm;}
791break;default:console.warn('Implement validation for '+input.name+':'+input.type);break;}}
792if(isValidForm){if(hasCaptchaField){validateCaptcha(form,invalidClassName,sendForm);}else{sendForm(form);}}}
793function validateCaptcha(form,invalidClassName,captchaIsValidCallback){var input=form.querySelectorAll('[data-type="captcha"]')[0];if(input.value.length===0){addClass(input,invalidClassName);return false;}else{window.get.captcha(input.value).done(function(data){loadCaptcha();input.value='';if(data!=='ok'){addClass(input,invalidClassName);addClass(input,'contact-captcha-invalid');removeClass(input,'contact-captcha-valid');input.placeholder=mk_captcha_invalid_txt;}else{removeClass(input,invalidClassName);removeClass(input,'contact-captcha-invalid');addClass(input,'contact-captcha-valid');input.placeholder=mk_captcha_correct_txt;captchaIsValidCallback(form);}});}}
794function sendForm(form){var $form=$(form);var data=getFormData(form);progressButton.loader($form);$.post(ajaxurl,data,function(response){var res=JSON.parse(response);if(res.action_Status){progressButton.success($form);$form.find('.text-input').val('');$form.find('textarea').val('');$form.find('input[type=checkbox]').attr("checked",false);$form.find('.contact-form-message').slideDown().addClass('state-success').html(res.message);setTimeout(function(){$form.find('.contact-form-message').slideUp();},5000);}else{progressButton.error($form);$form.find('.contact-form-message').removeClass('state-success').html(res.message);}});}
795function initializeCaptchas(){var captchaChangeImageButtons=document.getElementsByClassName('captcha-change-image');for(var i=0;i<captchaChangeImageButtons.length;i++){captchaChangeImageButtons[i].addEventListener('click',loadCaptcha);}}
796function loadCaptcha(e){if(e){e.preventDefault();}
797$.post(ajaxurl,{action:'mk_create_captcha_image'},appendImage);function appendImage(captchaImageURL){if(captchaImageHolder.find('.captcha-image').length===0){captchaImageHolder.html('<img src="'+captchaImageURL+'" class="captcha-image" alt="captcha txt">');}else{captchaImageHolder.find('.captcha-image').attr("src",captchaImageURL+'?'+new Date().getTime());}}}
798function getFormInputs(form){return form.querySelectorAll('input,textarea');}
799function getFormData(form){var data={action:'mk_contact_form'};var inputs=getFormInputs(form);for(var i=0;i<inputs.length;i++){data[inputs[i].name]=inputs[i].value;}
800return data;}}
801function mk_login_form(){$('form.mk-login-form').each(function(){var $this=$(this);$this.on('submit',function(e){$('p.mk-login-status',$this).show().text(ajax_login_object.loadingmessage);$.ajax({type:'POST',dataType:'json',url:ajax_login_object.ajaxurl,data:{'action':'ajaxlogin','username':$('#username',$this).val(),'password':$('#password',$this).val(),'security':$('#security',$this).val()},success:function(data){$('p.mk-login-status',$this).text(data.message);if(data.loggedin===true){document.location.href=ajax_login_object.redirecturl;}}});e.preventDefault();});});}
802var progressButton={loader:function(form){MK.core.loadDependencies([MK.core.path.plugins+'tweenmax.js'],function(){var $form=form,progressBar=$form.find(".mk-progress-button .mk-progress-inner"),buttonText=$form.find(".mk-progress-button .mk-progress-button-content"),progressButton=new TimelineLite();progressButton.to(progressBar,0,{width:"100%",scaleX:0,scaleY:1}
802).to(buttonText,.3,{y:-5}).to(progressBar,1.5,{scaleX:1,ease:Power2.easeInOut},"-=.1").to(buttonText,.3,{y:0}).to(progressBar,.3,{scaleY:0});});},success:function(form){MK.core.loadDependencies([MK.core.path.plugins+'tweenmax.js'],function(){var $form=form,buttonText=$form.find(".mk-button .mk-progress-button-content, .mk-contact-button .mk-progress-button-content"),successIcon=$form.find(".mk-progress-button .state-success"),progressButtonSuccess=new TimelineLite({onComplete:hideSuccessMessage});progressButtonSuccess.to(buttonText,.3,{paddingRight:20,ease:Power2.easeInOut},"+=1").to(successIcon,.3,{opacity:1}).to(successIcon,2,{opacity:1});function hideSuccessMessage(){progressButtonSuccess.reverse()}});},error:function(form){MK.core.loadDependencies([MK.core.path.plugins+'tweenmax.js'],function(){var $form=form,buttonText=$form.find(".mk-button .mk-progress-button-content, .mk-contact-button .mk-progress-button-content"),errorIcon=$form.find(".mk-progress-button .state-error"),progressButtonError=new TimelineLite({onComplete:hideErrorMessage});progressButtonError.to(buttonText,.3,{paddingRight:20},"+=1").to(errorIcon,.3,{opacity:1}).to(errorIcon,2,{opacity:1});function hideErrorMessage(){progressButtonError.reverse()}});}};function mk_click_events(){"use strict";var eventtype='click';$(".mk-header-login, .mk-header-signup, .mk-side-dashboard, .mk-quick-contact-wrapper, .mk-dashboard-trigger, .blog-share-container, .news-share-buttons, .main-nav-side-search, #mk-fullscreen-search-wrapper, #fullscreen-navigation").on(eventtype,function(event){if(event.stopPropagation){event.stopPropagation();}else if(window.event){window.event.cancelBubble=true;}});$("html").on(eventtype,function(){$(".mk-login-register, .mk-header-sub
802scribe, #mk-quick-contact, .single-share-buttons, .single-share-box, .blog-social-share, .news-share-buttons, #mk-nav-search-wrapper").fadeOut(300);$('.mk-quick-contact-link').removeClass('quick-contact-active');});$('.mk-fullscreen-search-overlay').on(eventtype,function(){$(this).removeClass('mk-fullscreen-search-overlay-show');});$('.mk-forget-password').on(eventtype,function(){$('.mk-forget-panel').siblings().hide().end().show();});$('.mk-create-account').on(eventtype,function(){$('#mk-register-panel').siblings().hide().end().show();});$('.mk-return-login').on(eventtype,function(){$('#mk-login-panel').siblings().hide().end().show();});$('.mk-quick-contact-link').on(eventtype,function(){var $this=$(this),$quickContact=$('#mk-quick-contact');if(!$this.hasClass('quick-contact-active')){$quickContact.addClass('quick-contact-anim').fadeIn(250);$this.addClass('quick-contact-active');}else{$quickContact.removeClass('quick-contact-anim').fadeOut(100);$this.removeClass('quick-contact-active');}
803return false;});}
804function mk_social_share_global(){"use strict";var eventtype='click';$('.twitter-share').on(eventtype,function(){var $this=$(this),$url=$this.attr('data-url'),$title=$this.attr('data-title');window.open('http://twitter.com/intent/tweet?text='+$title+' '+$url,"twitterWindow","height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0");return false;});$('.pinterest-share').on(eventtype,function(){var $this=$(this),$url=$this.attr('data-url'),$title=$this.attr('data-title'),$image=$this.attr('data-image');window.open('http://pinterest.com/pin/create/button/?url='+$url+'&media='+$image+'&description='+$title,"twitterWindow","height=320,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0");return false;});$('.facebook-share').on(eventtype,function(){var $url=$(this).attr('data-url');window.open('https://www.facebook.com/sharer/sharer.php?u='+$url,"facebookWindow","height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0");return false;});$('.googleplus-share').on(eventtype,function(){var $url=$(this).attr('data-url');window.open('https://plus.google.com/share?url='+$url,"googlePlusWindow","height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0");return false;});$('.linkedin-share').on(eventtype,function(){var $this=$(this),$url=$this.attr('data-url'),$title=$this.attr('data-title'),$desc=$this.attr('data-desc');window.open('http://www.linkedin.com/shareArticle?mini=true&url='+$url+'&title='+$title+'&summary='+$desc,"linkedInWindow","height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0");return false;});}
805function mk_event_countdown(){if($.exists('.mk-event-countdown')){MK.core.loadDependencies([MK.core.path.plugins+'jquery.countdown.js'],function(){$('.mk-event-countdown').each(function(){if(isTest)return;var $this=$(this),$date=$this.attr('data-date'),$offset=$this.attr('data-offset');$this.downCount({date:$date,offset:$offset});});});}}
806function mk_flexslider_init(){var $lcd=$('.mk-lcd-slideshow'),$laptop=$('.mk-laptop-slideshow-shortcode');if($lcd.length)$lcd.find('.mk-lcd-image').fadeIn();if($laptop.length)$laptop.find(".mk-laptop-image").fadeIn();$('.js-flexslider').each(function(){if($(this).parents('.mk-tabs').length||$(this).parents('.mk-accordion').length){$(this).removeData("flexslider");}
807var $this=$(this),$selector=$this.attr('data-selector'),$animation=$this.attr('data-animation'),$easing=$this.attr('data-easing'),$direction=$this.attr('data-direction'),$smoothHeight=$this.attr('data-smoothHeight')=="true"?true:false,$slideshowSpeed=$this.attr('data-slideshowSpeed'),$animationSpeed=$this.attr('data-animationSpeed'),$controlNav=$this.attr('data-controlNav')=="true"?true:false,$directionNav=$this.attr('data-directionNav')=="true"?true:false,$pauseOnHover=$this.attr('data-pauseOnHover')=="true"?true:false,$isCarousel=$this.attr('data-isCarousel')=="true"?true:false;if($selector!==undefined){var $selector_class=$selector;}else{var $selector_class=".mk-flex-slides > li";}
808if($isCarousel===true){var $itemWidth=parseInt($this.attr('data-itemWidth')),$itemMargin=parseInt($this.attr('data-itemMargin')),$minItems=parseInt($this.attr('data-minItems')),$max
808Items=parseInt($this.attr('data-maxItems')),$move=parseInt($this.attr('data-move'));}else{var $itemWidth=$itemMargin=$minItems=$maxItems=$move=0;}
809MK.core.loadDependencies([MK.core.path.plugins+'jquery.flexslider.js'],function(){$this.flexslider({selector:$selector_class,animation:$animation,easing:$easing,direction:$direction,smoothHeight:$smoothHeight,slideshow:!isTest,slideshowSpeed:$slideshowSpeed,animationSpeed:$animationSpeed,controlNav:$controlNav,directionNav:$directionNav,pauseOnHover:$pauseOnHover,prevText:"",nextText:"",itemWidth:$itemWidth,itemMargin:$itemMargin,minItems:$minItems,maxItems:$maxItems,move:$move});});});}
810function mk_header_searchform(){$('.mk-search-trigger').on('click',function(){setTimeout(function(){$('#mk-ajax-search-input').focus();},500);});"use strict";$('.mk-header-toolbar .mk-header-searchform .text-input').on('focus',function(){if($('.mk-header-toolbar .mk-header-searchform .text-input').hasClass('on-close-state')){$('.mk-header-toolbar .mk-header-searchform .text-input').removeClass('on-close-state').animate({'width':'200px'},200);return false;}});$(".mk-header-toolbar .mk-header-searchform").on('click',function(event){if(event.stopPropagation){event.stopPropagation();}else if(window.event){window.event.cancelBubble=true;}});$("html").on('click',function(){$(this).find(".mk-header-toolbar .mk-header-searchform .text-input").addClass('on-close-state').animate({'width':90},300);});if(MK.utils.browser.name==='Edge'){$('#mk-fullscreen-search-input').on('keydown',function(e){if(e.which==13){e.preventDefault();$('#mk-fullscreen-searchform').submit();}});}}
811function mk_hover_events(){"use strict";$('.shopping-cart-header').hover(function(){$(this).find('.mk-shopping-cart-box').stop(true,true).fadeIn(250);},function(){$(this).find('.mk-shopping-cart-box').stop(true,true).delay(500).fadeOut(250);});$('.widget-sub-navigation > ul > li, .widget_nav_menu ul.menu > li, .widget_product_categories ul > .cat-item').each(function(){var $this=$(this),$subLevel=$this.find('ul').first();if($this.hasClass('page_item_has_children')||$this.hasClass('menu-item-has-children')||$this.hasClass('cat-parent')){$this.on('click',function(){if($this.hasClass('toggle-active')){$subLevel.stop(true,true).slideUp(700);$this.removeClass('toggle-active');}else{$subLevel.stop(true,true).slideDown(700);$this.addClass('toggle-active');}});$subLevel.on('click',function(e){e.stopPropagation();});}});var eventtype='click';$('.mk-fullscreen-trigger').on(eventtype,function(e){$('.mk-fullscreen-search-overlay').addClass('mk-fullscreen-search-overlay-show');setTimeout(function(){$("#mk-fullscreen-search-input").focus();},300);e.preventDefault();});$('.mk-fullscreen-close').on(eventtype,function(e){$('.mk-fullscreen-search-overlay').removeClass('mk-fullscreen-search-overlay-show');e.preventDefault();});}
812function mk_unfold_footer(){var $this=$('#mk-footer'),$spacer=$('#mk-footer-unfold-spacer'),$footerHeight=$this.outerHeight();if(!window.matchMedia("(max-width: 767px)").matches){if($this.hasClass('mk-footer-unfold')){$spacer.css('height',$footerHeight);}}else{$spacer.css('height',0);}}
813function mk_lightbox_init(){$(".mk-lightbox").fancybox({loop:true,});$.fancybox.defaults.hash=false;}
814function mk_milestone(){"use strict";if(isTest||!$.exists('.mk-milestone'))return;$('.mk-milestone').each(function(){var $this=$(this),stop_number=$this.find('.milestone-number').attr('data-stop'),animation_speed=parseInt($this.find('.milestone-number').attr('data-speed'));var build=function(){if(!$this.hasClass('scroll-animated')){$this.addClass('scroll-animated');$({countNum:$this.find('.milestone-number').text()}).animate({countNum:stop_number},{duration:animation_speed,easing:'linear',step:function(){$this.find('.milestone-number').text(Math.floor(this.countNum));},complete:function(){$this.find('.milestone-number').text(this.countNum);}});}};if(!MK.utils.isMobile()){MK.utils.scrollSpy(this,{position:'bottom',after:build});}else{build();}});}
815function mk_portfolio_widget(){"use strict";$('.widget_recent_portfolio li').each(function(){$(this).find('.portfolio-widget-thumb').on('hover',function(){$(this).siblings('.portfolio-widget-info').animate({'opacity':1},200);},function(){$(this).siblings('.portfolio-widget-info').animate({'opacity':0},200);});});}
816function mk_skill_meter(){"use strict";
816if($.exists('.mk-skill-meter')){if(!MK.utils.isMobile()){$(".mk-skill-meter .progress-outer").each(function(){var $this=$(this);var build=function(){if(!$this.hasClass('scroll-animated')){$this.addClass('scroll-animated');$this.animate({width:$this.attr("data-width")+'%'},2000);}};MK.utils.scrollSpy(this,{position:'bottom',after:build});});}else{$(".mk-skill-meter .progress-outer").each(function(){var $this=$(this);if(!$this.hasClass('scroll-animated')){$this.addClass('scroll-animated');$this.css({width:$(this).attr("data-width")+'%'});}});}}}
817$("#mc-embedded-subscribe-form").on('submit',function(e){var $this=$(this);e.preventDefault();$.ajax({url:MK.core.path.ajaxUrl,type:"POST",data:{action:"mk_ajax_subscribe",email:$this.find(".mk-subscribe--email").val(),list_id:$this.find(".mk-subscribe--list-id").val(),optin:$this.find(".mk-subscribe--optin").val()},success:function(res){$this.parent().find(".mk-subscribe--message").html($.parseJSON(res).message);}});});function addClass(tag,className){tag.className+=' '+className;}
818function removeClass(tag,className){tag.className=tag.className.replace(new RegExp(className,'g'),'');}
819if(typeof exports!=='undefined'){exports.addClass=addClass;exports.removeClass=removeClass;}
820/*!
821*  javascript-debounce 1.0.0
822*
823*  A lightweight, dependency-free JavaScript module for debouncing functions based on David Walsh's debounce function.
824*
825*  Source code available at: https://github.com/jgarber623/javascript-debounce
826*
827*  (c) 2015-present Jason Garber (http://sixtwothree.org)
828*
829*  javascript-debounce may be freely distributed under the MIT license.
830*/
831(function(root,factory){if(typeof define==="function"&&define.amd){define([],factory);}else if(typeof exports==="object"){module.exports=factory();}else{root.debounce=factory();}})(this,function(){"use strict";return function(callback,delay){var timeout;return function(){var context=this,args=arguments;clearTimeout(timeout);timeout=setTimeout(function(){callback.apply(context,args);},delay);};};});function validateEmail(input,invalidClassName){var value=input.value.trim();if((input.required||value.length>0)&&!/^([a-z0-9_\.\-\+]+)@([\da-z\.\-]+)\.([a-z\.]{2,63})$/i.test(value)){if(invalidClassName){addClass(input,invalidClassName);}
832return false;}else{if(invalidClassName){removeClass(input,invalidClassName);}
833return true;}}
834function validateText(input,invalidClassName){var value=input.value.trim();if(input.required&&value.length===0){if(invalidClassName){addClass(input,invalidClassName);}
835return false;}else{if(invalidClassName){removeClass(input,invalidClassName);}
836return true;}}
837function validateCheckBox(input,invalidClassName){if(input.required&&input.checked==false){if(invalidClassName){addClass(input,invalidClassName);}
838return false;}else{if(invalidClassName){removeClass(input,invalidClassName);}
839return true;}}
840if(typeof exports!=='undefined'){exports.validateEmail=validateEmail;exports.validateText=validateText;}
841(function($){'use strict';var $wrapper=$('.js-bottom-corner-btns');var $contactBtn=$wrapper.find('.js-bottom-corner-btn--contact');var $backBtn=$wrapper.find('.js-bottom-corner-btn--back');var hasContactBtn=$contactBtn.length;var hasBackBtn=$backBtn.length;if(!hasBackBtn)return;function deactivate(){$contactBtn.removeClass('is-active');$backBtn.removeClass('is-active');}
842function activate(){$contactBtn.addClass('is-active');$backBtn.addClass('is-active');}
843MK.utils.scrollSpy(400,{before:deactivate,after:activate});})(jQuery);(function($){'use strict';$('.mk-fullscreen-nav-close, .mk-fullscreen-nav-wrapper, #fullscreen-navigation a').on('click',function(e){$('.mk-fullscreen-nav').removeClass('opened');$('.mk-dashboard-trigger').removeClass('fullscreen-active');$('body').removeClass('fullscreen-nav-opened');var anchor=MK.utils.detectAnchor(this),$this=$(this);if(anchor.length){var href=$this.attr('href').split('#')[0];var url=window.location.href;var isSamePage=url.indexOf(href)!==-1;if(isSamePage){e.preventDefault();}
844MK.utils.scrollToAnchor(anchor);}else if($this.attr('href')==='#'){e.preventDefault();}});$('.fullscreen-navigation-ul .menu-sub-level-arrow').on('click',function(){$(this).siblings('.sub-menu').slideToggle();});}(jQuery));(function($){'use strict';var $navList=$(".main-navigation-ul");var megaMenu=function megaMenu(){$navList.MegaMenu({type:"vertical",delay:200});};$(window).on('load',megaMenu);}(jQuery));(function($){'use strict';
844var onePageNavItem=function onePageNavItem(){var $this=$(this),link=$this.find('a'),anchor=MK.utils.detectAnchor(link);if(!anchor.length)return;$this.removeClass('current-menu-item current-menu-ancestor current-menu-parent');var activeNav=function(state){return function(){$this[state?'addClass':'removeClass']('current-menu-item');window.history.replaceState(undefined,undefined,[state?anchor:' ']);};};MK.utils.scrollSpy($(anchor)[0],{before:activeNav(false),active:activeNav(true),after:activeNav(false),});};var $navItems=$('.js-main-nav').find('li');$(window).on('load',function(){setTimeout(function(){$navItems.each(onePageNavItem);},1000);});}(jQuery));(function($){'use strict';var $window=$(window);var $body=$('body');var $resMenuWrap=$('.mk-responsive-wrap');var $post_nav=$('.mk-post-nav');var $toolbar=$('.mk-header-toolbar');var $resMenuLink=$('.mk-nav-responsive-link');var hasResMenu=($resMenuWrap.length>0);var windowHeight=$window.height();var screenHeight=screen.height;$('.mk-toolbar-resposnive-icon').on('click',function(e){e.preventDefault();console.log('clicked');if($body.hasClass('toolbar-opened')){$body.removeClass('toolbar-opened').addClass('toolbar-closed');$toolbar.hide();}else{$body.removeClass('toolbar-closed').addClass('toolbar-opened');$toolbar.show();}});if(!hasResMenu&&!$('.vc_mk_header'))return;function toggleResMenu(e){e.preventDefault();var $this=$(this);var $headerInner=$this.parents('header');var $resMenu=$headerInner.find('.mk-responsive-wrap');var searchBox=$('.responsive-searchform .text-input');var adminBarHeight=$('#wpadminbar').height();if($body.hasClass('mk-opened-nav')){$this.removeClass('is-active');$body.removeClass('mk-opened-nav').addClass('mk-closed-nav').trigger('mk-closed-nav');$resMenu.hide();$post_nav.removeClass('post-nav-backward');}else{$this.addClass('is-active');$body.removeClass('mk-closed-nav').addClass('mk-opened-nav').trigger('mk-opened-nav');$resMenu.show();$post_nav.addClass('post-nav-backward');}
845if(searchBox.hasClass('input-focused')){searchBox.removeClass('input-focused');}}
846$resMenuLink.each(function(){$(this).on('click',toggleResMenu);});$(window).on('vc_reload',function(){$('.vc_mk_header .mk-nav-responsive-link').each(function(){$(this).on('click',toggleResMenu);});})
847var setResMenuHeight=function(){var height=$window.height()-MK.val.offsetHeaderHeight(0);$resMenuWrap.css('max-height',height);};var isVirtualKeyboard=function(){var currentWindowHeight=$window.height();var currentScreenHeight=screen.height;var searchBox=$('.responsive-searchform .text-input');var searchBoxIsFocused=false;searchBox.on('touchstart touchend',function(e){searchBox.addClass('input-focused');});searchBoxIsFocused=(searchBox.is(':focus')||searchBox.hasClass("input-focused"));if($body.hasClass('mk-opened-nav')&&searchBoxIsFocused&&currentScreenHeight==screenHeight&&currentWindowHeight!=windowHeight){return true;}else{return false;}};var hideResMenu=function hideResMenu(){if(MK.utils.isResponsiveMenuState()){if(!isVirtualKeyboard()){if($body.hasClass('mk-opened-nav')){$resMenuLink.filter('.is-active').trigger('click');}
848$resMenuWrap.hide();}}};$resMenuWrap.on('click','a',hideResMenu);}(jQuery));(function($){'use strict';var $header=$('.mk-header');var hasHeader=($header.length>0);if(!hasHeader&&!$('.vc_mk_header'))return;var $sticky_style=$header.attr('data-header-style');$('.sidedash-navigation-ul > li').each(function(){var $this=$(this);$this.children('ul').siblings('a').after('<span class="mk-nav-arrow mk-nav-sub-closed"><svg class="mk-svg-icon" data-name="mk-moon-arrow-down" data-cacheid="2" style=" height:14px; width: 14px; " xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M512 192l-96-96-160 160-160-160-96 96 256 255.999z"></path></svg></span>');});function toggleSubMenu(e){e.preventDefault();var $this=$(this);if($this.hasClass('mk-nav-sub-closed')){$this.siblings('ul').slideDown(450).end().removeClass('mk-nav-sub-closed').addClass('mk-nav-sub-opened');}else{$this.siblings('ul').slideUp(450).end().removeClass('mk-nav-sub-opened').addClass('mk-nav-sub-closed');}};function toggleFullMenu(e){e.preventDefault();var $this=$(this),$body=$('body'),$fullscreen_box=$('.mk-fullscreen-nav');if($this.hasClass('dashboard-style')){if(!$this.hasClass('dashboard-active')){$this.addClass('dashboard-active');$body.addClass('dashboard-opened');}else{$this.removeClass('dashboard-active');$body.removeClass('dashboard-opened');}}else if($this.hasClass('fullscreen-style')){if(!$this.hasClass('fullscreen-active')){$this.addClass('fullscreen-active');$body.addClass('fullscreen-nav-opened');$fullscreen_box.addClass('opened');}else{$this.removeClass('fullscreen-active');$body.removeClass('fullscreen-nav-opened');$fullscreen_box.removeClass('opened');}}}
849$('.mk-nav-arrow').each(function(){$(this).stop(true).on('click',toggleSubMenu);});$('.mk-dashboard-trigger').each(function(){$(this).on('click',toggleFullMenu);});$(window).on('vc_reload',function(){$('.vc_mk_header .mk-dashboard-trigger').each(function(){$(this).on('click',toggleFullMenu);});$('.vc_mk_header .mk-nav-arrow').each(function(){$(this).stop(true).on('click',toggleSubMenu);});});$('html').on('click',function(){$('body').removeClass('dashboard-opened');$('.mk-dashboard-trigger').removeClass('dashboard-active');});}(jQuery));(function($){'use strict';var $verticalMenu=$('#mk-vm-menu');
849var verticalMenu=function verticalMenu(){if(!$verticalMenu.data('vertical-menu')&&!MK.utils.isResponsiveMenuState()){$verticalMenu.dlmenu();$verticalMenu.data('vertical-menu',true);}};verticalMenu();$(window).on('resize',verticalMenu);}(jQuery));(function($){'use strict';var $lang_item=$('.mk-main-navigation > .main-navigation-ul > .menu-item-language');$lang_item.addClass('no-mega-menu').css('visibility','visible');$('.mk-main-navigation .menu-item-language > a').addClass('menu-item-link');})(jQuery);(function($){'use strict';var $header=$('.mk-header').first();var hasHeader=($header.length>0);if(!hasHeader)return;var $window=$(window);var $document=$(document);var $headerHolder=$header.find('.mk-header-holder');var $paddingWrapper=$header.find('.mk-header-padding-wrapper');var config=$header.data();var isStickyLazy=(config.stickyStyle==='lazy');var isStickyFixed=(config.stickyStyle==='fixed');var isStickySlide=(config.stickyStyle==='slide');function isSticky(){return true;}
850function isColorable(){return config.headerStyle!==4;}
851function changeSkin(e,skin){$header.attr('data-transparent-skin',skin);var contrast=skin==='light'?'dark':'light';$header.addClass(skin+'-skin');$header.removeClass(contrast+'-skin');}
852if(isColorable())MK.utils.eventManager.subscribe('firstElSkinChange',changeSkin);if(isSticky()&&isStickyLazy){if(config.headerStyle!==2){lazySticky();}}
853else if(isSticky()&&isStickyFixed)fixedSticky();else if(isSticky()&&isStickySlide)slideSticky();function lazySticky(){var elClassHidden='header--hidden';var elClassSticky='a-sticky';var wScrollCurrent=0;var wScrollBefore=0;var wScrollDiff=0;var wHeight=0;var dHeight=0;var setSizes=function setSizes(){dHeight=$document.height();wHeight=$window.height();};var onScroll=function onScroll(){wScrollCurrent=MK.val.scroll();wScrollDiff=wScrollBefore-wScrollCurrent;
853if(wScrollCurrent<=0){$headerHolder.removeClass(elClassHidden);$header.removeClass(elClassSticky);$('body').trigger('mk:header-unsticky');}else if(wScrollDiff>0&&$headerHolder.hasClass(elClassHidden)){$headerHolder.removeClass(elClassHidden);$header.addClass(elClassSticky);$('body').trigger('mk:header-sticky');}else if(wScrollDiff<0){if(wScrollCurrent+wHeight>=dHeight&&$headerHolder.hasClass(elClassHidden)){$headerHolder.removeClass(elClassHidden);$header.addClass(elClassSticky);$('body').trigger('mk:header-sticky');}else{$headerHolder.addClass(elClassHidden);$header.removeClass(elClassSticky);$('body').trigger('mk:header-unsticky');}}
854wScrollBefore=wScrollCurrent;};setSizes();onScroll();$window.on('resize',MK.utils.throttle(100,setSizes));$window.on('scroll',MK.utils.throttle(500,onScroll));}
855function fixedSticky(){var sticked=false;var scrollPos;var toggleState=function toggleState(){scrollPos=MK.val.scroll()+MK.val.adminbarHeight();if((scrollPos>MK.val.stickyOffset())&&!MK.utils.isResponsiveMenuState()){if(sticked)return;$header.addClass('a-sticky');sticked=true;$('body').trigger('mk:header-sticky');}else{if(!sticked)return;$header.removeClass('a-sticky');sticked=false;$('body').trigger('mk:header-unsticky');}};toggleState();$window.on('scroll',MK.utils.throttle(100,toggleState));$window.on('resize',MK.utils.throttle(100,toggleState));}
856function slideSticky(){var sticked=false;var onScroll=function onScroll(){if(MK.val.scroll()>MK.val.stickyOffset()){if(sticked)return;$header.addClass('pre-sticky');$paddingWrapper.addClass('enable-padding');setTimeout(function(){$header.addClass('a-sticky');$('body').trigger('mk:header-sticky');},1);sticked=true;}else{if(!sticked)return;$header.removeClass('a-sticky');$header.removeClass('pre-sticky');$paddingWrapper.removeClass('enable-padding');sticked=false;$('body').trigger('mk:header-unsticky');}};onScroll();$window.on('scroll',MK.utils.throttle(100,onScroll));}})(jQuery);(function($){'use strict';var hasTouchscreen=('ontouchstart'in document.documentElement);if(!hasTouchscreen)return;$('.mk-main-navigation .menu-item-has-children').each(normalizeClick);function normalizeClick(){$(this).on('click',handleClick);}
857function handleClick(e){var $this=$(e.currentTarget);var $child=$this.find('> ul');var isVisible=$child.css('display')!=='none';if(!isVisible){e.preventDefault();e.stopPropagation();}}}(jQuery));(function($){'use strict';MK.ui.preloader={dom:{overlay:'.mk-body-loader-overlay'},hide:function hide(){$(this.dom.overlay).fadeOut(600,"easeInOutExpo",function(){$('body').removeClass('loading');});}};})(jQuery);(function($){'use strict';var _ajaxUrl=MK.core.path.ajaxUrl;var _instances={};MK.utils.ajaxLoader=function ajaxLoader(el){var id='#'+($(el).attr('id'));if(typeof _instances[id]!=='undefined')return _instances[id];this.id=id;this.el=el;this.isLoading=false;this.xhrCounter=0;};MK.utils.ajaxLoader.prototype={init:function init(){if(this.initialized&&typeof window.vc_iframe==='undefined'){return;}
858this.createInstance();this.cacheElements();this.initialized=true;},cacheElements:function cacheElements(){this.$container=$(this.el);this.id='#'+(this.$container.attr('id'));this.categories=this.$container.data('loop-categories');this.data={};this.data.action='mk_load_more';this.data.query=this.$container.data('query');this.data.atts=this.$container.data('loop-atts');this.data.loop_iterator=this.$container.data('loop-iterator');this.data.author=this.$container.data('loop-author');this.data.posts=this.$container.data('loop-posts');this.data.safe_load_more=this.$container.siblings('#safe_load_more').val();this.data._wp_http_referer=this.$container.siblings('input[name="_wp_http_referer"]').val();this.data.paged=1;this.data.maxPages=this.$container.data('max-pages');this.data.term=this.categories;},createInstance:function(){_instances[this.id]=this;},load:function load(unique){var self=this;var seq=++this.xhrCounter;this.isLoading=true;if(this.$container.siblings('.mk-ajax-loaded-posts').length){var loaded_posts=this.$container.siblings('.mk-ajax-loaded-posts').attr('data-loop-loaded-posts');if(this.$container.attr('data-pagination-style')!=1){self.data.loaded_posts=loaded_posts.split(',');}}
859return $.when($.ajax({url:_ajaxUrl,type:"POST",data:self.data})).done(function(response){self.onDone(response,unique,seq);});},onDone:function(response,unique,seq){if(seq===this.xhrCounter){var self=this;response=$.parseJSON(response);response.unique=unique;response.id=this.id;if(this.$container.siblings('.mk-ajax-loaded-posts').length){this.$container.siblings('.mk-ajax-loaded-posts').attr('data-loop-loaded-posts',response.loaded_posts);}
860this.setData({maxPages:response.maxPages,found_posts:response.found_posts,loop_iterator:response.i});$(response.content).mk_imagesLoaded().then(function(){MK.utils.eventManager.publish('ajaxLoaded',response);self.isLoading=false;self.initNewComponents();});}else console.log('XHR request nr '+seq+' aborted');},setData:function setData(atts){for(var att in atts){if(att==='term'&&atts[att]==='*')this.data.term='';else this.data[att]=atts[att];}},getData:function getData(att){return this.data[att];},initNewComponents:function initNewComponents(){window.ajaxInit();setTimeout(window.ajaxDelayedInit,1000);MK.core.initAll(this.el);}};}(jQuery));
860MK.component.BackgroundImageSetter=(function($){'use strict';var module={};var $win=$(window),screen=getScreenSize(),orientation=getOrientation(),device=getDevice(),lastOrientation=orientation,lastDevice=device;function run($layers){$layers.filter(function(){return!this.hasAttribute("mk-img-loaded");}).each(applyBg);}
861function applyBg(){var $this=$(this),imgs=$this.data('mk-img-set');$this.css('background-image','url('+module.getImage(imgs)+')');$this.find('.mk-adaptive-image').attr('src',module.getImage(imgs));}
862function handleResize($layers){updateScreenSize();if(hasSwitched()){updateDevice();run($layers);}}
863function getScreenSize(){return{w:$win.width(),h:$win.height()};}
864function getDevice(){if(screen.w>1024)return{class:'desktop',id:2};else if(screen.w>736)return{class:'tablet',id:1};else	return{class:'mobile',id:0};}
865function getOrientation(){if(screen.w>screen.h)return'landscape';else	return'portrait';}
866function updateScreenSize(){screen=getScreenSize();}
867function updateDevice(){if(lastOrientation!==orientation)orientation=lastOrientation;if(lastDevice.id>device.id)device=lastDevice;}
868function hasSwitched(){lastOrientation=getOrientation();lastDevice=getDevice();if(lastOrientation!==orientation||lastDevice.class!==device.class)return true;else return false;}
869module.getImage=function(imgs){if(imgs['responsive']==='false'){return(imgs['landscape']['desktop'])?imgs['landscape']['desktop']:(imgs['landscape']['external']?imgs['landscape']['external']:'');}
870var hasOrientation=!!imgs[orientation];var imgOriented=imgs[(hasOrientation?orientation:Object.keys(imgs)[0])],imgExact=(imgOriented[device.class])?imgOriented[device.class]:(imgOriented['external']?imgOriented['external']:'');return imgExact;}
871module.init=function($layers){run($layers);$layers.attr('mk-img-loaded','');};module.onResize=function($layers){$win.on('resize',MK.utils.throttle(500,function(){handleResize($layers);}));};return module;}(jQuery));jQuery(function($){var init=function init(){$allLayers=$('[data-mk-img-set]').filter(function(index){return!$(this).hasClass('mk-section-image')&&!$(this).hasClass('background-layer')&&!$(this).hasClass('mk-video-section-touch');});;MK.component.BackgroundImageSetter.onResize($allLayers);MK.component.BackgroundImageSetter.init($allLayers);}
872init();$(window).on('vc_reload',init);});(function($){'use strict';var val=MK.val;MK.component.FullHeight=function(el){var $window=$(window),$this=$(el),config=$this.data('fullheight-config'),container=document.getElementById('mk-theme-container'),minH=(config&&config.min)?config.min:0,winH=null,height=null,update_count=0,testing=MK.utils.getUrlParameter('testing'),offset=null;if(MK.utils.browser.name===('IE'||'Edge'))$this.css('height','1px');var update=function(){if(update_count===0){winH=$window.height();offset=$this.offset().top-1;height=Math.max(minH,winH-val.offsetHeaderHeight(offset));$this.css('min-height',height);if(testing!==undefined)
873update_count++;}};var init=function(){update();$window.on('resize',update);$window.on('scroll',update);window.addResizeListener(container,update);};return{init:init};};})(jQuery);(function($){'use strict';var core=MK.core,utils=MK.utils,path=MK.core.path;MK.ui.FullScreenGallery=function(element,settings){this.element=element;this.config=settings;this.isFullScreen=false;};MK.ui.FullScreenGallery.prototype={dom:{fullScrBtn:'.slick-full-screen',exitFullScrBtn:'.slick-minimize',playBtn:'.slick-play',pauseBtn:'.slick-pause',shareBtn:'.slick-share',socialShare:'.slick-social-share',wrapper:'.slick-slider-wrapper',slider:'.slick-slides',slides:'.slick-slide',dots:'.slick-dot',active:'.slick-active',hiddenClass:'is-hidden',dataId:'slick-index'},tpl:{dot:'<div class="slick-dot"></div>',next:'<a href="javascript:;" class="slick-next"> <svg width="33px" height="65px"> <polyline fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points=" 0.5,0.5 32.5,32.5 0.5,64.5"/> </svg> </a>',prev:'<a href="javascript:;" class="slick-prev"> <svg  width="33px" height="65px"> <polyline fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points=" 32.5,64.5 0.5,32.5 32.5,0.5"/> </svg> </a>'},init:function(){var self=this;self.cacheElements();self.getViewportSizes();self.updateSizes('window');self.create();self.updateCacheElements();self.createPagination();self.bindEvents();},create:function(){var self=this;this.slick=this.$gallery.slick({dots:true,arrows:true,infinite:true,speed:300,slidesToShow:1,centerMode:true,centerPadding:'0px',variableWidth:true,autoplay:false,autoplaySpeed:3000,useTransform:true,prevArrow:self.tpl.prev,nextArrow:self.tpl.next,customPaging:function(slider,i){return self.tpl.dot;},});},cacheElements:function(){this.$window=$(window);this.$gallery=$(this.element);this.$fullScrBtn=$(this.dom.fullScrBtn);this.$exitFullScrBtn=$(this.dom.exitFullScrBtn);this.$playBtn=$(this.dom.playBtn);this.$pauseBtn=$(this.dom.pauseBtn);this.$shareBtn=$(this.dom.shareBtn);this.$socialShare=$(this.dom.socialShare);this.$wrapper=$(this.dom.wrapper);this.$slider=$(this.dom.slider);this.$slides=$(this.dom.slides);this.$imgs=this.$slides.find('img');this.$originalImgs=this.$imgs;},updateCacheElements:function(){this.$slides=$(this.dom.slides);this.$imgs=this.$slides.find('img');this.$dots=$(this.dom.dots);},bindEvents:function(){var self=this;this.$fullScrBtn.on('click',this.toFullScreen.bind(this));this.$exitFullScrBtn.on('click',this.exitFullScreen.bind(this));this.$playBtn.on('click',this.play.bind(this));this.$pauseBtn.on('click',this.pause.bind(this));this.$shareBtn.on('click',this.toggleShare.bind(this));this.$socialShare.on('click','a',this.socialShare.bind(this));this.$window.on('resize',this.onResize.bind(this));this.$window.on('keydown',function(e){if(e.keyCode===39)self.$gallery.slick('slickNext');
873if(e.keyCode===37)self.$gallery.slick('slickPrev');});$(document).on('fullscreenchange mozfullscreenchange webkitfullscreenchange msfullcreenchange',this.exitFullScreen.bind(this));},getViewportSizes:function(){this.screen={w:screen.width,h:screen.height};this.window={w:this.$window.width(),h:this.$window.height()};},updateSizes:function(viewport){this.$wrapper.width(this[viewport].w);this.$wrapper.height('100%');this.$imgs.height('100%');},createPagination:function(){var self=this;this.$dots.each(function(i){var img=self.$originalImgs.eq(i).attr('src');$(this).css({'background-image':'url('+img+')'});});},play:function(e){e.preventDefault();this.$playBtn.addClass(this.dom.hiddenClass);this.$pauseBtn.removeClass(this.dom.hiddenClass);$(this.element).slick('slickPlay');},pause:function(e){e.preventDefault();this.$pauseBtn.addClass(this.dom.hiddenClass);this.$playBtn.removeClass(this.dom.hiddenClass);$(this.element).slick('slickPause');},toggleShare:function(e){e.preventDefault();this.$socialShare.toggleClass(this.dom.hiddenClass);},getCurentId:function(){return this.$slides.filter(this.dom.active).data(this.dom.dataId);},toFullScreen:function(){var self=this;this.$fullScrBtn.addClass(this.dom.hiddenClass);this.$exitFullScrBtn.removeClass(this.dom.hiddenClass);this.$slider.hide().fadeIn(500);utils.launchIntoFullscreen(document.documentElement);this.updateSizes('screen');$(this.element).slick('slickGoTo',this.getCurentId(),true);setTimeout(function(){self.isFullScreen=true;},1000);},exitFullScreen:function(){if(this.isFullScreen){this.$exitFullScrBtn.addClass(this.dom.hiddenClass);this.$fullScrBtn.removeClass(this.dom.hiddenClass);utils.exitFullscreen();this.updateSizes('window');$(this.element).slick('slickGoTo',this.getCurentId(),true);this.isFullScreen=false;}},onResize:function(){this.getViewportSizes();this.updateSizes(this.isFullScreen?'screen':'window');$(this.element).slick('refresh');$(this.element).slick('slickGoTo',this.getCurentId(),true);this.updateCacheElements();this.createPagination();},socialShare:function(e){e.preventDefault();var $this=$(e.currentTarget),network=$this.data('network'),id=this.config.id,url=this.config.url,title=this.$wrapper.find('.slick-title').text(),name;var picture=this.$slides.filter(this.dom.active).children().first().attr('src');switch(network){case'facebook':url='https://www.facebook.com/sharer/sharer.php?picture='+picture+'&u='+url+'#id='+id;name='Facebook Share';break;case'twitter':url='http://twitter.com/intent/tweet?text='+url+'#id='+id;name='Twitter Share';break;case'pinterest':url='http://pinterest.com/pin/create/bookmarklet/?media='+picture+'&url='+url+'&is_video=false&description='+title;name='Pinterest Share';break;}
874window.open(url,name,"height=380 ,width=660, resizable=0, toolbar=0, menubar=0, status=0, location=0, scrollbars=0");}};})(jQuery);(function($){'use strict';MK.component.Grid=function(el){var $container=$(el);var config=$container.data('grid-config');var isSlideshow=$container.closest('[data-mk-component="SwipeSlideshow"]').length;var miniGridConfig={container:el,item:config.item+':not(.is-hidden)',gutter:0};var init=function init(){if(isSlideshow)return;MK.core.loadDependencies([MK.core.path.plugins+'minigrid.js'],create);};var prepareForGrid=function prepareForGrid(){var $item=$(this);var isHidden=($item.css('display')==='none');if(isHidden)$item.addClass('is-hidden');else $item.removeClass('is-hidden');};var create=function create(){var timer=null;function draw(){$container.find(config.item).each(prepareForGrid);minigrid(miniGridConfig);}
875function redraw(){if(timer)clearTimeout(timer);timer=setTimeout(draw,100);}
876draw();$(window).off('resize',redraw);$(window).on('resize',redraw);MK.utils.eventManager.subscribe('item-expanded',redraw);MK.utils.eventManager.subscribe('ajaxLoaded',redraw);MK.utils.eventManager.subscribe('staticFilter',redraw);};return{init:init};};})(jQuery);(function($){'use strict';var families=[['awesome-icons','mk-icon-'],['icomoon','mk-moon-'],['pe-line-icons','mk-li-'],['theme-icons','mk-jupiter-icon-']];var extend={'awesome-icons':[],'icomoon':[],'pe-line-icons':[],'theme-icons':[]};var _cache={};var _cacheId=0;var _config=[];var _roundCount=0;var _iconMap={};var getIconsSprite=(function(){var $icons=null;var iterator=0;function run(callback){var config=encodeURIComponent(JSON.stringify(_config));$.ajax({url:MK.core.path.ajaxUrl,method:'POST',data:{action:'mk_get_icon',iterator:iterator++,config:config},success:function(sprite){callback(sprite,$icons);_config=[];_iconMap={};$icons=null;},error:function(err){console.log('Icon load problem');}});}
877return function(callback,$els,count){if(!$icons)$icons=$els;else $icons.add($els);if(!count)run(callback);};}());$(window).on('load',function(){setTimeout(function(){createAll(document);if($('.mk-header').length)createAll('.mk-header');if($('.js-flexslider, .mk-flexslider').length)createAll('.js-flexslider, .mk-flexslider');if($('.mk-accordion').length)createAll('.mk-accordion');},1000);});MK.utils.eventManager.subscribe('ajaxLoaded',function(){setTimeout(createAll,100,'.js-loop');});MK.utils.eventManager.subscribe('ajax-preview',function(){setTimeout(createAll,100,'.ajax-container');});MK.utils.eventManager.subscribe('photoAlbum-open',function(){setTimeout(createAll,100,'.gallery-share');});MK.utils.eventManager.subscribe('quickViewOpen',function(){setTimeout(createAll,300,'.mk-modal-content');});function createAll(scope){for(var i=0,l=families.length;i<l;i++){var family=families[i][0];var prefix=families[i][1];var $icons=getIcons(family,prefix,scope);if($icons.length){_roundCount++;setTimeout(createIcons,0,$icons,family,prefix);}}}
878function getIcons(family,prefix,scope){var $scope=$(scope);var $icons=$scope.find('[class*='+prefix+']');var extraClassNames=extend[family];if(!extraClassNames)return $icons;
878extraClassNames.forEach(function(className){var $icon=$scope.find(className);$icons=$icons.add($icon);});return $icons;}
879function createIcons($icons,family,prefix,i,unicode){var id=i||0;var icon=$icons[id];if(!icon){_roundCount--;getIconsSprite(insertIcons,$icons,_roundCount,_config);return;}
880var css=getComputedStyle(icon,':before');var classAttr=icon.getAttribute('class');var name=(classAttr)?matchClass(classAttr.split(' '),prefix):false;var h=getComputedStyle(icon).fontSize;var config=createConfig(css,name,family,unicode,h);var cache=JSON.stringify(config);if(!config){}else if(_cache[cache]){if(typeof _iconMap[cache]==='undefined')_iconMap[cache]=[$icons.eq(id)];else _iconMap[cache].push($icons.eq(id));}else{if(typeof _iconMap[cache]==='undefined')_iconMap[cache]=[$icons.eq(id)];else _iconMap[cache].push($icons.eq(id));_cache[cache]=_cacheId.toString();config.id=_cacheId;_config.push(config);_cacheId++;}
881createIcons($icons,family,prefix,++id);}
882function insertIcons(sprite,$icons){var $sprite=$(sprite);var $svgs=$sprite.find('svg');var idMap=invert(_cache);$sprite.each(function(){var $svg=$(this);var id=$svg.attr('data-cacheid');var configKey=idMap[id];_cache[configKey]=this;});Object.keys(_iconMap).forEach(function(cacheKey){_iconMap[cacheKey].forEach(function($icons){$icons.each(function(){var $svg=$(_cache[cacheKey]).clone();var $icon=$(this);function remove(){if($icon.parents('.pricing-features'))return;$icon.not('.mk-jupiter-icon-xing').not('.mk-jupiter-icon-square-xing').not('.mk-jupiter-icon-simple-xing').find('.mk-svg-icon').not('[data-name="mk-moon-zoom-in"]').remove();}
883if($svg.length)remove();if(!$icon.find('svg').length){if($icon.parents('.widget ul').length)$icon.prepend($svg);else $icon.append($svg);}});});});MK.utils.eventManager.publish('iconsInsert');}
884function createConfig(css,name,family,unicode,height){var hasGradient=checkGradient(css);var hasDirection=extractGradient('direction',css.background);var config={family:family,unicode:(unicode)?unicode:decodeUnicode(css.content),name:name,gradient_type:hasGradient?extractGradient('type',css.background):false,gradient_start:hasGradient?extractGradient('start',css.background):false,gradient_stop:hasGradient?extractGradient('stop',css.background):false,gradient_direction:hasDirection?extractGradient('direction',css.background).replace(' ','-'):false,height:height};if(!config.name&&!config.unicode)return false;else return config;}
885function matchClass(classes,prefix){for(var i=0,l=classes.length;i<l;i++){if(classes[i].indexOf(prefix)!==-1)return classes[i];}}
886function checkGradient(css){var bg=css.background;if(bg.indexOf('radial')!==-1||bg.indexOf('linear')!==-1)return bg;else return false;}
887function extractGradient(attr,grad){if(!grad)return false;var isRadial=grad.indexOf('radial')!==-1;var isLinear=grad.indexOf('linear')!==-1;var hasDirection=grad.indexOf('(to')!==-1;var f,t;if(attr==='type'){if(isRadial)return'radial';if(isLinear)return'linear';}else if(attr==='start'){f=getStrPosition(grad,'rgb(',1);t=getStrPosition(grad,'0%',1);}else if(attr==='stop'){f=getStrPosition(grad,'rgb(',2);t=getStrPosition(grad,'100%',1);}else if(attr==='direction'){if(!hasDirection)return false;f=getStrPosition(grad,'(to',1)+4;t=getStrPosition(grad,', rgb(',1);}else{return false;}
888return grad.slice(f,t);}
889function getStrPosition(str,m,i){return str.split(m,i).join(m).length;}
890function decodeUnicode(content){if(content&&content!=='none')return escape(content).replace(/%22/g,'').replace('%u','').toLowerCase();else return false;}
891function invert(obj){var new_obj={};for(var prop in obj){if(obj.hasOwnProperty(prop)){new_obj[obj[prop]]=prop;}}
892return new_obj;}}(jQuery));
893/*!
894 * imagesLoaded PACKAGED v4.1.1
895 * JavaScript is all like "You images are done yet or what?"
896 * MIT License
897 */
898!function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var r=this._onceEvents&&this._onceEvents[t];o;){var s=r&&r[o];s&&(this.off(t,o),delete r[o]),o.apply(this,e),n+=s?0:1,o=i[n]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}(window,function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t){var e=[];if(Array.isArray(t))e=t;else if("number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e}function o(t,e,r){return this instanceof o?("string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=n(t),this.options=i({},this.options),"function"==typeof e?r=e:i(this.options,e),r&&this.on("always",r),this.getImages(),h&&(this.jqDeferred=new h.Deferred),void setTimeout(function(){this.check()}.bind(this))):new o(t,e,r)}function r(t){this.img=t}function s(t,e){this.url=t,this.element=e,this.img=new Image}var h=t.jQuery,a=t.console;o.prototype=Object.create(e.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),this.options.background===!0&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&d[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=t.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var d={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,t),n=i.exec(e.backgroundImage)}},o.prototype.addImage=function(t){var e=new r(t);this.images.push(e)},o.prototype.addBackground=function(t,e){var i=new s(t,e);this.images.push(i)},o.prototype.check=function(){function t(t,i,n){setTimeout(function(){e.progress(t,i,n)})}var e=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEac
898h(function(e){e.once("progress",t),e.check()}):void this.complete()},o.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&&a&&a.log("progress: "+i,t,e)},o.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},r.prototype=Object.create(e.prototype),r.prototype.check=function(){var t=this.getIsImageComplete();return t?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},r.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},r.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var t=this.getIsImageComplete();t&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},o.makeJQueryPlugin=function(e){e=e||t.jQuery,e&&(h=e,h.fn.imagesLoaded=function(t,e){var i=new o(this,t,e);return i.jqDeferred.promise(h(this))})},o.makeJQueryPlugin(),o});(function($,window){'use strict';var scrollY=MK.val.scroll;var dynamicHeight=MK.val.dynamicHeight;var $window=$(window);var $containers=$('.js-loop');$containers.each(pagination);$window.on('vc_reload',function(){$('.js-loop').each(pagination);});function pagination(){var unique=Date.now();var $container=$(this);var $superContainer=$container.parent();var $loadBtn=$container.siblings('.js-loadmore-holder').find('.js-loadmore-button');var $loadScroll=$('.js-load-more-scroll');var style=$container.data('pagination-style');var maxPages=$container.data('max-pages');var id='#'+($container.attr('id'));var ajaxLoader=new MK.utils.ajaxLoader(id);var isLoadBtn=(style===2);var isInfiniteScroll=(style===3);var scrollCheckPoint=null;var isHandlerBinded=false;ajaxLoader.init();init();function init(){MK.utils.eventManager.subscribe('ajaxLoaded',onLoad);bindHandlers();if(isInfiniteScroll)scrollCheckPoint=spyScrollCheckPoint();$window.on('vc_reload',function(){$window.off('scroll',handleScroll);});}
899function bindHandlers(){if(isLoadBtn)$loadBtn.on('click',handleClick);if(isInfiniteScroll)$window.on('scroll',handleScroll);isHandlerBinded=true;}
900function unbindHandlers(){if(isLoadBtn)$loadBtn.off('click',handleClick);if(isInfiniteScroll)$window.off('scroll',handleScroll);isHandlerBinded=false;}
901function handleClick(e){e.preventDefault();if(!ajaxLoader.isLoading)loadMore();}
902function handleScroll(){if((scrollY()>scrollCheckPoint())&&!ajaxLoader.isLoading)loadMore();}
903function loadMore(){loadingIndicatorStart();var page=ajaxLoader.getData('paged');ajaxLoader.setData({paged:++page});ajaxLoader.load(unique);}
904function onLoad(e,response){if(typeof response!=='undefined'&&response.id===id){if(ajaxLoader.getData('found_posts')<=0&&ajaxLoader.getData('paged')>=ajaxLoader.getData('maxPages'))loadingIndicatorHide();else loadingIndicatorShow();if(response.unique===unique)$container.append(response.content);loadingIndicatorStop();}}
905function loadingIndicatorStart(){if(isLoadBtn)$loadBtn.addClass('is-active');else if(isInfiniteScroll)MK.ui.loader.add('.js-load-more-scroll');}
906function loadingIndicatorStop(){if(isLoadBtn)$loadBtn.removeClass('is-active');else if(isInfiniteScroll)MK.ui.loader.remove('.js-load-more-scroll');}
907function loadingIndicatorShow(){if(isHandlerBinded)return;if(isLoadBtn)$loadBtn.show();else if(isInfiniteScroll)$loadScroll.show();bindHandlers();}
908function loadingIndicatorHide(){if(!isHandlerBinded)return;if(isLoadBtn)$loadBtn.hide();else if(isInfiniteScroll)$loadScroll.hide();unbindHandlers();}
909function spyScrollCheckPoint(){var containerO=0;var containerH=dynamicHeight($superContainer);var winH=dynamicHeight(window);var setVals=function(){containerO=$superContainer.offset().top;};setVals();$window.on('resize',function(){requestAnimationFrame(setVals);});return function(){return(containerH()+containerO)-(winH()*2);};}}})(jQuery,window);(function($){'use strict';function isHidden(el){return(el.offsetParent===null);}
910MK.component.Masonry=function(el){var $window=$(window);var $container=$(el);var config=$container.data('masonry-config');var $masonryItems=$container.find(config.item);var cols=config.cols||8;var $filterItems=null;var wall=null;var init=function init(){MK.core.loadDependencies([MK.core.path.plugins+'freewall.js'],onDepLoad);};var onDepLoad=function onDepLoad(){masonry();$window.on('resize',onResize);MK.utils.eventManager.subscribe('ajaxLoaded',onPostAddition);MK.utils.eventManager.subscribe('staticFilter',resize);};var masonry=function masonry(){if(isHidden(el))return;var newCols;if(window.matchMedia('(max-width:600px)').matches)newCols=2;else if(window.matchMedia('(max-width:850px)').matches)newCols=4;else newCols=cols;var colW=$container.width()/newCols;wall=new Freewall(config.container);wall.reset({selector:config.item+':not(.is-hidden)',gutterX:0,gutterY:0,cellW:colW,cellH:colW});wall.fillHoles();wall.fitWidth();$masonryItems.each(function(){$(this).data('loaded',true);});};var destroyContainer=function destroyContainer(){$container.removeAttr('style').removeData('wall-height').removeData('wall-width').removeData('min-width').removeData('total-col').removeData('total-row').removeAttr('data-wall-height').removeAttr('data-wall-width').removeAttr('data-min-width').removeAttr('data-total-col').removeAttr('data-total-row');};var destroyItem=function destroyItem(){var $item=$(this);$item.removeAttr('style').removeData('delay').removeData('height').removeData('width').removeData('state').removeAttr('data-delay').removeAttr('data-height').removeAttr('data-width').removeAttr('data-state');};var destroyAll=function destroyAll(){if(!wall)return;wall.destroy();destroyContainer();$masonryItems.each(destroyItem);};var onResize=function onResize(){requestAnimationFrame(resize);};var refresh=function refresh(){if(!wall)return;setTimeout(wall.fitWidth.bind(wall),5);};var resize=function resize(){destroyAll();masonry();};var onPostAddition=function onPostAddition(){$masonryItems=$container.find(config.item);$masonryItems.each(function(){var $item=$(this),isLoaded=$item.data('loaded');if(!isLoaded)$item.css('visibility','hidden');});$container.mk_imagesLoaded().then(function(){destroyAll();masonry();});};return{init:init};};}(jQuery));(function($){'use strict';MK.component.Pagination=function(el){this.el=el;};MK.component.Pagination.prototype={init:function init(){this.cacheElements();this.bindEvents();this.onInitLoad();},cacheElements:function cacheElements(){this.lastId=1;this.unique=Date.now();this.$pagination=$(this.el);this.$container=this.$pagination.prev('.js-loop');this.$pageLinks=this.$pagination.find('.js-pagination-page');this.$nextLink=this.$pagination.find('.js-pagination-next');this.$prevLink=this.$pagination.find('.js-pagination-prev');this.$current=this.$pagination.find('.js-current-page');this.$maxPages=this.$pagination.find('.pagination-max-pages');this.containerId='#'+this.$container.attr('id');this.pagePathname=window.location.pathname;this.pageSearch=window.location.search;this.popState=false;this.ajaxLoader=new MK.utils.ajaxLoader('#'+this.$container.attr('id'));this.ajaxLoader.init();},bindEvents:function bindEvents(){this.$pageLinks.on('click',this.pageClick.bind(this));this.$nextLink.on('click',this.nextClick.bind(this));this.$prevLink.on('click',this.prevClick.bind(this));MK.utils.eventManager.subscribe('ajaxLoaded',this.onLoad.bind(this));},pageClick:function pageClick(e){e.preventDefault();var $this=$(e.currentTarget);var id=parseFloat($this.attr('data-page-id'));if(id>this.ajaxLoader.getData('maxPages')||id<1)return;this.load(id,$this);this.updatePagedNumUrl(id);},nextClick:function nextClick(e){e.preventDefault();if(this.ajaxLoader.getData('paged')===this.ajaxLoader.getData('maxPages'))return;this.load(++this.lastId,$(e.currentTarget));this.updatePagedNumUrl(this.lastId);},prevClick:function prevClick(e){e.preventDefault();if(this.ajaxLoader.getData('paged')===1)return;this.load(--this.lastId,$(e.currentTarget));this.updatePagedNumUrl(this.lastId);},load:function load(id,$el){this.lastId=id;this.ajaxLoader.setData({paged:id});this.ajaxLoader.load(this.unique);this.removeIndicator();MK.ui.loader.add($el);},onLoad:function success(e,response){if(typeof response!=='undefined'&&response.id===this.containerId){this.updatePagination();this.lastId=this.ajaxLoader.getData('paged');if(response.unique===this.unique){this.removeIndicator();this.scrollPage();this.$container.html(response.content);}}},updatePagination:function updatePagination(){var self=this;var isFirst=(this.ajaxLoader.getData('paged')===1);var isLast=(this.ajaxLoader.getData('paged')===this.ajaxLoader.getData('maxPages'));if(isFirst)this.$prevLink.addClass('is-vis-hidden');else this.$prevLink.removeClass('is-vis-hidden');if(isLast)this.$nextLink.addClass('is-vis-hidden');else this.$nextLink.removeClass('is-vis-hidden');this.$current.html(this.ajaxLoader.getData('paged'));this.$maxPages.html(this.ajaxLoader.getData('maxPages'));var displayItems=10;var centerAt=displayItems/2;if(this.ajaxLoader.getData('maxPages')>displayItems){this.$pageLinks.each(function(i){var id=self.lastId-centerAt;id=Math.max(id,1);id=Math.min(id,self.ajaxLoader.getData('maxPages')-displayItems+1);id=id+i;$(this).html(id).attr('data-page-id',id).show();if(i===0&&id>
9101)$(this).html('...');if(i===displayItems-1&&id<self.ajaxLoader.getData('maxPages'))$(this).html('...');});}else{this.$pageLinks.each(function(i){var $link=$(this);var id=i+1;$link.html(id).attr('data-page-id',id);if(self.ajaxLoader.getData('maxPages')===1){self.$pageLinks.hide();}else{if(i>self.ajaxLoader.getData('maxPages')-1)$link.hide();else $link.show();}});}
911this.$pageLinks.filter('[data-page-id="'+this.ajaxLoader.getData('paged')+'"]').addClass('current-page').siblings().removeClass('current-page');},scrollPage:function scrollPage(){var containerOffset=this.$container.offset().top;var offset=containerOffset-MK.val.offsetHeaderHeight(containerOffset)-20;this.$container.find('a:first').focus()
912MK.utils.scrollTo(offset);},removeIndicator:function removeIndicator(){MK.ui.loader.remove('.js-pagination-page, .js-pagination-next, .js-pagination-prev');},onInitLoad:function onInitLoad(){var initPagedID=this.$pagination.data('init-pagination');if(initPagedID&&initPagedID>1){this.$current.html(initPagedID);this.$pageLinks.filter('[data-page-id="'+initPagedID+'"]').addClass('current-page').siblings().removeClass('current-page');}
913if('onpopstate'in window){var thisPop=this;window.onpopstate=function(event){var id=1;if(typeof event.state==='object'&&event.state){var state=event.state;if(state.hasOwnProperty('MkPagination')){var currentState=state.MkPagination;if(currentState.hasOwnProperty('paged')){id=parseFloat(currentState.paged);}}}else{id=parseFloat(thisPop.getURLPagedID());}
914thisPop.popState=true;thisPop.$pageLinks.filter('[data-page-id="'+id+'"]').trigger('click');}}},updatePagedNumUrl:function updatePagedNumUrl(id){if('history'in window&&'pushState'in history&&id&&!this.popState){var fullPage=this.pagePathname+this.pageSearch;var isQueryPage=false;var newPage='page/'+id+'/';var expPage=/page\/\d+\/?/;var result=this.pagePathname.match(/\/page\/\d+/);var isPagedExist=(result)?true:false;if(!isPagedExist&&this.pageSearch){isQueryPage=this.pageSearch.match(/page\=\d+/);if(isQueryPage){newPage='page='+id;expPage=/page\=\d+/;}}
915if(id===1){newPage='';if(isQueryPage){expPage=(this.pageSearch.match(/\&+/))?/page\=\d+\&?/:/\?page\=\d+\&?/;}}
916var newURL=this.pagePathname+newPage+this.pageSearch;if(fullPage.match(expPage)){newURL=fullPage.replace(expPage,newPage);}
917var historyState={MkPagination:{url:newURL,paged:id}}
918this.popState=false;window.history.pushState(historyState,null,newURL);}
919this.popState=false;},getURLPagedID:function getURLPagedID(){var pathname=window.location.pathname;var search=window.location.search;var pagedId=1;var result='';var isPagedExist=false;result=pathname.match(/\/page\/(\d+)/);if(result){isPagedExist=true;pagedId=(result.hasOwnProperty(1))?result[1]:1;}
920if(!isPagedExist&&search){result=search.match(/page\=(\d+)/);if(result){isPagedExist=true;pagedId=(result.hasOwnProperty(1))?result[1]:1;}}
921return pagedId;}};}(jQuery));(function($){'use strict';var val=MK.val,utils=MK.utils;MK.component.Parallax=function(el){var self=this,$this=$(el),obj=$this[0],$window=$(window),container=document.getElementById('mk-theme-container'),config=$this.data('parallax-config'),$holder=$(config.holder),headerHeight=null,offset=null,elHeight=null,ticking=false,isMobile=null;var clientRect=null;var update=function(){obj.style.transform=null;obj.style.top=null;obj.style.bottom=null;isMobile=MK.utils.isMobile();if(isMobile){$this.css('height','');return;}
922clientRect=$this[0].getBoundingClientRect();offset=clientRect.top;elHeight=clientRect.height;headerHeight=val.offsetHeaderHeight(offset);offset=offset-headerHeight+val.scroll();setPosition();setSize();};var h=0,winH=0,proportion=0,height=0;var setSize=function(){$this.css('height','');winH=$window.height()-headerHeight;h=obj.getBoundingClientRect().height;if(config.speed<=1&&config.speed>0){if(offset===0){$this.css({backgroundAttachment:'scroll','will-change':'transform'});}else{$this.css({height:h+((winH-h)*config.speed),backgroundAttachment:'scroll','will-change':'transform'});}}else if(config.speed>1&&h<=winH){$this.css({height:(winH+((winH*config.speed)-winH)*2),top:-((winH*config.speed)-winH),backgroundAttachment:'scroll','will-change':'transform'});}else if(config.speed>1&&h>winH){proportion=h/winH;height=(winH+((winH*config.speed)-winH)*(1+proportion));$this.css({height:height,top:-(height-(winH*config.speed)),backgroundAttachment:'scroll','will-change':'transform'});}else if(config.speed<0&&h>=winH){height=h*(1-config.speed);$this.css({height:height+(height-h),top:h-height,backgroundAttachment:'scroll','will-change':'transform'});}else if(config.speed<0&&h<winH){var display=(winH+h)/winH;height=h*-config.speed*display;$this.css({height:h+(height*2),top:-height,backgroundAttachment:'scroll','will-change':'transform'});}};var currentPoint=null,progressVal=null,startPoint=null,endPoint=null,$opacityLayer=config.opacity?$this.find(config.opacity):null,
922scrollY=null;var setPosition=function(){startPoint=offset-winH;endPoint=offset+elHeight+winH-headerHeight;scrollY=val.scroll();if(scrollY<startPoint||scrollY>endPoint){ticking=false;return;}
923currentPoint=((-offset+scrollY)*config.speed);$this.css({'-webkit-transform':'translateY('+currentPoint+'px) translateZ(0)','-moz-transform':'translateY('+currentPoint+'px) translateZ(0)','-ms-transform':'translateY('+currentPoint+'px) translateZ(0)','-o-transform':'translateY('+currentPoint+'px) translateZ(0)','transform':'translateY('+currentPoint+'px) translateZ(0)'});ticking=false;};var requestTick=function(){if(!ticking&&!isMobile){ticking=true;window.requestAnimationFrame(setPosition);}};var init=function(){if(!MK.utils.isSmoothScroll){return;}
924update();setTimeout(update,100);$window.on('load',update);$window.on('resize',update);window.addResizeListener(container,update);$window.on('scroll',requestTick);};return{init:init};};})(jQuery);(function($){'use strict';MK.component.Preloader=function(el){this.el=el;};MK.component.Preloader.prototype={init:function init(){this.cacheElements();this.bindEvents();},cacheElements:function cacheElements(){this.$preloader=$(this.el);},bindEvents:function bindEvents(){this.onLoad();},onLoad:function onLoad(){setTimeout(this.hidePreloader.bind(this),300);},hidePreloader:function hidePreloader(){this.$preloader.hide();}};}(jQuery));(function($){'use strict';MK.ui.loader={tpl:function(){return'<div class="mk-loading-indicator">'+'<div class="mk-loading-indicator__inner">'+'<div class="mk-loading-indicator__icon"></div>'+'<img style="height:100%; width:auto;" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7">'+'</div>'+'</div>';},add:function(item){$(item).append(this.tpl);},remove:function(item){if(item)$(item).find('.mk-loading-indicator').remove();else $('.mk-loading-indicator').remove();}};}(jQuery));(function($){if(MK.utils.browser.name==='Edge'||MK.utils.browser.name==='IE'){var val=1;var $edgeClipper=$('.mk-slider-slide');var $sectionClipper=$('.clipper-true');var $bgLayer=$('.background-layer');var onScroll=function onScroll(){val*=-1;if($edgeClipper.length)$edgeClipper.each(redraw);if($sectionClipper.length)$sectionClipper.each(redraw);if($bgLayer.length)$bgLayer.each(redraw);};var redraw=function redraw(){$(this).css('margin-top',val/100);};$(window).on("scroll",function(){window.requestAnimationFrame(onScroll);});}}(jQuery));MK.component.ResponsiveImageSetter=(function($){'use strict';var module={};var viewportClass=getViewportClass();var isRetina=window.devicePixelRatio>=2;function run($imgs){$imgs.filter(function(){return!this.hasAttribute("mk-img-src-setted");}).each(setSrcAttr);}
925function setSrcAttr(){var $img=$(this);var set=$img.data('mk-image-src-set');if(set['responsive']==='false'&&isRetina&&set['2x'])$img.attr('src',set['2x']);else if(set['responsive']==='false')$img.attr('src',set.default);else if(viewportClass===1&&isRetina&&set['2x'])$img.attr('src',set['2x']);else if(viewportClass===0&&set.mobile)$img.attr('src',set.mobile);else $img.attr('src',set.default);$img.load(function(){$(window).trigger('mk-image-loaded')})}
926function getViewportClass(){if(window.matchMedia('(max-width: 736px)').matches)return 0;else return 1;}
927function handleResize($imgs){if(!$imgs.length)return;var currentViewportClass=getViewportClass();if(currentViewportClass>viewportClass){viewportClass=currentViewportClass;run($imgs);}}
928module.init=function($imgs){if(!$imgs.length)return;run($imgs);$imgs.attr('mk-img-src-setted','');};module.onResize=function($imgs){$(window).on('resize',MK.utils.throttle(500,function(){handleResize($imgs);}));};module.handleAjax=function(){setTimeout(function ajaxDelayedCallback(){var $newImgs=$('img[data-mk-image-src-set]').filter(function(){return!this.hasAttribute("mk-lazyload");});if(!$newImgs.length)return;run($newImgs);},100);}
929return module;}(jQuery));jQuery(function($){var init=function init(){$allImages=$('img[data-mk-image-src-set]').filter(function(index){var isNotPortfolioImage=!$(this).hasClass('portfolio-image'),isNotBlogImage=$(this).closest('.mk-blog-container').length==0,isNotSwiperImage=!$(this).hasClass('swiper-slide-image'),isNotGalleryImage=!$(this).hasClass('mk-gallery-image');return isNotPortfolioImage&&isNotBlogImage&&isNotSwiperImage&&isNotGalleryImage;});;MK.component.ResponsiveImageSetter.onResize($allImages);MK.component.ResponsiveImageSetter.init($allImages);MK.utils.eventManager.subscribe('ajaxLoaded',MK.component.ResponsiveImageSetter.handleAjax);
929MK.utils.eventManager.subscribe('ajax-preview',MK.component.ResponsiveImageSetter.handleAjax);MK.utils.eventManager.subscribe('quickViewOpen',MK.component.ResponsiveImageSetter.handleAjax);}
930init();$(window).on('vc_reload',init);});(function($){'use strict';var utils=MK.utils;var val=MK.val;var $topLevelSections=$('#theme-page > .vc_row, #theme-page > .mk-main-wrapper-holder, #theme-page > .mk-page-section');$(document).on('click','.mk-skip-to-next',function(){var $this=$(this),btnHeight=$this.hasClass('edge-skip-slider')?150:76,offset=$this.offset().top+btnHeight,nextOffset=utils.nextHigherVal(utils.offsets($topLevelSections),[offset]);utils.scrollTo(nextOffset-val.offsetHeaderHeight(nextOffset));});})(jQuery);(function($){'use strict';function MkfullWidthRow(){var $windowWidth=$(document).width();var $elements=$('[data-mk-full-width="true"]');var direction=$('body.rtl').length?'right':'left';var verticalHeader=$('body.vertical-header-enabled').length?true:false;var verticalHeaderWidth=($('.header-style-4 .mk-header-inner').outerWidth()>270)?0:270;var verticalHeaderRtl=$('body.rtl').length?-1:1;var verticalHeaderRtlWidth=$('body.rtl.vertical-header-enabled').length?verticalHeaderWidth:0;var verticalHeaderRight=$('body.vertical-header-right').length?-1:1;var verticalHeaderWidthBoxed=0;var boxed=$('body.mk-boxed-enabled').length;var boxedOffset=(boxed)?($(window).width()-$('#theme-page').outerWidth())/2:0;var boxedMaxWidth=(boxed)?$('#theme-page').outerWidth():'auto';if(verticalHeader&&boxed){verticalHeaderWidthBoxed=($('.header-style-4 .mk-header-inner').outerWidth()>270)?0:verticalHeaderRtl*verticalHeaderRight*135;}
931var transparentHeader=$('.transparent-header').length;if(transparentHeader>0){verticalHeaderWidthBoxed=0;}
932$.each($elements,function(key,item){var $el=$(this);var css;$el.addClass("vc_hidden");var $el_full=$el.next(".vc_row-full-width");if($el_full.length||($el_full=$el.parent().next(".vc_row-full-width")),$el_full.length){var 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();if(css={position:"relative","box-sizing":"border-box",width:$(window).width(),maxWidth:boxedMaxWidth},css[direction]=offset+boxedOffset+verticalHeaderWidthBoxed+(verticalHeaderRight*verticalHeaderRtlWidth),$el.css(css),!$el.data("mkStretchContent")){var padding=-1*offset;0>padding&&(padding=0);var paddingRight=width-padding-$el_full.width()+el_margin_left+el_margin_right;padding=padding-paddingRight;if(0>paddingRight&&(paddingRight=0)){css={};if('right'===direction){css["padding-left"]=padding+"px";css["padding-right"]=0;}else{css["padding-right"]=padding+"px";css["padding-left"]=0;}
933$el.css(css)}}
934if(verticalHeader&&!boxed&&!transparentHeader&&!css.hasOwnProperty('padding-left')&&!css.hasOwnProperty('padding-right')){var side='left';if(verticalHeaderRight===-1){side='right';}
935var el_padding_dir=parseInt($el.css('padding-'+side),10);var header_padding_dir=$('.header-style-4 .mk-header-inner').outerWidth();if(el_padding_dir!=header_padding_dir){if($windowWidth>mk_responsive_nav_width){$el[0].style.setProperty('padding-'+side,header_padding_dir+'px','important');}else{$el[0].style.removeProperty('padding-'+side);}
936var $el_page_section=$el.find('.mk-page-section.full_layout');if($el_page_section.length>0){$el_page_section[0].style.setProperty('padding-'+side,'unset','important');}}}
937$el.attr("data-mk-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})}}),$(document).trigger("mk-full-width-row",$elements);}
938MkfullWidthRow();var debounceResize=null;$(window).on("resize",function(){if(debounceResize!==null){clearTimeout(debounceResize);}
939debounceResize=setTimeout(MkfullWidthRow,100);});})(jQuery);(function($){'use strict';MK.ui.Slider=function(container,config){var defaults={slide:'.mk-slider-slide',nav:'.mk-slider-nav',effect:'roulete',ease:'easeOutQuart',slidesPerView:1,slidesToView:1,transitionTime:700,displayTime:3000,autoplay:true,hasNav:true,hasPagination:true,paginationTpl:'<span></span>',paginationEl:'#pagination',draggable:true,fluidHeight:false,pauseOnHover:false,lazyload:false,activeClass:'is-active',edgeSlider:false,spinnerTpl:'<div class="mk-slider-spinner-wrap"><div class="mk-slider-spinner-fallback"></div><svg class="mk-slider-spinner" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg"><circle class="mk-slider-spinner-path" fill="none" stroke-width="4" stroke-linecap="round" cx="33" cy="33" r="30"></circle></svg></div>',onInitialize:function(){},onAfterSlide:function(id){},onBeforeSlide:function(id){}};this.state={id:0,moveForward:true,running:false,zIFlow:null,stop:false,};this.config=$.extend(defaults,config);this.container=container;this.initPerView=this.config.slidesPerView;this.activeTimer=null;this.autoplay=null;this.timer=null;this.timerRemaining=parseInt(this.config.displayTime);this.config.lazyload=JSON.parse(this.config.lazyload);this.config.edgeSlider=JSON.parse(this.config.edgeSlider);this.imageLoader=null;imagesLoaded.prototype.abort=function(){this.progress=this.complete=function(){};};};MK.ui.Slider.prototype={init:function(){this.setPerViewItems();this.cacheElements();
939this.getSlideSize();this.bindEvents();this.setSize();this.setPos();this.updateId(-1);this.updateId(1);this.val=this.dynamicVal();this.timeline=this.prepareTimeline(this.config.transitionTime);this.timeline.build();if(this.config.hasPagination){this.buildPagination();}
940if(this.config.autoplay&&document.hasFocus()){this.setTimer();}
941if(typeof this.config.onInitialize==='function'){this.config.onInitialize(this.slides);}
942if(this.config.fluidHeight===true){$(this.slides).height('auto');$(this.container).css('transition','height '+200+'ms ease-out');this.setHeight(0);}
943if(this.config.fluidHeight==='toHighest'){this.setHeightToHighest();}
944$(this.slides).each(this.createTimer);if(this.config.lazyload&&this.config.edgeSlider){if($(this.slides[this.state.id]).find('video').length===0){var $slideImg=$(this.slides[this.state.id]).children('[data-mk-img-set]');MK.component.BackgroundImageSetter.init($slideImg);}
945$(this.config.spinnerTpl).prependTo(this.$slides);}else{MK.component.BackgroundImageSetter.init($(this.slides).children('[data-mk-img-set]'));}},cacheElements:function(){this.container=this.isNode(this.container)?this.container:document.querySelectorAll(this.container)[0];this.slides=this.container.querySelectorAll(this.config.slide);this.$slides=$(this.slides);if(this.config.hasNav){this.$nav=$(this.config.nav);}
946if(this.config.hasPagination){this.$pagination=$(this.config.paginationEl);}},bindEvents:function(){var $window=$(window);if(this.config.slidesPerView>1){$window.on('resize',this.setPerViewItems.bind(this));}
947if(this.config.hasNav){this.eventsNav();}
948if(this.config.hasPagination){this.eventsPag();}
949if(this.config.draggable){this.dragHandler();}
950if(this.config.autoplay){$window.on('focus',this.windowActive.bind(this));$window.on('blur',this.windowInactive.bind(this));}
951if(this.config.pauseOnHover){$(this.container).on('mouseleave',this.setTimer.bind(this));$(this.container).on('mouseenter',this.unsetTimer.bind(this));}
952if(this.config.fluidHeight==='toHighest'){$window.on('resize',this.setHeightToHighest.bind(this));}},setPerViewItems:function(){if(window.matchMedia('(max-width: 500px)').matches){this.config.slidesPerView=1;}
953else if(window.matchMedia('(max-width: 767px)').matches&&this.initPerView>=2){this.config.slidesPerView=2;}
954else if(window.matchMedia('(max-width: 1024px)').matches&&this.initPerView>=3){this.config.slidesPerView=3;}
955else{this.config.slidesPerView=this.initPerView;}
956if(typeof this.slides==='undefined')return;this.getSlideSize();this.setSize();this.setPos();this.timeline=this.prepareTimeline(this.config.transitionTime);this.timeline.build();},eventsNav:function(){this.$nav.on('click','a',this.handleNav.bind(this));},eventsPag:function(){this.$pagination.on('click','a',this.handlePagination.bind(this));},handleNav:function(e){e.preventDefault();if(this.state.running){return;}
957this.state.running=true;var $this=$(e.currentTarget),moveForward=$this.data('direction')==='next';if(this.config.autoplay){this.unsetTimer();setTimeout(this.setTimer.bind(this),this.config.transitionTime);}
958this.state.moveForward=moveForward;this.timeline.build();this.timeline.play();this.setActive(this.nextId(moveForward?1:-1));if(this.config.fluidHeight){this.setHeight(this.nextId(moveForward?1:-1));}},handlePagination:function(e){e.preventDefault();var $this=$(e.currentTarget),id=$this.index();this.goTo(id);},reset:function(){this.state.stop=true;this.state.id=0;this.setPos();this.unsetTimer();this.setTimer();},goTo:function(id){if(this.state.running){return;}
959this.state.running=true;var lastId=this.state.id;if(lastId===id){return;}else if(lastId<id){this.state.moveForward=true;}else{this.state.moveForward=false;}
960if(this.config.autoplay){this.unsetTimer();setTimeout(this.setTimer.bind(this),this.config.transitionTime);}
961this.timeline.build(Math.abs(lastId-id));this.timeline.play();this.setActive(id);if(this.config.fluidHeight){this.setHeight(id);}},windowActive:function(){this.setTimer(false,true);$(this.container).removeClass('is-paused');},windowInactive:function(){this.unsetTimer();$(this.container).addClass('is-paused');},updateId:function(val){this.state.id=this.nextId(val);},nextId:function(val){var len=this.slides.length,insertVal=this.state.id+val;insertVal=(insertVal>=0)?insertVal:len+val;insertVal=(insertVal>=len)?0:insertVal;return insertVal;},setStyle:function(obj,style){var hasT=style.transform,t={x:(hasT)?style.transform.translateX:null,y:(hasT)?style.transform.translateY:null,scale:(hasT)?style.transform.scale:null,rotate:(hasT)?style.transform.rotate:null,rotateX:(hasT)?style.transform.rotateX:null,rotateY:(hasT)?style.transform.rotateY:null},z='translateZ(0)',x=(t.x)?'translateX('+t.x+'%)':'translateX(0)',y=(t.y)?'translateY('+t.y+'%)':'translateY(0)',s=(t.scale)?'scale('+t.scale+')':'scale(1)',r=(t.rotate)?'rotate('+t.rotate+'deg)':'rotate(0)',rX=(t.rotateX)?'rotateX('+t.rotateX+'deg)':'',rY=(t.rotateY)?'rotateY('+t.rotateY+'deg)':'',o=style.opacity,h=style.height,w=style.width;var c=z+x+y+s+r+rX+rY;if(c.length){obj.style.webkitTransform=c;obj.style.msTransform=c;obj.style.transform=c;}
962if(typeof o==='number'){obj.style.opacity=o;}
963if(h){obj.style.height=h+'%';}
964if(w){obj.style.width=w+'%';}},setPos:function(){if(typeof this.slides==='undefined')return;var id=this.state.id,i=0,len=this.slides.length,animation=this.animation[this.config.effect],axis=animation.axis,animNext=animation.next,animActi=animation.active,animPrev=animation.prev,perView=this.config.slidesPerView,slideId=null,zIFlow=null,style={};style.transform={};for(;i<len;i+=1){if(i<perView){style=animActi;style.transform['translate'+axis]=i*100;}else{style=this.state.moveForward?animNext:animPrev;style.transform['translate'+axis]=this.state.moveForward?perView*100:-100;}
965this.slides[i].style.zIndex=0;slideId=(i+id)%len;this.setStyle(this.slides[slideId],style);}},setSize:function(){if(typeof this.slides==='undefined')return;var i=0,len=this.slides.length,axis=this.animation[this.config.effect].axis,slideSize=this.slideSize,style={};if(axis==='Y'){style.height=slideSize[axis];}else{style.width=slideSize[axis];}
966for(;i<len;i+=1){this.setStyle(this.slides[i],style);}},setHeight:function(id){var $slides=$(this.slides),$activeSlide=$slides.eq(id);var currentHeight=$activeSlide.height();$(this.container).height(currentHeight);},setHeightToHighest:function(){var $slides=$(this.slides),height=0;$slides.each(function(){height=Math.max(height,$(this).find('> div').outerHeight());});$(this.container).height(height);},prepareTimeline:function(time){var self=this,iteration=0,totalIter=time/(1000/60),animLoop=[],aL=0,loops=1,ease=this.config.ease,currentStyle,timeProg,build,move,add,play,reverse,progress,kill;var len=this.slides.length,perView=this.config.slidesPerView,animation=this.animation[this.config.effect],animAxis=animation.axis,animNext=animation.next,animActi=animation.active,animPrev=animation.prev,style={},slideId=null,zIFlow=null;style.transform={};build=function(repeats){var currentEase=ease;loops=repeats||loops;if(!loops){return;}
967if(loops>1){currentEase='linearEase';}
968kill();self.setPos();var id=self.state.id,moveForward=self.state.moveForward,i=0,axisMove=(moveForward)?-100:100;for(;i<=perView;i+=1){slideId=((moveForward)?i+id:i+id-1)%len;slideId=(slideId<0)?len+slideId:slideId;if(i===0){style=moveForward?animPrev:animActi;}else if(i===perView){style=moveForward?animActi:animNext;}else{style=animActi;}
969zIFlow=(self.state.moveForward)?animNext.zIndex:animPrev.zIndex;if(zIFlow){self.slides[slideId].style.zIndex=(zIFlow==='+')?i+1:len-i;}
970style.transform['translate'+animAxis]=axisMove;add(self.slides[slideId],style,currentEase);}};add=function(slide,toStyles,ease){if(typeof slide==='undefined'){throw'Add at least one slide';}
971var fromStyles=slide.style,style=self.refStyle(toStyles,fromStyles);animLoop.push([slide,style,ease]);aL+=1;};move=function(startProg,mode){if(isTest)return;var currentTotalIter=totalIter;if(loops>1){currentTotalIter=totalIter/5;}
972if(!self.state.running){self.state.running=true;}
973if(startProg){iteration=Math.ceil(startProg*currentTotalIter);}
974timeProg=iteration/currentTotalIter;progress(timeProg);if(iteration>=currentTotalIter&&mode==='play'||iteration<=0&&mode==='reverse'){self.state.running=false;iteration=0;kill();self.updateId(self.state.moveForward?1:-1);loops-=1;if(loops>0){build();play();}
975if(!loops){loops=1;self.timerRemaining=parseInt(self.config.displayTime);self.config.onAfterSlide(self.state.id);}
976return;}
977if(mode==='play'){iteration+=1;}else{iteration-=1;}
978requestAnimationFrame(function(){if(self.state.stop)return;move(0,mode);});};play=function(startProg){var $nextSlide=$(self.slides[self.nextId(self.state.moveForward?1:-1)]);if(self.config.lazyload&&self.config.edgeSlider){var $slideImg=$nextSlide.find('[data-mk-img-set]');
978if($slideImg.length){MK.component.BackgroundImageSetter.init($slideImg);}}
979self.config.onBeforeSlide(self.nextId(self.state.moveForward?1:-1));var start=startProg||0;iteration=0;self.state.stop=false;move(start,'play');};reverse=function(startProg){var start=startProg||1;move(start,'reverse');};progress=function(progVal){var aI=0,currentStyle;for(aI;aI<aL;aI++){if(progVal!==1&&progVal!==0){currentStyle=self.currentStyle(progVal,animLoop[aI][1],animLoop[aI][2]);}else if(progVal===1){currentStyle=self.currentStyle(progVal,animLoop[aI][1],'linearEase');}else if(progVal===0){currentStyle=self.currentStyle(progVal,animLoop[aI][1],'linearEase');}
980self.setStyle(animLoop[aI][0],currentStyle);}};kill=function(){animLoop=[];aL=0;};return{build:build,add:add,play:play,reverse:reverse,progress:progress};},refStyle:function(toStyles,fromStyles){var axis=this.animation[this.config.effect].axis,style={},initVal,changeVal,endVal,dynamicEnd,styleProp,transProp,transform;for(styleProp in toStyles){if(styleProp==='transform'){transform=this.getTransforms(fromStyles);style.transform={};for(transProp in toStyles.transform){if(transProp==='translateZ'){continue;}
981initVal=transform[transProp]||0;dynamicEnd=(transProp==='translate'+axis)?initVal:0;endVal=toStyles.transform[transProp]+dynamicEnd;changeVal=endVal-initVal;style.transform[transProp]=[initVal,changeVal];}}else if(styleProp==='zIndex'){continue;}else{initVal=parseFloat(fromStyles[styleProp])||0;endVal=toStyles[styleProp];changeVal=endVal-initVal;style[styleProp]=[initVal,changeVal];}}
982return style;},currentStyle:function(progress,style,ease){var self=this,currentStyle={},currentVals,styleProp,transProp,prog;for(styleProp in style){if(styleProp==='transform'){currentStyle.transform={};for(transProp in style.transform){if(transProp==='translateZ'){continue;}
983currentVals=style.transform[transProp];currentStyle.transform[transProp]=self.ease[ease](progress,currentVals[0],currentVals[1],1);}}else{currentVals=style[styleProp];currentStyle[styleProp]=self.ease[ease](progress,currentVals[0],currentVals[1],1);}}
984return currentStyle;},setActive:function(id){var $slides=$(this.slides),className=this.config.activeClass;$slides.removeClass(className);if(this.config.hasPagination){var $pagination=this.$pagination.find('a');$pagination.removeClass(className);$pagination.eq(id).addClass(className);}
985if(this.activeTimer){clearTimeout(this.activeTimer);if(this.imageLoader){this.imageLoader.abort();}}
986var self=this;this.activeTimer=setTimeout(function(){var $currentSlide=$slides.eq(id);if(self.config.lazyload&&self.config.edgeSlider){if($currentSlide.find('.mk-section-video').length&&$currentSlide.children('.mk-video-section-touch').length){var imgSet=$currentSlide.children('.mk-video-section-touch').data('mk-img-set');var exactImg=MK.component.BackgroundImageSetter.getImage(imgSet);var $bgImage=$('<img>').attr('src',exactImg);self.imageLoader=imagesLoaded($bgImage[0],function(instance){$currentSlide.children('.mk-slider-spinner-wrap').addClass('mk-slider-spinner-wrap-hidden');setTimeout(function(){$currentSlide.children('.mk-slider-spinner-wrap').hide();},200);$currentSlide.addClass(className);});}else if($currentSlide.find('.mk-section-video').length&&$currentSlide.children('.mk-video-section-touch').length===0){$currentSlide.children('.mk-slider-spinner-wrap').addClass('mk-slider-spinner-wrap-hidden');setTimeout(function(){$currentSlide.children('.mk-slider-spinner-wrap').hide();},200);$currentSlide.addClass(className);}else{if($currentSlide.children('[data-mk-img-set]').length){var imgSet=$currentSlide.children('[data-mk-img-set]').data('mk-img-set');var exactImg=MK.component.BackgroundImageSetter.getImage(imgSet);var $bgImage=$('<img>').attr('src',exactImg);self.unsetTimer();self.imageLoader=imagesLoaded($bgImage[0],function(instance){$currentSlide.children('.mk-slider-spinner-wrap').addClass('mk-slider-spinner-wrap-hidden');setTimeout(function(){$currentSlide.children('.mk-slider-spinner-wrap').hide();},200);self.setTimer(false,false,$currentSlide.data('timer')||Number(self.config.displayTime));$currentSlide.addClass(className);});}else{$currentSlide.children('.mk-slider-spinner-wrap').addClass('mk-slider-spinner-wrap-hidden');setTimeout(function(){$currentSlide.children('.mk-slider-spinner-wrap').hide();},200);self.setTimer(false,false,$currentSlide.data('timer')||Number(self.config.displayTime));$currentSlide.addClass(className);}}}else{$currentSlide.addClass(className);}},this.config.transitionTime);},createTimer:function(){var $slide=$(this),video=$slide.find('video').get(0);if(video){var interval=setInterval(function(){if(video.readyState>0){$slide.data('timer',(video.duration*1000));$slide.attr('data-timer',(video.duration*1000));clearInterval(interval);}},100);}}
986,setTimer:function(isFirst,isPaused,fixed_time){var customTimer=this.$slides.eq(this.nextId(this.state.moveForward?1:-1)).data('timer'),trans=parseInt(this.config.transitionTime),interval=customTimer?customTimer:parseInt(this.config.displayTime),timer=interval+trans;var self=this,first=isFirst||true,fixed_time=fixed_time||0,create,run;this.timer=true;this.lastSetTimer=Date.now();create=function(){if(self.autoplay){clearTimeout(self.autoplay);}
987if(!self.timer){return;}
988self.state.moveForward=true;self.timeline.build();self.timeline.play();self.setActive(self.nextId(1));if(self.config.fluidHeight){self.setHeight(self.nextId(1));}
989first=false;self.lastSetTimer=Date.now();run();};run=function(newInterval){customTimer=self.$slides.eq(self.nextId(self.state.moveForward?1:-1)).data('timer');interval=customTimer?customTimer:parseInt(self.config.displayTime);timer=interval+trans;var time=newInterval||timer;self.autoplay=setTimeout(create,time);};if(fixed_time){run(fixed_time);}else if(isPaused){run(this.timerRemaining);}else{run();}},unsetTimer:function(){this.timer=false;this.lastUnsetTimer=Date.now();this.timerRemaining-=this.lastUnsetTimer-this.lastSetTimer;if(this.autoplay){clearTimeout(this.autoplay);}},buildPagination:function(){var i=0,len=this.slides.length,tpl='';for(;i<len;i+=1){tpl+='<a href="javascript:;">'+this.config.paginationTpl+'</a>';}
990this.$pagination.html(tpl);this.setActive(0);},getSlideSize:function(){this.slideSize={X:100/this.config.slidesPerView,Y:100/this.config.slidesPerView};},getTransforms:function(style){var transform=style.transform||style.webkitTransform||style.mozTransform,regex=/(\w+)\(([^)]*)\)/g,match,T={};if(typeof transform!=='string'){throw'Transform prop is not a string.';}
991if(!transform){return;}
992while(match=regex.exec(transform)){T[match[1]]=parseFloat(match[2]);}
993return T;},isNode:function(o){return(typeof Node==="object"?o instanceof Node:o&&typeof o==="object"&&typeof o.nodeType==="number"&&typeof o.nodeName==="string");},dragHandler:function(){var self=this,$container=$(this.container),prevBuild=false,nextBuild=false,dragging=false,buffor=5,dragStart,dragMove,dragEnd,progress;progress=function(moveX){return moveX/self.val.viewportW();};dragStart=function(moveX,startX){};dragMove=function(moveX){if(self.state.running)return;if(moveX<-buffor){if(!nextBuild){self.state.moveForward=true;self.timeline.build();nextBuild=true;prevBuild=false;self.unsetTimer();}else{self.timeline.progress(-progress(moveX));}
994dragging=true;}else if(moveX>buffor){if(!prevBuild){self.state.moveForward=false;self.timeline.build();prevBuild=true;nextBuild=false;self.unsetTimer();}else{self.timeline.progress(progress(moveX));}
995dragging=true;}};dragEnd=function(moveX){if(dragging){var prog=progress(moveX),absProg=prog<0?-prog:prog;if(absProg>0.1){self.timeline.play(absProg);self.setActive(self.nextId(prog<0?1:-1));if(self.config.fluidHeight){self.setHeight(self.nextId(prog<0?1:-1));}}else{self.timeline.reverse(absProg);if(prog<0){self.updateId(-1);}else{self.updateId(1);}}
996prevBuild=false;nextBuild=false;dragging=false;if(self.config.autoplay){self.setTimer(false);}}};this.drag($container,dragStart,dragMove,dragEnd);},drag:function($el,startFn,moveFn,stopFn){var touchX,touchY,movX,movY,go,evt,prevent,start,move,stop;prevent=function(e){e.preventDefault();};start=function(e){$el.on("mousemove",prevent);$el.on("touchmove",move);$el.on("mousemove",move);evt=(e.type==='touchstart')?e.originalEvent.touches[0]:e;touchX=evt.pageX;if(typeof startFn==='function'){startFn(movX,touchX);}};move=function(e){evt=(e.type==='touchmove')?e.originalEvent.touches[0]:e;movX=evt.pageX-touchX;if(typeof moveFn==='function'){moveFn(movX);}};stop=function(e){$el.off("mousemove",prevent);$el.off("touchmove",move);$el.off("mousemove",move);if(typeof stopFn==='function'){stopFn(movX);}};$el.on("touchstart",start);$el.on("mousedown",start);$el.on("touchend",stop);$el.on("touchleave",stop);$el.on("touchcancel",stop);$el.on("mouseup",stop);$el.on("mouseleave",stop);},dynamicVal:function(){var $window=$(window),update,getViewportW,viewportW;update=function(){viewportW=$window.width();};getViewportW=function(){return viewportW;};
996update();$window.on('load',update);$window.on('resize',update);return{viewportW:getViewportW};}};MK.ui.Slider.prototype.animation={slide:{axis:'X',next:{transform:{}},active:{transform:{}},prev:{transform:{}}},vertical_slide:{axis:'Y',next:{transform:{}},active:{transform:{}},prev:{transform:{}}},perspective_flip:{axis:'Y',next:{transform:{rotateX:80}},active:{transform:{rotateX:0}},prev:{transform:{rotateX:0}}},zoom:{axis:'Z',next:{opacity:0,transform:{scale:0.9}},active:{opacity:1,transform:{scale:1}},prev:{opacity:0,transform:{scale:1.1}}},fade:{axis:'Z',next:{opacity:0,transform:{}},active:{opacity:1,transform:{}},prev:{opacity:0,transform:{}}},kenburned:{axis:'Z',next:{opacity:0,transform:{}},active:{opacity:1,transform:{}},prev:{opacity:0,transform:{}}},zoom_out:{axis:'Z',next:{zIndex:'+',opacity:1,transform:{translateY:100,scale:1}},active:{opacity:1,transform:{translateY:0,scale:1}},prev:{zIndex:'+',opacity:0,transform:{translateY:0,scale:0.5}}},horizontal_curtain:{axis:'Z',next:{zIndex:'+',transform:{translateX:100,}},active:{transform:{translateX:0,}},prev:{zIndex:'+',transform:{translateX:-70,}}},roulete:{axis:'X',next:{opacity:0.5,transform:{scale:0.5,rotate:10,translateY:20}},active:{opacity:1,transform:{scale:1,rotate:0,translateY:0}},prev:{opacity:0.3,transform:{scale:0.5,rotate:-10,translateY:20}}}};MK.ui.Slider.prototype.ease={linearEase:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*currentIteration/totalIterations+startValue;},easeInQuad:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*(currentIteration/=totalIterations)*currentIteration+startValue;},easeOutQuad:function(currentIteration,startValue,changeInValue,totalIterations){return-changeInValue*(currentIteration/=totalIterations)*(currentIteration-2)+startValue;},easeInOutQuad:function(currentIteration,startValue,changeInValue,totalIterations){if((currentIteration/=totalIterations/2)<1){return changeInValue/2*currentIteration*currentIteration+startValue;}
997return-changeInValue/2*((--currentIteration)*(currentIteration-2)-1)+startValue;},easeInCubic:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*Math.pow(currentIteration/totalIterations,3)+startValue;},easeOutCubic:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*(Math.pow(currentIteration/totalIterations-1,3)+1)+startValue;},easeInOutCubic:function(currentIteration,startValue,changeInValue,totalIterations){if((currentIteration/=totalIterations/2)<1){return changeInValue/2*Math.pow(currentIteration,3)+startValue;}
998return changeInValue/2*(Math.pow(currentIteration-2,3)+2)+startValue;},easeInQuart:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*Math.pow(currentIteration/totalIterations,4)+startValue;},easeOutQuart:function(currentIteration,startValue,changeInValue,totalIterations){return-changeInValue*(Math.pow(currentIteration/totalIterations-1,4)-1)+startValue;},easeInOutQuart:function(currentIteration,startValue,changeInValue,totalIterations){if((currentIteration/=totalIterations/2)<1){return changeInValue/2*Math.pow(currentIteration,4)+startValue;}
999return-changeInValue/2*(Math.pow(currentIteration-2,4)-2)+startValue;},easeInQuint:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*Math.pow(currentIteration/totalIterations,5)+startValue;},easeOutQuint:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*(Math.pow(currentIteration/totalIterations-1,5)+1)+startValue;},easeInOutQuint:function(currentIteration,startValue,changeInValue,totalIterations){if((currentIteration/=totalIterations/2)<1){return changeInValue/2*Math.pow(currentIteration,5)+startValue;}
1000return changeInValue/2*(Math.pow(currentIteration-2,5)+2)+startValue;},easeInSine:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*(1-Math.cos(currentIteration/totalIterations*(Math.PI/2)))+startValue;},easeOutSine:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*Math.sin(currentIteration/totalIterations*(Math.PI/2))+startValue;},easeInOutSine:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue/2*(1-Math.cos(Math.PI*currentIteration/totalIterations))+startValue;},easeInExpo:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*Math.pow(2,10*(currentIteration/totalIterations-1))+startValue;},easeOutExpo:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*(-Math.pow(2,-10*currentIteration/totalIterations)+1)+startValue;},easeInOutExpo:function(currentIteration,startValue,changeInValue,totalIterations){if((currentIteration/=totalIterations/2)<1){return changeInValue/2*Math.pow(2,10*(currentIteration-1))+startValue;}
1001return changeInValue/2*(-Math.pow(2,-10*--currentIteration)+2)+startValue;},easeInCirc:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*(1-Math.sqrt(1-(currentIteration/=totalIterations)*currentIteration))+startValue;},easeOutCirc:function(currentIteration,startValue,changeInValue,totalIterations){return changeInValue*Math.sqrt(1-(currentIteration=currentIteration/totalIterations-1)*currentIteration)+startValue;},easeInOutCirc:function(currentIteration,startValue,changeInValue,totalIterations){if((currentIteration/=totalIterations/2)<1){return changeInValue/2*(1-Math.sqrt(1-currentIteration*currentIteration))+startValue;}
1002return changeInValue/2*(Math.sqrt(1-(currentIteration-=2)*currentIteration)+1)+startValue;}};})(jQuery);(function($){'use strict';MK.component.SocialShare=function(el){var networks={twitter:'http://twitter.com/intent/tweet?text={title}&url={url}',pinterest:'http://pinterest.com/pin/create/button/?url={url}&media={image}&description={title}',facebook:'https://www.facebook.com/sharer/sharer.php?u={url}',googleplus:'https://plus.google.com/share?url={url}',linkedin:'http://www.linkedin.com/shareArticle?mini=true&url={url}&title={title}&summary={desc}',digg:'http://digg.com/submit?url={url}&title={title}',reddit:'http://reddit.com/submit?url={url}&title={title}',};this.networks=networks;this.el=el;};MK.component.SocialShare.prototype={init:function(){this.cacheElements();this.bindEvents();},cacheElements:function(){this.$this=$(this.el);},bindEvents:function(){var thisObject=this;var tempClass="";$.each(this.networks,function(key,value){thisObject.$tempClass=$('.'+key+'-share');thisObject.$tempClass.click(thisObject.openSharingDialog.bind(self,this,key));});},openSharingDialog:function(url,site,args){var urlWrapper=url;var rx=new RegExp('\{[a-z]*\}','g'),res;var match=rx.exec(url);while(match!=null){var pureAttr=match[0].replace("{","").replace("}","");var attValue=$(args.currentTarget).attr('data-'+pureAttr);if(attValue===undefined||attValue===null){attValue="";}
1003attValue=attValue.replace('#','%23');urlWrapper=urlWrapper.replace(match,attValue);match=rx.exec(url);}
1004window.open(urlWrapper,site+"Window","height=320,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0");},};var $body=$('body');if(!$body.length)return;$body.each(function(){var socialShare=new MK.component.SocialShare(this);
1004socialShare.init();});})(jQuery);(function($){'use strict';MK.component.Sortable=function(el){this.el=el;};MK.component.Sortable.prototype={init:function init(){this.cacheElements();this.bindEvents();},cacheElements:function cacheElements(){this.unique=Date.now();this.$filter=$(this.el);this.config=this.$filter.data('sortable-config');this.ajaxLoader=new MK.utils.ajaxLoader(this.config.container);this.ajaxLoader.init();this.$container=$(this.config.container);this.$navItems=this.$filter.find('a');this.$filterItems=this.$container.find(this.config.item);},bindEvents:function bindEvents(){this.$navItems.on('click',this.handleClick.bind(this));MK.utils.eventManager.subscribe('ajaxLoaded',this.onLoad.bind(this));},handleClick:function handleClick(e){e.preventDefault();var $item=$(e.currentTarget);var term=$item.data('filter');this.$navItems.removeClass('current');$item.addClass('current');if(this.config.mode==='ajax')this.inDB(term,$item);else this.inPage(term);},inDB:function inDB(term,$item){MK.ui.loader.remove(this.$filter);MK.ui.loader.add($item);if(this.$container.siblings('.mk-ajax-loaded-posts').length){this.$container.siblings('.mk-ajax-loaded-posts').attr('data-loop-loaded-posts','');}
1005this.ajaxLoader.setData({paged:1,term:term});this.ajaxLoader.load(this.unique);},inPage:function inPage(term){var $filterItems=this.$container.find(this.config.item);$filterItems.removeClass('is-hidden');var className=term.replace(/, /g,", .");if(term!=='*')$filterItems.not('.'+className).addClass('is-hidden');MK.utils.eventManager.publish('staticFilter');},onLoad:function onLoad(e,response){if(this.config.mode==='static'){this.$navItems.removeClass('current').first().addClass('current');}
1006if(typeof response!=='undefined'&&response.id===this.config.container){MK.ui.loader.remove(this.$filter);if(response.unique===this.unique){this.$container.html(response.content);this.ajaxLoader.setData({paged:1});}}}};})(jQuery);(function($){'use strict';var $iframes=$('iframe');$iframes.each(function(){var $iframe=$(this);var parent=$iframe.parent().get(0);var tagName=parent.tagName;if(tagName==='P')$iframe.wrap('<div class="mk-video-container"></div>');});}(jQuery));(function($){'use strict';$(document).on('click',function(e){$('.mk-toggle-trigger').removeClass('mk-toggle-active');});function toggle(e){e.preventDefault();e.stopPropagation();var $this=$(e.currentTarget);if(!$this.hasClass('mk-toggle-active')){$('.mk-box-to-trigger').fadeOut(200);$this.parent().find('.mk-box-to-trigger').fadeIn(250);$('.mk-toggle-trigger').removeClass('mk-toggle-active');$this.addClass('mk-toggle-active');}else{$('.mk-box-to-trigger').fadeOut(200);$this.removeClass('mk-toggle-active');}}
1007function assignToggle(){setTimeout(function(){$('.mk-toggle-trigger').off('click',toggle);$('.mk-toggle-trigger').on('click',toggle);},100);}
1008assignToggle();MK.utils.eventManager.subscribe('ajaxLoaded',assignToggle);MK.utils.eventManager.subscribe('ajax-preview',assignToggle);$(window).on('vc_reload',function(){assignToggle();MK.utils.eventManager.subscribe('ajaxLoaded',assignToggle);MK.utils.eventManager.subscribe('ajax-preview',assignToggle);});}(jQuery));(function($){'use strict';if(MK.utils.isMobile()){$('.mk-animate-element').removeClass('mk-animate-element');return;}
1009var init=function init(){var $rootLevelEls=$('.js-master-row, .widget');$rootLevelEls.each(spyViewport);$rootLevelEls.each(function rootLevelEl(){var $animateEl=$(this).find('.mk-animate-element');$animateEl.each(spyViewport);var browserName=MK.utils.browser.name;if(browserName==='Firefox'){var $rightToLeft=$(this).find('.right-to-left');if($rightToLeft.length>0){$('#theme-page').css('overflow-x','hidden');}}});};var spyViewport=function spyViewport(i){var self=this;MK.utils.scrollSpy(this,{position:'bottom',threshold:200,after:function(){animate.call(self,i);}});};var animate=function animate(i){var $this=$(this);setTimeout(function(){$this.addClass('mk-in-viewport');},100*i);};$(window).on('load vc_reload',init);}(jQuery));function product_loop_add_cart(){var $body=$('body');$body.on('click','.add_to_cart_button',function(){var icon='<svg class="mk-svg-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M437.011 74.99c-46.326-46.328-110.318-74.99-181.011-74.99-109.744 0-203.345 69.064-239.749 166.094l59.938 22.477c27.302-72.773 97.503-124.571 179.811-124.571 53.02 0 101.01 21.5 135.753 56.247l-71.753 71.753h192v-192l-74.989 74.99zm-181.011 373.01c-53.02 0-101.013-21.496-135.756-56.244l71.756-71.756h-192v192l74.997-74.997c46.323 46.331 110.309 74.997 181.003 74.997 109.745 0 203.346-69.064 239.75-166.094l-59.938-22.477c-27.302 72.773-97.503 124.571-179.812 124.571z"/></svg>';var $holder=$(this).parents('.product:eq(0)');var $i=$holder.find('.product-loading-icon');$holder.addClass('adding-to-cart').removeClass('added-to-cart');$i.html(icon);});$body.bind('added_to_cart',function(){var icon='<svg class="mk-svg-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M432 64l-240 240-112-112-80 80 192 192 320-320z"/></svg>';var $holder=$('.adding-to-cart');var $i=$holder.find('.product-loading-icon');$holder.removeClass('adding-to-cart').addClass('added-to-cart');$i.html(icon);});}
1010(function($){'use strict';MK.component.Tabs=function(el){var defaults={activeClass:'is-active'};this.config=defaults;this.el=el;};MK.component.Tabs.prototype={init:function(){this.cacheElements();this.bindEvents();},cacheElements:function(){this.$this=$(this.el);this.$tabs=this.$this.find('.mk-tabs-tab');this.$panes=this.$this.find('.mk-tabs-pane');this.currentId=0;},bindEvents:function(){var self=this;this.$tabs.on('click',this.switchPane.bind(this));},switchPane:function(evt){evt.preventDefault();var clickedId=$(evt.currentTarget).index();this.hide(this.currentId);this.show(clickedId);this.currentId=clickedId;MK.utils.eventManager.publish('item-expanded');},show:function(id){this.$tabs.eq(id).addClass(this.config.activeClass);this.$panes.eq(id).addClass(this.config.activeClass);},hide:function(id){this.$tabs.eq(id).removeClass(this.config.activeClass);this.$panes.eq(id).removeClass(this.config.activeClass);}};})(jQuery);function mk_tabs(){}
1011function mk_tabs_responsive(){}
1012(function($){'use strict';
1012$(window).on('load',function(){MK.core.initAll(document);MK.utils.scrollToURLHash();setTimeout(function(){MK.ui.preloader.hide();$('.mk-preloader').hide();$('body').removeClass('loading');},150);});$(window).on('vc_reload',function(){setTimeout(function(){MK.core.initAll(document);},100);});$(document).on('click','.js-smooth-scroll, .js-main-nav a',smoothScrollToAnchor);$('.side_dashboard_menu a').on('click',smoothScrollToAnchor);function smoothScrollToAnchor(evt){var anchor=MK.utils.detectAnchor(this);var $this=$(evt.currentTarget);var loc=window.location;var currentPage=loc.origin+loc.pathname;var href=$this.attr('href');var linkSplit=(href)?href.split('#'):'';var hrefPage=linkSplit[0]?linkSplit[0]:'';var hrefHash=linkSplit[1]?linkSplit[1]:'';if(anchor.length){if(hrefPage===currentPage||hrefPage==='')evt.preventDefault();MK.utils.scrollToAnchor(anchor);}else if($this.attr('href')==='#'){evt.preventDefault();}}}(jQuery));})(jQuery);
1013(function($){'use strict';$('.js-header-shortcode').each(function(){var $this=$(this),$parent_page_section=$this.parents('.mk-page-section'),$parent_row=$this.parents('.js-master-row'),$is_inside=$parent_page_section.attr('id');if($is_inside){$this.detach().appendTo($parent_page_section);}
1014$parent_page_section.css({'overflow':'visible'});$parent_row.css({'overflow':'visible'});$this.parent().css('z-index',99999);});})(jQuery);(function($){'use strict';var AjaxModal=function AjaxModal(el){this.el=el;var $this=$(el);var action=$this.data('action');var id=$this.data('id');this.load(action,id);};AjaxModal.prototype={init:function init(html){var self=this;$('body').append(html);this.cacheElements();this.bindEvents();this.$modal.addClass('is-active');MK.core.initAll(self.$modal.get(0));$('.variations_form').each(function(){$(this).wc_variation_form().find('.variations select:eq(0)').change();});MK.utils.scroll.disable();MK.ui.loader.remove();MK.utils.eventManager.publish('quickViewOpen');},cacheElements:function cacheElement(){this.$modal=$('.mk-modal');this.$slider=this.$modal.find('.mk-slider-holder');this.$container=this.$modal.find('.mk-modal-container');this.$closeBtn=this.$modal.find('.js-modal-close');},bindEvents:function bindEvents(){this.$container.on('click',function(e){e.stopPropagation();});this.$closeBtn.on('click',this.handleClose.bind(this));this.$modal.on('click',this.handleClose.bind(this));},handleClose:function handleClose(e){e.preventDefault();MK.utils.scroll.enable();this.close();},close:function close(){this.$modal.remove();},load:function load(action,id){$.ajax({url:MK.core.path.ajaxUrl,data:{action:action,id:id},success:this.init.bind(this),error:this.error.bind(this)});},error:function error(response){console.log(response);}};var createModal=function createModal(e){e.preventDefault();var el=e.currentTarget;MK.ui.loader.add($(el).parents('.product-loop-thumb'));new AjaxModal(el);};$(document).on('click','.js-ajax-modal',createModal);$(window).on('vc_reload',function(){$('.mk-product-loop').each(function(){var id=$(this).attr('id');var el='#'+id+' > .products.js-el';$(el).data('init-Grid',true);var component=new MK.component['Grid'](el);component.init();});});})(jQuery);
1015(function($){var windowSel=$(window);var bodySel=$('body');var fixedSel=$('.mkhb-fixed');var stickySel=$('.mkhb-sticky');var normalRespNav=$('.mkhb-navigation-resp__normal');var stickyRespNav=$('.mkhb-navigation-resp__sticky');var windowHeight=windowSel.height();var adminBarHeight=0;function mkhbGetOffset(offset,device){var deviceEl=$('.mkhb-'+device);var $deviceHeight=deviceEl.height();var $offset=0;if(typeof offset==='string'&&offset!=='header'){$offset=Math.round((parseInt(offset)/100)*windowHeight);}else if(typeof offset==='number'){$offset=parseInt(offset);}
1016if(0==$offset||isNaN($offset)){$offset=$deviceHeight;if(deviceEl.hasClass('mkhb-overlap')){$offset=deviceEl.children('.mkhb-device-container').height();}}
1017if($deviceHeight>$offset){$offset=$deviceHeight;}
1018return $offset;}
1019function mkhbUpdateTop(){adminBarHeight=$('#wpadminbar').height();adminBarHeight=(adminBarHeight==null)?0:adminBarHeight;}
1020function mkhbSetFixedHeight(selector){selector.each(function(e){var thisSel=$(this);if(!thisSel.hasClass('mkhb-overlap')){var childHeight=thisSel.children('.mkhb-device-container').height();thisSel.height(childHeight);}});}
1021function mkhbSlideDown(current,offset,device,curHeight){var onScroll=function onScroll(){var addOffset=mkhbAddRespNormal(offset,device);if(windowSel.scrollTop()>addOffset){current.css({'top':adminBarHeight});current.addClass('mkhb-sticky--active');}
1021else{current.css({'top':-curHeight});current.removeClass('mkhb-sticky--active');current.find('.mkhb-search-el__overlay').removeClass('mkhb-search-el__overlay--show');mkhbHideRespBurger();}};onScroll();windowSel.on('scroll',onScroll);}
1022function mkhbLazy(current,offset,device,curHeight){var lastScrollPos=0;var onScroll=function onScroll(){var addOffset=mkhbAddRespNormal(offset,device);var scrollPos=windowSel.scrollTop();if(scrollPos>addOffset&&scrollPos<lastScrollPos){current.css({'top':adminBarHeight});current.addClass('mkhb-sticky--active');}else{current.css({'top':-curHeight});current.removeClass('mkhb-sticky--active');current.find('.mkhb-search-el__overlay').removeClass('mkhb-search-el__overlay--show');mkhbHideRespBurger();}
1023lastScrollPos=scrollPos;};onScroll();windowSel.on('scroll',onScroll);}
1024function mkhbHideRespBurger(){if(stickyRespNav.length<=0){return;}
1025if($('body[class*="mkhb-navigation-resp--opened"]')<=0){return;}
1026stickyRespNav.each(function(){var wrap=$(this);var id=wrap.attr('id').replace('-wrap','');var current=$('#'+id).find('.mkhb-navigation-resp');if(bodySel.hasClass('mkhb-navigation-resp--opened-'+id)){current.removeClass('is-active').find('.mkhb-navigation-resp__container').removeClass('fullscreen-active');bodySel.removeClass('mkhb-navigation-resp--opened-'+id).addClass('mkhb-navigation-resp--closed-'+id).trigger('mkhb-navigation-resp--closed-'+id);wrap.hide();}});}
1027function mkhbAddRespNormal(offset,device){if(normalRespNav.length<=0){return offset;}
1028if($('body[class*="mkhb-navigation-resp--opened"]')<=0){return offset;}
1029var deviceEl=$('.mkhb-'+device);var deviceHeight=deviceEl.height();normalRespNav.each(function(){var current=$(this);var height=current.height();var id=current.attr('id').replace('-wrap','');if(bodySel.hasClass('mkhb-navigation-resp--opened-'+id)){var newOffset=deviceHeight+parseInt(height);if(newOffset>offset){offset=newOffset;}
1030return offset;}});return offset;}
1031var resizeHeader=function resizeHeader(){var fixedRsz=$('.mkhb-fixed');if(fixedRsz.length>0){mkhbSetFixedHeight(fixedRsz);}}
1032if(fixedSel.length>0){mkhbSetFixedHeight(fixedSel);windowSel.on('resize',resizeHeader);}
1033var initialAction=function initialAction(){if(stickySel.length>0){stickySel.each(function(e){var current=$(this);var offset=current.data('offset');var device=current.data('device');offset=mkhbGetOffset(offset,device);mkhbUpdateTop();var curHeight=current.height();
1033current.css({'top':-curHeight});var effect=current.data('effect');if(effect=='slide-down'){mkhbSlideDown(current,offset,device,curHeight);}else if(effect=='lazy'){mkhbLazy(current,offset,device,curHeight);}});}}
1034windowSel.on('load',initialAction);windowSel.on('resize',mkhbUpdateTop);})(jQuery);
1035(function($){var inlineContainer=$('.mkhb-col__container-inline');if(inlineContainer.length>0){inlineContainer.css('opacity','0');$.each(inlineContainer,function(key,value){var thisContainer=$(this);var thisChildren=thisContainer.children();if(thisChildren.length<1){return;}
1036var inlineStatus=false;var inlineContent='';var inlineTypes=[];inlineTypes['left']='';inlineTypes['center']='';inlineTypes['right']='';var countEls=thisChildren.length;$.each(thisChildren,function(key,value){elSel=$(this);--countEls;var elMarkup=elSel[0].outerHTML;var elDisplay='inline';var elAlign='left';if(elMarkup){elDisplay=elSel.data('display')||'block';}
1037if('inline'==elDisplay){elAlign=elSel.data('align')||'left';inlineTypes[elAlign]+=elMarkup;elMarkup='';inlineStatus=true;}
1038if(inlineStatus&&('block'==elDisplay||countEls<=0)){inlineContent+=setInlineContainer(inlineTypes);inlineStatus=false;inlineTypes['left']='';inlineTypes['center']='';inlineTypes['right']='';}
1039inlineContent+=elMarkup;});thisContainer.html(inlineContent);});inlineContainer.css('opacity','1');}
1040function setInlineContainer(inlineElements){leftContainer='<div class="mkhb-col__container-inline__left">'+inlineElements['left']+'</div>';rightContainer='<div class="mkhb-col__container-inline__right">'+inlineElements['right']+'</div>';centerContainer='<div class="mkhb-col__container-inline__center">'+inlineElements['center']+'</div>';if(''==inlineElements['center']){centerContainer='';if(''==inlineElements['left']){leftContainer='';}
1041if(''==inlineElements['right']){rightContainer='';}}
1042if(''==inlineElements['left']&&''==inlineElements['right']){leftContainer='';rightContainer='';}
1043columnContent='<div class="mkhb-col__container-inline__wrap">'+leftContainer+centerContainer+rightContainer+'</div>';return columnContent;}})(jQuery);
1044(function($) {
1045    'use strict';
1046    var _toBuild = [];
1047    MK.api = window.MK.api || {};
1048    MK.component.AdvancedGMaps = function(el) {
1049        var $this = $(el),
1050            container = document.getElementById( 'mk-theme-container' ),
1051            data = $this.data( 'advancedgmaps-config' ),
1052            apikey = data.options.apikey ? ('key='+data.options.apikey+'&') : false,
1053            map = null,
1054            bounds = null,
1055            infoWindow = null,
1056            position = null;
1057        var build = function() {
1058            data.options.scrollwheel = false;
1059            data.options.mapTypeId = google.maps.MapTypeId[data.options.mapTypeId];
1060            data.options.styles = data.style;
1061            bounds = new google.maps.LatLngBounds();
1062            map = new google.maps.Map(el, data.options);
1063            infoWindow = new google.maps.InfoWindow();
1064            map.setOptions({
1065                panControl : data.options.panControl,
1066                draggable:  data.options.draggable,
1067                zoomControl:  data.options.zoomControl,
1068                mapTypeControl:  data.options.scaleControl,
1069                scaleControl:  data.options.mapTypeControl,
1070            });
1071            var marker, i;
1072            map.setTilt(45);
1073            for (i = 0; i < data.places.length; i++) {
1074                if(data.places[i].latitude && data.places[i].longitude) {
1075                    position = new google.maps.LatLng(data.places[i].latitude, data.places[i].longitude);
1076                    bounds.extend(position);
1077                    marker = new google.maps.Marker({
1078                        position: position,
1079                        map: map,
1080                        title: data.places[i].address,
1081                        icon: (data.places[i].marker) ? data.places[i].marker : data.icon
1082                    });
1083                    google.maps.event.addListener(marker, 'click', (function(marker, i) {
1084                        return function() { 
1085                            if(data.places[i].address && data.places[i].address.length > 1) {
1086                                infoWindow.setContent('<div class="info_content"><p>'+ data.places[i].address +'</p></div>');
1087                                infoWindow.open(map, marker);
1088                            } else {
1089                                infoWindow.setContent('');
1090                                infoWindow.close();
1091                            }
1092                        };
1093                    })(marker, i));
1094                    /**
1095                     * If there is only one marker, map.fitBounds will zoom-in too much.
1096                     * Only run map.fitBounds if the markers are more than 1. Use setCenter
1097                     * instead if the the marker is only 1.
1098                     */
1099                    if ( i > 0 ) {
1100                        map.fitBounds( bounds );
1101                    } else {
1102                        var latLang = {
1103                            lat: parseFloat( data.places[i].latitude ),
1104                            lng: parseFloat( data.places[i].longitude )
1105                        };
1106                        map.setCenter( latLang );
1107                        map.setZoom( data.options.zoom );
1108                    }
1109                }
1110            }
1111            var boundsListener = google.maps.event.addListener((map), 'bounds_changed', function(event) {
1112                this.setZoom(data.options.zoom);
1113                google.maps.event.removeListener(boundsListener);
1114            });
1115            var update = function() {
1116                google.maps.event.trigger(map, "resize");
1117                map.setCenter(position);
1118            };
1119            update();
1120            var bindEvents = function() {
1121                $( window ).on( 'resize', update );
1122                window.addResizeListener( container, update );
1123            };
1124            bindEvents();
1125        };
1126        var initAll = function() {
1127            for( var i = 0, l = _toBuild.length; i < l; i++ ) {
1128                _toBuild[i]();
1129            }
1130        };
1131        MK.api.advancedgmaps = MK.api.advancedgmaps || function() {
1132            initAll();
1133        };
1134        return {
1135            init : function() {
1136                _toBuild.push( build );
1137                MK.core.loadDependencies(['https://maps.googleapis.com/ma
1137ps/api/js?'+apikey+'callback=MK.api.advancedgmaps']);
1138            }
1139        };
1140    };
1141})(jQuery);
1142(function($) {
1143    'use strict';
1144    function mk_animated_cols() {
1145        function equalheight (container){
1146            var currentTallest = 0,
1147                 currentRowStart = 0,
1148                 rowDivs = new Array(),
1149                 $el,
1150                 topPosition = 0;
1151             $(container).each(function() {
1152               $el = $(this);
1153               $($el).height('auto');
1154               topPosition = $el.position().top;
1155               if (currentRowStart != topPosition) {
1156                 for (var currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) {
1157                   rowDivs[currentDiv].height(currentTallest);
1158                 }
1159                 rowDivs.length = 0; // empty the array
1160                 currentRowStart = topPosition;
1161                 currentTallest = $el.height();
1162                 rowDivs.push($el);
1163               } else {
1164                 rowDivs.push($el);
1165                 currentTallest = (currentTallest < $el.height()) ? ($el.height()) : (currentTallest);
1166              }
1167               for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) {
1168                 rowDivs[currentDiv].height(currentTallest);
1169               }
1170             });
1171            return currentTallest;
1172        }
1173        function prepareCols(el) {
1174            var $this = el.parent().parent().find('.mk-animated-columns');
1175            var iconHeight  = equalheight('.vc_row .animated-column-icon, .animated-column-holder .mk-svg-icon'),
1176                titleHeight = equalheight('.vc_row .animated-column-title'),
1177                descHeight  = equalheight('.vc_row .animated-column-desc'),
1178                btnHeight   = $this.find('.animated-column-btn').innerHeight();
1179            if ($this.hasClass('full-style')) {
1180                $this.find('.animated-column-item').each(function() {
1181                    var $this = $(this),
1182                        contentHeight = (iconHeight + 30) + (titleHeight + 10) + (descHeight + 70) + 34;
1183                    /*
1184                     * Fix AM-2418.
1185                     *
1186                     * Column height setting of VC Animated Column doesn't work when Animated Column
1187                     * content is higher than the setting. So, check column height setting first.
1188                     * - If the column height setting < Animated Column height, update the column
1189                     *   height based on column height setting.
1190                     */
1191                    var $columnHeight = contentHeight * 1.5 + 50;
1192                    var $minHeight = parseInt( $this.css( 'min-height' ), 10 );
1193                    if ( ! isNaN( $minHeight ) ) {
1194                        if ( $minHeight < $columnHeight ) {
1195                            $columnHeight = $minHeight;
1196                        }
1197                    }
1198                    $this.height( $columnHeight );
1199                    var $box_height = $this.outerHeight(true),
1200                        $icon_height = $this.find('.animated-column-icon, .animated-column-holder .mk-svg-icon').height();
1201                    $this.find('.animated-column-holder').css({
1202                        'paddingTop': $box_height / 2 - $icon_height
1203                    });
1204                    $this.animate({opacity:1}, 300);
1205                });
1206            } else {
1207                $this.find('.animated-column-item').each(function() {
1208                    var $this = $(this),
1209                        halfHeight = $this.height() / 2,
1210                        halfIconHeight = $this.find('.animated-column-icon, .animated-column-holder .mk-svg-icon').height()/2,
1211                        halfTitleHeight = $this.find('.animated-column-simple-title').height()/2;
1212                    $this.find('.animated-column-holder').css({
1213                        'paddingTop': halfHeight - halfIconHeight
1214                    });
1215                    $this.find('.animated-column-title').css({
1216                        'paddingTop': halfHeight - halfTitleHeight
1217                    });
1218                    $this.animate({
1219                        opacity:1
1220                    }, 300);
1221                });
1222            }
1223        }
1224        $('.mk-animated-columns').each(function() {
1225            var that = this;
1226            MK.core.loadDependencies([ MK.core.path.plugins + 'tweenmax.js' ], function() {
1227                var $this = $(that),
1228                    $parent = $this.parent().parent(),
1229                    $columns = $parent.find('.column_container'),
1230                    index = $columns.index($this.parent());
1231                if($this.hasClass('full-style')) {
1232                    $this.find('.animated-column-item').hover(
1233                    function() {
1234                        TweenLite.to($(this).find(".animated-column-holder"), 0.5, {
1235                            top: '-15%',
1236                            ease: Back.easeOut
1237                        });
1238                        TweenLite.to($(this).find(".animated-column-desc"), 0.5, {
1239                            top: '50%',
1240                            ease: Expo.easeOut
1241                        }, 0.4);
1242                        TweenLite.to($(this).find(".animated-column-btn"), 0.3, {
1243                            top: '50%',
1244                            ease: Expo.easeOut
1245                        }, 0.6);
1246                    },
1247                    function() {
1248                        TweenLite.to($(this).find(".animated-column-holder"), 0.5, {
1249                            top: '0%',
1250                            ease: Back.easeOut, easeParams:[3]
1251                        });
1252                        TweenLite.to($(this).find(".animated-column-desc"), 0.5, {
1253                            top: '100%',
1254                            ease: Back.easeOut
1255                        }, 0.4);
1256                        TweenLite.to($(this).find(".animated-column-btn"), 0.5, {
1257                            top: '100%',
1258                            ease: Back.easeOut
1259                        }, 0.2);
1260                    });
1261                }
1262                if($this.hasClass('simple-style')) {
1263                    $this.find('.animated-column-item').hover(
1264                    function() {
1265                        TweenLite.to($(this).find(".animated-column-holder"), 0.7, {
1266                            top: '100%',
1267                            ease: Expo.easeOut
1268                        });
1269                        TweenLite.to($(this).find(".animated-column-title"), 0.7, {
1270                            top: '0%',
1271                            ease: Back.easeOut
1272                        }, 0.2);
1273                    },
1274                    function() {
1275                        TweenLite.to($(this).find(".animated-column-holder"), 0.7, {
1276                            top: '0%',
1277                            ease: Expo.easeOut
1278                        });
1279                        TweenLite.to($(this).find(".animated-column-title"), 0.7, {
1280                            top: '-100%',
1281                            ease: Back.easeOut
1282                        }, 0.2);
1283                    });
1284                }
1285                if($columns.length === index + 1) {
1286                    prepareCols($this);
1287                    $(window).on("resize", function() {
1288                            setTimeout(prepareCols($this), 1000);
1289                    });
1290                }
1291                MK.utils.eventManager.subscribe('iconsInsert', function() {
1292                    prepareCols($this);
1293                });
1294            });
1295        });
1296    }
1297    $(window).on('load vc_reload', mk_animated_cols);
1298}(jQuery));
1299(function($) {
1300    'use strict';
1301    var core = MK.core,
1302    	path = MK.core.path;
1303    MK.component.BannerBuilder = function( el ) {
1304    	var init = function(){
1305            var $this = $(el),
1306                  data = $this.data( 'bannerbuilder-config' );
1307            MK.core.loadDependencies([ MK.core.path.plugins + 'jquery.flexslider.js' ], function() {
1308                $this.flexslider({
1309                        selector: '.mk-banner-slides > .mk-banner-slide',
1310                        animation: data.animation,
1311                        smoothHeight: false,
1312                        direction:'horizontal',
1313                        slideshow: true,
1314                        slideshowSpeed: data.slideshowSpeed,
1315                        animationSpeed: data.animationSpeed,
1316                        pauseOnHover: true,
1317                        directionNav: data.directionNav,
1318                        controlNav: false,
1319                        initDelay: 2000,
1320                        prevText: '',
1321                        nextText: '',
1322                        pauseText: '',
1323                        playText: ''
1324                });
1325            });
1326    	};
1327    	return {
1328    		init : init
1329    	};
1330    };
1331})(jQuery);
1332(function($) {
1333    'use strict';
1334    var zIndex = 0;
1335    $('.mk-newspaper-wrapper').on('click', '.blog-loop-comments', function (event) {
1336        event.preventDefault();
1337        var $this = $(event.currentTarget);
1338        var $parent = $this.parents('.mk-blog-newspaper-item');
1339        $parent.css('z-index', ++zIndex);
1340        $this.parents('.newspaper-item-footer').find('.newspaper-social-share').slideUp(200).end().find('.newspaper-comments-list').slideDown(200);
1341        setTimeout( function() {
1342          MK.utils.eventManager.publish('item-expanded');
1343        }, 300);
1344    });
1345    $('.mk-newspaper-wrapper').on('click', '.newspaper-item-share', function (event) {
1346        event.preventDefault();
1347        var $this = $(event.currentTarget);
1348        var $parent = $this.parents('.mk-blog-newspaper-item');
1349        $parent.css('z-index', ++zIndex);
1350        $this.parents('.newspaper-item-footer').find('.newspaper-comments-list').slideUp(200).end().find('.newspaper-social-share').slideDown(200);
1351        setTimeout( function() {
1352          MK.utils.eventManager.publish('item-expanded');
1353        }, 300);
1354    });
1355    var init = function init() {
1356        setTimeout( function() {
1357            var $blog = $('.mk-blog-container');
1358            var $imgs = $blog.find('img[data-mk-image-src-set]');
1359            if ( $blog.hasClass('mk-blog-container-lazyload') && $imgs.length ) {
1360                $(window).on('scroll.mk_blog_lazyload', MK.utils.throttle(500, function(){
1361                    $imgs.each(function(index, elem) {
1362                        if ( MK.utils.isElementInViewport(elem) ) {
1363                            MK.component.ResponsiveImageSetter.init( $(elem) );
1364                            $imgs = $imgs.not( $(elem) );  // Remove element from the list when loaded to reduce the amount of iteration in each()
1365                        }
1366                    });
1367                }));
1368                $(window).trigger('scroll.mk_blog_lazyload');
1369                $(window).trigger('resize')
1370                MK.component.ResponsiveImageSetter.onResize($imgs);
1371            } else {
1372                MK.component.ResponsiveImageSetter.init($imgs);
1373                MK.component.ResponsiveImageSetter.onResize($imgs);
1374            }
1375        }, 50);
1376        if ( $('body').hasClass('vc_editor') ) {
1377            setTimeout( function() {
1378                $(window).trigger('resize');
1379            }, 2000)
1380        }
1381        $('.featured-image').on('click', function (event) {
1382          var $this = $(event.currentTarget);
1383          if (
1384            $this.parents('.mk-jupiter-blog').length === 0 ||
1385            $this.parents( '.mk-blog-spotlight-item' ).length !== 0
1386          ) {
1387            return;
1388          }
1389          window.location.href = $this.find('.post-type-badge').attr('href');
1390        })
1391    }
1392    init();
1393    $(window).on('vc_reload mk-image-loaded', init);
1394}(jQuery));
1395(function($) {
1396    'use strict';
1397    var core = MK.core,
1398    	path = MK.core.path;
1399    MK.component.Category = function( el ) {
1400        var init = function(){
1401			core.loadDependencies([ path.plugins + 'pixastic.js' ], function() {
1402         		blurImage($('.blur-image-effect .mk-loop-item .item-holder '));
1403         	});
1404			core.loadDependencies([ path.plugins + 'minigrid.js' ], masonry);
1405        };
1406        var blurImage = function($item) {
1407         	return $item.each(function() {
1408				var $_this = $(this);
1409				var img = $_this.find('.item-thumbnail');
1410				img.clone().addClass("blur-effect item-blur-thumbnail").removeClass('item-thumbnail').prependTo(this);
1411				var blur_this = $(".blur-effect", this);
1412					blur_this.each(function(index, element){
1413						if (img[index].complete === true) {
1414							Pixastic.process(blur_this[index], "blurfast", {amount:0.5});
1415						}
1416						else {
1417							blur_this.load(function () {
1418								Pixastic.process(blur_this[index], "blurfast", {amount:0.5});
1419							});
1420						}
1421					});
1422			});
1423        };
1424        var masonry = function() {
1425        	if(!$('.js-masonry').length) return;
1426	        function grid() {
1427	            minigrid({
1428		            container: '.js-masonry',
1429		            item: '.js-masonry-item',
1430		            gutter: 0
1431	            });
1432	        }
1433	        grid();
1434	        $(window).on('resize', grid);
1435        };
1436        return {
1437         	init : init
1438        };
1439    };
1440})(jQuery);
1441(function($) {
1442    'use strict';
1443    var core = MK.core,
1444        path = core.path;
1445    MK.component.Chart = function(el) {
1446        var init = function() {
1447            MK.core.loadDependencies([MK.core.path.plugins + 'jquery.easyPieChart.js'], function() {
1448                $('.mk-chart__chart').each(function() {
1449                    var $this = $(this),
1450                        $parent_width = $(this).parent().width(),
1451                        $chart_size = parseInt($this.attr('data-barSize'));
1452                    if ($parent_width < $chart_size) {
1453                        $chart_size = $parent_width !== 0 ? $parent_width : $chart_size;
1454                        $this.css('line-height', $chart_size);
1455                        $this.find('i').css({
1456                            'line-height': $chart_size + 'px'
1457                        });
1458                        $this.css({
1459                            'line-height': $chart_size + 'px'
1460                        });
1461                    }
1462                    var build = function() {
1463                        $this.easyPieChart({
1464                            animate: 1300,
1465                            lineCap: 'butt',
1466                            lineWidth: $this.attr('data-lineWidth'),
1467                            size: $chart_size,
1468                            barColor: $this.attr('data-barColor'),
1469                            trackColor: $this.attr('data-trackColor'),
1470                            scaleColor: 'transparent',
1471                            onStep: function(value) {
1472                                this.$el.find('.chart-percent span').text(Math.ceil(value));
1473                            }
1474                        });
1475                    };
1476                    MK.utils.scrollSpy(this, {
1477                        position: 'bottom',
1478                        after: build
1479                    });
1480                });
1481            });
1482        };
1483        return {
1484            init: init
1485        };
1486    };
1487})(jQuery);
1488(function($) {
1489    "use strict";
1490    $('.mk-clients.column-style').each(function() {
1491        var $group = $(this),
1492            $listItems = $group.find('li'),
1493            listItemsCount = $listItems.length,
1494            listStyle = $group.find('ul').attr('style') || '',
1495            fullRowColumnsCount = $group.find('ul:first-of-type li').length;
1496        function recreateGrid() { 
1497            var i;
1498            $listItems.unwrap();
1499            if (window.matchMedia('(max-width: 550px)').matches && fullRowColumnsCount >= 1) {
1500                for (i = 0; i < listItemsCount; i += 1) {
1501                    $listItems.slice(i, i + 1)
1502                        .wrapAll('<ul class="mk-clients-fixed-list" style="' + listStyle + '"></ul>');
1503                }
1504            } else if (window.matchMedia('(max-width: 767px)').matches && fullRowColumnsCount >= 2) {
1505                for (i = 0; i < listItemsCount; i += 2) {
1506                    $listItems.slice(i, i + 2)
1507                        .wrapAll('<ul class="mk-clients-fixed-list" style="' + listStyle + '"></ul>');
1508                }
1509            } else if (window.matchMedia('(max-width: 960px)').matches && fullRowColumnsCount >= 3) {
1510                for (i = 0; i < listItemsCount; i += 3) {
1511                    $listItems.slice(i, i + 3)
1512                        .wrapAll('<ul class="mk-clients-fixed-list" style="' + listStyle + '"></ul>');
1513                }
1514            } else {
1515                for (i = 0; i < listItemsCount; i += fullRowColumnsCount) {
1516                    $listItems.slice(i, i + fullRowColumnsCount)
1517                        .wrapAll('<ul style="' + listStyle + '"></ul>');
1518                }
1519            }
1520        }
1521        recreateGrid();
1522        $(window).on('resize', recreateGrid);
1523    });
1524}(jQuery));
1525(function($) {
1526    'use strict';
1527    $(window).on('vc_reload', function() {
1528        $('.mk-event-countdown-ul').each(function() {
1529            if ($(this).width() < 750) {
1530                $(this).addClass('mk-event-countdown-ul-block');
1531            } else {
1532                $(this).removeClass('mk-event-countdown-ul-block');
1533            }
1534        });
1535    });
1536})(jQuery);
1537(function($) {
1538	'use strict';
1539    $('.mk-edge-slider').find('video').each(function() {
1540        this.pause();
1541        this.currentTime = 0;
1542    });
1543	MK.component.EdgeSlider = function( el ) {
1544		var self = this,
1545			$this = $( el ),
1546            $window = $(window),
1547            $wrapper = $this.parent(),
1548			config = $this.data( 'edgeslider-config' ),
1549            $nav = $( config.nav ),
1550            $prev = $nav.find( '.mk-edge-prev' ),
1551            $prevTitle = $prev.find( '.nav-item-caption' ),
1552            $prevBg = $prev.find('.edge-nav-bg'),
1553            $next = $nav.find( '.mk-edge-next' ),
1554            $nextTitle = $next.find( '.nav-item-caption' ),
1555            $nextBg = $next.find('.edge-nav-bg'),
1556            $navBtns = $nav.find( 'a' ),
1557            $pagination = $( '.swiper-pagination' ),
1558            $skipBtn = $( '.edge-skip-slider' ),
1559            $opacityLayer = $this.find('.edge-slide-content'),
1560            $videos = $this.find('video'),
1561            currentSkin = null,
1562            currentPoint = null,
1563            winH = null,
1564            opacity = null,
1565            offset = null;
1566        var callbacks = {
1567    		onInitialize : function( slides ) {
1568    			self.$slides = $( slides );
1569				self.slideContents = $.map( self.$slides, function( slide ) {
1570					var $slide = $( slide ),
1571						title = $slide.find('.edge-slide-content .edge-title').first().text(),
1572						skin = $slide.attr("data-header-skin"),
1573						image = $slide.find('.mk-section-image').attr('data-thumb') ||
1574								$slide.find('.mk-video-section-touch').attr('data-thumb'),
1575						bgColor = $slide.find('.mk-section-image').css('background-color');
1576					return {
1577						skin: skin,
1578						title: title,
1579						image: image,
1580						bgColor: bgColor
1581					};
1582				});
1583                if(MK.utils.isSmoothScroll) $this.css('position', 'fixed');
1584				setNavigationContent( 1, self.$slides.length - 1 );
1585				setSkin( 0 );
1586                playVideo(0);
1587                setTimeout( function() {
1588                    $( '.edge-slider-loading' ).fadeOut( '100' );
1589                }, 1000 );
1590    		},
1591            onBeforeSlide : function( id ) {
1592            },
1593    		onAfterSlide : function( id ) {
1594    			setNavigationContent( nextFrom(id), prevFrom(id) );
1595    			setSkin( id );
1596                stopVideos(); // stop all others if needed
1597                playVideo( id );
1598    		}
1599    	};
1600        var nextFrom = function nextFrom(id) {
1601            return ( id + 1 === self.$slides.length ) ? 0 : id + 1;
1602        };
1603        var prevFrom = function prevFrom(id) {
1604            return ( id - 1 === -1 ) ? self.$slides.length - 1 : id - 1;
1605        };
1606        var setNavigationContent = function( nextId, prevId ) {
1607            if(self.slideContents[ prevId ]) {
1608        		$prevTitle.text( self.slideContents[ prevId ].title );
1609        		$prevBg.css( 'background',
1610        			self.slideContents[ prevId ].image !== 'none' ?
1611        				'url(' + self.slideContents[ prevId ].image + ')' :
1612        				self.slideContents[ prevId ].bgColor );
1613            }
1614            if(self.slideContents[ nextId ]) {
1615        		$nextTitle.text( self.slideContents[ nextId ].title );
1616        		$nextBg.css( 'background',
1617        			self.slideContents[ nextId ].image !== 'none' ?
1618        				'url(' + self.slideContents[ nextId ].image + ')' :
1619        				self.slideContents[ nextId ].bgColor );
1620            }
1621        };
1622        var setSkin = function setSkin( id ) {
1623        	currentSkin = self.slideContents[ id ].skin;
1624          	$navBtns.attr('data-skin', currentSkin);
1625          	$pagination.attr('data-skin', currentSkin);
1626         	$skipBtn.attr('data-skin', currentSkin);
1627         	if( self.config.firstEl ) {
1628         		MK.utils.eventManager.publish( 'firstElSkinChange', currentSkin );
1629         	}
1630        };
1631        var stopVideos = function stopVideos() {
1632            $videos.each(function() {
1633                this.pause();
1634                this.currentTime = 0;
1635            });
1636        };
1637        var playVideo = function playVideo(id) {
1638            var video = self.$slides.eq(id).find('video').get(0);
1639            if(video) {
1640                video.play();
1641                console.log('play video in slide nr ' + id);
1642            }
1643        };
1644        var onResize = function onResize() {
1645            var height = $wrapper.height();
1646            $this.height( height );
1647            var width = $wrapper.width();
1648            $this.width( width );
1649            winH = $window.height();
1650            offset = $this.offset().top;
1651            if(!MK.utils.isSmoothScroll) return;
1652            if(MK.utils.isResponsiveMenuState()) {
1653                $this.css({
1654                    '-webkit-transform': 'translateZ(0)',
1655                    '-moz-transform': 'translateZ(0)',
1656                    '-ms-transform': 'translateZ(0)',
1657                    '-o-transform': 'translateZ(0)',
1658                    'transform': 'translateZ(0)',
1659                    'position': 'absolute'
1660                });
1661                $opacityLayer.css({
1662                    'opacity': 1
1663                });
1664            } else {
1665                onScroll();
1666            }
1667        };
1668        var onScroll = function onScroll() {
1669            currentPoint = - MK.val.scroll();
1670            if( offset + currentPoint <= 0 ) {
1671                opacity = 1 + ((offset + currentPoint) / winH) * 2;
1672                opacity = Math.min(opacity, 1);
1673                opacity = Math.max(opacity, 0);
1674                $opacityLayer.css({
1675                    opacity: opacity
1676                });
1677            }
1678            $this.css({
1679                '-webkit-transform': 'translateY(' + currentPoint + 'px) translateZ(0)',
1680                '-moz-transform': 'translateY(' + currentPoint + 'px) translateZ(0)',
1681                '-ms-transform': 'translateY(' + currentPoint + 'px) translateZ(0)',
1682                '-o-transform': 'translateY(' + currentPoint + 'px) translateZ(0)',
1683                'transform': 'translateY(' + currentPoint + 'px) translateZ(0)',
1684                'position': 'fixed'
1685            });
1686        };
1687        onResize();
1688        $window.on('load', onResize);
1689        $window.on('resize', onResize);
1690        window.addResizeListener( $wrapper.get(0), onResize );
1691        if(MK.utils.isSmoothScroll) {
1692            onScroll();
1693            $window.on('scroll', function() {
1694                if(MK.utils.isResponsiveMenuState()) return;
1695                window.requestAnimationFrame(onScroll);
1696            });
1697        }
1698		this.el = el;
1699		this.config = $.extend( config, callbacks );
1700		this.slideContents = null; // cache slide contents
1701        this.config.edgeSlider = true;
1702	};
1703	MK.component.EdgeSlider.prototype = {
1704		init : function() {
1705			var slider = new MK.ui.Slider( this.el, this.config );
1706			slider.init();
1707		}
1708	};
1709})(jQuery);
1710(function ($) {
1711	'use strict';
1712var init = function init() {
1713	$('.mk-faq-wrapper').each( function() {
1714		var $this = $(this);
1715		var $filter = $this.find('.filter-faq');
1716		var $filterItem = $filter.find('a');
1717		var $faq = $this.find('.mk-faq-container > div');
1718		var currentFilter = '';
1719		$filterItem.on('click', function(e) {
1720			var $this = $(this);
1721			currentFilter = $this.data('filter');
1722			$filterItem.removeClass('current');
1723			$this.addClass('current');
1724			filterItems( currentFilter );
1725			e.preventDefault();
1726		});
1727		function filterItems( cat ) {
1728			if( cat === '' ) {
1729				$faq.slideDown(200).removeClass('hidden');
1730				return;
1731			}
1732			$faq.not( '.' + cat ).slideUp(200).addClass('hidden');
1733			$faq.filter( '.' + cat ).slideDown(200).removeClass('hidden');
1734		}
1735	});
1736}
1737init();
1738$(window).on('vc_reload', init);
1739}( jQuery ));
1740/* Flickr Feeds */
1741/* -------------------------------------------------------------------- */
1742(function ($) {
1743    'use strict';
1744function mk_flickr_feeds() {
1745    $('.mk-flickr-feeds').each(function() {
1746        var $this = $(this),
1747            apiKey = $this.attr('data-key'),
1748            userId = $this.attr('data-userid'),
1749            perPage = $this.attr('data-count'),
1750            column = $this.attr('data-column');
1751        if ( ! $( '.mk-flickr-feeds' ).is( ':empty' ) ) {
1752            return;
1753        }
1754        jQuery.getJSON('https://api.flickr.com/services/rest/?format=json&method=' + 'flickr.photos.search&api_key=' + apiKey + '&user_id=' + userId + '&&per_page=' + perPage + '&jsoncallback=?', function(data) {
1755            jQuery.each(data.photos.photo, function(i, rPhoto) {
1756                var basePhotoURL = 'http://farm' + rPhoto.farm + '.static.flickr.com/' + rPhoto.server + '/' + rPhoto.id + '_' + rPhoto.secret;
1757                var thumbPhotoURL = basePhotoURL + '_q.jpg';
1758                var mediumPhotoURL = basePhotoURL + '.jpg';
1759                var photoStringStart = '<a ';
1760                var photoStringEnd = 'title="' + rPhoto.title + '" rel="flickr-feeds" class="mk-lightbox flickr-item jupiter-donut-colitem" href="' + mediumPhotoURL + '"><img src="' + thumbPhotoURL + '" alt="' + rPhoto.title + '"/></a>;';
1761                var photoString = (i < perPage) ? photoStringStart + photoStringEnd : photoStringStart + photoStringEnd;
1762                jQuery(photoString).appendTo($this);
1763            });
1764        });
1765    });
1766}
1767    mk_flickr_feeds();
1768    $( window ).on( 'vc_reload', mk_flickr_feeds );
1769})(jQuery);
1770jQuery(function($) {
1771  'use strict';
1772  var init = function init() {
1773    var $gallery = $('.mk-gallery');
1774    var $imgs = $gallery.find('img[data-mk-image-src-set]');
1775    if ( $gallery.hasClass('mk-gallery-lazyload') && $imgs.length ) {
1776      $(window).on('scroll.mk_gallery_lazyload', MK.utils.throttle(500, function(){
1777        $imgs.each(function(index, elem) {
1778          if ( MK.utils.isElementInViewport(elem) ) {
1779            MK.component.ResponsiveImageSetter.init( $(elem) );
1780            $imgs = $imgs.not( $(elem) );  // Remove element from the list when loaded to reduce the amount of iteration in each()
1781          }
1782        });
1783      }));
1784      $(window).trigger('scroll.mk_gallery_lazyload');
1785      MK.component.ResponsiveImageSetter.onResize($imgs);
1786    } else {
1787      MK.component.ResponsiveImageSetter.init($imgs);
1788      MK.component.ResponsiveImageSetter.onResize($imgs);
1789    }
1790  }
1791  init();
1792  $(window).on('vc_reload mk-image-loaded', init);
1793});
1794jQuery(function($) {
1795  'use strict';
1796  var init = function init() {
1797    var $image = $('.mk-image');
1798    var $imgs = $image.find('img[data-mk-image-src-set]');
1799    if ( $image.hasClass('mk-image-lazyload') && $imgs.length ) {
1800      $(window).on('scroll.mk_image_lazyload', MK.utils.throttle(500, function(){
1801        $imgs.each(function(index, elem) {
1802          if ( MK.utils.isElementInViewport(elem) ) {
1803            MK.component.ResponsiveImageSetter.init( $(elem) );
1804            $imgs = $imgs.not( $(elem) );  // Remove element from the list when loaded to reduce the amount of iteration in each()
1805          }
1806        });
1807      }));
1808      $(window).trigger('scroll.mk_image_lazyload');
1809      MK.component.ResponsiveImageSetter.onResize($imgs);
1810    } else {
1811      MK.component.ResponsiveImageSetter.init($imgs);
1812      MK.component.ResponsiveImageSetter.onResize($imgs);
1813    }
1814  }
1815  init();
1816  $(window).on('vc_reload mk-image-loaded', init);
1817});
1818(function($) {
1819  'use strict';
1820  /* Page Section Intro Effects */
1821  /* -------------------------------------------------------------------- */
1822  function mk_section_intro_effects() {
1823    if (!MK.utils.isMobile()) {
1824      if (!$.exists('.mk-page-section.intro-true')) return;
1825      $('.mk-page-section.intro-true').each(function() {
1826        var that = this;
1827        MK.core.loadDependencies([ MK.core.path.plugins + 'jquery.sectiontrans.js', MK.core.path.plugins + 'tweenmax.js' ], function() {
1828          var $this = $(that),
1829            $pageCnt = $this.parent().nextAll('div'),
1830            windowHeight = $(window).height(),
1831            effectName = $this.attr('data-intro-effect'),
1832            $header = $('.mk-header');
1833          var effect = {
1834            fade: new TimelineLite({paused: true})
1835              .set($pageCnt, { opacity: 0, y: windowHeight * 0.3 })
1836              .to($this, 1, { opacity: 0, ease:Power2.easeInOut })
1837              .to($pageCnt, 1, { opacity: 1, y: 0, ease:Power2.easeInOut}, "-=.7")
1838              .set($this, { zIndex: '-1'}),
1839            zoom_out: new TimelineLite({paused: true})
1840              .set($pageCnt, { opacity: 0, y: windowHeight * 0.3})
1841              .to($this, 1.5, { opacity: .8, scale: 0.8, y: -windowHeight - 100, ease:Strong.easeInOut })
1842              .to($pageCnt, 1.5, { opacity: 1, y:  0, ease:Strong.easeInOut}, "-=1.3"),
1843            shuffle: new TimelineLite({paused: true})
1844              .to($this, 1.5, { y: -windowHeight/2, ease:Strong.easeInOut })
1845              .to($pageCnt.first(), 1.5, { paddingTop: windowHeight/2, ease:Strong.easeInOut }, "-=1.3")
1846          };
1847          console.log($pageCnt);
1848          $this.sectiontrans({
1849            effect: effectName
1850          });
1851          if($this.hasClass('shuffled')) {
1852            TweenLite.set($this, { y: -windowHeight/2 });
1853            TweenLite.set($this.nextAll('div').first(), { paddingTop: windowHeight/2 });
1854          }
1855          $('body').on('page_intro', function() {
1856            MK.utils.scroll.disable();
1857            $(this).data('intro', true);
1858            effect[effectName].play();
1859            setTimeout(function() {
1860              $header.addClass('pre-sticky');
1861              $header.addClass('a-sticky');
1862              $('.mk-header-padding-wrapper').addClass('enable-padding');
1863              $('body').data('intro', false);
1864              if(effectName === 'shuffle') $this.addClass('shuffled');
1865            }, 1000);
1866            setTimeout(MK.utils.scroll.enable, 1500);
1867          });
1868          $('body').on('page_outro', function() {
1869            MK.utils.scroll.disable();
1870            $(this).data('intro', true);
1871            effect[effectName].reverse();
1872            setTimeout(function() {
1873              $header.removeClass('pre-sticky');
1874              $header.removeClass('a-sticky');
1875              $('.mk-header-padding-wrapper').removeClass('enable-padding');
1876              $('body').data('intro', false);
1877              if($this.hasClass('shuffled')) $this.removeClass('shuffled');
1878            }, 1000);
1879            setTimeout(MK.utils.scroll.enable, 1500);
1880          });
1881        });
1882      });
1883    } else {
1884      $('.mk-page-section.intro-true').each(function() {
1885        $(this).attr('data-intro-effect', '');
1886      });
1887    }
1888  }
1889  mk_section_intro_effects();
1890  var debounceResize = null;
1891  $(window).on("resize", function() {
1892    if( debounceResize !== null ) { clearTimeout( debounceResize ); }
1893    debounceResize = setTimeout( mk_section_intro_effects, 300 );
1894  });
1895  /* Page Section Adaptive Height */
1896  /* -------------------------------------------------------------------- */
1897  function mk_section_adaptive_height() {
1898      $( ".mk-page-section.mk-adaptive-height" ).each( function() {
1899          var imageHeight = $( this ).find( ".mk-adaptive-image" ).height();
1900          $( this ).css( "height", imageHeight );
1901      });
1902  }
1903  $( window ).on( "load resize", mk_section_adaptive_height );
1904  /* Page Section Image Loader */
1905  /* -------------------------------------------------------------------- */
1906  var init = function init() {
1907    var $allLayers = $('.mk-page-section .background-layer').filter(function(index) {
1908      var isLazyLoad = $(this).attr('data-mk-lazyload') === 'true';
1909      if ( !isLazyLoad ) {
1910        MK.component.BackgroundImageSetter.init( $(this) );
1911      }
1912      return isLazyLoad;
1913    });;
1914    if ( $allLayers.length ) {
1915      $(window).on('scroll.mk_page_section_lazyload', MK.utils.throttle(500, function(){
1916        $allLayers.each(function(index, elem) {
1917          if ( MK.utils.isElementInViewport(elem) ) {
1918            MK.component.BackgroundImageSetter.init( $(elem) );
1919            $allLayers = $allLayers.not( $(elem) );  // Remove element from the list when loaded to reduce the amount of iteration in each()
1920          }
1921        });
1922      }));
1923      $(window).trigger('scroll.mk_page_section_lazyload');
1924      MK.component.BackgroundImageSetter.onResize($allLayers);
1925    }
1926  }
1927  init();
1928  $(window).on('vc_reload', init);
1929  /* Page Section Layout */
1930  /* -------------------------------------------------------------------- */
1931  function mk_section_half_layout() {
1932    $(".mk-page-section.half_boxed").each(function() {
1933      var $section = $(this);
1934      if ($(window).width() > jupiterDonutVars.gridWidth) {
1935        var margin = ($(window).width() - jupiterDonutVars.gridWidth) / 2;
1936        var $section_inner = $section.find('.mk-half-layout-inner');
1937        if($section.hasClass('half_left_layout')){
1938          $section_inner.css({
1939            marginRight: margin + 'px'
1940          });
1941        }
1942        if($section.hasClass('half_right_layout')){
1943          $section_inner.css({
1944            marginLeft: margin + 'px'
1945          });
1946        }
1947      }
1948    });
1949  }
1950  $(window).on("load resize", mk_section_half_layout);
1951	/* Page Section - Fluid Width Equal Height Columns */
1952	/* -------------------------------------------------------------------- */
1953	function mk_reset_section_fluid_width_equal_height_columns() {
1954		var $colWrappers = '', maxWidth = 850;
1955		$colWrappers = $('.page-section-content.fluid-width-equal-height-columns');
1956		$colWrappers.each(function() {
1957			var $colWrapper = '', colHeight = 0;
1958			$colWrapper = $(this);
1959			$colWrapper.find('.wpb_column.column_container').each(function() {
1960				var $col = $(this), size = $(this).children('div').length;
1961				if (size > 0) {
1962					$col.removeAttr("style");
1963					$col.children('div').each(function() {
1964						var $this = $( this );
1965						/**
1966						 * Fix Advanced Google Maps (AGM) issue on page section.
1967						 *
1968						 * Problem: AGM set the height as inline CSS property (style attribute).
1969						 * In this case, the style attribute will be removed before checking the
1970						 * elements height in each of the column. That's why AGM container will
1971						 * loose the height and the map can't be displayed properly (only 1px)
1972						 * because it overlap other row in the page. We need to check if current
1973						 * element is AGM or not before removing style attribute of the element.
1974						 */
1975						if ( ! $this.hasClass( 'mk-advanced-gmaps' ) ) {
1976							$this.removeAttr( 'style' );
1977						}
1978					});
1979				}
1980			});
1981		});
1982	}
1983	function mk_section_fluid_width_equal_height_columns() {
1984		mk_reset_section_fluid_width_equal_height_columns();
1985		var $colWrappers = '', maxWidth = 850, $pageSection = $('.page-section-content');
1986		if ( ! $pageSection.hasClass('.fluid-width-equal-height-columns') ) {
1987			$pageSection.find('.wpb_column.column_container').removeAttr( 'style' );
1988			$pageSection.find('.wpb_column.column_container .vc_element').removeAttr( 'style' );
1989		}
1990		$colWrappers = $('.page-section-content.fluid-width-equal-height-columns');
1991		$colWrappers.each(function() {
1992			var $colWrapper = '', colHeight = 0;
1993			$colWrapper = $(this);
1994			if ($colWrapper.length > 0) {
1995				/* Get the minimum height of the wrapper */
1996				colHeight = $colWrappers.outerHeight(true);
1997				$colWrapper.find('.wpb_column.column_container').each(function() {
1998					var $col = $(this);
1999					if ($col.length > 0) {
2000						colHeight = ($col.outerHeight(true) > colHeight) ? $col.outerHeight(true) : colHeight;
2001					}
2002				});
2003			}
2004			if (colHeight > 0) {
2005				$colWrapper.find('.wpb_column.column_container').each(function() {
2006					var $col = $(this), size = $(this).children('div').length;
2007					if (size > 0) {
2008						colHeight = ($(window).width() < maxWidth) ? 'initial' : colHe
2008ight;
2009						$col.css("height", colHeight);
2010						if ($colWrapper.hasClass('vertical-align-center')) {
2011							$col.children('div').each(function() {
2012								var elHeight = ($(window).width() < maxWidth) ? 'initial' : (colHeight/size);
2013								/**
2014								 * Fix Advanced Google Maps (AGM) issue on page section.
2015								 */
2016								if ( ! $(this).hasClass( 'mk-advanced-gmaps' ) ) {
2017									$(this).css("height", elHeight);
2018								}
2019							});
2020						}
2021					}
2022				});
2023			}
2024		});
2025	}
2026	$(window).on('load vc_reload', function() {
2027		setTimeout(function() {
2028		/*
2029			Somehow the values are not correctly updated for the screens
2030			and we need to put setTimeout to fix the issue.
2031		*/
2032		mk_section_fluid_width_equal_height_columns();
2033		}, 500);
2034	});
2035	var debounceResize = null;
2036	$(window).on("resize", function() {
2037		if( debounceResize !== null ) { clearTimeout( debounceResize ); }
2038		debounceResize = setTimeout( mk_section_fluid_width_equal_height_columns(), 500 );
2039	});
2040}(jQuery));
2041(function($) {
2042	'use strict';
2043	function mk_page_title_parallax() {
2044	    if (!MK.utils.isMobile()) {
2045	        $('.mk-effect-wrapper').each(function() {
2046	            var $this = $(this),
2047                	progressVal,
2048                    currentPoint,
2049                    ticking = false,
2050                    scrollY = MK.val.scroll(),
2051                    $window = $(window),
2052                    windowHeight = $(window).height(),
2053                    parentHeight = $this.outerHeight(),
2054                    startPoint = 0,
2055                    endPoint = $this.offset().top + parentHeight,
2056                    effectLayer = $this.find('.mk-effect-bg-layer'),
2057                    gradientLayer = effectLayer.find('.mk-effect-gradient-layer'),
2058                    cntLayer = $this.find('.mk-page-title-box-content'),
2059                    animation = effectLayer.attr('data-effect'),
2060                    top = $this.offset().top,
2061                    height = $this.outerHeight();
2062                var parallaxSpeed = 0.7,
2063                    zoomFactor = 1.3;
2064                var parallaxTopGap = function() {
2065                    var gap = top * parallaxSpeed;
2066                    effectLayer.css({
2067                        height : height + gap + 'px',
2068                        top : (-gap) + 'px'
2069                    });
2070                };
2071                if (animation == ("parallax" || "parallaxZoomOut") ) {
2072                    parallaxTopGap();
2073                }
2074                var animationSet = function() {
2075                    scrollY = MK.val.scroll();
2076                    if (animation == "parallax") {
2077                        currentPoint = (startPoint + scrollY) * parallaxSpeed;
2078                        effectLayer.get(0).style.transform = 'translateY(' + currentPoint + 'px)';
2079                    }
2080                    if (animation == "parallaxZoomOut") {
2081                    	console.log(effectLayer);
2082                        currentPoint = (startPoint + scrollY) * parallaxSpeed;
2083                        progressVal = (1 / (endPoint - startPoint) * (scrollY - startPoint));
2084                        var zoomCalc = zoomFactor - ((zoomFactor - 1) * progressVal);
2085                        effectLayer.get(0).style.transform = 'translateY(' + currentPoint + 'px) scale(' + zoomCalc + ')';
2086                    }
2087                    if (animation == "gradient") {
2088                        progressVal = (1 / (endPoint - startPoint) * (scrollY - startPoint));
2089                        gradientLayer.css({
2090                            opacity: progressVal * 2
2091                        });
2092                    }
2093                    if (animation != "gradient") {
2094                        progressVal = (1 / (endPoint - startPoint) * (scrollY - startPoint));
2095                        cntLayer.css({
2096                            opacity: 1 - (progressVal * 4)
2097                        });
2098                    }
2099                    ticking = false;
2100                };
2101                animationSet();
2102                var requestTick = function() {
2103                    if (!ticking) {
2104                        window.requestAnimationFrame(animationSet);
2105                        ticking = true;
2106                    }
2107                };
2108                $window.off('scroll', requestTick);
2109                $window.on('scroll', requestTick);
2110	        });
2111	    }
2112	}
2113	var $window = $(window);
2114	var debounceResize = null;
2115	$window.on('load', mk_page_title_parallax);
2116    $window.on("resize", function() {
2117        if( debounceResize !== null ) { clearTimeout( debounceResize ); }
2118        debounceResize = setTimeout( mk_page_title_parallax, 300 );
2119    });
2120}(jQuery));
2121(function($) {
2122    'use strict';
2123    var utils = MK.utils,
2124        core = MK.core,
2125        path = MK.core.path;
2126    MK.component.PhotoAlbum = function(el) {
2127        this.album = el;
2128        this.initialOpen = false;
2129    };
2130    MK.component.PhotoAlbum.prototype = {
2131        dom: {
2132            gallery: '.slick-slider-wrapper',
2133            title: '.slick-title',
2134            galleryContainer: '.slick-slides',
2135            closeBtn: '.slick-close-icon',
2136            thumbList: '.slick-dots',
2137            thumbs: '.slick-dots li',
2138            imagesData: 'photoalbum-images',
2139            titleData: 'photoalbum-title',
2140            idData: 'photoalbum-id',
2141            urlData: 'photoalbum-url',
2142            activeClass: 'is-active'
2143        },
2144        tpl: {
2145            gallery: '#tpl-photo-album',
2146            slide: '<div class="slick-slide"></div>'
2147        },
2148        init: function() {
2149            this.cacheElements();
2150            this.bindEvents();
2151            this.openByLink();
2152        },
2153        cacheElements: function() {
2154            this.$album = $(this.album);
2155            this.imagesSrc = this.$album.data(this.dom.imagesData);
2156            this.albumLength = this.imagesSrc.length;
2157            this.title = this.$album.data(this.dom.titleData);
2158            this.id = this.$album.data(this.dom.idData);
2159            this.url = this.$album.data(this.dom.urlData);
2160            this.images = []; // stores dom objects to insert into gallery instance
2161        },
2162        bindEvents: function() {
2163            this.$album.not('[data-photoalbum-images="[null]"]').on('click', this.albumClick.bind(this));
2164            $(document).on('click', this.dom.closeBtn, this.closeClick.bind(this));
2165            $(window).on('resize', this.thumbsVisibility.bind(this));
2166            $(window).on('resize', this.makeArrows.bind(this));
2167        },
2168        albumClick: function(e) {
2169            e.preventDefault();
2170            this.open();
2171            MK.ui.loader.add(this.album);
2172        },
2173        closeClick: function(e) {
2174            e.preventDefault();
2175            if (this.slider) {
2176                this.removeGallery();
2177                this.slider.exitFullScreen();
2178            }
2179        },
2180        thumbsVisibility: function() {
2181            if (!this.thumbsWidth) return;
2182            if (window.matchMedia('(max-width:' + (this.thumbsWidth + 260) + 'px)').matches) this.hideThumbs(); // 260 is 2 * 120 - right corner buttons width + scrollbar
2183            else this.showThumbs();
2184        },
2185        hideThumbs: function() {
2186            if (!this.$thumbList) return;
2187            this.$thumbList.hide();
2188        },
2189        showThumbs: function() {
2190            if (!this.$thumbList) return;
2191            this.$thumbList.show();
2192        },
2193        open: function() {
2194            var self = this;
2195            core.loadDependencies([path.plugins + 'slick.js'], function() {
2196                self.createGallery();
2197                self.loadImages();
2198            });
2199        },
2200        createGallery: function() {
2201            if (!$(this.dom.gallery).length) {
2202                var tpl = $(this.tpl.gallery).eq(0).html();
2203                $('body').append(tpl);
2204            }
2205            this.$gallery = $(this.dom.gallery);
2206            this.$closeBtn = $(this.dom.closeBtn);
2207        },
2208        createSlideshow: function() {
2209            var self = this;
2210            this.slider = new MK.ui.FullScreenGallery(this.dom.galleryContainer, {
2211                id: this.id,
2212                url: this.url
2213            });
2214            this.slider.init();
2215            $(window).trigger('resize');
2216            this.makeArrows();
2217            this.$thumbList = $(this.dom.thumbList);
2218            this.$thumbs = $(this.dom.thumbs);
2219            this.thumbsWidth = (this.$thumbs.length) * 95;
2220            this.thumbsVisibility();
2221            setTimeout(function() {
2222                MK.ui.loader.remove(self.album);
2223            }, 100);
2224            MK.utils.eventManager.publish('photoAlbum-open');
2225        },
2226        makeArrows: function() {
2227            if (this.arrowsTimeout) clearTimeout(this.arrowsTimeout);
2228            this.arrowsTimeout = setTimeout(function() {
2229                var $prev = $('.slick-prev').find('svg');
2230                var $next = $('.slick-next').find('svg');
2231                $prev.wrap('<div class="slick-nav-holder"></div>');
2232                $next.wrap('<div class="slick-nav-holder"></div>');
2233                if (matchMedia("(max-width: 1024px)").matches) {
2234                    $prev.attr({
2235                        width: 12,
2236                        height: 22
2237                    }).find('polyline').attr('points', '12,0 0,11 12,22');
2238                    $next.attr({
2239                        width: 12,
2240                        height: 22
2241                    }).find('polyline').attr('points', '0,0 12,11 0,22');
2242                } else {
2243                    $prev.attr({
2244                        width: 33,
2245                        height: 65
2246                    }).find('polyline').attr('points', '0.5,0.5 32.5,32.5 0.5,64.5');
2247                    $next.attr({
2248                        width: 33,
2249                        height: 65
2250                    }).find('polyline').attr('points', '0.5,0.5 32.5,32.5 0.5,64.5');
2251                }
2252            }, 0);
2253        },
2254        loadImages: function() {
2255            var self = this,
2256                n = 0;
2257            if (!this.images.length) {
2258                this.imagesSrc.forEach(function(src) {
2259                    if (src === null) return; // protect from nulls
2260                    var img = new Image();
2261                    img.onload = function() {
2262                        self.onLoad(n += 1);
2263                    };
2264                    img.src = src;
2265                    self.images.push(img);
2266                });
2267            } else {
2268                this.onLoad(this.albumLength);
2269            }
2270        },
2271        onLoad: function(n) {
2272            if (n === this.albumLength) {
2273                this.insertImages();
2274                this.showGallery();
2275                this.createSlideshow();
2276            }
2277        },
2278        insertImages: function() {
2279            var $galleryContainer = this.$gallery.find(this.dom.galleryContainer),
2280                $title = $(this.dom.title),
2281                slide = this.tpl.slide;
2282            $galleryContainer.html('');
2283            $title.html(this.title);
2284            this.images.forEach(function(img) {
2285                var $slide = $(slide);
2286                $slide.html(img);
2287                $galleryContainer.prepend($slide);
2288            });
2289        },
2290        showGallery: function() {
2291            var self = this;
2292            this.$gallery.addClass(this.dom.activeClass);
2293            utils.scroll.disable();
2294        },
2295        removeGallery: function() {
2296            var self = this;
2297            this.$gallery.removeClass(this.dom.activeClass);
2298            setTimeout(function() {
2299                self.$gallery.remove();
2300            }, 300);
2301            utils.scroll.enable();
2302        },
2303        openByLink: function() {
2304            var loc = window.location,
2305                hash = loc.hash,
2306                id;
2307            if (hash.length && hash.substring(1).length) {
2308                id = hash.substring(1);
2309                id = id.replace('!loading', '');
2310                if (id == this.id && !this.initialOpen) {
2311                    this.initialOpen = true;
2312                    this.open();
2313                }
2314            }
2315        }
2316    };
2317    MK.component.PhotoAlbumBlur = function(el) {
2318        var init = function() {
2319            core.loadDependencies([path.plugins + 'pixastic.js'], function() {
2320                blurImage($('.mk-album-item figure'));
2321            });
2322        };
2323        var blurImage = function($item) {
2324            return $item.each(function() {
2325                var $_this = $(this);
2326                var img = $_this.find('.album-cover-image');
2327                img.clone().addClass("blur-effect item-blur-thumbnail").removeClass('album-cover-image').prependTo(this);
2328                var blur_this = $(".blur-effect", this);
2329                blur_this.each(function(index, element) {
2330                    if (img[index].complete === true) {
2331                        Pixastic.process(blur_this[index], "blurfast", {
2332                            amount: 0.5
2333                        });
2334                    } else {
2335                        blur_this.load(function() {
2336                            Pixastic.process(blur_this[index], "blurfast", {
2337                                amount: 0.5
2338                            });
2339                        });
2340                    }
2341                });
2342            });
2343        };
2344        return {
2345            init: init
2346        };
2347    };
2348})(jQuery);
2349jQuery(document).ready(function( $ ) {
2350	if ( typeof window.safari === 'undefined' ) {
2351		return;
2352	}
2353	function mkRedraw() {
2354		$('.mk-photo-roller').hide().show(0);
2355	}
2356	mkRedraw();
2357	$( window ).resize( function() {
2358		mkRedraw()
2359	} );
2360});
2361jQuery(function($) {
2362  'use strict';
2363  var init = function init() {
2364    var $portfolio = $('.portfolio-grid');
2365    var $imgs = $portfolio.find('img[data-mk-image-src-set]');
2366    if ( $portfolio.hasClass('portfolio-grid-lazyload') && $imgs.length ) {
2367      $(window).on('scroll.mk_portfolio_lazyload', MK.utils.throttle(500, function(){
2368        $imgs.each(function(index, elem) {
2369          if ( MK.utils.isElementInViewport(elem) ) {
2370            MK.component.ResponsiveImageSetter.init( $(elem) );
2371            $imgs = $imgs.not( $(elem) );  // Remove element from the list when loaded to reduce the amount of iteration in each()
2372          }
2373        });
2374      }));
2375      $(window).trigger('scroll.mk_portfolio_lazyload');
2376      MK.component.ResponsiveImageSetter.onResize($imgs);
2377    } else {
2378      MK.component.ResponsiveImageSetter.init($imgs);
2379      MK.component.ResponsiveImageSetter.onResize($imgs);
2380    }
2381  }
2382  init();
2383  $(window).on('vc_reload mk-image-loaded', function(){
2384    init();
2385    $('.mk-portfolio-container').each(function(){
2386      var id = $(this).attr('id');
2387      var el = '#' + id + '.mk-portfolio-container.js-el';
2388      if($(this).data('mk-component') == 'Grid') {
2389        $(el).data('init-Grid', true);
2390        var component = new MK.component[ 'Grid' ]( el );
2391        component.init();
2392      }
2393    });
2394  });
2395});
2396jQuery(document).ready(function($) {
2397    'use strict';
2398    /**
2399     * Get dynamic width of items for passing in `flexslider()`.
2400     * @param  string style      Style of the carousel, classic/modern
2401     * @param  integer showItems Number of items to show
2402     * @param  integer id        ID of the carousel
2403     * @return interger          The width for items
2404     */
2405    function get_item_width(style, showItems, id) {
2406        var item_width;
2407        if (style == "classic") {
2408            item_width = 275;
2409            items_to_show = 4;
2410        } else {
2411            var screen_width = $('#portfolio-carousel-' + id).width(),
2412                items_to_show = showItems;
2413            if (screen_width >= 1100) {
2414                item_width = screen_width / items_to_show;
2415            } else if (screen_width <= 1200 && screen_width >= 800) {
2416                item_width = screen_width / 3;
2417            } else if (screen_width <= 800 && screen_width >= 540) {
2418                item_width = screen_width / 2;
2419            } else {
2420                item_width = screen_width;
2421            }
2422        }
2423        return item_width;
2424    }
2425    jQuery(window).on("load vc_reload", function() {
2426        MK.core.loadDependencies([MK.core.path.plugins + 'jquery.flexslider.js'], function() {
2427            $('.portfolio-carousel .mk-flexslider').each(function() {
2428            	var $this = $(this);
2429            	var $pauseOnHover = $this.attr('data-pauseOnHover') == "true" ? true : false;
2430            	var $slideshow = $this.attr('data-slideshow') == "true" ? true : false;
2431                $this.flexslider({
2432                    selector: ".mk-flex-slides > li",
2433                    animation: "slide",
2434                    slideshowSpeed: parseInt($this.attr('data-slideshowSpeed')),
2435                    animationSpeed: parseInt($this.attr('data-animationSpeed')),
2436                    pauseOnHover: $pauseOnHover,
2437                    controlNav: false,
2438                    smoothHeight: false,
2439                    useCSS: false,
2440                    directionNav: $this.data('directionNav'),
2441                    prevText: "",
2442                    nextText: "",
2443                    itemWidth: get_item_width($this.data('style'), $this.data('showItems'), $this.data('id')),
2444                    itemMargin: 0,
2445                    maxItems: ($this.data('style') === 'modern') ? $this.data('showItems') : 4,
2446                    minItems: 1,
2447                    move: 1,
2448                    slideshow: $slideshow,
2449                });
2450            }); // End each().
2451        }); // End loadDependencies().
2452    }); // End on().
2453});
2454(function($) {
2455   if (window.addEventListener) {
2456      window.addEventListener('load', handleLoad, false);
2457    }
2458    else if (window.attachEvent) {
2459      window.attachEvent('onload', handleLoad);
2460    }
2461	function handleLoad() {
2462		$('.mk-slideshow-box').each(run);
2463	}
2464	function run() {
2465		var $slider = $(this);
2466		var $slides = $slider.find('.mk-slideshow-box-item');
2467		var $transition_time = $slider.data('transitionspeed');
2468		var $time_between_slides = $slider.data('slideshowspeed');
2469		$slider.find('.mk-slideshow-box-content').children('p').filter(function() {
2470			if ( $.trim($(this).text()) == '' ) {
2471				return true;
2472			}
2473		}).remove();
2474		$slides.first().addClass('active').fadeIn($transition_time, function(){
2475			setTimeout(autoScroll, $time_between_slides);
2476		});
2477		function autoScroll(){
2478			var $i = $slider.find('.active').index();
2479			$slides.eq($i).removeClass('active').fadeOut($transition_time);
2480			if ($slides.length == $i + 1) $i = -1; // loop to start
2481			$slides.eq($i + 1).addClass('active').fadeIn($transition_time, function() {
2482				setTimeout(autoScroll, $time_between_slides);
2483			});
2484		}
2485		/**
2486		 * Need to set the height manually as min-height property doesn't work with display
2487		 * table and table-cell in Firefox and Safari. We use Javascript to set them only
2488		 * for Firefox and Safari to avoid any problem with Chrome users. The problem is only
2489		 * happen when the window screen size bigger than 850px.
2490		 */
2491		var browserName  = MK.utils.browser.name;
2492		if ( browserName === 'Firefox' || browserName === 'Safari' ) {
2493			var currentWidth = parseInt( $( window ).width() );
2494			if ( currentWidth >= 850 ) {
2495				var height = $slider.css( 'min-height' );
2496				if ( typeof height !== 'undefined' ) {
2497					$slider.find( '.mk-slideshow-box-items' ).height( parseInt( height ) );
2498				}
2499			} else {
2500				$slider.find( '.mk-slideshow-box-items' ).removeAttr( 'style' );
2501			}
2502		}
2503	}
2504	$(window).on('vc_reload', function(){
2505		handleLoad();
2506	});
2507	window.addEventListener( 'resize', function(){
2508		var browserName  = MK.utils.browser.name;
2509		if ( browserName === 'Firefox' || browserName === 'Safari' ) {
2510			handleLoad();
2511		}
2512	}, true);
2513}(jQuery));
2514(function($) {
2515	'use strict';
2516	$(".mk-subscribe").each(function() {
2517		var $this = $(this);
2518		$this.find('.mk-subscribe--form').submit(function(e){
2519			$this.addClass('form-in-progress');
2520			e.preventDefault();
2521			$.ajax({
2522				url: MK.core.path.ajaxUrl,
2523				type: "POST",
2524				data: {
2525					action: "mk_ajax_subscribe",
2526					email: $this.find(".mk-subscribe--email").val(),
2527					list_id: $this.find(".mk-subscribe--list-id").val(),
2528					optin: $this.find(".mk-subscribe--optin").val()
2529				},
2530				success: function (response) {
2531          console.log(response)
2532					$this.removeClass('form-in-progress');
2533					var data = $.parseJSON(response),
2534						$messaage_box = $this.find(".mk-subscribe--message");
2535					$messaage_box.html(data.message);
2536					if(data.action_status == true) {
2537						$messaage_box.addClass('success');
2538					} else {
2539						$messaage_box.addClass('error');
2540					}
2541					$this.find(".mk-subscribe--email").val('');
2542				}
2543			});
2544		});
2545	});
2546}(jQuery));
2547(function( $ ) {
2548    'use strict';
2549    var _instancesCollection = {};
2550    var MK = window.MK || {};
2551    window.MK = MK;
2552    MK.component = window.MK.component || {};
2553    MK.component.SwipeSlideshow = function( el ) {
2554        var $this = $( el );
2555        var id = $this.parent().attr('id');
2556        this.el = el;
2557        this.id = id;
2558        this.config = $this.data( 'swipeslideshow-config' );
2559        if( this.config ) this.config.hasPagination = false;
2560    };
2561    MK.component.SwipeSlideshow.prototype = {
2562        init : function() {
2563            var slider = new MK.ui.Slider( this.el, this.config );
2564            slider.init();
2565            _instancesCollection[ this.id ] = slider;
2566        }
2567    };
2568    MK.component.SwipeSlideshowExtraNav = function( el ) {
2569        this.el = el;
2570    };
2571    MK.component.SwipeSlideshowExtraNav.prototype = {
2572        init : function init() {
2573            this.cacheElements();
2574            this.bindEvents();
2575        },
2576        cacheElements : function cacheElements() {
2577            var $this = $( this.el );
2578            this.sliderId = $this.data( 'gallery' );
2579            this.slider = _instancesCollection[this.sliderId];
2580            this.$thumbs = $( '#' + this.sliderId ).find( '.thumbnails a');
2581        },
2582        bindEvents : function bindEvents() {
2583            this.$thumbs.on( 'click', this.clickThumb.bind( this ) );
2584        },
2585        clickThumb : function clickThumb( e ) {
2586            e.preventDefault();
2587            var $this = $( e.currentTarget ),
2588                id = $this.index();
2589            this.slider.goTo( id );
2590        }
2591    };
2592    MK.utils.eventManager.subscribe('gallery-update', function(e, config) {
2593        if(typeof _instancesCollection[config.id] === 'undefined') return;
2594        _instancesCollection[config.id].reset();
2595    });
2596	function init() {
2597    var $swiper = $('.mk-slider');
2598    if ( ! $swiper.hasClass('mk-slideshow') && ! $swiper.hasClass('mk-swipe-slideshow') ) {
2599      return;
2600    }
2601    var $imgs = $swiper.find('img[data-mk-image-src-set]');
2602    if ( $swiper.hasClass('mk-swipe-slideshow-lazyload') && $imgs.length ) {
2603        $(window).on('scroll.mk_swipe_slideshow_lazyload', MK.utils.throttle(500, function(){
2604            $imgs.each(function(index, elem) {
2605                if ( MK.utils.isElementInViewport(elem) ) {
2606                    MK.component.ResponsiveImageSetter.init( $(elem) );
2607                    $imgs = $imgs.not( $(elem) );  // Remove element from the list when loaded to reduce the amount of iteration in each()
2608                }
2609            });
2610        }));
2611        $(window).trigger('scroll.mk_swipe_slideshow_lazyload');
2612        MK.component.ResponsiveImageSetter.onResize($imgs);
2613    } else {
2614        MK.component.ResponsiveImageSetter.init($imgs);
2615        MK.component.ResponsiveImageSetter.onResize($imgs);
2616    }
2617      /* Why we need to reinitialize it? it causes double sliding effect
2618        $( '.mk-swiper-container' ).each( function() {
2619          new MK.component.SwipeSlideshow( this ).init();
2620        } );
2621      */
2622	}
2623	init();
2624	$(window).on('vc_reload mk-image-loaded', init);
2625})( jQuery );
2626(function($) {
2627    'use strict';
2628    var core = MK.core,
2629        path = core.path;
2630    MK.component.Tooltip = function(el) {
2631        var init = function() {
2632             $('.mk-tooltip').each(function() {
2633                $(this).find('.mk-tooltip--link').hover(function() {
2634                  $(this).siblings('.mk-tooltip--text').stop(true).animate({
2635                    'opacity': 1
2636                  }, 400);
2637                }, function() {
2638                  $(this).siblings('.mk-tooltip--text').stop(true).animate({
2639                    'opacity': 0
2640                  }, 400);
2641                });
2642              });
2643        };
2644        return {
2645            init: init
2646        };
2647    };
2648})(jQuery);
2649(function( $ ) {
2650	'use strict';
2651	/**
2652	 * Fix issue with WC Recent Carousel classic style when SC is active.
2653	 * At the first load of shortcode, the height is not correct, only cover the image
2654	 * without product detail. This script only set the min-height.
2655	 */
2656	function mkWcCarouselSwiperHeight() {
2657		var mkWCRecentCarousel = $( '.mk-woocommerce-carousel.classic-style' );
2658		mkWCRecentCarousel.each( function() {
2659			var maxHeight = 0;
2660			var height = $( this ).height();
2661			var childs = $( this ).find( '.item' );
2662			childs.each( function(){
2663				if ( $( this ).height() > maxHeight ) {
2664					maxHeight = $( this ).height();
2665				}
2666			} );
2667			var swiperContainers = $( this ).find( '.mk-swiper-container' );
2668			swiperContainers[0].style.setProperty( 'min-height', maxHeight + 'px', 'important' );
2669		} );
2670	}
2671	mkWcCarouselSwiperHeight();
2672})( jQuery );
2673(function ($) {
2674  'use strict';
2675	function dynamicHeight() {
2676      var $this = $( this );
2677		$this.height( 'auto' );
2678		if( window.matchMedia( '(max-width: 767px)' ).matches ) {
2679			return;
2680		}
2681    $this.height( $this.height() );
2682	}
2683	var $window = $( window );
2684	var container = document.getElementById( 'mk-theme-container' );
2685  function equalColumns() {
2686    $( '.equal-columns' ).each( function() {
2687      dynamicHeight.bind( this );
2688      $window.on( 'load', dynamicHeight.bind( this ) );
2689      $window.on( 'resize', dynamicHeight.bind( this ) );
2690      $window.on( 'mk-image-loaded', dynamicHeight.bind( this ) );
2691      window.addResizeListener( container, dynamicHeight.bind( this ) );
2692    });
2693  }
2694  equalColumns();
2695  $window.on( 'vc_reload' , function() {
2696    equalColumns();
2697  });
2698}( jQuery ));
2699(function($) {
2700	'use strict';
2701	function mk_video_play() {
2702		var lightboxMargin = 60;
2703		function playSelfHosted($video, isLightbox) {
2704			if (isLightbox === undefined || typeof isLightbox === 'undefined') {
2705				isLightbox = false;
2706			}
2707			if (isLightbox) {
2708				var content = $video.parent().html();
2709				var src = $video.parent().find('source').attr('src');
2710				playLightbox({
2711					content: '<div class="fancybox-video">' + $(content).attr('autoplay', 'autoplay').wrap('<div></div>').parent().html() + '</div>',
2712					src: src,
2713				});
2714			} else {
2715				playTagVideo($video);
2716			}
2717		}
2718		function playSocialHosted($iframe, isLightbox) {
2719			if (isLightbox === undefined || typeof isLightbox === 'undefined') {
2720				isLightbox = false;
2721			}
2722			if (isLightbox) {
2723				playLightbox({
2724					type: 'iframe',
2725					src: $iframe.attr('src'),
2726				});
2727			} else {
2728				var videoData = getSocialVideoData($iframe.attr('src'));
2729				switch (videoData.source) {
2730					case 'youtube':
2731						playTagIframeYoutube(videoData.videoId, $iframe);
2732						break;
2733					case 'vimeo':
2734						playTagIframeVimeo(videoData.videoId, $iframe);
2735						break;
2736					default:
2737						playTagIframe($iframe);
2738						break;
2739				}
2740			}
2741		}
2742		function playLightbox(args) {
2743			var options = {
2744				autoSize: 0,
2745				width: getVideoboxWidth(),
2746				height: getVideoHeight(),
2747			};
2748			$.extend(options, args);
2749			$.fancybox.open(options);
2750		}
2751		function playTagVideo($video) {
2752			$video.get(0).play();
2753			$video.closest('.video-container').find('.video-thumbnail').fadeOut('slow');
2754		}
2755		function playTagIframe($iframe, videoId) {
2756			var video_loop = '';
2757			if (videoId !== undefined && typeof videoId !== 'undefined') {
2758				video_loop = '&playlist=' + videoId;
2759			}
2760			var src = $iframe.attr('src');
2761			var separator = (src.indexOf('?') === -1) ? '?' : '&';
2762			src += separator + 'autoplay=1';
2763			separator = (src.indexOf('?') === -1) ? '?' : '&';
2764			video_loop = separator + 'loop=1' + video_loop;
2765			video_loop = ( $iframe.closest('.video-container').data('loop') == '1' ) ? video_loop : '';
2766			src += video_loop;
2767			$iframe.attr('src', src).closest('.video-container').find('.video-thumbnail').fadeOut(3000);
2768		}
2769		function playTagIframeYoutube(videoId, $iframe) {
2770			if ( document.getElementById('mk_iframe_api') === null ) {
2771				var tag = document.createElement('script');
2772				tag.src = "https://www.youtube.com/iframe_api";
2773				tag.id = "mk_iframe_api";
2774				var firstScriptTag = document.getElementsByTagName('script')[0];
2775				firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
2776			} else {
2777				runPlayer();
2778			}
2779			window.onYouTubeIframeAPIReady = function () {
2780				runPlayer();
2781			};
2782			function runPlayer(){
2783				var player,
2784					isPlayed = false;
2785				player = new YT.Player('video-player-' + $iframe.data('id'), {
2786					videoId: videoId,
2787					rel: false,
2788					events: {
2789						onReady: function(e) {
2790							e.target.playVideo();
2791						},
2792						onStateChange: function(e) {
2793							let $playerWrapper = $('#video-player-' + $iframe.data('id'))
2794							if (e.data === 1 && !isPlayed) {
2795								$playerWrapper.closest('.video-container').find('.video-thumbnail').fadeOut('slow');
2796								isPlayed = true;
2797							}
2798							if ($playerWrapper.closest('.video-container').data('loop') && e.data === YT.PlayerState.ENDED) {
2799								e.target.playVideo();
2800							}
2801						},
2802						onError: function(e) {
2803							playTagIframe($iframe, videoId);
2804						}
2805					}
2806				});
2807			}
2808		}
2809		function playTagIframeVimeo(videoId, $iframe) {
2810			$.getScript('//player.vimeo.com/api/player.js', function(data, textStatus, jqxhr) {
2811				if (jqxhr.status === 200) {
2812					var player,
2813						isPlayed = false;
2814					player = new Vimeo.Player('video-player-' + $iframe.data('id'), {
2815						id: videoId
2816					});
2817					player.play().then(function() {
2818						if (!isPlayed) {
2819							$iframe.closest('.video-container').find('.video-thumbnail').fadeOut('slow');
2820							isPlayed = true;
2821						}
2822					}).catch(function(error) {
2823						playTagIframe($iframe);
2824					});
2825					if ($iframe.closest('.video-container').data('loop')) {
2826						player.setLoop(true).then(function(loop) {
2827						}).catch(function(error) {
2828							playTagIframe($iframe);
2829						});
2830					}
2831				} else {
2832					playTagIframe($iframe);
2833				}
2834			});
2835		}
2836		function getSocialVideoData(url) {
2837			var youtubeRegex = /(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i;
2838			var youtubeMatch = url.match(youtubeRegex);
2839			if (youtubeMatch && youtubeMatch != null) {
2840				return {
2841					source: 'youtube',
2842					videoId: youtubeMatch[3]
2843				};
2844			}
2845			var vimeoRegex = /(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/i;
2846			var vimeoMatch = url.match(vimeoRegex);
2847			if (vimeoMatch && vimeoMatch != null) {
2848				return {
2849					source: 'vimeo',
2850					videoId: vimeoMatch[1]
2851				};
2852			}
2853			return {
2854				source: false,
2855				videoId: false
2856			};
2857		}
2858		function getVideoboxWidth() {
2859			var $width,
2860				wWidth = $(window).width(),
2861				wHeight = $(window).height();
2862			if (wHeight >= wWidth) {
2863				$width = wWidth - (lightboxMargin * 2);
2864			} else {
2865				var wHeightMax = (wHeight * 90) / 100;
2866				if (wWidth > 1280) {
2867					var $width = (wHeightMax / 5768) * 10000;
2868				} else {
2869					var $width = (wHeightMax / 6120) * 10000;
2870				}
2871			}
2872			return Math.round($width) + 'px';
2873		}
2874		function getVideoHeight() {
2875			var $height,
2876				wWidth = $(window).width(),
2877				wHeight = $(window).height();
2878			if (wHeight >= wWidth) {
2879				$height = ((wWidth - (lightboxMargin * 2)) * 5670) / 10000;
2880			} else {
2881				$height = ((wHeight * 90) / 100) + (lightboxMargin * 2);
2882			}
2883			return Math.round($height) + 'px';
2884		}
2885		$('.video-container').each(function() {
2886			var $videoContainer = $(this);
2887			var playSource = $videoContainer.data('source');
2888			var playTarget = $videoContainer.data('target');
2889			var $iframe = $videoContainer.find('iframe');
2890			var $video = $videoContainer.find('video');
2891			if ($videoContainer.data('autoplay')) {
2892				switch (playSource) {
2893					case 'social_hosted':
2894						playSocialHosted($iframe);
2895						break;
2896					case 'self_hosted':
2897						playSelfHosted($video);
2898						break;
2899				}
2900			} else {
2901				var $playIcon = $videoContainer.find('.mk-svg-icon');
2902				$playIcon.bind('click', function(e) {
2903					e.preventDefault();
2904					var isLightbox = (playTarget == 'lightbox') ? true : false;
2905					if (!isLightbox) {
2906						$playIcon.hide().next('.preloader-preview-area').show();
2907					}
2908					switch (playSource) {
2909						case 'social_hosted':
2910							playSocialHosted($iframe, isLightbox);
2911							break;
2912						case 'self_hosted':
2913							playSelfHosted($video, isLightbox);
2914							break;
2915					}
2916				});
2917			}
2918		});
2919	}
2920	$(window).on('load vc_reload', mk_video_play);
2921	function mk_video_resize_play_icon() {
2922		$('.video-thumbnail-overlay').each(function() {
2923			var $thumbnailOverlay = $(this);
2924			var thumbnailWidth = $thumbnailOverlay.width();
2925			var $svg = $thumbnailOverlay.find('svg');
2926			if (typeof $svg.data('width') === 'undefined') {
2927				$svg.attr('data-width', $svg.width());
2928			}
2929			if (typeof $svg.data('height') === 'undefined') {
2930				$svg.attr('data-height', $svg.height());
2931			}
2932			if (($svg.data('width') * 4) > thumbnailWidth) {
2933				$svg.css({
2934					width: Math.round((parseInt(thumbnailWidth) / 4)) + 'px',
2935					height: Math.round((parseInt(thumbnailWidth) / 4) * $svg.data('height') / $svg.data('width')) + 'px'
2936				});
2937			} else {
2938				$svg.css({
2939					width: $svg.data('width') + 'px',
2940					height: $svg.data('height') + 'px'
2941				});
2942			}
2943		});
2944	}
2945	$(window).on('load resize orientationChange vc_reload', mk_video_resize_play_icon);
2946}(jQuery));
2947document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",(()=>{for(var e=["-webkit-","-moz-","-ms-","-o-",""],t=0;t<e.length;t++)e[t]+"transform"in document.documentElement.style&&(document.documentElement.className+=" vc_transform ")})(),(c=>{"function"!=typeof window.vc_js&&(window.vc_js=function(){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(e){(e?e.find(".wpb_flexslider"):jQuery(".wpb_flexslider")).each(function(){var e=jQuery(this),t=1e3*parseInt(e.attr("data-interval"),10),i=e.attr("data-flex_fx"),o=0==t?!1:!0;e.is(":visible")&&setTimeout(function(){e.flexslider({animation:i,slideshow:o,slideshowSpeed:t,sliderSpeed:800,smoothHeight:!0})},1)})}),"function"!=typeof window.vc_googleplus&&(window.vc_googleplus=function(){var e,t;0<jQuery(".wpb_googleplus").length&&((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="https://apis.google.com/js/plusone.js",(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t))}),"function"!=typeof window.vc_pinterest&&(window.vc_pinterest=function(){var e,t;0<jQuery(".wpb_pinterest").length&&((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="https://assets.pinterest.com/js/pinit.js",(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t))}),"function"!=typeof window.vc_progress_bar&&(window.vc_progress_bar=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".vc_progress_bar").each(function(){var e=jQuery(this);e.vcwaypoint(function(){e.find(".vc_single_bar").each(function(e){var t=jQuery(this).find(".vc_bar"),i=t.data("percentage-value");setTimeout(function(){t.css({width:i+"%"})},200*e)})},{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 e=jQuery(this);e.vcwaypoint(function(){e.addClass("wpb_start_animation animated")},{offset:"85%"})})}),"function"!=typeof window.vc_toggleBehaviour&&(window.vc_toggleBehaviour=function(e){function t(e){e&&e.preventDefault&&e.preventDefault();var t=jQuery(this).closest(".vc_toggle"),e=t.find(".vc_toggle_content");t.hasClass("vc_toggle_active")?e.slideUp({duration:300,complete:function(){t.removeClass("vc_toggle_active")}}):e.slideDown({duration:300,complete:function(){t.addClass("vc_toggle_active")}})}(e?e.hasClass("vc_toggle_title")?e.unbind("click"):e.find(".vc_toggle_title").off("click"):jQuery(".vc_toggle_title").off("click")).on("click",t)}),"function"!=typeof window.vc_ttaToggleBehaviour&&(window.vc_ttaToggleBehaviour=function(e){function t(){var e=jQuery(this);e.toggleClass("wpb-tta-toggle-active"),e.parent().parent().parent().find(".vc_pagination-item").each(function(){if(!c(this).hasClass("vc_active"))return c(this).find("a").click(),!1})}(e?e.find(".wpb-tta-toggle"):jQuery(".wpb-tta-toggle")).off("click").on("click",t),setTimeout(function(){jQuery(".wpb-tta-toggle").each(function(){var e=jQuery(this);e.parent().parent().parent().find(".vc_tta-panels-container .vc_pagination li:first").hasClass("vc_active")||e.addClass("wpb-tta-toggle-active")})},1e3)}),"function"!=typeof window.vc_tabsBehaviour&&(window.vc_tabsBehaviour=function(e){var t,o;jQuery.ui&&(e=e||jQuery(".wpb_tabs, .wpb_tour"),t=jQuery.ui&&jQuery.ui.version?jQuery.ui.version.split("."):"1.10",o=1===parseInt(t[0],10)&&parseInt(t[1],10)<9,e.each(function(){var e=jQuery(this).attr("data-interval"),t=[],i=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(e,t){wpb_prepare_tab_content(e,t)},activate:function(e,t){wpb_prepare_tab_content(e,t)}});if(e&&0<e)try{i.tabs("rotate",1e3*e)}catch(e){window.console&&window.console.warn&&console.warn("tabs behaviours error",e)}jQuery(this).find(".wpb_tab").each(function(){t.push(this.id)}),jQuery(this).find(".wpb_tabs_nav li").on("click",function(e){return e&&e.preventDefault&&e.preventDefault(),o?i.tabs("select",jQuery("a",this).attr("href")):i.tabs("option","active",jQuery(this).index()),!1}),jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").on("click",function(e){var t;e&&e.preventDefault&&e.preventDefault(),o?(t=i.tabs("option","selected"),jQuery(this).parent().hasClass("wpb_next_slide")?t++:t--,t<0?t=i.tabs("length")-1:t>=i.tabs("length")&&(t=0),i.tabs("select",t)):(t=i.tabs("option","active"),e=i.find(".wpb_tab").length,t=jQuery(this).parent().hasClass("wpb_next_slide")?e<=t+1?0:t+1:t-1<0?e-1:t-1,i.tabs("option","active",t))})}))}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(){var e=jQuery(this),t=(e.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0<parseInt(e.data("active-tab"),10)&&parseInt(e.data("active-tab"),10)-1),i=!1===t||"yes"===e.data("collapsible"),t=e.find(".wpb_accordion_wrapper").accordion({header:"> div > h3",autoHeight:!1,heightStyle:"content",active:t,collapsible:i,navigation:!0,activate:vc_accordionActivate,change:function(e,t){void 0!==jQuery.fn.isotope&&t.newContent.find(".
2947isotope").isotope("layout"),vc_carouselBehaviour(t.newPanel)}});!0===e.data("vcDisableKeydown")&&(t.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var o={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 e=jQuery(this),t=e.find(".wpb_thumbnails"),i=t.attr("data-layout-mode");t.isotope({itemSelector:".isotope-item",layoutMode:void 0===o[i]?"fitRows":o[i]}),e.find(".categories_filter a").data("isotope",t).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(){t.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function(e){(e?e.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){var e=jQuery(this);!0!==e.data("carousel_enabled")&&e.is(":visible")&&(e.data("carousel_enabled",!0),getColumnsCount(jQuery(this)),jQuery(this).hasClass("columns_count_1"),(e=jQuery(this).find(".wpb_thumbnails-fluid li")).css({"margin-right":e.css("margin-left"),"margin-left":0}),(e=jQuery(this).find("ul.wpb_thumbnails-fluid")).width(e.width()+300))})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(){var e,t,i=jQuery(this);i.hasClass("wpb_slider_nivo")?(0===(t=1e3*i.attr("data-interval"))&&(t=9999999999),jQuery.fn.nivoSlider&&!i.data("nivo-initialized")&&(i.data("nivo-initialized",!0),i.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:800,pauseTime:t,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"}))):i.hasClass("wpb_image_grid")&&i.find(".wpb_image_grid_ul")&&i.find(".wpb_image_grid_ul").isotope&&(jQuery.fn.imagesLoaded?e=i.find(".wpb_image_grid_ul").imagesLoaded(function(){e.isotope({itemSelector:".isotope-item",layoutMode:"fitRows",percentPosition:!0})}):i.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows",percentPosition:!0}))})}),"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(e){window.console&&window.console.warn&&window.console.warn("vc_prettyPhoto initialize error",e)}}),"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 s=window.jQuery;function e(){var e;void 0!==window.wpb_disable_full_width_row_js&&window.wpb_disable_full_width_row_js||(e=s('[data-vc-full-width="true"]'),s.each(e,function(){var e,t,i,o,n,a,r,c=s(this),d=(c.addClass("vc_hidden"),c.next(".vc_row-full-width"));(d=d.length?d:c.parent().next(".vc_row-full-width")).length&&(c.removeAttr("data-vc-full-width-temp"),e=parseInt(c.css("margin-left"),10),t=parseInt(c.css("margin-right"),10),i=0-d.offset().left-e,o=s(window).width(),n={position:"relative",left:i="rtl"===c.css("direction")?(i=i-d.width()+o)+e+t:i,"box-sizing":"border-box",width:o,"max-width":o},c.css(n),c.data("vcStretchContent")||("rtl"===c.css("direction")?((a=i)<0&&(a=0),(r=i)<0&&(r=0)):(r=o-(a=(a=-1*i)<0?0:a)-d.width()+e+t)<0&&(r=0),c.css({"padding-left":a+"px","padding-right":r+"px"})),c.attr("data-vc-full-width-init","true"),c.removeClass("vc_hidden"),s(document).trigger("vc-full-width-row-single",{el:c,offset:i,marginLeft:e,marginRight:t,elFull:d,width:o,maxWidth:o}))}),s(document).trigger("vc-full-width-row",e))}function t(){var e,t,i=s(".vc_row-o-full-height:first");i.length&&(e=s(window).height(),(t=i.offset().top)<e)&&i.css("min-height",100-t/(e/100)+"vh"),s(document).trigger("vc-full-height-row",i)}s(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",e).on("resize.vcRowBehaviour",t),e(),t(),(0<window.navigator.userAgent.indexOf("MSIE ")||navigator.userAgent.match(/Trident.*rv\:11\./))&&s(".vc_row-o-full-height").each(function(){"flex"===s(this).css("display")&&s(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')}
2947),vc_initVideoBackgrounds();var n=!1;if(window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),s(".vc_parallax-inner").remove(),s("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),s("[data-vc-parallax]").each(function(){var e,t,i,o;n=!0,"on"===s(this).data("vcParallaxOFade")&&s(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),e=100*s(this).data("vcParallax"),(t=s("<div />").addClass("vc_parallax-inner").appendTo(s(this))).height(e+"%"),i=s(this).data("vcParallaxImage"),(o=vcExtractYoutubeId(i))?insertYoutubeVideoAsBackground(t,o):void 0!==i&&t.css("background-image","url("+i+")"),t.attr("data-bottom-top","top: "+-(e-100)+"%;").attr("data-top-bottom","top: 0%;")}),n&&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(e){for(var t=!1,i=1;!1===t;){if(e.hasClass("columns_count_"+i))return t=!0,i;i++}}),"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(e,t){var i=t.panel||t.newPanel,o=i.find(".vc_pie_chart:not(.vc_ready)"),n=i.find(".vc_round-chart"),a=i.find(".vc_line-chart"),r=i.find('[data-ride="vc_carousel"]');vc_carouselBehaviour(),vc_plugin_flexslider(i),t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),i.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&i.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),o.length&&jQuery.fn.vcChat&&o.vcChat(),n.length&&jQuery.fn.vcRoundChart&&n.vcRoundChart({reload:!1}),a.length&&jQuery.fn.vcLineChart&&a.vcLineChart({reload:!1}),r.length&&jQuery.fn.carousel&&r.carousel("resizeAction"),t=i.find(".isotope, .wpb_image_grid_ul"),o=i.find(".wpb_gmaps_widget"),0<t.length&&t.isotope("layout"),o.length&&!o.is(".map_ready")&&((n=o.find("iframe")).attr("src",n.attr("src")),o.addClass("map_ready")),i.parents(".isotope").length&&i.parents(".isotope").each(function(){jQuery(this).isotope("layout")}),c(document).trigger("wpb_prepare_tab_content",i)}),"function"!=typeof window.vc_ttaActivation&&(window.vc_ttaActivation=function(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var t=window.jQuery,i={};i.newPanel=t(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,i)})}),"function"!=typeof window.vc_accordionActivate&&(window.vc_accordionActivate=function(e,t){var i,o,n,a;t.newPanel.length&&t.newHeader.length&&(i=t.newPanel.find(".vc_pie_chart:not(.vc_ready)"),o=t.newPanel.find(".vc_round-chart"),n=t.newPanel.find(".vc_line-chart"),a=t.newPanel.find('[data-ride="vc_carousel"]'),void 0!==jQuery.fn.isotope&&t.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),vc_carouselBehaviour(t.newPanel),vc_plugin_flexslider(t.newPanel),i.length&&jQuery.fn.vcChat&&i.vcChat(),o.length&&jQuery.fn.vcRoundChart&&o.vcRoundChart({reload:!1}),n.length&&jQuery.fn.vcLineChart&&n.vcLineChart({reload:!1}),a.length&&jQuery.fn.carousel&&a.carousel("resizeAction"),t.newPanel.parents(".isotope").length)&&t.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_initVideoBackgroun
2947ds()}),"function"!=typeof window.vc_initVideoBackgrounds&&(window.vc_initVideoBackgrounds=function(){c(".vc_video-bg").remove(),c("[data-vc-video-bg]").each(function(){var e,i=jQuery(this);i.data("vcVideoBg")?(e=i.data("vcVideoBg"),(e=vcExtractYoutubeId(e))&&(i.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground(i,e)),jQuery(window).on("grid:items:added",function(e,t){i.has(t).length&&vcResizeVideoBackground(i)})):i.find(".vc_video-bg").remove()})}),"function"!=typeof window.insertYoutubeVideoAsBackground&&(window.insertYoutubeVideoAsBackground=function(e,t,i){if("undefined"==typeof YT||void 0===YT.Player)return 100<(i=void 0===i?0:i)?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){insertYoutubeVideoAsBackground(e,t,i++)},100);var o=e.prepend('<div class="vc_video-bg"><div class="inner"></div></div>').find(".inner");new YT.Player(o[0],{width:"100%",height:"100%",videoId:t,playerVars:{playlist:t,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(e){e.target.mute().setLoop(!0)}}}),vcResizeVideoBackground(e),jQuery(window).on("resize",function(){vcResizeVideoBackground(e)})}),"function"!=typeof window.vcResizeVideoBackground&&(window.vcResizeVideoBackground=function(e){var t,i,o,n,a=e.innerWidth(),r=e.innerHeight();a/r<16/9?(t=r*(16/9),i=r,o=-Math.round((t-a)/2)+"px",n=-Math.round((i-r)/2)+"px"):(i=(t=a)*(9/16),n=-Math.round((i-r)/2)+"px",o=-Math.round((t-a)/2)+"px"),t+="px",i+="px",e.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:o,marginTop:n,width:t,height:i})}),"function"!=typeof window.vcExtractYoutubeId&&(window.vcExtractYoutubeId=function(e){return void 0!==e&&null!==(e=e.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/))&&e[1]}),"function"!=typeof window.vc_googleMapsPointer&&(window.vc_googleMapsPointer=function(){var e=window.jQuery,t=e(".wpb_gmaps_widget");t.on("click",function(){e("iframe",this).css("pointer-events","auto")}),t.on("mouseleave",function(){e("iframe",this).css("pointer-events","none")}),e(".wpb_gmaps_widget iframe").css("pointer-events","none")}),"function"!=typeof window.vc_setHoverBoxPerspective&&(window.vc_setHoverBoxPerspective=function(e){e.each(function(){var e=jQuery(this),t=e.width();e.css("perspective",4*t+"px")})}),"function"!=typeof window.vc_setHoverBoxHeight&&(window.vc_setHoverBoxHeight=function(e){e.each(function(){var e=jQuery(this),t=e.find(".vc-hoverbox-inner"),i=(t.css("min-height",0),e.find(".vc-hoverbox-front-inner").outerHeight()),e=e.find(".vc-hoverbox-back-inner").outerHeight(),i=e<i?i:e;t.css("min-height",(i=i<250?250:i)+"px")})}),"function"!=typeof window.vc_prepareHoverBox&&(window.vc_prepareHoverBox=function(){var e=jQuery(".vc-hoverbox");vc_setHoverBoxHeight(e),vc_setHoverBoxPerspective(e)}),jQuery(document).ready(window.vc_prepareHoverBox),jQuery(window).on("resize",window.vc_prepareHoverBox),jQuery(document).ready(function(){window.vc_js()})})(window.jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.