/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ "undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s}); "use strict";var WPMLLanguageSwitcherDropdown=function(){function t(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}return{init:function(){for(var e=document.querySelectorAll(".js-wpml-ls-legacy-dropdown a.js-wpml-ls-item-toggle"),n=0;n{t(),t=()=>{}};s.addEventListener("DOMContentLoaded",i),s.addEventListener("readystatechange",(()=>{"complete"!==s.readyState&&"interactive"!==s.readyState||i()})),Document.prototype.addEventListener.call(s,"DOMContentLoaded",i)}else s.addEventListener("DOMContentLoaded",t)},_=navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1?function(t){t()}:i.requestIdleCallback||function(t){return a(t,1)};i.cancelIdleCallback;x((function(){n=s.body})),function(){"use strict";var t={},n={};i.n2Slow=navigator.userAgent.indexOf("Chrome-Lighthouse")>-1&&navigator.userAgent.indexOf("Android")>-1;var s=[],o=!1;function u(){var t=performance.now(),n=s;s=[];for(var r=n.length-1;r>=0&&(n.pop().call(),!(performance.now()-t>7));r--);!i.n2Slow&&n.length&&(i.n2Slow=!0),n.unshift.apply(n,s),(s=n).length?_(u,{timeout:2e3}):o=!1}function c(t){s.unshift(t),o||(o=!0,_(u,{timeout:2e3}))}var l=new Date,v=function(){if(i.jQuery){var $=i.jQuery;h.d("$",(function(){return $}))}else{if(a(v,20),(new Date).getTime()-l.getTime()>1e3)f("script").src=h._jQueryFallback}};function d(i){return!(!i||t[i]!==r)&&(t[i]=new Promise((function(t){n[i]=t})),"$"===i&&v(),!0)}function p(i,r,s){var o=[];if(d(i)||n[i]){if("function"==typeof r?(s=r,r=[]):"string"==typeof r&&(r=[r]),(r=r||[]).length)for(var a=0;a0&&-1===o.indexOf("Chrome")&&(r=setInterval((function(){"interactive"!==s.readyState&&"complete"!==s.readyState||(h.d("windowLoad"),clearInterval(r))}),2e3)),t="load",n=function(){h.d("windowLoad"),clearInterval(r)},i.addEventListener(t,n,{once:!0})}var t,n})),i.ResizeObserver||(i.ResizeObserver=function(){"use strict";var t=function(){if("undefined"!=typeof Map)return Map;function t(t,i){var n=-1;return t.some((function(t,r){return t[0]===i&&(n=r,!0)})),n}return function(){function i(){this.__entries__=[]}return Object.defineProperty(i.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),i.prototype.get=function(i){var n=t(this.__entries__,i),r=this.__entries__[n];return r&&r[1]},i.prototype.set=function(i,n){var r=t(this.__entries__,i);~r?this.__entries__[r][1]=n:this.__entries__.push([i,n])},i.prototype.delete=function(i){var n=this.__entries__,r=t(n,i);~r&&n.splice(r,1)},i.prototype.has=function(i){return!!~t(this.__entries__,i)},i.prototype.clear=function(){this.__entries__.splice(0)},i.prototype.forEach=function(t,i){void 0===i&&(i=null);for(var n=0,r=this.__entries__;n0},t.prototype.connect_=function(){n&&!this.connected_&&(s.addEventListener("transitionend",this.onTransitionEnd_),i.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(s,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(s.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){n&&this.connected_&&(s.removeEventListener("transitionend",this.onTransitionEnd_),i.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&s.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var i=t.propertyName,n=void 0===i?"":i;c.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),d=function(t,i){for(var n=0,r=Object.keys(i);n0},i}(),A="undefined"!=typeof WeakMap?new WeakMap:new t,I=function(){function t(i){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=v.getInstance(),r=new F(i,n,this);A.set(this,r)}return t}();return["observe","unobserve","disconnect"].forEach((function(t){I.prototype[t]=function(){var i;return(i=A.get(this))[t].apply(i,arguments)}})),void 0!==r.ResizeObserver?r.ResizeObserver:I}()),h.StringHelper={capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},function(){var t=function(t){return Symbol.iterator in Object(t)},i={add:function(t){requestAnimationFrame(t)},remove:function(){}};h.i=h.i||i;var n,s=new class{constructor(){this.o=!1,this.h=new Set,this.l=this.g.bind(this)}add(t){this.h.add(t),this.o||(this.o=!0,h.i.add(this.l))}g(){for(let t of this.h)t.render?t.render():t();this.h.clear(),this.o=!1,h.i.remove(this.l)}},o={};n=/Safari/i.test(navigator.userAgent)&&!/Chrom[ei]/i.test(navigator.userAgent)?function(t,i,n,r){var s="";return r&&(t||i||n)?"translate3d("+(t||0)+"px, "+(i||0)+"px, "+(n||0)+"px) ":((t||i)&&(s+="translate("+(t||0)+"px, "+(i||0)+"px) "),n&&(s+="translateZ("+n+"px) "),s)}:function(t,i,n,r){return t||i||n?"translate3d("+(t||0)+"px, "+(i||0)+"px, "+(n||0)+"px) ":""};class a{constructor(i,n){t(i)?this.M=Array.from(i):this.M=[i],this._=c({},n),this.O=new Set}get scale(){return this.scaleX}set scale(t){this.scaleX=t,this.scaleY=t}render(){for(let i of this.O){var t=this._[i];switch(i){case"transform":t=this.k();break;case"filter":t=this.P();break;case"n2AutoAlpha":0===this.opacity?this.S||(this.S=!0,this.C("data-force-hidden","")):this.S&&(this.S=!1,this.F("data-force-hidden"));continue;case"opacity":this._.n2AutoAlpha&&(0===t?this.S||(this.S=!0,this.C("data-force-hidden","")):this.S&&(this.S=!1,this.F("data-force-hidden")));break;case"width":case"height":case"perspective":"number"==typeof t&&(t+="px")}for(let n of this.M)n.style.setProperty(i,t)}this.O.clear()}k(){let{xP:t,yP:i,x:s,y:o,z:a,xAbs:u,yAbs:h,xPAbs:f,yPAbs:c,parallaxX:l,parallaxY:v,parallaxRotationX:d,parallaxRotationY:p,layerRotation:g,rotationZ:m,rotationY:w,rotationX:y,scaleX:b,scaleY:M,scaleZ:x,skewX:_,skewY:O,transformPerspective:k,force3D:P}=this._,S="";return k&&(S+="perspective("+k+"px) "),(t||i)&&(S+="translate("+(t||0)+"%, "+(i||0)+"%) "),(u||h)&&(S+="translate("+(u||0)+"px, "+(h||0)+"px) "),(f||c)&&(S+="translate("+(f||0)+"%, "+(c||0)+"%) "),S+=n(s,o,a,P),_&&(S+="skewX("+_+"deg) "),O&&(S+="skewY("+O+"deg) "),(l||v)&&(S+="translate("+(l||0)+"px, "+(v||0)+"px) "),g&&(S+="rotate("+g+"deg) "),m&&(S+="rotate("+m+"deg) "),(w||p)&&(S+="rotateY("+((w||0)+(p||0))+"deg) "),(y||d)&&(S+="rotateX("+((y||0)+(d||0))+"deg) "),b===r&&(b=1),M===r&&(M=1),1===b&&1===M||(S+="scale("+b+", "+M+") "),x===r&&(x=1),1!==x&&(S+="scaleZ("+x+") "),S||"translate3d(0, 0, 0)"}P(){let{n2blur:t}=this._,i="";return t>.1&&(i="blur("+t+"px) "),i||"none"}C(t,i){for(let n of this.M)(n.relatedLayer||n).setAttribute(t,i)}F(t){for(let i of this.M)(i.relatedLayer||i).removeAttribute(t)}setValues(t){for(var i in t)this[i]=t[i]}}class u{constructor(t,i){this.A=[];for(var n=0;n0?r:n.clientWidth,h=i.getComputedStyle(this.parentNode);o=this.W?u-this.parentNode.getBoundingClientRect().right-parseInt(h.getPropertyValue("padding-right"))-parseInt(h.getPropertyValue("border-right-width"))+t:-this.parentNode.getBoundingClientRect().left-parseInt(h.getPropertyValue("padding-left"))-parseInt(h.getPropertyValue("border-left-width"))+t,o+=a=o%1,u-=Math.floor(a),(this._width-u<=0||this._width-u>1||this._offset-o<-1||this._offset-o>=0)&&(this._offset!==o&&(this.Z.x=o,this._offset=o,0!==o&&this.classList.add("n2-ss-no-bga-fixed")),this._width!==u&&(this.Z.width=u,this._width=u)),this.setVisible&&this.setVisible()}setVisible(){this.Z.opacity=1,delete this.setVisible}}),customElements.define("ss3-loader",class extends HTMLElement{connectedCallback(){this.V=[]}set display(t){this.q!==t&&(this.q=t,this.style.display=t)}show(){this.display="grid"}addPromise(t){this.V.push(t),this.syncStyle(),t.finally(this.removePromise.bind(this,t))}removePromise(t){var i=this.V.indexOf(t);i>-1&&(this.V.splice(i,1),this.syncStyle())}syncStyle(){this.V.length?this.G||(this.G=a(this.show.bind(this),100)):(this.G&&(u(this.G),delete this.G),this.display="")}});var O,k="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;i.n2const={devicePixelRatio:i.devicePixelRatio||1,isFirefox:/Firefox/i.test(navigator.userAgent),isIOS:/iPad|iPhone|iPod/.test(navigator.platform)||k,isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Silk/i.test(navigator.userAgent)||k,isPhone:/Android/i.test(navigator.userAgent)&&/mobile/i.test(navigator.userAgent)||/webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isSamsungBrowser:navigator.userAgent.match(/SamsungBrowser/i),isBot:/bot|googlebot|crawler|spider|robot|crawling|Google Search Console/i.test(navigator.userAgent),isLighthouse:navigator.userAgent.indexOf("Chrome-Lighthouse")>-1,lightboxMobileNewTab:1,isVideoAutoplayAllowed:function(){var t=!!(navigator.platform.match(/(Win|Mac)/)||!/Mobi/.test(navigator.userAgent)||"playsInline"in f("video")||"webkit-playsinline"in f("video")||navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)&&parseInt(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)[2])>=53||navigator.userAgent.match(/Android.*(Firefox|Edge|Opera)/));return i.n2const.isVideoAutoplayAllowed=function(){return t},t},isWaybackMachine:function(){var t=void 0!==i.__wm;return i.n2const.isWaybackMachine=function(){return t},t},setLocation:function(t){"function"==typeof i.zajax_goto?i.zajax_goto(t):i.location=t},isParentSameOrigin:function(){try{return parent.document,!0}catch(t){}return!1},activeElementBlur:function(){s.activeElement&&s.activeElement.blur()},getScrollbarSize:function(){var t,i,r,s=f("div",t,i,r);s.style.visibility="hidden",s.style.overflow="scroll",n.appendChild(s);var o=s.offsetHeight-s.clientHeight;return n.removeChild(s),n2const.getScrollbarSize=function(){return o},o},fonts:new Promise((function(t){if("fonts"in s){s.fonts.ready.then(t);const i=navigator.userAgent;i.indexOf("Safari")>0&&-1===i.indexOf("Chrome")&&h.r("windowLoad",t)}else h.r("windowLoad",t)}))},i.n2const.isTablet=!i.n2const.isPhone&&(/Android|iPad|tablet|Silk/i.test(navigator.userAgent)||k),i.n2const.rtl=(i.n2const.isRTL=function(){return i.n2const.rtl.isRtl},"rtl"===o.getAttribute("dir")?{isRtl:!0,marginLeft:"marginRight",marginRight:"marginLeft","margin-left":"margin-right","margin-right":"margin-left",left:"right",right:"left",modifier:-1}:{isRtl:!1,marginLeft:"marginLeft",marginRight:"marginRight","margin-left":"margin-left","margin-right":"margin-right",left:"left",right:"right",modifier:1}),h._triggerResize=(O=null,function(){O&&u(O),O=a((function(){b(i,"resize"),O=null}),100)}),h._shouldPreventClick=!1,h._preventClick=function(){h._shouldPreventClick||(h._shouldPreventClick=!0,a((function(){h._shouldPreventClick=!1}),300))},h.d("ImagesLoaded",(function(){return function(t){var i,n=[];i="IMG"===t.tagName?[t]:t.querySelectorAll("img");for(var r=0;r1||e.scale&&1!==e.scale},function(e){return!e.isPrimary||e.buttons&&1!==e.buttons||!f.mouse&&"touch"!==e.pointerType&&"pen"!==e.pointerType},function(e){return e.buttons&&1!==e.buttons}],P=function(t,i){var n=t.tagName;return"INPUT"===n||"TEXTAREA"===n||"SELECT"===n||"BUTTON"===n||"VIDEO"===n||t.classList.contains("n2_container_scrollable")||t.closest(".n2_container_scrollable")};function S(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function C(t){w={x:(p?t.clientX:t.touches[0].clientX)-m.x,y:(p?t.clientY:t.touches[0].clientY)-m.y,time:Date.now()}}function F(e,t){if((e.isPrimary===r||e.isPrimary)&&!o&&(l=[],x=!0,!k[p=t](e)&&!P(e.target)))if("pointerdown"===e.type&&"mouse"===e.pointerType&&e.target.closest(".n2-ss-text")){var i=M(e.target,"click",(function(t){i(),Math.abs(e.clientX-t.clientX)<10&&Math.abs(e.clientY-t.clientY)<10&&b(e.target,"n2click")}));a(i,2e3)}else o=!0,0!==p&&l.push(M(s,O[p][1],A,{passive:!1,capture:!0})),l.push(M(s,O[p][2],R,{passive:!1,capture:!0})),l.push(M(s,O[p][3],R,{passive:!1,capture:!0})),l.push(M(n,O[p][4],I,{passive:!1,capture:!0})),m={x:p?e.clientX:e.touches[0].clientX,y:p?e.clientY:e.touches[0].clientY,time:Date.now()},v=r,d=!1,w={x:0,y:0},f.start(e,m),A(e)}function A(t){(t.isPrimary===r||t.isPrimary)&&("x"===f.axis&&(!f.preventScroll&&v||k[p](t))||P(t.target)||(C(t),(Math.abs(w.x)>10||Math.abs(w.y)>10)&&(x=!1),v===r&&2!==p&&(v=Math.abs(w.x)=0;i--)l[i]();l=null,n2const.isFirefox&&(d=!1),f.end(t,m,w,d),d=!1,o=!1}}return y.push(M(s,"scroll",(function(){i.nextendScrollFocus!==r&&i.nextendScrollFocus||(d=!0)}))),1===_&&(u.style.touchAction="y"===f.axis?"pan-x":"pan-y"),y.push(M(u,O[_][0],(function(e){F(e,_)}),{passive:!1,capture:!0})),0===_&&y.push(M(u,O[0][1],(function(e){A(e)}),{passive:!1,capture:!0})),y.push(M(u,"dragstart",S)),f.mouse&&0===_&&y.push(M(u,O[2][0],(function(e){F(e,2)}))),y.push(M(u,"click",(function(t){x?f.click(t):S(t)}))),{supportsPointerEvents:g.pointerEvents,getClicksAllowed:function(){return x},kill:function(){for(var t=y.length-1;t>=0;t--)y[t]()}}}})),h.d("GSAP",(function(){var t=i.GreenSockGlobals,n=i.GreenSockGlobals={};!function(e){"use strict";function t(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t){return"string"==typeof t}function s(t){return"function"==typeof t}function o(t){return"number"==typeof t}function h(t){return void 0===t}function f(t){return"object"==typeof t}function c(t){return!1!==t}function l(){return void 0!==i}function v(t){return s(t)||r(t)}function d(t){return(xt=mi(t,ui))&&gn}function p(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function g(t,e){return!e&&console.warn(t)}function m(t,e){return t&&(ui[t]=e)&&xt&&(xt[t]=e)||ui}function w(){return 0}function $(t){var e,i,n=t[0];if(f(n)||s(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(i=pi.length;i--&&!pi[i].targetTest(n););e=pi[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Xi(t[i],e)))||t.splice(i,1);return t}function y(t){return t._gsap||$(xi(t))[0]._gsap}function b(t,e,i){return(i=t[e])&&s(i)?t[e]():h(i)&&t.getAttribute&&t.getAttribute(e)||i}function M(t,e){return(t=t.split(",")).forEach(e)||t}function x(t){return Math.round(1e5*t)/1e5||0}function _(t,e){for(var i=e.length,n=0;t.indexOf(e[n])<0&&++nt._dur||e._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t}function L(t){return t._repeat?wi(t._tTime,t=t.duration()+t._rDelay)*t:0}function B(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function X(t){return t._end=x(t._start+(t._tDur/Math.abs(t._ts||t._rts||Zt)||0))}function Y(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=x(i._time-(0Zt)&&e.render(i,!0)),D(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._durs;)o=o._prev;o?(e._next=o._next,o._next=e):(e._next=t[i],t[i]=e),e._next?e._next._prev=e:t[n]=e,e._prev=o,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),t._recent=e,n||j(t,e),t}function Q(t,e){return(ui.ScrollTrigger||p("scrollTrigger",e))&&ui.ScrollTrigger.create(e,t)}function U(t,e,i,n){return Zi(t,e),t._initted?!i&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&Ot!==Fi.frame?(fi.push(t),t._lazy=[e,n],1):void 0:1}function W(t,e,i,n){var r=t._repeat,s=x(e)||0,o=t._tTime/t._tDur;return o&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=r?r<0?1e10:x(s*(r+1)+t._rDelay*r):s,o&&!n?Y(t,t._tTime=t._tDur*o):t.parent&&X(t),i||D(t.parent,t),t}function Z(t){return t instanceof Ni?D(t):W(t,t._dur)}function V(t,e){var i,n,s=t.labels,o=t._recent||yi,a=t.duration()>=Wt?o.endTime(!1):t._dur;return r(e)&&(isNaN(e)||e in s)?"<"===(i=e.charAt(0))||">"===i?("<"===i?o._start:o.endTime(0<=o._repeat))+(parseFloat(e.substr(1))||0):(i=e.indexOf("="))<0?(e in s||(s[e]=a),s[e]):(n=+(e.charAt(i-1)+e.substr(i+1)),1(r=Math.abs(r))&&(s=n,a=r);return s}function ot(t){return z(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&Oi(t,"onInterrupt"),t}function at(t,e,i){return(6*(t=t<0?t+1:1>16,t>>8&ki,t&ki]:0:Pi.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Pi[t])d=Pi[t];else if("#"===t.charAt(0)){if(t.length<6&&(t="#"+(n=t.charAt(1))+n+(r=t.charAt(2))+r+(s=t.charAt(3))+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(d=parseInt(t.substr(1,6),16))>>16,d>>8&ki,d&ki,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&ki,t&ki]}else if("hsl"===t.substr(0,3))if(d=v=t.match(ii),e){if(~t.indexOf("="))return d=t.match(ni),i&&d.length<4&&(d[3]=1),d}else a=+d[0]%360/360,u=d[1]/100,n=2*(h=d[2]/100)-(r=h<=.5?h*(u+1):h+u-h*u),3=i&&te)return n;n=n._next}else for(n=t._last;n&&n._start>=i;){if(!n._dur&&"isPause"===n.data&&n._start=r._start)&&r._ts&&h!==r){if(r.parent!==this)return this.render(t,e,i);if(r.render(0=this.totalDuration()||!w&&p)&&(c!==this._start&&Math.abs(f)===Math.abs(this._ts)||this._lock||(!t&&m||!(w===g&&0=n&&(s instanceof Hi?e&&r.push(s):(i&&r.push(s),t&&r.push.apply(r,s.getChildren(!0,e,i)))),s=s._next;return r},e.getById=function(t){for(var e=this.getChildren(1,1,1),i=e.length;i--;)if(e[i].vars.id===t)return e[i]},e.remove=function(t){return r(t)?this.removeLabel(t):s(t)?this.killTweensOf(t):(T(this,t),t===this._recent&&(this._recent=this._last),D(this))},e.totalTime=function(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=x(Fi.time-(0e:!e||s.isActive())&&n.push(s):(i=s.getTweensOf(r,e)).length&&n.push.apply(n,i),s=s._next;return n},e.tweenTo=function(t,e){e=e||{};var i=this,n=V(i,t),r=e.startAt,s=e.onStart,o=e.onStartParams,a=e.immediateRender,u=Hi.to(i,F({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(r&&"time"in r?r.time:i._time))/i.timeScale())||Zt,onStart:function(){i.pause();var t=e.duration||Math.abs((n-i._time)/i.timeScale());u._dur!==t&&W(u,t,0,1).render(u._time,!0,!0),s&&s.apply(u,o||[])}},e));return a?u.render(0):u},e.tweenFromTo=function(t,e,i){return this.tweenTo(e,F({startAt:{time:V(this,t)}},i))},e.recent=function(){return this._recent},e.nextLabel=function(t){return void 0===t&&(t=this._time),st(this,V(this,t))},e.previousLabel=function(t){return void 0===t&&(t=this._time),st(this,V(this,t),1)},e.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Zt)},e.shiftChildren=function(t,e,i){void 0===i&&(i=0);for(var n,r=this._first,s=this.labels;r;)r._start>=i&&(r._start+=t,r._end+=t),r=r._next;if(e)for(n in s)s[n]>=i&&(s[n]+=t);return D(this)},e.invalidate=function(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return i.prototype.invalidate.call(this)},e.clear=function(t){void 0===t&&(t=!0);for(var e,i=this._first;i;)e=i._next,this.remove(i),i=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),D(this)},e.totalDuration=function(t){var e,i,n,r=0,s=this,o=s._last,a=Wt;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(n=s.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),a<(i=o._start)&&s._sort&&o._ts&&!s._lock?(s._lock=1,N(s,o,i-o._delay,1)._lock=0):a=i,i<0&&o._ts&&(r-=i,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=i/s._ts,s._time-=i,s._tTime-=i),s.shiftChildren(-i,!1,-1/0),a=0),o._end>r&&o._ts&&(r=o._end),o=e;W(s,s===wt&&s._time>r?s._time:r,1,1),s._dirty=0}return s._tDur},a.updateRoot=function(t){if(wt._ts&&(P(wt,B(t,wt)),Ot=Fi.frame),Fi.frame>=di){di+=Qt.autoSleep||120;var e=wt._first;if((!e||!e._ts)&&Qt.autoSleep&&Fi._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Fi.sleep()}}},a}(Yi);function Qi(t,e,i,n,o,a){var u,h,c,l;if(li[t]&&!1!==(u=new li[t]).init(o,u.rawVars?e[t]:function(t,e,i,n,o){if(s(t)&&(t=Vi(t,o,e,i,n)),!f(t)||t.style&&t.nodeType||ti(t)||Kt(t))return r(t)?Vi(t,o,e,i,n):t;var a,u={};for(a in t)u[a]=Vi(t[a],o,e,i,n);return u}(e[t],n,o,a,i),i,n,a)&&(i._pt=h=new cn(i._pt,o,t,0,1,u.render,u,0,u.priority),i!==kt))for(c=i._ptLookup[i._targets.indexOf(o)],l=u._props.length;l--;)c[u._props[l]]=h;return u}F(Ni.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ui,Wi=function(t,e,i,n,o,a,u,h,f){s(n)&&(n=n(o||0,t,a));var c,l=t[e],v="get"!==i?i:s(l)?f?t[e.indexOf("set")||!s(t["get"+e.substr(3)])?e:"get"+e.substr(3)](f):t[e]():l,d=s(l)?f?nn:tn:Ki;if(r(n)&&(~n.indexOf("random(")&&(n=et(n)),"="===n.charAt(1)&&(n=parseFloat(v)+parseFloat(n.substr(2))*("-"===n.charAt(0)?-1:1)+(G(v)||0))),v!==n)return isNaN(v*n)?(l||e in t||p(e,n),function(t,e,i,n,r,s,o){var a,u,h,f,c,l,v,d,p=new cn(this._pt,t,e,0,1,on,null,r),g=0,m=0;for(p.b=i,p.e=n,i+="",(v=~(n+="").indexOf("random("))&&(n=et(n)),s&&(s(d=[i,n],t,e),i=d[0],n=d[1]),u=i.match(ei)||[];a=ei.exec(n);)f=a[0],c=n.substring(g,a.index),h?h=(h+1)%5:"rgba("===c.substr(-5)&&(h=1),f!==u[m++]&&(l=parseFloat(u[m-1])||0,p._pt={_next:p._pt,p:c||1===m?c:",",s:l,c:"="===f.charAt(1)?parseFloat(f.substr(2))*("-"===f.charAt(0)?-1:1):parseFloat(f)-l,m:h&&h<4?Math.round:0},g=ei.lastIndex);return p.c=g")}));else{if(d=z.length,y=P?K(P):w,f(P))for(p in P)~qi.indexOf(p)&&((b=b||{})[p]=P[p]);for(h=0;h=t._tDur||e<0)&&t.ratio===u&&(u&&z(t,1),i||(Oi(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,i);return this},e.targets=function(){return this._targets},e.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),i.prototype.invalidate.call(this)},e.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?ot(this):this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Ui&&!0!==Ui.vars.overwrite)._first||ot(this),this.parent&&i!==this.timeline.totalDuration()&&W(this,this._dur*this.timeline._tDur/i,0,1),this}var n,s,o,a,u,h,f,c=this._targets,l=t?xi(t):c,v=this._ptLookup,d=this._pt;if((!e||"all"===e)&&function(t,e){for(var i=t.length,n=i===e.length;n&&i--&&t[i]===e[i];);return i<0}(c,l))return"all"===e&&(this._pt=0),ot(this);for(n=this._op=this._op||[],"all"!==e&&(r(e)&&(u={},M(e,(function(t){return u[t]=1})),e=u),e=function(t,e){var i,n,r,s,o=t[0]?y(t[0]).harness:0,a=o&&o.aliases;if(!a)return e;for(n in i=mi({},e),a)if(n in i)for(r=(s=a[n].split(",")).length;r--;)i[s[r]]=i[n];return i}(c,e)),f=c.length;f--;)if(~l.indexOf(c[f]))for(u in s=v[f],"all"===e?(n[f]=e,a=s,o={}):(o=n[f]=n[f]||{},a=e),a)(h=s&&s[u])&&("kill"in h.d&&!0!==h.d.kill(u)||T(this,h,"_pt"),delete s[u]),"all"!==o&&(o[u]=1);return this._initted&&!this._pt&&d&&ot(this),this},s.to=function(t,e,i){return new s(t,e,i)},s.from=function(t,e){return new s(t,O(arguments,1))},s.delayedCall=function(t,e,i,n){return new s(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:i,onReverseCompleteParams:i,callbackScope:n})},s.fromTo=function(t,e,i){return new s(t,O(arguments,2))},s.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new s(t,e)},s.killTweensOf=function(t,e,i){return wt.killTweensOf(t,e,i)},s}(Yi);function $i(t,e,i){return t.setAttribute(e,i)}function Ji(t,e,i,n){n.mSet(t,e,n.m.call(n.tween,i,n.mt),n)}F(Hi.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),M("staggerTo,staggerFrom,staggerFromTo",(function(t){Hi[t]=function(){var i=new Ni,e=Mi.call(arguments,0);return e.splice("staggerFromTo"===t?5:4,0,0),i[t].apply(i,e)}}));var Ki=function(t,e,i){return t[e]=i},tn=function(t,e,i){return t[e](i)},nn=function(t,e,i,n){return t[e](n.fp,i)},rn=function(t,e){return s(t[e])?tn:h(t[e])&&t.setAttribute?$i:Ki},en=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4,e)},sn=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},on=function(t,e){var i=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;i;)n=i.p+(i.m?i.m(i.s+i.c*t):Math.round(1e4*(i.s+i.c*t))/1e4)+n,i=i._next;n+=e.c}e.set(e.t,e.p,n,e)},an=function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next},un=function(t,e,i,n){for(var r,s=this._pt;s;)r=s._next,s.p===n&&s.modifier(t,e,i),s=r},hn=function(t){for(var e,i,n=this._pt;n;)i=n._next,n.p===t&&!n.op||n.op===t?T(this,n,"_pt"):n.dep||(e=1),n=i;return!e},fn=function(t){for(var e,i,n,r,s=t._pt;s;){for(e=s._next,i=n;i&&i.pr>s.pr;)i=i._next;(s._prev=i?i._prev:r)?s._prev._next=s:n=s,(s._next=i)?i._prev=s:r=s,s=e}t._pt=n},cn=(ln.prototype.modifier=function(t,e,i){this.mSet=this.mSet||this.set,this.set=Ji,this.m=t,this.mt=i,this.tween=e},ln);function ln(t,e,i,n,r,s,o,a,u){this.t=e,this.s=n,this.c=r,this.p=i,this.r=s||en,this.d=o||this,this.set=a||Ki,this.pr=u||0,(this._next=t)&&(t._prev=this)}M(gi+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return hi[t]=1})),ui.TweenMax=ui.TweenLite=Hi,ui.TimelineLite=ui.TimelineMax=Ni,wt=new Ni({sortChildren:!1,defaults:Ut,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Qt.stringFilter=ct;var vn={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i",o="")}function f(){a.length&&(o+=i?""+a+"":a,a="")}function c(){r&&(u=u.substring(0,r)+" "+u.substr(r),r=!1)}for(var l=0;l"===v&&(s=!1);else if("<"!==v)if(/\s/.test(v))h(),!1===r&&(r=u.length);else{if(c(),a+=v,"&"===v){var p;p="#"===d?/[0-9]/:/[0-9a-zA-Z]/;for(var g,m="",w=1;g=n[l+w];){if(";"===g){m+=g;break}if(!p.exec(g)){m="";break}m+=g,w++}if(m){a+=m,l+=w,f();continue}}else if(a.length>1){if(65039===d.charCodeAt(0)){a+=d,a+=n[l+2],a+=n[l+3],a+=n[l+4],l+=4,f();continue}if(55356===d.charCodeAt(0)){a+=d,a+=n[l+2],l+=2,f();continue}}55296<=v.charCodeAt(0)&&v.charCodeAt(0)<=56319&&56320<=d.charCodeAt(0)&&d.charCodeAt(0)<=57343||f()}else"/"!==d?(c(),h(),r=!1):h(),s=!0,u+=v}return h(),t.innerHTML=u,{words:Array.from(t.querySelectorAll("ss-word")),chars:Array.from(t.querySelectorAll("ss-char")),revert:function(t,i){t.innerHTML=i}.bind(null,t,n)}},h.d("nextend-frontend"),h.d("n2")}(window); (function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var s=t.document,h=s.documentElement,n,o,r=t.setTimeout,a=t.clearTimeout,c=i._N2,u=t.requestAnimationFrame,f=function(t,i=null,h=null,n=null){const o=s.createElement(t);return i&&("string"==typeof i?j(o,i):G(o,i)),h&&k(o,h),n&&_(o,n),o},l=function(t,i,s,h,n){const o=f(i,s,h,n);return t&&t.appendChild(o),o},d=function(t,i,s,h,n){const o=f(t,s,h,n);return o.innerHTML=i,o},m=function(t,i,s,h,n,o){const r=l(t,i,h,n,o);return r.innerHTML=s,r},v=function(t,i,s){return f("div",t,i,s)},p=function(t,i,s,h){return l(t,"div",i,s,h)},b=function(t,i,s,h){return d("div",t,i,s,h)},y=function(t,i,s,h,n){return m(t,"div",i,s,h,n)},w=function(t,i,s,h,n){const o=f("a",s,h,n);return P(o,"href",i),o.innerHTML=t,o},g=function(t,i,s,h,n,o){const r=l(t,"a",h,n,o);return P(r,"href",s),r.innerHTML=i,r},S=Object.assign,I=function(t,i){for(var s=Object(t),h=1;h=0;h--)s[h]===i&&s.splice(h,1)},mt=function(){return h.scrollTop},vt=function(t){h.scrollTop=t},pt=function(){return h.scrollLeft},bt=function(t){return t.getBoundingClientRect().width},yt=function(t){return t.getBoundingClientRect().height},wt=function(t){return s.scrollingElement.scrollTop+t.getBoundingClientRect().top},gt=function(t){if("complete"===s.readyState||"interactive"===s.readyState)t();else if(Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==s.addEventListener){const i=()=>{t(),t=()=>{}};s.addEventListener("DOMContentLoaded",i),s.addEventListener("readystatechange",(()=>{"complete"!==s.readyState&&"interactive"!==s.readyState||i()})),Document.prototype.addEventListener.call(s,"DOMContentLoaded",i)}else s.addEventListener("DOMContentLoaded",t)},St=function(t,i,s,h){if(Math.abs(t.scrollTop-i)<1)h&&h();else{s=Math.max(300,s||300);var n=t.scrollTop,o=i-n,r=performance.now(),a=function(i){var c=Math.min(1,(i-r)/s);c<.5?c*=2*c:c=(4-2*c)*c-1,t.scrollTop=n+c*o,c<1?requestAnimationFrame(a):h&&h()};a(r)}},It=function(t,i,h){var n=s.createElementNS("http://www.w3.org/2000/svg",t);return i&&(Pt(n,i),h&&h.appendChild(n)),n},At=function(t,i,s){t.setAttributeNS(null,i,s)},Pt=function(t,i){for(var s in i)At(t,s,i[s])},kt=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Ot=navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1?function(t){t()}:i.requestIdleCallback||function(t){return r(t,1)},Ct=i.cancelIdleCallback||function(t){a(t)},xt=function(t,i){i=(((i||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join("");return(t+"").replace(/|<\?(?:php)?[\s\S]*?\?>/gi,"").replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,(function(t,s){return i.indexOf("<"+s.toLowerCase()+">")>-1?t:""}))},Lt=function(t,i=""){return Mt(xt(t,"
"+i))},Mt=function(t){var i=new RegExp(["onclick","onfocus","ondrag","onmouse","onwheel","onscroll","ontouch","onload","onerror"].join("|"),"gi");return t.replace(i,"not-allowed")};function Dt(t){var i=s.getElementById(t);if(i&&i.sheet){var h,n=i.sheet;for(h=n.cssRules.length-1;h>=0;h--)n.cssRules[h].selectorText&&n.cssRules[h].selectorText.includes("div#n2-ss-")&&n.deleteRule(h)}}gt((function(){n=s.body})),c.d("SmartSliderBackgrounds",(function(){function t(t){this.device=null,this.slider=t,this.hasFixed=!1,this.lazyLoad=parseInt(t.parameters.lazyLoad),this.lazyLoadNeighbor=parseInt(t.parameters.lazyLoadNeighbor),this.promise=new Promise(function(t){this.resolve=t}.bind(this)),this.slider.stages.done("Resized",this.onResized.bind(this)),this.slider.stages.done("StarterSlide",this.onStarterSlide.bind(this))}return t.prototype.preLoad=function(t){Promise.all(t).then(this.resolve)},t.prototype.getBackgroundImages=function(){for(var t=[],i=0;i.7*i,n=!0;"partly-visible"===t.mode?(h&&(s.bottom<0||s.top>=s.height)||!h&&(s.bottom-s.height<0||s.top-i+s.height>=0))&&(n=!1):"not-visible"===t.mode&&(n=s.top-i<0&&s.top+s.height>0),!1===n?"hidden"!==t.state&&("function"==typeof t.onHide&&t.onHide(),t.state="hidden"):"visible"!==t.state&&("function"==typeof t.onVisible&&t.onVisible(),t.state="visible")},new t})),c.d("SmartSliderApi",(function(){function t(){this.sliders={},this.readys={},this.eventListeners={}}t.prototype.makeReady=function(t,i){if(this.sliders[t]=i,this.readys[t]!==o)for(var s=0;s=0;s--)this.eventListeners[t][s]===i&&this.eventListeners[t].splice(s,1)},t.prototype.dispatch=function(t,i){if(this.eventListeners[t]!==o&&this.eventListeners[t].length)for(var s=this.eventListeners[t].length-1;s>=0;s--)this.eventListeners[t][s]&&this.eventListeners[t][s].call(i,i)},t.prototype.trigger=function(t,i,e){e&&e.preventDefault();var s=i.split(","),h=t.closest(".n2-ss-slide,.n2-ss-static-slide"),n=h.ssLastEvent;t.ssResetEvents||(t.ssResetEvents=1,at(h,"layerAnimationPlayIn",function(t){t.ssLastEvent=""}.bind(this,h)));for(var o=s.length-1,r=0;r=0&&r.element(h[n])},element:function(t){"string"==typeof t&&(t=s.querySelector(t)),r.to(wt(t)-r.focusOffsetTop)}};return t.prototype.scroll=function(e,t){if(this.isClickAllowed(e)){e.preventDefault();var s=this.findSliderByElement(e.target);s&&(r.focusOffsetTop=s.responsive.focusOffsetTop,e.currentTarget.blur()),r[t].apply(i,Array.prototype.slice.call(arguments,2))}},t.prototype.findSliderByElement=function(t){return(t=t.closest(".n2-ss-slider"))?t.ss:null},i.n2ss=new t,i.n2ss})),c.d("SmartSliderAbstract",(function(){function t(s,h){if(this.editor=null,this.elementID=s,i[s]&&i[s]instanceof t)if(i[s].__sliderElement&&!n.contains(i[s].__sliderElement));else{if(i[s].sliderElement===o)return void console.error("Slider [#"+s+"] inited multiple times");if(n.contains(i[s].sliderElement))return void console.error("Slider [#"+s+"] embedded multiple times")}this.stages=new c.Stages,c.d("#"+s,function(){return this}.bind(this)),this.isAdmin=!!h.admin,c.SmartSliderPlugins.addSlider(this),this.id=parseInt(s.replace("n2-ss-","")),i[s]=this,h.isDelayed!==o&&h.isDelayed?gt(function(){this.waitForExists(s,h)}.bind(this)):this.waitForExists(s,h)}t.prototype.kill=function(){this.killed=!0;var t=this.sliderElement.closest(".n2-ss-margin");t?B(t):c.r("documentReady",function(){B(this.sliderElement.closest(".n2-ss-margin"))}.bind(this));var i=this.sliderElement.closest(".n2-ss-align");i?B(i):c.r("documentReady",function(){B(this.sliderElement.closest(".n2-ss-align"))}.bind(this)),n2ss.makeReady(this.id,this)},t.prototype.waitForExists=function(t,i){new Promise((function(i){var h=function(){var n=s.getElementById(t)||s.getElementById(t+"_t");n?i(n):r(h,500)};h()})).then(this.onSliderExists.bind(this,t,i))};var u=[];function f(t,s){if(i.IntersectionObserver)new IntersectionObserver(function(t,i){for(var h=0;hthis.realSlides.length-1?0:t+1]);this.widgets=new c.SmartSliderWidgets(this);var s;if(new c.UniversalEnter(this.sliderElement,function(e){e.target.closest(".n2-full-screen-widget")||(a(s),!0,j(this.sliderElement,"n2-hover"),this.widgets.setState("hover",!0),ct(this.sliderElement,"universalleave",function(e){e.stopPropagation(),s=r(function(){!1,X(this.sliderElement,"n2-hover"),this.widgets.setState("hover",!1)}.bind(this),1e3)}.bind(this)))}.bind(this)),this.parameters.carousel||this.initNotCarousel(),this.initHideArrow(),this.controls={},this.initMainAnimationWithLayerAnimation(),n2Slow||this.isAdmin||!this.parameters.parallax.enabled||!this.parameters.parallax.mobile&&(this.parameters.parallax.mobile||n2const.isMobile)||this.ready(function(){this.parallax=new c.LayerParallax(this,this.parameters.parallax),this.parallax.start(this.currentSlide),at(this.sliderElement,"SlideWillChange",function(e){this.parallax.start(e.detail.targetSlide.slides[0])}.bind(this))}.bind(this)),this.parameters.blockrightclick&&at(this.sliderElement,"contextmenu",(function(e){e.preventDefault()})),this.initMainAnimation(),this.initResponsiveMode(),!this.killed){if(at(this.sliderElement,"touchstart",function(){X(this.sliderElement,"n2-has-hover")}.bind(this),{passive:!0,once:!0}),this.initControls(),this.stages.resolve("UIReady"),!this.isAdmin){var h="click";this.hasTouch()&&(h="n2click"),this.sliderElement.querySelectorAll('[data-n2click="url"]').forEach((function(t){at(t,h,(function(e){n2ss.openUrl(e)})),at(t,"mousedown",(function(e){1===e.button&&(e.preventDefault(),n2ss.openUrl(e,"_blank"))})),at(t,"keydown",(function(e){n2ss.openUrlKeyDown(e)}))}))}this.load.start(),at(this.sliderElement,"keydown",(function(t){"Space"!==t.code&&"Enter"!==t.code||t.target.matches('[role="button"],[tabindex]')&&t.target.matches(":not(a,input,select,textarea)")&&(t.preventDefault(),t.target.click(),ht(t.target,"n2Activate"))})),at(this.sliderElement,"mouseleave",(function(e){e.currentTarget.blur()})),i.jQuery&&i.jQuery(this.sliderElement).find("[tabindex]").off("focus")}},t.prototype.initSlides=function(){var t,i=this.sliderElement.querySelectorAll(".n2-ss-slide");for(t=0;t0&&u>0||(c<0?l="top"===f?"top":"bottom"===f?"bottom":-c<=u?"top":"bottom":u<0&&(l="top"===f?"top":"bottom"===f||-u<=c?"bottom":"top"));var d=h;if("top"===l?d=h-n+a.top:"bottom"===l&&(d=h+o+a.bottom-r),(d=Math.round(d))!==h)return this._scrollTo(d,Math.abs(h-d))}return!0},t.prototype._scrollTo=function(t,n){var o=!1;return"smooth"===T(h,"scroll-behavior")&&(F(h,"scroll-behavior",""),o=!0),i.nextendScrollFocus=!0,new Promise((function(i){St(s.scrollingElement,t,n,i)})).then((function(){o&&F(h,"scroll-behavior","smooth"),i.nextendScrollFocus=!1}))},t.prototype.isChangeCarousel=function(t){return"next"===t?this.currentSlide.index+1>=this.slides.length:"previous"===t&&this.currentSlide.index-1<0},t.prototype.initNotCarousel=function(){this.realSlides[0].setPrevious(!1),this.realSlides[this.realSlides.length-1].setNext(!1)},t.prototype.initHideArrow=function(){var t=function(t){this.widgets.setState("nonCarouselFirst",!this.getUIPreviousSlide(t)),this.widgets.setState("nonCarouselLast",!this.getUINextSlide(t))}.bind(this);this.stages.done("StarterSlide",function(){t(this.currentSlide),at(this.sliderElement,"SliderResize",function(){t(this.currentSlide)}.bind(this))}.bind(this)),at(this.sliderElement,"SlideWillChange",(function(e){t(e.detail.targetSlide)}))},t.prototype.next=function(t,i){var s=this.currentSlide.getNext();return!(!s||!this.getUINextSlide(this.currentSlide))&&this.changeTo(s.index,!1,t,i)},t.prototype.previous=function(t,i){var s=this.getUIPreviousSlide(this.currentSlide);return!!s&&this.changeTo(s.index,!0,t,i)},t.prototype.isChangePossible=function(t){var i=!1;if("next"===t){var s=this.currentSlide.getNext();s&&(i=s.index)}else if("previous"===t){var h=this.currentSlide.getPrevious();h&&(i=h.index)}return!1!==i&&i!==this.currentSlide.index},t.prototype.nextCarousel=function(t,i){return this.parameters.carousel?!!this.next(t,i)||this.changeTo(this.getFirstSlide().index,!1,t,i):this.next(t,i)},t.prototype.getFirstSlide=function(){return this.slides[0].isVisible?this.slides[0]:this.slides[0].getNext()},t.prototype.getSlideCount=function(){for(var t=0,i=0;ithis.currentSlide.index?this.changeTo(t,!1):this.changeTo(t,!0)},t.prototype.changeTo=function(t,i,s,h){if((t=parseInt(t))!==this.currentSlide.index){if(!this.slides[t].isVisible)return console.error("this slide is not visible on this device"),!1;this.t("SlideWillChange",{targetSlide:this.slides[t]}),this.t("SlideLoading");var n=performance.now();return Promise.all([Promise.all(this.backgrounds.preLoadSlides(this.getVisibleSlides(this.slides[t]))),this.focus(s)]).then(function(){if(t!==this.currentSlide.index){if(this.mainAnimationLastChangeTime=0)},t.prototype.playSlide=function(t){t.playIn()},t.prototype.initMainAnimationWithLayerAnimation=function(){"forced"===this.parameters.layerMode.mode&&at(this.sliderElement,"preChangeToPlay",function(e){var t=e.detail.currentSlide;e.detail.resolveHandled.handled=!0,ct(t.element,"layerAnimationCompleteOut",e.detail.resolve),t.playOut()}.bind(this)),at(this.sliderElement,"mainAnimationStart",this.onMainAnimationStartSyncLayers.bind(this,this.parameters.layerMode)),at(this.sliderElement,"reverseModeEnabled",this.onMainAnimationStartSyncLayersReverse.bind(this,this.parameters.layerMode))},t.prototype.onMainAnimationStartSyncLayers=function(t,e){var i=this.slides[e.detail.currentSlideIndex],s=[],h=function(){ot(s)};"mainInStart"===t.inAnimation?s.push(rt(i.element,"mainAnimationStartIn",function(){h(),this.playSlide(i)}.bind(this))):"mainInEnd"===t.inAnimation&&s.push(rt(i.element,"mainAnimationCompleteIn",function(){h(),this.playSlide(i)}.bind(this))),s.push(rt(i.element,"mainAnimationStartInCancel",h))},t.prototype.onMainAnimationStartSyncLayersReverse=function(t,e){var i=this.slides[e.detail.reverseSlideIndex],s=[],h=function(){ot(s)};"mainInStart"===t.inAnimation?s.push(rt(i.element,"mainAnimationStartIn",function(){h(),this.playSlide(i)}.bind(this))):"mainInEnd"===t.inAnimation&&s.push(rt(i.element,"mainAnimationCompleteIn",function(){h(),this.playSlide(i)}.bind(this))),s.push(rt(this.sliderElement,"mainAnimationComplete",h))},t.prototype.findSlideByElement=function(t){var i;for(i=0;i=0&&tt?this.changeTo(t,!0,s):this.changeTo(t,!1,s):this.changeTo(t,!i,s))},t.prototype.hide=function(){this.isVisible&&(j(this.responsive.alignElement,"n2-ss-slider-has-no-slide"),this.load.placeholder&&j(this.load.placeholder,"n2-ss-slider-has-no-slide"),this.isVisible=!1)},t.prototype.show=function(){this.isVisible||(j(this.responsive.alignElement,"n2-ss-slider-has-no-slide"),this.load.placeholder&&X(this.load.placeholder,"n2-ss-slider-has-no-slide"),st(i,"scroll"),this.isVisible=!0)},t.prototype.startAutoplay=function(){return this.controlAutoplay!==o&&(this.controlAutoplay.setState("pausedSecondary",0),!0)},t.prototype.pauseAutoplay=function(){return this.controlAutoplay!==o&&(this.controlAutoplay.setState("pausedSecondary",1),!0)},t.prototype.initLayerAnimations=function(){for(var t=0;t=0;n--){var r=h[n].split("-");if(2===r.length){var a=parseInt(r[0]),c=parseInt(r[1]);if(a<=c)for(var u=a;u<=c;u++)h.push(u)}else h[n]=parseInt(h[n])}if(h.length>0){for(n=0;n0&&(t=1)),"ended"!==this.state&&(this.isReverseEnabled?0===t?(this.reverseTimeline.progress(0),this.timeline.progress(t,!1)):t>=0&&t<=1?(this.reverseTimeline.progress(0),this.timeline.progress(t)):t<0&&t>=-1&&(this.timeline.progress(0),this.reverseTimeline.progress(Math.abs(t))):t<=0?this.timeline.progress(Math.max(t,1e-6),!1):t>=0&&t<=1&&this.timeline.progress(t))},t.prototype.setTouchEnd=function(t,i,s){"ended"!==this.state&&(this.isReverseEnabled?this._setTouchEndWithReverse(t,i,s):this._setTouchEnd(t,i,s))},t.prototype._setTouchEnd=function(t,i,s){t&&i>0?(this.fixTouchDuration(this.timeline,i,s),this.timeline.play()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-i,s),this.timeline.reverse(),this.willRevertTo(this._revertCurrentSlideIndex,this._revertNextSlideIndex))},t.prototype._setTouchEndWithReverse=function(t,i,s){t?i<0&&this.reverseTimeline.totalDuration()>0?(this.fixTouchDuration(this.reverseTimeline,i,s),this.reverseTimeline.play(),this.willRevertTo(this.reverseSlideIndex,this._revertNextSlideIndex)):(this.willCleanSlideIndex(this.reverseSlideIndex),this.fixTouchDuration(this.timeline,i,s),this.timeline.play()):(i<0?(this.revertCB(this.reverseTimeline),this.fixTouchDuration(this.reverseTimeline,1-i,s),this.reverseTimeline.reverse()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-i,s),this.timeline.reverse()),this.willCleanSlideIndex(this.reverseSlideIndex),this.willRevertTo(this._revertCurrentSlideIndex,this._revertNextSlideIndex))},t.prototype.fixTouchDuration=function(t,i,s){var h=t.totalDuration(),n=Math.max(h/3,Math.min(h,s/Math.abs(i)/1e3));n!==h&&t.totalDuration(n)},t.prototype.getState=function(){return this.state},t.prototype.timeScale=function(){return arguments.length>0?(this.timeline.timeScale(arguments[0]),this):this.timeline.timeScale()},t.prototype.changeTo=function(t,i,s,h){if(this._initAnimation(t,i,s),this.state="initAnimation",this.timeline.paused(!0),this.timeline.eventCallback("onStart",this.onChangeToStart.bind(this),[t,i,h]),this.timeline.eventCallback("onComplete",this.onChangeToComplete.bind(this),[t,i,h]),this.timeline.eventCallback("onReverseComplete",null),this.revertCB=function(s){s.eventCallback("onReverseComplete",this.onReverseChangeToComplete.bind(this),[i,t,h])}.bind(this),this.isTouch)t.onOutAnimationsPlayed();else{var n={handled:!1};new Promise(function(s){nt(this.slider.sliderElement,"preChangeToPlay",{resolve:s,resolveHandled:n,currentSlide:t,nextSlide:i}),n.handled||s()}.bind(this)).then(function(){this.play()}.bind(this.timeline))}},t.prototype.willRevertTo=function(t,i){nt(this.slider.sliderElement,"mainAnimationWillRevertTo",{slideIndex:t,originalNextSlideIndex:i}),ct(this.sliderElement,"mainAnimationComplete",this.revertTo.bind(this,t,i))},t.prototype.revertTo=function(t,i){this.slider.revertTo(t,i),ht(this.slider.slides[i].element,"mainAnimationStartInCancel")},t.prototype.willCleanSlideIndex=function(t){ct(this.sliderElement,"mainAnimationComplete",this.cleanSlideIndex.bind(this,t))},t.prototype.cleanSlideIndex=function(){},t.prototype._initAnimation=function(t,i,s){this.slider.updateInsideSlides([t,i])},t.prototype.onChangeToStart=function(t,i,s){this.state="playing";var h={mainAnimation:this,previousSlideIndex:t.index,currentSlideIndex:i.index,isSystem:s};this.slider.t("mainAnimationStart",h),t.t("mainAnimationStartOut",h),i.t("mainAnimationStartIn",h)},t.prototype.onChangeToComplete=function(t,i,s){var h={mainAnimation:this,previousSlideIndex:t.index,currentSlideIndex:i.index,isSystem:s};this.clearTimelines(),this.disableReverseMode(),t.t("mainAnimationCompleteOut",h),i.t("mainAnimationCompleteIn",h),this.state="ended",this.slider.updateInsideSlides([i]),s||i.focus(),this.slider.t("mainAnimationComplete",h)},t.prototype.onReverseChangeToComplete=function(i,s,h){t.prototype.onChangeToComplete.apply(this,arguments)},t.prototype.clearTimelines=function(){this.revertCB=function(){},this.timeline.clear(),this.timeline.timeScale(1)},t.prototype.getEase=function(){return this.isTouch?"linear":this.parameters.ease},t})),c.d("SmartSliderPostBackgroundAnimation",(function(){var t={default:5,superSlow:20,slow:10,normal:5,fast:3,superFast:1.5},i={default:1,superSoft:.3,soft:.6,normal:1,strong:1.5,superStrong:2};function s(t,i){this.tween=null,this.lastTween=null,this.slider=t,this.mainAnimation=i,this.isFirst=!0,this.visibleAddedButNotPlayed=!1,this.parameters=S({data:0,speed:"default",strength:"default"},t.parameters.postBackgroundAnimations),this.slider.stages.done("StarterSlide",this.init.bind(this))}return s.prototype.init=function(){this.ratios=S({slideW:1,slideH:1},this.slider.responsive.ratios),this.backgrounds=this.slider.backgrounds,this.images=this.backgrounds.getBackgroundImages();for(var t=0;t0&&(1===this.it.responsive.parameters.focusUser?(this.it.responsive.parameters.focusUser=0,this.switchToSlide(t-1),this.it.responsive.parameters.focusUser=1):this.switchToSlide(t-1),this.replaceHash())}.bind(this))))}return t.prototype.getAnchor=function(){var t=i.location.hash.substr(1);if(t){if(t===this.nt)return!0;if(this.et.slideSwitch&&0===t.indexOf(this.nt)){var s=+t.substr(this.nt.length+1);if(s>0)return s}}return!1},t.prototype.switchOnLoad=function(){var t=this.getAnchor();if(t>0){var s=t-1,h=i["n2-ss-"+this.it.id];h&&h.stages.resolved("StarterSlide")?h.stages.done("BeforeShow",function(){this.switchToSlide(s)}.bind(this)):i["ss"+this.it.id]=s,this.replaceHash()}},t.prototype.replaceHash=function(){var t="#"+this.nt;history.replaceState?history.replaceState(null,null,t):location.hash=t},t.prototype.switchToSlide=function(t){this.it.slide(t)},t})),c.d("SmartSliderControlAutoplay",(function(){"use strict";function t(t,i){this.slider=t,this.state={enabled:1,paused:1,pausedSecondary:0,mainAnimationPlaying:0,wait:0},this._listeners=[],this.wait=new c.SmartSliderControlAutoplayWait(this),this._currentCount=1,this.autoplayToSlide=0,this.autoplayToSlideIndex=-1,this.parameters=S({enabled:0,start:1,duration:8e3,autoplayLoop:0,allowReStart:0,pause:{mouse:"enter",click:!0,mediaStarted:!0},resume:{click:0,mouse:0,mediaEnded:!0},interval:1,intervalModifier:"loop",intervalSlide:"current"},i),this.clickHandled=!1,t.controls.autoplay=this,this.parameters.enabled?(this.parameters.duration/=1e3,this.slider.visible(this.onReady.bind(this))):this.disable()}return t.prototype.preventClickHandle=function(){this.clickHandled=!0,r(function(){this.clickHandled=!1}.bind(this),300)},t.prototype.onReady=function(){this.ot=!0;this.timeline=c.J.to({_progress:0},this.getSlideDuration(this.slider.currentSlide.index),{_progress:1,paused:!0,onComplete:this.next.bind(this)});var t=this.slider.sliderElement;this._listeners.push(rt(t,"SlideLoading",function(){this.wait.add("load")}.bind(this))),this._listeners.push(rt(t,"SlideLoaded",function(e){this.wait.resolve("load")}.bind(this))),this._listeners.push(rt(t,"BeforeCurrentSlideChange",function(){this.wait.resolveWeak(),this.setState("mainAnimationPlaying",1)}.bind(this))),this._listeners.push(rt(t,"mainAnimationStart",function(){this._currentCount++,this.setState("mainAnimationPlaying",1),this.wait.resolveWeak()}.bind(this))),this._listeners.push(rt(t,"mainAnimationComplete",function(e){this.timeline.duration(this.getSlideDuration(e.detail.currentSlideIndex)),this.ot=!0,this.timeline.pause(0,!1),this.setState("mainAnimationPlaying",0)}.bind(this))),this._listeners.push(rt(t,"autoplayPause",function(e){this.setState("paused",1)}.bind(this))),this._listeners.push(rt(t,"autoplayResume",function(e){(this.state.paused||0===parseInt(this.parameters.start)&&0===parseInt(this.state.paused))&&(this._currentCount=1),this.setState("pausedSecondary",0),this.setState("paused",0);var t=e.detail.progress;t!==o&&this.timeline.progress(t)}.bind(this))),this._listeners.push(rt(t,"CurrentSlideChanged",function(e){this.timeline.duration(this.getSlideDuration(e.detail.currentSlide.index)),this.ot=!0,this.timeline.pause(0,!1),this.setState("mainAnimationPlaying",0)}.bind(this))),this.initClick(this.parameters.pause.click,this.parameters.resume.click),this.initHover(this.parameters.pause.mouse,this.parameters.resume.mouse),this.initMedia(this.parameters.pause.mediaStarted,this.parameters.resume.mediaEnded),this.slider.stages.resolve("AutoplayReady"),this.slider.t("autoplay",{progress:0}),this.parameters.start||this.setState("pausedSecondary",1),this.setState("paused",0)},t.prototype.setState=function(t,i){this.state[t]!==i&&(this.state[t]=i,this.timeline!==o&&(!this.state.enabled||this.state.paused||this.state.pausedSecondary||this.state.wait||this.state.mainAnimationPlaying?(this.timeline.paused()||this.timeline.pause(),this.state.mainAnimationPlaying||this.isPaused!==o&&this.isPaused||(this.isPaused=!0,this.slider.t("autoplayPaused"))):(this.timeline.paused()&&this.timeline.play(),(this.isPaused===o||this.isPaused)&&(this.isPaused=!1,this.slider.t("autoplayStarted")))))},t.prototype.initClick=function(t,i){(t||i)&&(this.universalClick=new c.UniversalClick(this.slider.sliderElement,function(e){this.clickHandled||(this.state.pausedSecondary?i&&this.setState("pausedSecondary",0):t&&this.setState("pausedSecondary",1))}.bind(this)))},t.prototype.initHover=function(t,i){if(t||i){var s=!1;this._listeners.push(rt(this.slider.sliderElement,"touchend",(function(){s=!0,r((function(){s=!1}),300)}))),this._listeners.push(rt(this.slider.sliderElement,"mouseenter",function(e){this.state.pausedSecondary?"enter"===i&&this.setState("pausedSecondary",0):s||"enter"!==t||this.setState("pausedSecondary",1)}.bind(this))),this._listeners.push(rt(this.slider.sliderElement,"mouseleave",function(e){this.state.pausedSecondary?"leave"===i&&this.setState("pausedSecondary",0):"leave"===t&&this.setState("pausedSecondary",1)}.bind(this)))}},t.prototype.initMedia=function(t,i){var s=this.slider.sliderElement;t?(this._listeners.push(rt(s,"mediaStarted",function(e){this.wait.add(e.detail.id)}.bind(this))),this._listeners.push(rt(s,"mediaEnded",function(e){this.wait.resolve(e.detail.id)}.bind(this)))):i&&this._listeners.push(rt(s,"mediaEnded",function(){this.setState("pausedSecondary",0)}.bind(this)))},t.prototype.enableProgress=function(){this.timeline&&this.timeline.eventCallback("onUpdate",function(){this.slider.t("autoplay",{progress:this.timeline.progress()})}.bind(this))},t.prototype.next=function(){if(this.ot){if(this.ot=!1,this.timeline.pause(),!this.parameters.autoplayLoop){switch(this.parameters.intervalModifier){case"slide":this.slideSwitchingSlideCount();break;case"slideindex":this.slideSwitchingIndex();break;default:this.slideSwitchingLoop()}this.autoplayToSlide>0&&this._currentCount>=this.autoplayToSlide&&this.limitAutoplay(),this.autoplayToSlideIndex>=0&&this.slider.slides.length===this.slider.visibleSlides.length&&(this.autoplayToSlideIndex===this.slider.currentRealSlide.index+2||1===this.autoplayToSlideIndex&&this.slider.currentRealSlide.index+this.autoplayToSlideIndex===this.slider.slides.length)&&this.limitAutoplay()}this.slider.nextCarousel(!0)}},t.prototype.slideSwitchingLoop=function(){this.autoplayToSlide=this.parameters.interval*this.slider.visibleSlides.length-1,"next"===this.parameters.intervalSlide&&this.autoplayToSlide++},t.prototype.slideSwitchingSlideCount=function(){this.autoplayToSlide=this.parameters.interval},t.prototype.slideSwitchingIndex=function(){var t=Math.max(1,this.parameters.interval);t>this.slider.slides.length&&(t=1),this.autoplayToSlideIndex=t},t.prototype.limitAutoplay=function(){this.parameters.allowReStart?(this._currentCount=0,this.setState("paused",1)):this.disable()},t.prototype.disable=function(){this.setState("enabled",0),ot(this._listeners),this.universalClick&&(this.universalClick.remove(),delete this.universalClick),this.slider.stages.resolve("AutoplayDestroyed")},t.prototype.getSlideDuration=function(t){var i=this.slider.realSlides[this.slider.getRealIndex(t)],s=i.minimumSlideDuration;return 0===parseFloat(i.minimumSlideDuration)&&(s=this.parameters.duration),s},t})),c.d("SmartSliderControlFullscreen",(function(){"use strict";function t(i,h,n){this.slider=i,this.responsive=this.slider.responsive,this._type=this.responsive.parameters.type,this._upscale=this.responsive.parameters.upscale,this.rt=!1,this.st=this.slider.sliderElement,this.at=this.st.closest(".n2-section-smartslider"),at(s,t.event,this.fullScreenChange.bind(this))}return t.isSupported=!(!s.exitFullscreen&&!s.webkitExitFullscreen),t.isSupported&&(t.requestFullscreen=h.requestFullscreen||h.webkitRequestFullscreen,t.exitFullscreen=s.exitFullscreen||s.webkitExitFullscreen,t.event=h.requestFullscreen?"fullscreenchange":h.webkitRequestFullscreen?"webkitfullscreenchange":null),t.prototype.switchState=function(){this.rt=!this.rt,this.rt?this._fullScreen():this._normalScreen()},t.prototype.requestFullscreen=function(){return!this.rt&&(this.rt=!0,this._fullScreen(),!0)},t.prototype.exitFullscreen=function(){return!!this.rt&&(this.rt=!1,this._normalScreen(),!0)},t.prototype._fullScreen=function(){this.responsive.rt=!0,this.responsive.parameters.type="fullpage",this.st.dataset.responsive=this.responsive.parameters.type,this.responsive.parameters.upscale=!0,this._marginLeft=this.responsive.containerElement.style.marginLeft,this._marginRight=this.responsive.containerElement.style.marginRight,N(this.responsive.containerElement,{marginLeft:0,marginRight:0}),N(this.at,{width:"100%",height:"100%","background-color":i.getComputedStyle(n).backgroundColor}),t.requestFullscreen.call(this.at)},t.prototype._normalScreen=function(){t.exitFullscreen.call(s)},t.prototype.fullScreenChange=function(){this.isDocumentInFullScreenMode()?(this.slider.t("n2FullScreen"),j(h,"n2-in-fullscreen"),j(this.slider.sliderElement,"n2-ss-slider--fullscreen"),this.rt=!0,"auto"===this._type&&F(this.slider.responsive.alignElement,"max-width","none"),st(i,"resize")):(this.responsive.rt=!1,this.responsive.parameters.type=this._type,this.st.dataset.responsive=this._type,this.responsive.parameters.upscale=this._upscale,N(this.responsive.containerElement,{marginLeft:this._marginLeft,marginRight:this._marginRight}),N(this.at,{width:"",height:"","background-color":""}),X(this.slider.sliderElement,"n2-ss-slider--fullscreen"),X(h,"n2-in-fullscreen"),"auto"===this._type&&z(this.slider.responsive.alignElement,"max-width"),st(i,"resize"),this.rt=!1,this.slider.t("n2ExitFullScreen"))},t.prototype.isDocumentInFullScreenMode=function(){return s.fullscreenElement||s.webkitIsFullScreen},t})),c.d("SmartSliderControlKeyboard",(function(){"use strict";var t;function h(){this.controls=[],s.addEventListener("keydown",this.onKeyDown.bind(this)),s.addEventListener("mousemove",this.onMouseMove.bind(this),{capture:!0})}function o(i,s,n){this.slider=i,this.parameters=S({},n),this.parseEvent="vertical"===s?o.prototype.parseEventVertical:o.prototype.parseEventHorizontal,t||(t=new h),t.addControl(this),at(this.slider.sliderElement,"SliderKeyDown",function(e){this.onKeyDown(e.detail.e)}.bind(this)),i.controls.keyboard=this}return h.prototype.onMouseMove=function(e){this.mouseEvent=e},h.prototype.addControl=function(t){this.controls.push(t)},h.prototype.onKeyDown=function(e){if(e.target.tagName.match(/BODY|DIV|IMG/)&&!e.target.isContentEditable){var t;if(this.mouseEvent&&(t=this.findSlider(s.elementFromPoint(this.mouseEvent.clientX,this.mouseEvent.clientY))))return void nt(t,"SliderKeyDown",{e:e});if(s.activeElement!==n&&(t=this.findSlider(s.activeElement)))return void nt(t,"SliderKeyDown",{e:e});for(var i=0;i=0&&t.top+s<=i.innerHeight},o.prototype.onKeyDown=function(e){!e.defaultPrevented&&this.isSliderOnScreen()&&this.parseEvent.call(this,e)&&e.preventDefault()},o.prototype.parseEventHorizontal=function(e){switch(e.code){case"ArrowRight":return n2const.activeElementBlur(),this.slider[n2const.isRTL()?"previous":"next"](),!0;case"ArrowLeft":return n2const.activeElementBlur(),this.slider[n2const.isRTL()?"next":"previous"](),!0;default:return!1}},o.prototype.parseEventVertical=function(e){switch(e.code){case"ArrowDown":return(!this.slider.isChangeCarousel("next")||!this.slider.parameters.controls.blockCarouselInteraction)&&(n2const.activeElementBlur(),this.slider.next(),!0);case"ArrowUp":return(!this.slider.isChangeCarousel("previous")||!this.slider.parameters.controls.blockCarouselInteraction)&&(n2const.activeElementBlur(),this.slider.previous(),!0);default:return!1}},o})),c.d("SmartSliderControlMouseWheel",(function(){"use strict";function t(t,i){this.preventScroll={local:!1,curve:!1,curveGlobal:!1,global:!1,localTimeout:!1,curveTimeout:!1,curveGlobalTimeout:!1,globalTimeout:!1},this.maxDelta=0,this.slider=t,this.ct=2===i?"deltaX":"deltaY",s.addEventListener("wheel",this.onGlobalMouseWheel.bind(this),{passive:!1}),t.controls.mouseWheel=this}return t.prototype.hasScrollableParentVertical=function(t,s){for(;s&&s!==this.slider.sliderElement;){if(s.scrollHeight>s.clientHeight){var h=i.getComputedStyle(s).overflowY;if("scroll"===h||"auto"===h)if(t){if(s.scrollTop>0)return!0}else if(s.scrollTop+s.clientHeightt.offsetWidth)return!0;t=t.parentNode}return!1},t.prototype.onGlobalMouseWheel=function(e){e.target.closest(".n2-ss-slider")&&0!==e[this.ct]&&(this.onCurveEvent(e),this.preventScroll.local||this.preventScroll.curve||Math.abs(e[this.ct])0&&(this.slider.isChangeCarousel("next")&&this.slider.parameters.controls.blockCarouselInteraction||(this.slider.next(),e.preventDefault(),this.startCurveWatcher(e),this.local(),this.global()))},t.prototype.startCurveWatcher=function(e){!1!==this.preventScroll.curve&&a(this.preventScroll.curveTimeout),this.preventScroll.curveGlobal||(this.dynamicDelta=!1,this.lastDelta=e[this.ct],this.preventScroll.curveGlobal=!0,this.preventScroll.curveGlobalTimeout=r(function(){this.preventScroll.curveGlobal=!1,this.maxDelta=0}.bind(this),500)),this.preventScroll.curve=!0,this.preventScroll.curveTimeout=r(this.releaseCurveLock.bind(this),1500)},t.prototype.onCurveEvent=function(e){if(this.preventScroll.curveGlobal){this.dynamicDelta||this.lastDelta===e[this.ct]||(this.lastDelta=e[this.ct],this.dynamicDelta=!0);var t=Math.abs(e[this.ct]);this.preventScroll.curve&&this.maxDelta/2>t&&this.releaseCurveLock(),this.maxDelta=Math.max(this.maxDelta,t),this.preventScroll.curveGlobalTimeout&&a(this.preventScroll.curveGlobalTimeout),this.preventScroll.curveGlobalTimeout=r(function(){this.preventScroll.curveGlobal=!1,this.maxDelta=0}.bind(this),500)}},t.prototype.releaseCurveLock=function(){this.preventScroll.curve=!1,a(this.preventScroll.curveTimeout)},t.prototype.local=function(){!1!==this.preventScroll.local&&a(this.preventScroll.localTimeout),this.preventScroll.local=!0,this.preventScroll.localTimeout=r(function(){this.preventScroll.local=!1,this.dynamicDelta||this.releaseCurveLock()}.bind(this),1e3)},t.prototype.global=function(){!1!==this.preventScroll.global&&a(this.preventScroll.globalTimeout),this.preventScroll.global=!0,this.preventScroll.globalTimeout=r(function(){this.preventScroll.global=!1}.bind(this),1e3)},t})),c.d("SmartSliderControlTouch",(function(){"use strict";function t(t){this.slider=t,this.interactiveDrag=!0,this.preventMultipleTap=!1,this._animation=t.mainAnimation,this.swipeElement=this.slider.sliderElement.querySelector(".n2_ss__touch_element"),t.controls.touch=this,t.stages.done("StarterSlide",this.onStarterSlide.bind(this)),at(t.sliderElement,"visibleSlidesChanged",this.onVisibleSlidesChanged.bind(this))}return t.prototype.onStarterSlide=function(){this.initTouch(),at(this.slider.sliderElement,"sliderChangeCurrentSlide",this.updatePanDirections.bind(this))},t.prototype.onVisibleSlidesChanged=function(){this.slider.visibleSlides.length>1?N(this.swipeElement,{cursor:"grab",userSelect:"none"}):W(this.swipeElement,["cursor","userSelect"])},t.prototype.initTouch=function(){this._animation.isNoAnimation&&(this.interactiveDrag=!1),this.eventBurrito=c.EventBurrito(this.swipeElement,{mouse:!0,axis:"horizontal"===this.axis?"x":"y",start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this)}),this.updatePanDirections(),this.cancelKineticScroll=function(){this.kineticScrollCancelled=!0}.bind(this)},t.prototype._start=function(t){this.currentInteraction={type:"pointerdown"===t.type?"pointer":"touchstart"===t.type?"touch":"mouse",state:S({},this.state),action:"unknown",distance:[],distanceY:[],percent:0,progress:0,scrollTop:mt(),animationStartDirection:"unknown",hadDirection:!1,startDistance:0},this.logDistance(0,0)},t.prototype._move=function(t,i,s,h){if(!h||"unknown"!==this.currentInteraction.action){this.currentInteraction.direction=this.measure(s);var n=this.get(s);if((this.currentInteraction.hadDirection||Math.abs(n)>10||Math.abs(s.y)>10)&&(this.logDistance(n,s.y),this.currentInteraction.percent<1&&this.setTouchProgress(n,s.y),"touch"===this.currentInteraction.type&&t.cancelable&&("switch"!==this.currentInteraction.action&&"hold"!==this.currentInteraction.action||(this.currentInteraction.hadDirection=!0))),"switch"===this.currentInteraction.action)return!0}return!1},t.prototype._end=function(t,i,s,h){if("switch"===this.currentInteraction.action){var n=h?0:this.measureRealDirection();if(this.interactiveDrag)this._animation.timeline.progress()<1&&this._animation.setTouchEnd(n,this.currentInteraction.progress,s.time),this._animation.setTouch(!1);else n&&this.callAction(this.currentInteraction.animationStartDirection);X(this.swipeElement,"n2-grabbing")}this.onEnd(),delete this.currentInteraction,Math.abs(s.x)<10&&Math.abs(s.y)<10?this.onTap(t):c._preventClick()},t.prototype.onEnd=function(){if("scroll"===this.currentInteraction.action&&"pointer"===this.currentInteraction.type){var t=this.currentInteraction.distanceY[0],i=this.currentInteraction.distanceY[this.currentInteraction.distanceY.length-1],h=(t.d-i.d)/(i.t-t.t)*10,n=Date.now(),o=function(){requestAnimationFrame(function(){var t,i;if(!this.kineticScrollCancelled&&h&&(t=Date.now()-n,(i=h*Math.exp(-t/325))>1||i<-1))return vt(mt()+i),void o();this.onEndKineticScroll()}.bind(this))}.bind(this);this.kineticScrollCancelled=!1,o(),s.addEventListener("pointerdown",this.cancelKineticScroll)}},t.prototype.onEndKineticScroll=function(){delete this.kineticScrollCancelled,s.removeEventListener("pointerdown",this.cancelKineticScroll),F(h,"scroll-behavior","")},t.prototype.setTouchProgress=function(t,i){this.recognizeSwitchInteraction(),0===this.currentInteraction.startDistance&&(this.currentInteraction.startDistance=t<0?t+1:t-1);var s,h=this.getPercent(t-this.currentInteraction.startDistance);if(this.currentInteraction.percent=h,"switch"===this.currentInteraction.action){if(this.interactiveDrag){switch(this.currentInteraction.animationStartDirection){case"up":s=-1*h;break;case"down":s=h;break;case"left":s=-1*h;break;case"right":s=h}this.currentInteraction.progress=s,this._animation.setTouchProgress(s)}}else"unknown"!==this.currentInteraction.action&&"scroll"!==this.currentInteraction.action||this.startScrollInteraction(i)},t.prototype.startScrollInteraction=function(t){"vertical"===this.axis&&(this.slider.controlFullscreen&&this.slider.controlFullscreen.rt||(this.currentInteraction.action="scroll","pointer"===this.currentInteraction.type&&(F(h,"scroll-behavior","auto"),vt(Math.max(0,this.currentInteraction.scrollTop-t)))))},t.prototype.recognizeSwitchInteraction=function(){if("unknown"===this.currentInteraction.action&&this.slider.visibleSlides.length>1)if("ended"===this._animation.state){var t=this.currentInteraction.direction;if("unknown"!==t&&this.currentInteraction.state[t]){if(this.currentInteraction.animationStartDirection=t,this.interactiveDrag){this._animation.setTouch(this.axis);this.callAction(t,!1)}this.currentInteraction.action="switch",j(this.swipeElement,"n2-grabbing")}}else"playing"===this._animation.state&&(this.currentInteraction.action="hold")},t.prototype.logDistance=function(t,i){this.currentInteraction.distance.length>3&&(this.currentInteraction.distance.shift(),this.currentInteraction.distanceY.shift()),this.currentInteraction.distance.push({d:t,t:Date.now()}),this.currentInteraction.distanceY.push({d:i,t:Date.now()})},t.prototype.measureRealDirection=function(){var t=this.currentInteraction.distance[0],i=this.currentInteraction.distance[this.currentInteraction.distance.length-1];return i.d>=0&&t.d>i.d||i.d<0&&t.d=0;this.slider.parameters.carousel&&(i=!0,s=!0),n2const.isRTL()&&"vertical"!==this.slider.getAnimationAxis()?this.setState({right:i,left:s},!0):this.setState({right:s,left:i},!0)},t.prototype.syncTouchAction=function(){var t=this.state.left||this.state.right?"pan-y":"";F(this.swipeElement,"touch-action",t),i.PointerEventsPolyfill&&P(this.swipeElement,"touch-action",t)},t})),c.d("SmartSliderControlTouchVertical","SmartSliderControlTouch",(function(){"use strict";function t(){this.state={up:!1,down:!1},this.action={up:"next",down:"previous"},this.axis="vertical",c.SmartSliderControlTouch.prototype.constructor.apply(this,arguments)}return t.prototype=Object.create(c.SmartSliderControlTouch.prototype),t.prototype.constructor=t,t.prototype.callAction=function(t,i){switch(t){case"up":return this.slider.next.call(this.slider,i);case"down":return this.slider.previous.call(this.slider,i)}return!1},t.prototype.measure=function(t){return!this.currentInteraction.hadDirection&&Math.abs(t.y)<1||0==t.y||Math.abs(t.y)0)this.onReady();else{at(this.video,"error",this.onError.bind(this)),at(this.video,"canplay",this.onReady.bind(this)),at(this.video,"loadedmetadata",this.onReady.bind(this)),this.video.loop||at(this.video,"ended",this.onEnded.bind(this));var t=function(){r(function(){0===this.video.networkState&&this.onError()}.bind(this),100)}.bind(this);this.video.n2LoadStarted===o?at(this.video,"loadstart",t):t(),this.video.load(),this.safePlay()}},t.prototype.getLoadPromise=function(){return!0},t.prototype.onReady=function(e){this.isReady||(this.isReady=!0,this.safePause(),this.slider.ready(function(){this.setState("ready",!0,!0)}.bind(this)),this.slider.stages.done("BeforeShow",function(){this.slide.isActiveWhen()&&this.setState("slide",!0,!0)}.bind(this)),at(this.slider.sliderElement,"mainAnimationStart",function(e){this.setState("slide",this.slide.isActiveWhen(this.slider.slides[e.detail.currentSlideIndex]),!0)}.bind(this)),at(this.slider.sliderElement,"mainAnimationComplete",function(e){this.setState("slide",this.slide.isActiveWhen(this.slider.slides[e.detail.currentSlideIndex]),!0)}.bind(this)),at(this.slider.sliderElement,"CurrentSlideChanged",function(e){this.setState("slide",this.slide.isActiveWhen(e.detail.currentSlide),!0)}.bind(this)),D(this.video,"resetSlideChange")&&at(this.slider.sliderElement,"mainAnimationComplete",function(e){this.video.currentTime>0&&-1===this.slider.getVisibleSlides(this.slider.slides[e.detail.currentSlideIndex]).indexOf(this.slide)&&(this.video.currentTime=0,this.setState("ended",!1,!0))}.bind(this)),c.ScrollTracker.add(this.slide.element,"not-visible",function(){this.setState("scroll",!0,!0)}.bind(this),function(){this.setState("scroll",!1,!0)}.bind(this))),e&&"canplay"!==e.type||this.background.fadeOut()},t.prototype.onError=function(){B(video)},t.prototype.safeCallback=function(t){this.promise&&Promise!==o?this.promise.then(t).catch(t):t()},t.prototype.safePlay=function(){this.safeCallback(function(){this.promise=this.video.play(),this.promise&&Promise!==o&&this.promise.catch(function(e){if("NotAllowedError"===e.name)var t=function(){ot(i),!1!==this.promise&&this.safePlay()}.bind(this),i=[rt(n,"click",t),rt(n,"touchend",t)]}.bind(this))}.bind(this))},t.prototype.safePause=function(){this.safeCallback(function(){this.video.pause(),this.promise=!1}.bind(this))},t.prototype.onEnded=function(){this.setState("ended",!0,!0)},t.prototype.setState=function(t,i,s){s=s||!1,this.state[t]=i,s&&(this.state.ready&&!this.state.ended&&this.state.slide&&this.state.scroll?(this.safePlay(),ht(this.video,"n2playvideo")):this.safePause())},t})),c.d("SmartSliderSlideBackground",(function(){function t(t,i,s){this.types=this.types||{color:"SmartSliderSlideBackgroundColor",image:"SmartSliderSlideBackgroundImage",video:"SmartSliderSlideBackgroundVideo"},this.width=0,this.height=0,this.slide=t,this.element=i,this.manager=s,this.readyPromise=new Promise(function(t){this.readyPromiseResolve=t}.bind(this)),this.promise=new Promise(function(t){this.resolve=function(){t(),delete this.resolve}.bind(this)}.bind(this))}return t.prototype.preloadOnce=function(){if(!this.elements){this.elements={color:!1,image:!1,video:!1},this.currentSrc="",this.mode=D(this.element,"mode"),this.opacity=D(this.element,"opacity");var t=this.element.querySelectorAll(".n2-ss-slide-background-image");t.length&&(this.elements.image=new c[this.types.image](this.slide,this.manager,this,t),this.elements.image.preLoad());var i=this.element.querySelector(".n2-ss-slide-background-color");i&&(this.elements.color=new c[this.types.color](this,i));var s=this.element.querySelector(".n2-ss-slide-background-video");s&&(this.elements.video=new c[this.types.video](this.slide,this,s));var h=this.slide.slider.parameters.backgroundParallax;h&&h.strength>0&&!n2const.isFirefox&&!(n2const.isPhone&&!h.mobile||n2const.isTablet&&!h.tablet)&&this.hasBackground()&&(this.slide.slider.stages.done("BeforeShow",function(){this.startFixed(h)}.bind(this)),this.manager.hasFixed=!0),this.readyPromiseResolve(),delete this.readyPromiseResolve,delete this.readyPromise;var n=[];for(var o in this.elements)this.elements[o]&&n.push(this.elements[o].getLoadPromise());Promise.all(n).then(this.resolve)}},t.prototype.onReady=function(t){this.readyPromise?this.readyPromise.then(t):t()},t.prototype.preLoad=function(){return this.preloadOnce(),this.promise},t.prototype.fadeOut=function(){this.hasImage()&&this.elements.image.fadeOut()},t.prototype.hasColor=function(){return this.elements&&this.elements.color},t.prototype.hasImage=function(){return this.elements&&this.elements.image},t.prototype.hasVideo=function(){return this.elements&&this.elements.video},t.prototype.hasBackground=function(){return this.elements&&(this.elements.color||this.elements.image||this.elements.video)},t.prototype.onSlideDeviceChanged=function(t){this.hasImage()&&this.elements.image.onSlideDeviceChanged(t)},t.prototype.startFixed=function(t){this.slide.slider.started(function(){navigator.userAgent.match(/^((?!chrome|android).)*safari/i)||c.FixedBackground.addElement(this.element,t)}.bind(this))},t})),c.d("FrontendComponentCommon",["FrontendComponent"],(function(){function t(t,i,s,h){this.wraps={},this.skipSelfAnimation=!1,c.FrontendComponent.prototype.constructor.apply(this,arguments)}return t.prototype=Object.create(c.FrontendComponent.prototype),t.prototype.constructor=t,t.prototype.init=function(t){this.stateCBs=[],this.state={InComplete:!1};var i=this.layer.querySelector(":scope > .n2-ss-layer-mask");switch(i&&(this.wraps.mask=i),D(this.layer,"pm")){case"absolute":this.placement=new c.FrontendPlacementAbsolute(this);break;case"normal":this.placement=new c.FrontendPlacementNormal(this);break;case"content":this.placement=new c.FrontendPlacementContent(this);break;default:this.placement=new c.FrontendPlacementDefault(this)}this.animations=D(this.layer,"animv2"),c.FrontendComponent.prototype.init.call(this,t)},t.prototype.setState=function(t,i){this.state[t]=i;for(var s=0;sthis.windowHeight?s=i.top/i.height:i.bottom>this.windowHeight&&(s=(i.bottom-this.windowHeight)/i.height),s<=1&&s>=-1){var h=Math.round(s*(-t.data.strength*i.height))||0;t.y!==h&&(this.setY(t.animatedSMW,h),t.y=h)}},setY:function(t,i){t.y=i}}})),c.d("LayerParallax",(function(){function t(t,i){this.ticking=!1,this.active=!1,this.mouseOrigin=!1,this.parallaxedNodes=[],this.parallaxedSlideNodes=null,this._scrollCallback=!1,this._listeners=[],this.firstStart=!0,this.parameters=S({mode:"scroll",origin:"slider",is3D:!1,animate:!0,scrollmove:"both"},i),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&(this.parameters.is3D=!1,c.MW.L(t.sliderElement.querySelectorAll(".n2-ss-layers-container")).perspective="none"),this.x=this.y=0,this.levels={1:.01,2:.02,3:.05,4:.1,5:.2,6:.3,7:.4,8:.5,9:.6,10:.7},this.parameters.is3D&&(this.rotationX=this.rotationY=0,this.levelsDeg={1:2,2:6,3:10,4:15,5:20,6:25,7:30,8:35,9:40,10:45}),this.parameters.animate&&(this.render=this.animateRender),this.slider=t,this.sliderElement=t.sliderElement,this.ft=this.draw.bind(this)}return t.prototype.resize=function(){this.refreshSliderDimension()},t.prototype.refreshSliderDimension=function(){var t=this.sliderElement.getBoundingClientRect();this.dimensions={w2:t.width/2,h2:t.height/2,x:(t.x||t.left)+t.width/2,y:(t.y||t.top)+t.height/2}},t.prototype.enable=function(){this.active=!0,requestAnimationFrame(this.resize.bind(this)),this._listeners.push(rt(this.sliderElement,"SliderResize",this.resize.bind(this)));var t=-1,s=-1;switch(this.mouseX=!1,this.mouseY=!1,this.scrollY=!1,this.parameters.horizontal){case"mouse":this.mouseX=!0;break;case"mouse-invert":this.mouseX=!0,t=1}switch(this.parameters.vertical){case"mouse":this.mouseY=!0;break;case"mouse-invert":this.mouseY=!0,s=1;break;case"scroll":this.scrollY=!0,s=1;break;case"scroll-invert":this.scrollY=!0,s=-1}if((this.mouseX||this.mouseY)&&(this._listeners.push(rt(this.sliderElement,"mouseenter",this.mouseEnter.bind(this))),this._listeners.push(rt(this.sliderElement,"mousemove",this.mouseMove.bind(this,t,s))),this._listeners.push(rt(this.sliderElement,"mouseleave",this.mouseLeave.bind(this,!1))),this.sliderElement.matches(":hover")&&this.mouseEnter(!1)),this.scrollY){var h=-1,n=1;switch(this.parameters.scrollmove){case"bottom":s>0?n=0:h=0;break;case"top":s>0?h=0:n=0}this._scrollCallback=this.scroll.bind(this,s,h,n),this._listeners.push(rt(i,"scroll",this._scrollCallback,{capture:!0,passive:!0})),this._listeners.push(rt(i,"resize",this._scrollCallback))}},t.prototype.disable=function(){ot(this._listeners),this.active=!1},t.prototype.start=function(t){if(null!==this.parallaxedSlideNodes&&this.end(),this.firstStart){if(this.parallaxedStaticSlideNodes=[],this.slider.staticSlides)for(var i=0;i0&&this.parallaxedNodes.forEach((function(t){c.MW.I(t.parentNode).perspective=s}))}this.active||this.enable(),this._scrollCallback&&this._scrollCallback()}else this.parallaxedNodes=null,this.parallaxedSlideNodes=null,this.active&&this.disable()},t.prototype.end=function(){switch(this.parameters.mode){case"mouse-scroll":this.mouseLeave(!0);break;case"scroll":break;default:this.mouseLeave(!0)}this.parallaxedNodes=null},t.prototype.mouseEnter=function(e){this.ticking||(c.i.add(this.ft),this.ticking=!0),this.refreshSliderDimension(),e&&"enter"===this.parameters.origin?this.mouseOrigin={x:e.clientX,y:e.clientY}:this.mouseOrigin=this.dimensions},t.prototype.mouseMove=function(t,i,e){!1!==this.mouseOrigin&&(this.mouseX&&(this.x=t*(e.clientX-this.mouseOrigin.x),this.parameters.is3D&&(this.rotationY=-this.x/this.dimensions.w2)),this.mouseY&&(this.y=i*(e.clientY-this.mouseOrigin.y),this.parameters.is3D&&(this.rotationX=this.y/this.dimensions.h2)))},t.prototype.mouseLeave=function(t){this.ticking&&(c.i.remove(this.ft),this.ticking=!1);var i={};this.mouseX&&(i.parallaxX=0),this.mouseY&&(i.parallaxY=0),this.parameters.is3D&&(i.parallaxRotationX=i.parallaxRotationY=0),c.J.to(t?c.MW.D(this.parallaxedSlideNodes):this.lt,2,i)},t.prototype.getScrollTopRecursive=function(t,i){return null===t||t.scrollTop===o?i:(i+=t.scrollTop,this.getScrollTopRecursive(t.parentNode,i))},t.prototype.scroll=function(t,s,h){this.refreshSliderDimension();var n=i.innerHeight,o=this.getScrollTopRecursive(this.sliderElement,0);0this.dimensions.y-this.dimensions.h2&&(this.y=Math.max(s,Math.min(h,2*(this.dimensions.y+this.dimensions.h2)/(n+2*this.dimensions.h2)-1)),this.dimensions.y+o0)&&this.focusableElements.push(i),this.disableFocus(),this.background=!1,t.parameters.admin?this.minimumSlideDuration=0:(this.minimumSlideDuration=+D(i,"slideDuration"),this.minimumSlideDuration||(this.minimumSlideDuration=0)),this._isCurrentlyEdited=this.slider.parameters.admin&&i.classList.contains("n2-ss-currently-edited-slide"),this.isCurrentlyEdited()?(this.layer=i.querySelector('.n2-ss-layer[data-sstype="slide"]'),at(t.sliderElement,"SliderDeviceOrientation",function(){this.slider.visibleRealSlides.push(this),this.isVisible=!0,this.slider.responsive.visibleRealSlidesChanged=!0,this.t("Visible")}.bind(this))):(this.component=new c.FrontendComponentSectionSlide(this,t,i.querySelector('.n2-ss-layer[data-sstype="slide"]')),this.layer=this.component.layer)}t.prototype=Object.create(c.FrontendSliderSlideAbstract.prototype),t.prototype.constructor=t,t.prototype._setInside=function(t){this.isInside!==t&&(this.isInside=t,this.isCurrentlyEdited()||(t?this.status.is("SUSPENDED")&&this.unsuspend():!this.slider.parameters.layerMode.playOnce||this.playCount<1?this.reset():"skippable"===this.slider.parameters.layerMode.mode&&this.suspend()))};var i=!1;try{f("div").focus(Object.defineProperty({},"preventScroll",{get:function(){i=!0}}))}catch(t){}return t.prototype.focus=function(){i&&this._slideFocus.focus({preventScroll:!0})},t.prototype.allowFocus=function(){for(var t=0;t0},t.prototype.getParallaxNodes=function(){return this.component.getParallaxNodes()},t.prototype.hasBackgroundVideo=function(){return this.background.hasVideo()},t.prototype.hasLink=function(){return!!D(this.element,"haslink")},t.prototype.getLightboxImage=function(){return D(this.element,"lightboxImage")},t.prototype.onPlay=function(){this.playCount++},t})),c.d("FrontendSliderSlideAbstract",["FrontendSlideControls"],(function(){function t(t,i,s){c.FrontendSlideControls.prototype.constructor.call(this,t,i),this.slides=this.slides||[],this.group=this,this.originalIndex=s,this.index=s,this.localIndex=s,this.groupIndex=0,this.isVisible=!0,this.isInside=-1}for(var i in c.FrontendSlideControls.prototype)t.prototype[i]=c.FrontendSlideControls.prototype[i];return t.prototype.setIndex=function(t){for(var i=0;i .n2-ss-layer"))}return t.prototype=Object.create(c.FrontendComponentCommon.prototype),t.prototype.constructor=t,t.prototype.getContents=function(){return[this.content]},t})),c.d("FrontendComponentContent",["FrontendComponentCommon"],(function(){function t(t,i,s){this.content=s.querySelector(".n2-ss-section-main-content"),c.FrontendComponentCommon.prototype.constructor.call(this,t,i,s,this.content.querySelectorAll(":scope > .n2-ss-layer"))}return t.prototype=Object.create(c.FrontendComponentCommon.prototype),t.prototype.constructor=t,t.prototype.getContents=function(){return[this.content]},t})),c.d("FrontendComponentLayer",["FrontendComponentCommon"],(function(){function t(t,i,s){c.FrontendComponentCommon.prototype.constructor.call(this,t,i,s);var h=s;this.wraps.mask&&(h=this.wraps.mask),this.item=h.querySelectorAll(":scope > *")}return t.prototype=Object.create(c.FrontendComponentCommon.prototype),t.prototype.constructor=t,t.prototype.getContents=function(){return this.item},t})),c.d("FrontendComponentRow",["FrontendComponentCommon"],(function(){function t(t,i,s){this.row=s.querySelector(".n2-ss-layer-row"),this.rowInner=s.querySelector(".n2-ss-layer-row-inner"),c.FrontendComponentCommon.prototype.constructor.call(this,t,i,s,this.rowInner.querySelectorAll(":scope > .n2-ss-layer"))}return t.prototype=Object.create(c.FrontendComponentCommon.prototype),t.prototype.constructor=t,t.prototype.getContents=function(){return[this.row]},t})),c.d("FrontendComponentSectionSlide",["FrontendComponent"],(function(){function t(t,i,s){this.realSlide=t,this.slider=i,this.element=t.element,this.layer=s,this.isStatic=t.isStatic(),c.FrontendComponent.prototype.constructor.call(this,this,this,s,s.querySelectorAll(":scope > .n2-ss-layer")),at(i.sliderElement,"SliderDeviceOrientation",function(e){this.onDeviceChange(e.detail.device.toLowerCase())}.bind(this)),at(i.sliderElement,"SliderResize",function(e){this.onResize(e.detail.ratios,e.detail.responsive.resizeContext)}.bind(this)),this.start()}return t.prototype=Object.create(c.FrontendComponent.prototype),t.prototype.constructor=t,t.prototype.onDeviceChange=function(t){c.FrontendComponent.prototype.onDeviceChange.call(this,t);for(var i=0;i0&&(c.MW.I(this.layerElement.parentNode).perspective=this.perspective),this.plugins=new i}function i(){this.keys=["basic","reveal"],this.basic=o,this.reveal=o}return t.index=1,t.optimizeFromTo=function(t,i,s,h,n,o){t.fromTo(i,s,h,n,o)},t.prototype.hasAnimation=function(){return this.inStatus||this.loopStatus||this.outStatus},t.prototype.collectRelatedAnimations=function(){this.relatedAnimations={needInvalidate:!1,setDevice:[],updateRatios:[],in:[],loop:[],out:[],other:[]};for(var t=0;t0)for(var i=0;i0)for(var s=0;s=100&&this.status<200},i.prototype.isLoop=function(){return this.status>=200&&this.status<300},i.prototype.isOut=function(){return this.status>=300&&this.status<400},i.prototype.isPlaying=function(){return this.status%100==10},i.prototype.suspended=function(){return arguments.length&&(this._suspended=arguments[0]),this._suspended},i})),c.d("FrontendLayerAnimationsAbstract",(function(){function t(t,i){this.hasAnimation=!1,this.layerElement=t,this.animatableElement=i,this.St=c.MW.I(i),this.St.n2AutoAlpha=1}return t.prototype.onResize=function(){},t.prototype.resetToEditor=function(){},t})),c.d("FrontendLayerAnimationsBasic","FrontendLayerAnimationsAbstract",(function(){var t={opacity:1,x:0,y:0,z:0,rotationX:0,rotationY:0,rotationZ:0,scaleX:1,scaleY:1,skewX:0,n2blur:0};function i(t){return t.split("|*|").join("% ")+"px"}function s(i,s){this.device="desktopPortrait",c.FrontendLayerAnimationsAbstract.prototype.constructor.call(this,i,s),this.isAbsolute="absolute"===D(i,"pm"),this.It=!1,this.startValues=S({},t),this.hadImmediateRender=!1,this.horizontalRatio=this.verticalRatio=1,this._requireUpdateRatios=!1}s.prototype=Object.create(c.FrontendLayerAnimationsAbstract.prototype),s.prototype.constructor=s,s.prototype.updateRatios=function(t,i){this.horizontalRatio=t,this.verticalRatio=i},s.prototype.optimizeFromTo=function(t,i,s,h,n,o){this.hadImmediateRender?n.immediateRender=!1:this.hadImmediateRender=!0,c.FrontendLayerAnimationManager.optimizeFromTo(t,i,s,h,n,o)},s.prototype.resetToEditor=function(){this.hasAnimation&&this.setZero()},s.prototype.setStartValues=function(t){S(this.startValues,t),delete this.startValues.duration,delete this.startValues.delay,delete this.startValues.ease},s.prototype.setZero=function(){this.hasAnimation&&this.St.setValues(S({},t))},s.prototype.collectRelatedAnimations=function(i,s,h){if(this.device=s.device,this.animationManager=s,this.hasAnimation=!0,this.currentZero=Object.assign({},t),this.options={in:S({specialZero:0,transformOrigin:"50|*|50|*|0",keyFrames:[]},h.in),loop:S({repeatCount:0,repeatStartDelay:0,transformOrigin:"50|*|50|*|0",keyFrames:[]},h.loop),out:S({transformOrigin:"50|*|50|*|0",keyFrames:[]},h.out)},this.optimizeKeyFrames(),this.It&&i.other.push(this),this.options.in.keyFrames.length&&i.in.push(new c.AnimationsRelated(this,"extendTimelineIn")),this.options.loop.keyFrames.length){var n=new c.AnimationsLayerLoop(this,s,this.layerElement,this.St,this.options.loop);i.loop.push(n)}this.options.out.keyFrames.length&&i.out.push(new c.AnimationsRelated(this,"extendTimelineOut")),i.setDevice.push(this)},s.prototype.setDevice=function(t){this.device=t},s.prototype.requireUpdateRatios=function(){this._requireUpdateRatios||(this._requireUpdateRatios=!0,this.animationManager.needInvalidate(),this.animationManager.relatedAnimations.updateRatios.push(this),this.updateRatios(this.animationManager.horizontalRatio,this.animationManager.verticalRatio))},s.prototype.optimizeKeyFrames=function(){var t,s,h=this.options.in.keyFrames,n=this.options.loop.keyFrames,o=this.options.out.keyFrames;for(this.usedProperties={opacity:!1,x:!1,y:!1,z:!1,rotationX:!1,rotationY:!1,rotationZ:!1,scaleX:!1,scaleY:!1,skewX:!1,n2blur:!1},this.options.in.specialZero&&h.length>0&&(this.currentZero=this._fillKeyFrame(h.pop()),delete this.currentZero.name,delete this.currentZero.duration,delete this.currentZero.delay,delete this.currentZero.ease,this.currentZero.transformOrigin=i(this.options.in.transformOrigin),this.currentZero.rotationX=-this.currentZero.rotationX,this.currentZero.rotationY=-this.currentZero.rotationY,this.currentZero.rotationZ=-this.currentZero.rotationZ,this.It=!0,this.prepareDeviceSpecific(this.currentZero,1),this.setCurrentZero(),this.setStartValues(this.currentZero)),s=0;s0){var h=this._buildAnimationChainIn(i);if(h.length>0)for(var n=0;n=0;s--){var h=I({},t[s]),n=h.delay,o=h.duration,r=h.ease;delete h.delay,delete h.duration,delete h.ease;var a=i[0].from;i.unshift({duration:o,from:h,to:S({},a,{ease:r,delay:n})})}return i.pop(),i},s.prototype.extendTimelineOut=function(t){t.set(this.St,{transformOrigin:i(this.options.out.transformOrigin),immediateRender:!1}),this.buildTimelineOut(t,this.options.out.keyFrames)},s.prototype.buildTimelineOut=function(t,i){var s=0;i=I([],i);var h=this._buildAnimationChainOut(i);if(h.length>0)for(var n=0;n0){this.animationManager.linear||(t.addPause("+=0.002",this.animationManager.promises.loop.wait.bind(this.animationManager.promises.loop)),this.animationManager.promises.loop.addPauseTween(t.recent()));var s=t.totalDuration();this.animations[0].buildTimeline(t,s);for(i=1;i0&&(i+=this.repeatStartDelay,this.timeline.set({},{},i)),this.buildTimelineLoop(i,s,I([],this.animationData)),this.animationManager.linear||this.timeline.set({},{onComplete:this.onComplete.bind(this)})},t.prototype.buildTimelineLoop=function(t,i,s){var h,n=this._buildAnimationChainLoop(s);if(this.zero=I({ease:n[0].to.ease},n[0]),!this.single){var o=this.zero.duration/2;c.FrontendLayerAnimationManager.optimizeFromTo(this.timeline,this.St,o,S({},this.layerAnimations.currentZero),S({immediateRender:!1,ease:this.zero.ease},this.zero.from),t),t+=o}if("linear"===i){var r=this.repeatCount;r<1&&(r=1);for(var a=0;a0&&this.timeline.pause(0)},t.prototype.resetForReplay=function(){this.ending=!1,this.ended=!1,this.resetCounter()},t.prototype.play=function(){this.index>0&&this.timeline.restart(!0)},t.prototype.pause=function(){this.timeline.pause()},t.prototype.resume=function(){this.timeline.play()},t.prototype.suspend=function(){this.timeline.pause()},t.prototype.unsuspend=function(){this.timeline.play()},t.prototype.onComplete=function(){this.ended=!0,this.controller.markSingleAnimationEnded()},t.prototype.isEnded=function(){return this.ended},t.prototype.requestEnd=function(){this.ended||this.ending||(this.ending=!0,this.timeline.play())},t})),customElements.define("ss3-fullpage",class extends HTMLElement{connectedCallback(){"100vh"!==this.dataset.basedOn&&(this.At=i.n2Height||i.innerHeight,N(this,{"--target-height":this.At+"px",opacity:1}),at(i,"resize",this.onResize.bind(this)))}onResize(){this.updateHeight(),requestAnimationFrame(this.updateHeight.bind(this))}updateHeight(){var t=i.n2Height||i.innerHeight;Math.abs(this.At-t)>(this.dataset.threshold||0)&&(F(this,"--target-height",t+"px"),this.At=t)}}),c.d("SmartSliderResponsive",(function(){let t,u=!1;function f(t,s){for(var h in this.state={StarterSlide:!1},this.isVisible=!0,this.isResetActiveSlideEarly=this.isResetActiveSlideEarly||!1,this.focusOffsetTop=0,this.focusOffsetBottom=0,this.minimumSlideHeight=0,this.rt=!1,this.visibleRealSlidesChanged=!0,this.Pt=-1,this.kt=-1,this.Ot=-1,this.Ct=-1,this.filters={SliderWidth:[],SliderHeight:[],SlideHeight:[],SliderVerticalCSS:[]},this.parameters=S({mediaQueries:{},hideOn:{desktopLandscape:0,desktopPortrait:0,tabletLandscape:0,tabletPortrait:0,mobileLandscape:0,mobilePortrait:0},onResizeEnabled:!0,type:"auto",focusUser:1,focusEdge:"auto",enabledDevices:{desktopLandscape:1,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},breakpoints:[],sizes:{desktopPortrait:{width:1200,height:600,max:1e4,min:40}},ratioToDevice:{Portrait:{tablet:0,mobile:0},Landscape:{tablet:0,mobile:0}},overflowHiddenPage:0,focus:{offsetTop:"",offsetBottom:""}},s),this.mediaQueries={},this.parameters.mediaQueries)this.parameters.mediaQueries[h]&&(this.mediaQueries[h]=i.matchMedia(this.parameters.mediaQueries[h].join(",")));this.parameters.hideOn=i.ssOverrideHideOn||this.parameters.hideOn,this.doThrottledResize=NextendThrottle(this.doResize.bind(this),50),this.slider=t,this.sliderElement=t.sliderElement,this.xt="1"===D(this.sliderElement,"ssLegacyFontScale"),this.addFilter("SliderWidth",this.filterSliderWidthHorizontalSpacing.bind(this)),this.slider.isAdmin||"fullpage"!==this.parameters.type||this.slider.stages.done("WidgetsReady",function(){var t=this.getVerticalOffsetHeight();this.Lt!==t&&this.doResize()}.bind(this))}return s.addEventListener("scroll",(function(){t&&a(t),u=!0,t=r((function(){u=!1}),300)}),{capture:!0,passive:!0}),f.DeviceMode={unknown:0,desktoplandscape:1,desktopportrait:2,tabletlandscape:3,tabletportrait:4,mobilelandscape:5,mobileportrait:6},f._DeviceMode={0:"unknown",1:"desktopLandscape",2:"desktopPortrait",3:"tabletLandscape",4:"tabletPortrait",5:"mobileLandscape",6:"mobilePortrait"},f._DeviceGroup={desktopLandscape:"desktop",desktopPortrait:"desktop",tabletLandscape:"tablet",tabletPortrait:"tablet",mobileLandscape:"mobile",mobilePortrait:"mobile"},f.prototype.init=function(){this.base=this.parameters.base;var t=this.sliderElement.querySelector(".n2-ss-slider-background-video");t&&(n2const.isVideoAutoplayAllowed()?(t.addEventListener("error",B.bind(null,t),!0),t.load(),t.play()):B(t))},f.prototype.setDeviceID=function(t){this.deviceID=t,this.device=f._DeviceMode[t]},f.prototype.start=function(){if(this.slider.stages.done("ResizeFirst",function(){n2const.fonts.then(function(){this.slider.stages.resolve("Fonts")}.bind(this))}.bind(this)),this.normalizeTimeout=null,this.setDeviceID(f.DeviceMode.unknown),this.ratios={slideW:1,slideH:1},this.horizontalSpacingControls={right:[],left:[]},this.horizontalSpacing={right:0,left:0},this.staticSizes={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},this.alignElement=this.slider.sliderElement.closest(".n2-ss-align"),this.v=this.slider.v,this.containerElementPadding=this.sliderElement.parentNode,this.containerElement=this.containerElementPadding.parentNode,!this.slider.isAdmin&&this.parameters.overflowHiddenPage&&Y([h,n],"overflow","hidden"),c._smallestZoom=320,this.initFocusOffsetObserver(),this.slider.stages.resolve("ResponsiveStart"),this.init(),this.parameters.onResizeEnabled){at(i,"resize",this.onResize.bind(this)),this.lastROWidth=0;var t=this.containerElement.parentNode,s=new ResizeObserver(function(t){this.processResizeObserverRect(t[0].contentRect)}.bind(this));requestAnimationFrame(function(){this.processResizeObserverRect(t.getBoundingClientRect()),s.observe(t)}.bind(this))}else this.onResize()},f.prototype.processResizeObserverRect=function(t){this.isVisible=!!t.width,this.lastROWidth!==t.width&&(this.lastROWidth=t.width,this.internalResize())},f.prototype.internalResize=function(){this.onResize()},f.prototype.getDeviceMode=function(){return f._DeviceMode[this.deviceID]},f.prototype.getDeviceGroup=function(){return f._DeviceGroup[this.getDeviceMode()]},f.prototype.onResize=function(e){this.Pt=i.innerWidth,this.kt=i.innerHeight,this.slider.mainAnimation&&"playing"===this.slider.mainAnimation.getState()?this.Mt||(this.Mt=!0,ct(this.sliderElement,"mainAnimationComplete",this._onResize.bind(this,e))):this._onResize(e)},f.prototype._onResize=function(e){this.doResize(e),delete this.Mt},f.prototype.doNormalizedResize=function(){this.normalizeTimeout&&a(this.normalizeTimeout),this.normalizeTimeout=r(this.doResize.bind(this),10)},f.prototype.identifyDeviceID=function(){for(var t in this.mediaQueries)if(this.mediaQueries[t].matches)return f.DeviceMode[t];return f.DeviceMode.desktopportrait},f.prototype.initFocusOffsetObserver=function(){if(""!==this.parameters.focus.offsetTop){var t;try{t=s.querySelectorAll(this.parameters.focus.offsetTop)}catch(t){console.error('The Top CSS selector: "'+this.parameters.focus.offsetTop+'" used in the slider is invalid!')}if(t&&t.length)for(var i=new ResizeObserver(function(t){this.focusOffsetTop=0;for(var i=0;i0&&t<100)return}this.Ot=this.Pt,this.Ct=this.kt;var t=this.identifyDeviceID();if(this.parameters.hideOn[f._DeviceMode[t]])return j(this.v,"n2-section-smartslider--hidden"),!1;if(X(this.v,"n2-section-smartslider--hidden"),!this.isVisible)return!1;var i=!1,s=this.device;if(this.deviceID!==t&&(this.setDeviceID(t),s&&X(this.sliderElement,"n2-ss-"+s),E(this.sliderElement,"deviceMode",this.device),j(this.sliderElement,"n2-ss-"+this.device),this.slider.t("SliderDevice",{lastDevice:s,device:this.device,group:f._DeviceGroup[this.device]}),i=!0,this.slider.stages.resolve("Device")),this.slider.isAdmin||"fullpage"===this.parameters.type&&(this.Lt=this.getVerticalOffsetHeight(),F(this.sliderElement,"--subtract-vertical-widget",this.Lt+"px")),i&&(this.slider.visibleRealSlides=[],this.slider.publicDispatchEvent("SliderDeviceOrientation",{slider:this.slider,lastDevice:s,device:this.device,group:f._DeviceGroup[this.device]}),this.slider.stages.resolve("DeviceOrientation"),this.finalizeVisibleSlidesStage1()),!this.slider.visibleRealSlides.length)return this.parameters.hideOn[f._DeviceMode[t]]=!0,j(this.v,"n2-section-smartslider--hidden"),!1;if(this.slider.isVisible||this.visibleRealSlidesChanged){for(var h=0;h .n2-ss-layer[data-pm="absolute"][data-adaptivefont="0"]'),"font-size","calc("+16*this.ratios.slideW+"px * var(--ssfont-scale, 1))");for(var t=0;t0){var i=t||this.slider.currentRealSlide;i.isVisible||(i=i.getNext())||(i=this.slider.currentSlide.getPrevious()),this.resetActiveRealSlide(i)}},f.prototype.resetActiveRealSlide=function(t){var i,s;t&&t!==this.slider.currentRealSlide?(this.slider.t("BeforeCurrentSlideChange",t),(i=this.slider.currentSlide)&&this.slider.forceUnsetActiveSlide(i),this.slider.setCurrentRealSlide(t),s=this.slider.currentSlide,this.targetCurrentSlide=s,this.slider.forceSetActiveSlide(s),this.slider.t("SlideForceChange",{oldSlide:i,currentSlide:s})):s=this.slider.currentSlide,this.slider.updateInsideSlides([s])},f.prototype.finalizeVisibleSlidesStage2=function(){this.visibleRealSlidesChanged&&(this.visibleRealSlidesChanged=!1,this.isResetActiveSlideEarly||this.calibrateActiveSlide(),this.triggerVisibleSlidesChanged(),this.targetCurrentSlide!==o&&(this.slider.t("SlideWillChange",{targetSlide:this.targetCurrentSlide}),this.slider.t("CurrentSlideChanged",{currentSlide:this.targetCurrentSlide}),this.slider.stages.resolved("Visible")&&this.slider.playSlide(this.targetCurrentSlide),delete this.targetCurrentSlide))},f.prototype.triggerVisibleSlidesChanged=function(){this.slider.t("visibleSlidesChanged"),this.slider.stages.resolve("VisibleSlides"),this.slider.visibleRealSlides.length?this.slider.isVisible||this.slider.show():this.slider.isVisible&&this.slider.hide()},f.prototype.getNormalizedModeString=function(){return f._DeviceMode[this.deviceID]},f.prototype.triggerResize=function(){this.slider.publicDispatchEvent("SliderResize",{ratios:this.ratios,responsive:this}),this.slider.stages.resolve("Resized")},f.prototype.getVerticalOffsetHeight=function(){return this.rt?0:this.slider.widgets.getVerticalsHeight()},f.prototype.addHorizontalSpacingControl=function(t,i){this.horizontalSpacingControls[t].push(i),this.slider.stages.resolved("ResizeFirst")&&this.doNormalizedResize()},f.prototype.filterSliderWidthHorizontalSpacing=function(t){for(var i in this.horizontalSpacing={right:0,left:0},this.horizontalSpacingControls)for(var s=this.horizontalSpacingControls[i],h=s.length-1;h>=0;h--){var n=s[h];n.isVisible()&&(n.refreshSliderSize(t),this.horizontalSpacing[i]+=n.getSize())}return N(this.containerElementPadding,{paddingLeft:this.horizontalSpacing.left+"px",paddingRight:this.horizontalSpacing.right+"px"}),t-this.horizontalSpacing.left-this.horizontalSpacing.right},f.prototype.addFilter=function(t,i){this.filters[t].push(i)},f.prototype.removeFilter=function(t,i){this.filters[t].push(i)},f.prototype.applyFilter=function(t,i){for(var s=0;s0&&(this.totalDuration+=.8+.2*this.speedModifier+.2*this.speedModifier*(a.length-1)),r0&&(this.totalDuration+=Math.max(o,i.duration*this.speedModifier+(a.length-1)*i.stagger)),r0){var a=this.timeline.totalDuration()-i;this.timeline.staggerFromTo(r,t.duration*this.speedModifier,S({},t.from),S({immediateRender:n0&&(this.timeline.set(this.Tt[i===h?0:h],{display:"inline-block",immediateRender:i!==h}),this.timeline.staggerFromTo(n,.2*this.speedModifier,{display:"none"},{display:"inline-block",immediateRender:i!==h},.2*this.speedModifier,"+=0.8")),h0){var r=this.timeline.totalDuration();if(this.animateWidth){this.timeline.to(this.Rt,.4,{width:function(){return D(this,"width")}.bind(o)},r-.4*.2),r+=.4*.8}else r-=t.overlap*this.speedModifier;this.timeline.fromTo(this.Tt[n],t.duration*this.speedModifier,S({},t.from),S({immediateRender:h=0?this.onReady():this.audio.addEventListener("loadedmetadata",this.onReady.bind(this)))}return t.prototype.prepareIOS=function(){const t=this.node.querySelectorAll(".n2-ss-item-audio-volume-container,.n2-ss-item-audio-mute,.n2-ss-item-audio-unmute");U(t)},t.prototype.setState=function(t,i,s){s=s||!1,this.state[t]=i,s&&(this.state.slideVisible&&this.state.visible&&this.state.play&&this.state.slide?this.safePlay():this.safePause())},t.prototype.safePlay=function(){this.safeCallback(function(){this.promise=this.audio.play(),this.promise&&Promise!==o&&this.promise.catch(function(e){if("NotAllowedError"===e.name)var t=function(){ot(i),!1!==this.promise&&this.safePlay()}.bind(this),i=[rt(n,"click",t),rt(n,"touchend",t)]}.bind(this))}.bind(this))},t.prototype.safePause=function(){this.safeCallback(function(){this.audio.pause(),this.promise=!1}.bind(this))},t.prototype.safeCallback=function(t){this.promise&&Promise!==o?this.promise.then(t).catch(t):t()},t.prototype.initAutoplay=function(){this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(at(this.slider.sliderElement,"mainAnimationComplete",function(e){this.slide.isActiveWhen(this.slider.slides[e.detail.currentSlideIndex])?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)}.bind(this)),this.slide.isActiveWhen()&&(this.setState("play",!0),this.setState("slide",!0,!0)))},t.prototype.onReady=function(){this.time=this.node.querySelector(".n2-ss-item-audio-time"),this.updateTime(),this.audio.volume=this.parameters.volume;var t=this.node.querySelector(".n2-ss-item-audio-play");t&&at(t,"click",function(){this.setState("play",!0,!0)}.bind(this));var i=this.node.querySelector(".n2-ss-item-audio-pause");i&&at(i,"click",function(){this.setState("play",!1,!0)}.bind(this));var s=this.node.querySelector(".n2-ss-item-audio-mute");s&&at(s,"click",function(){this.audio.volume=0}.bind(this));var h=this.node.querySelector(".n2-ss-item-audio-unmute");h&&at(h,"click",function(){this.audio.volume=this.lastVolume}.bind(this)),this.progress=this.node.querySelector(".n2-ss-item-audio-progress-container"),this.progress&&(at(this.progress,"pointerdown",function(e){e.preventDefault(),e.stopPropagation(),this.updateUITime(e);var t=[rt(n,"pointermove",function(e){e.preventDefault(),e.stopPropagation(),this.updateUITime(e)}.bind(this)),rt(n,"pointerup",function(e){e.preventDefault(),e.stopPropagation(),this.updateUITime(e),ot(t)}.bind(this)),rt(n,"pointerleave",(function(){ot(t)}))]}.bind(this)),this.playhead=this.progress.querySelector(".n2-ss-item-audio-progress-playhead")),this.volume=this.node.querySelector(".n2-ss-item-audio-volume-container"),this.volume&&(at(this.volume,"pointerdown",function(e){e.preventDefault(),e.stopPropagation(),this.updateUIVolume(e);var t=[rt(n,"pointermove",function(e){e.preventDefault(),e.stopPropagation(),this.updateUIVolume(e)}.bind(this)),rt(n,"pointerup",function(e){e.preventDefault(),e.stopPropagation(),this.updateUIVolume(e),ot(t)}.bind(this)),rt(n,"pointerleave",(function(){ot(t)}))]}.bind(this)),this.volumehead=this.volume.querySelector(".n2-ss-item-audio-volumehead")),new ResizeObserver(function(t){var i=t[0].contentRect;if(i.width&&i.height)this.state.visible||this.setState("visible",!0,!0);else if(this.state.visible){var s=this.state.play;this.setState("visible",!1,!0),s&&this.setState("continuePlay",!0)}}.bind(this)).observe(this.layer.layer),this.slide.isVisible&&this.setState("slideVisible",!0,!0),at(this.slide.element,"Hidden",function(){var t=this.state.play;this.setState("slideVisible",!1,!0),t&&this.setState("continuePlay",!0)}.bind(this)),at(this.slide.element,"Visible",function(){this.setState("slideVisible",!0,!0)}.bind(this)),this.slider.stages.done("BeforeShow",function(){this.slide.isActiveWhen()&&this.setState("slide",!0,!0)}.bind(this)),1==+this.parameters.autoplay&&this.slider.visible(this.initAutoplay.bind(this)),this.isStatic||(at(this.slider.sliderElement,"CurrentSlideChanged",function(e){this.onCurrentSlideChange(e.detail.currentSlide)}.bind(this)),at(this.slider.sliderElement,"mainAnimationStart",function(e){this.onCurrentSlideChange(this.slider.slides[e.detail.currentSlideIndex])}.bind(this)),parseInt(this.parameters.reset)&&at(this.slider.sliderElement,"mainAnimationComplete",function(e){this.audio.currentTime>0&&!this.slide.isActiveWhen(this.slider.slides[e.detail.currentSlideIndex])&&(this.audio.currentTime=0)}.bind(this)))},t.prototype.onCurrentSlideChange=function(t){var i=this.slide.isActiveWhen(t);i&&1==+this.parameters.autoplay&&this.setState("play",!0),this.setState("slide",i,!0)},t.prototype.updateTime=function(){this.time&&(this.time.innerText=this.timeFormat(this.audio.currentTime)+" / "+this.timeFormat(this.audio.duration))},t.prototype.onPlay=function(){this.isPaused=!1,P(this.node,"data-state","playing"),requestAnimationFrame(this.refreshCurrentTime.bind(this)),this.isStatic||nt(this.slider.sliderElement,"mediaStarted",{id:this.id}),ht(this.layerElement,"n2play")},t.prototype.onPause=function(){this.isPaused=!0,P(this.node,"data-state","paused"),ht(this.layerElement,"n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1)},t.prototype.onEnded=function(){1==+this.parameters.loop?(this.audio.currentTime=0,this.safePlay()):(this.isStatic||nt(this.slider.sliderElement,"mediaEnded",{id:this.id}),ht(this.layerElement,"n2stop"),this.setState("play",!1))},t.prototype.onTimeUpdate=function(){this.updateTime(),this.playhead&&F(this.playhead,"width",this.audio.currentTime/this.audio.duration*100+"%")},t.prototype.onVolumechange=function(){this.volumehead&&F(this.volumehead,"width",100*this.audio.volume+"%"),P(this.node,"data-volume",this.audio.volume),0!==this.audio.volume&&(this.lastVolume=this.audio.volume)},t.prototype.refreshCurrentTime=function(){this.playhead&&F(this.playhead,"width",this.audio.currentTime/this.audio.duration*100+"%"),this.isPaused||requestAnimationFrame(this.refreshCurrentTime.bind(this))},t.prototype.updateUITime=function(e){var t=this.progress.getBoundingClientRect();this.audio.currentTime=this.audio.duration*Math.max(0,Math.min(.99,Math.round(e.clientX-t.left)/t.width))},t.prototype.updateUIVolume=function(e){var t=this.volume.getBoundingClientRect();this.audio.volume=Math.max(0,Math.min(1,Math.round(e.clientX-t.left)/t.width))},t.prototype.timeFormat=function(t){t=parseInt(t);var i=[],s=parseInt(t/60);t-=60*s;var h=parseInt(s/60);return s-=60*h,h>0&&i.push(this.pad(h,2,0)),i.push(this.pad(s,2,0)),i.push(this.pad(t,2,0)),i.join(":")},t.prototype.pad=function(t,i,s){return s=s||"0",(t+="").length>=i?t:new Array(i-t.length+1).join(s)+t},t})),c.d("FrontendItemBeforeAfter",(function(){class t{constructor(t,i){this.Nt=i.interaction,this.zt=i.labeltype,this.Wt=i.labeltype,this.Yt=s.getElementById(t),this.Zt=this.Yt.querySelector(".n2-ss-item-ba-container"),this.Vt=this.Yt.querySelectorAll(".n2-ss-item-ba-label"),this.Bt=this.Yt.querySelector(".n2-ss-item-ba-caption"),this.Ut=c.MW.I(this.Yt.querySelector(".n2-ss-item-ba-image-container--top")),this.jt=c.MW.I(this.Yt.querySelector(".n2-ss-item-ba-image-container--bottom")),this.Gt=c.MW.I(this.Yt.querySelector(".n2-ss-item-ba-divider-container")),this.Xt(),this.Ht()}Ht(){let t;switch(this.Nt){case"hover":t="pointerenter";break;default:t="pointerdown"}"ontouchstart"in i&&(this.Zt.classList.add("n2-ss-item-ba-container-touchaction"),t="pointerdown"),this.Zt.addEventListener(t,(e=>{if(!e.isPrimary||"drag"===this.Nt&&0!==e.button)return;let t=[],s=0,h=!1;n2const.isIOS&&i.TouchEvent&&t.push(rt(this.Zt,"touchmove",(i=>{s++,s>5&&(!h&&this.__preventTouchAction(e,i)?ot(t):(i.preventDefault(),h=!0))}))),this.setMoveEvents(e),t.push(rt(n,"pointermove",(e=>{e.isPrimary&&this.setMoveEvents(e)}))),t.push(rt(n,"pointerup",(e=>{e.isPrimary&&0===e.button&&"hover"!==this.Nt&&(this.qt(e),ot(t))}))),t.push(rt(n,"pointercancel",(e=>{e.isPrimary&&(this.qt(e),ot(t))}))),t.push(rt(this.Zt,"pointerleave",(e=>{e.isPrimary&&"drag"!==this.Nt&&(this.qt(e),ot(t))})))}))}__preventTouchAction(e,t){const i=t.touches[0].clientX-e.clientX,s=t.touches[0].clientY-e.clientY;return this.__isScrollable(i,s)}qt(e){e&&"pointermove"===e.type?j(this.Zt,"divider-moving"):X(this.Zt,"divider-moving")}Xt(){this.Vt&&"hover"===this.zt&&i.matchMedia("(hover: none)").matches&&this.Vt.forEach((t=>{X(t,"n2-ss-item-ba-label--show-hover"),j(t,"n2-ss-item-ba-label--show-normal")})),this.Bt&&"hover"===this.Wt&&i.matchMedia("(hover: none)").matches&&(X(this.Bt,"n2-ss-item-ba-caption--show-hover"),j(this.Bt,"n2-ss-item-ba-caption--show-normal"))}setMoveEvents(e){this.qt(e)}}class h extends t{setMoveEvents(e){super.setMoveEvents(e);const t=this.Zt.getBoundingClientRect(),i=(e.clientX-t.left)/Math.floor(t.width)*100,s=Math.max(0,Math.min(100,i));this.Gt.xP=s,this.Ut.clipPath="inset(0 0 0 "+s+"%)",this.jt.clipPath="inset(0 calc("+(100-s)+"% - .5px) 0 0 )"}__isScrollable(t,i){return Math.abs(t)Math.abs(i)}}return class{constructor(t,i,s){this.Qt=s,this.Jt=i,this.it=t,this.Kt()}Kt(){switch(this.Qt.direction){case"vertical":return new o(this.Jt,this.Qt);case"horizontal":return new h(this.Jt,this.Qt)}}}})),c.d("FrontendItemCaption",(function(){function t(t,i,h,n,o,r){this.ct=n,this.$t=100*o,this.ti=r;var a=s.getElementById(i);a.addEventListener("pointerenter",this.ii.bind(this)),a.addEventListener("pointerleave",this.si.bind(this)),this.hi=c.MW.I(a.querySelector("img")),this.ni=a.querySelector(".n2-ss-item-caption-content"),this.ei=c.MW.I(this.ni),"Fade"===h?(this.ei.setValues({opacity:0}),this.oi=this.ri,this.ai=this.ci):(this.ui={},this.ui[this.ct]=this.$t,this.ei[this.ct]=this.$t)}return t.prototype.ii=function(){this.oi(),this.ti&&this.fi({scale:1.2})},t.prototype.oi=function(){var t={};t[this.ct]=0,this.li(t)},t.prototype.si=function(){this.ai(),this.ti&&this.fi({scale:1})},t.prototype.ai=function(){this.li(this.ui)},t.prototype.ri=function(){this.li({opacity:1})},t.prototype.ci=function(){this.li({opacity:0})},t.prototype.li=function(t){c.J.to(this.ei,.5,S(t))},t.prototype.fi=function(t){c.J.to(this.hi,.5,S(t))},t})),c.d("FrontendItemCountdown",(function(){function t(t,i){this.slider=i,this.listeners=[],this.di=t,this.mi=D(this.di,"timestamp"),this.layerElement=this.di.closest(".n2-ss-layer"),this.start()}return t.prototype.start=function(){this.slider.started(this.started.bind(this))},t.prototype.started=function(){this.listeners.push(lt(this.layerElement,"collectRelatedAnimations",this.animate.bind(this)))},t.prototype.animate=function(){this.second=this.layerElement.querySelector(".n2-ss-item-countdown_second .n2-ss-item-countdown_number"),this.minute=this.layerElement.querySelector(".n2-ss-item-countdown_minute .n2-ss-item-countdown_number"),this.hour=this.layerElement.querySelector(".n2-ss-item-countdown_hour .n2-ss-item-countdown_number"),this.day=this.layerElement.querySelector(".n2-ss-item-countdown_day .n2-ss-item-countdown_number"),u(this.onUpdate.bind(this))},t.prototype.onUpdate=function(){let t=Math.max(0,this.mi-Math.floor((new Date).getTime()/1e3));0===t?this.doAction():(this.refresh(t),this.vi=u(this.onUpdate.bind(this)))},t.prototype.doAction=function(){const t=D(this.di,"action");if("hideLayer"===t)B(this.layerElement);else if("redirect"===t){const t=D(this.di,"redirectUrl");""!==t&&(i.location.href=t)}},t.prototype.refresh=function(t){const i=Math.floor(t/86400);t-=86400*i;const s=Math.floor(t/3600);t-=3600*s;const h=Math.floor(t/60),n=t-=60*h;this.pi!==i&&(this.pi=i,this.day.innerText=this.formatNumber(i)),this.bi!==s&&(this.bi=s,this.hour.innerText=this.formatNumber(s)),this.yi!==h&&(this.yi=h,this.minute.innerText=this.formatNumber(h)),this.wi!==n&&(this.wi=n,this.second.innerText=this.formatNumber(n))},t.prototype.formatNumber=function(t){return t<10?"0"+t:t},t})),c.d("FrontendItemCounter",(function(){function t(t,i,h){this.slider=t,this.data=h,this.currentPercent=this.data.fromPercent,this.listeners=[];var n=s.getElementById(i);n.ssCounter=this,this.layerElement=n.closest(".n2-ss-layer"),this.data.displayMode&&(this.display=n.querySelector(this.data.display)),this.countingDiv=n.querySelector(this.data.counting),this.data.duration>0&&this.start()}return t.prototype.start=function(){this.slider.started(this.started.bind(this))},t.prototype.started=function(){this.delay=(+this.data.delay||0)/1e3,this.listeners.push(lt(this.layerElement,"collectRelatedAnimations",this.collectRelatedAnimations.bind(this))),this.timeline=new c.H({paused:1});var t=this.update.bind(this),i={_percent:this.data.fromPercent,get percent(){return this._percent},set percent(i){this._percent=i,t(i)}};this.timeline.fromTo(i,this.data.duration/1e3,{percent:this.data.fromPercent},this._animateData(this.data.toPercent))},t.prototype.collectRelatedAnimations=function(t){t.relatedAnimations.in.push(new c.AnimationsRelated(this,"extendTimeline"))},t.prototype.extendTimeline=function(t,i,s){t.add(this.timeline,this.delay),this.timeline.paused(!1)},t.prototype._animateData=function(t,i){return{percent:t,ease:i=i||"easeOutExpo"}},t.prototype.update=function(t){switch(this.currentPercent=t,this.data.displayMode){case"circle":P(this.display,"stroke-dashoffset",(1-t)*this.data.c);break;case"width":F(this.display,"width",100*t+"%")}this.countingDiv.innerHTML=this.data.pre+(this.data.min+t*(this.data.total-this.data.min)).toFixed(0)+this.data.post},t.prototype.to=function(t,i){var s=this.update.bind(this),h={_percent:this.currentPercent,get percent(){return this._percent},set percent(t){this._percent=t,s(t)}};c.J.to(h,i/1e3,this._animateData(t/100))},t})),c.d("FrontendItemHighlightedHeading",(function(){function t(t,s){this.slider=s,this.di=t,this.wrapper=this.di.parentNode,this.listeners=[],this.refreshJustifyContent(),at(this.slider.sliderElement,"SliderResize",this.refreshJustifyContent.bind(this)),this.layerElement=this.di.closest(".n2-ss-layer"),this.clean(),n2Slow||s.disabled.layerAnimations||!D(this.di,"animate")||n2const.isParentSameOrigin()&&i.parent.tpEditorApp||(this.wrapper.querySelectorAll(".n2-ss-highlighted-heading-before,.n2-ss-highlighted-heading-after").forEach((function(t){var i,s=t.innerHTML.split(" "),h=t.className,n=new DocumentFragment;"n2-ss-highlighted-heading-after"===h&&s.unshift("");for(var o=0;o=0&&(this.totalDuration+=this.loopDelay+.8),this.listeners.push(lt(this.layerElement,"collectRelatedAnimations",this.collectRelatedAnimations.bind(this)))},t.prototype.collectRelatedAnimations=function(t){var i=t.relatedAnimations;1===this.loop?i.loop.push(new c.AnimationsLoopTimeline(this,0)):i.in.push(new c.AnimationsRelated(this,"extendTimeline"))},t.prototype.extendTimeline=function(t){var i=this.getTimeline();t.add(i,0),i.paused(!1)},t.prototype.getTimeline=function(){if(this.timeline===o){for(var t=new c.H({paused:1}),i=0;i=0&&(t.to(c.MW.D(this.paths),.4,{opacity:0},"+="+this.loopDelay),t.set({},{},"+=0.4")),t.delay(this.delay),this.timeline=t}return this.timeline},t.prototype.getLoopTimeline=function(){return this.getTimeline()},t.prototype.animatePath=function(t,i,s){var h=c.MW.I(i),n=Math.round(1.01*(i.getTotalLength()||2e3));t.fromTo(h,.1,{opacity:0},{opacity:1},s),t.fromTo(h,this.duration,{"stroke-dasharray":"0 "+n},{"stroke-dasharray":n+" "+n},s)},t.prototype.refreshJustifyContent=function(){var t="";switch(i.getComputedStyle(this.wrapper).getPropertyValue("text-align")){case"left":t="flex-start";break;case"center":t="center";break;case"right":t="flex-end";break;case"justify":t="space-between"}c.MW.I(this.wrapper).justifyContent=t},t})),c.d("FrontendItemHeadingSplitText",(function(){var t={opacity:1,x:0,y:0,rotationX:0,rotationY:0,rotationZ:0,scale:1};function i(t,i,h,n,r,a,c,u){if(!(n2Slow||t.disabled.layerAnimations||t.disabled.layerSplitTextAnimations||!r&&!c)){this.node=s.getElementById(i),this.slider=t,this.splitText=!1,this.listeners=[];var f=this.node.querySelector("a.n2-ow");f&&(this.node=f),this.layerElement=this.node.closest(".n2-ss-layer"),this.in={options:!1,totalDuration:0,timeline:o,invalidate:!1},this.out={options:!1,totalDuration:0,timeline:o,invalidate:!1},this.node&&this.start(h,n,r,a,c,u)}}return i.prototype.start=function(t,i,s,h,n,o){this.slider.started(this.started.bind(this,t,i,s,h,n,o))},i.prototype.started=function(t,i,s,h,n,o){var r,a,u={chars:0,words:0};if(s&&(this.in.options=this.optimize(s.data,h),u[this.in.options.mode]=1),n&&(this.out.options=this.optimize(n.data,o),u[this.out.options.mode]=1),this.splitText=c.K(this.node,u.chars),this.in.options){switch(r=this.in.options,a=this.splitText[r.mode].length,r.sort){case"side":case"center":a=Math.ceil(a/2)}this.in.totalDuration=(a-1)*Math.abs(r.stagger)+r.duration}if(this.out.options){switch(r=this.out.options,a=this.splitText[r.mode].length,r.sort){case"side":case"center":a=Math.ceil(a/2)}this.out.totalDuration=(a-1)*Math.abs(r.stagger)+r.duration}for(var f in(this.in.options||this.out.options)&&this.listeners.push(lt(this.layerElement,"collectRelatedAnimations",this.collectRelatedAnimations.bind(this))),c.MW.I(this.layerElement).perspective=1e3,this.node.textRendering="auto",u)u[f]&&c.MW.L(this.splitText[f]).setValues({"transform-origin":t,"backface-visibility":i})},i.prototype.getTimelineIn=function(){this.in.timeline=new c.H({paused:1});var i=this.in.options,s={ease:i.ease};return this._animate(this.in.timeline,i.mode,i.sort,i.duration,I({},i.from),S(s,t),i.stagger),this.in.timeline},i.prototype.getTimelineOut=function(){this.out.timeline=new c.H({paused:1});var i=this.out.options,s={ease:i.ease};return this.in.timeline&&(s.immediateRender=!1),this._animate(this.out.timeline,i.mode,i.sort,i.duration,I({},t),S(s,i.from),-i.stagger),this.out.timeline},i.prototype.collectRelatedAnimations=function(t){var i=t.relatedAnimations;this.in.options&&i.in.push(new c.AnimationsRelated(this,"extendTimelineIn")),this.out.options&&i.out.push(new c.AnimationsRelated(this,"extendTimelineOut"))},i.prototype.extendTimelineIn=function(t){var i=this.getTimelineIn();t.add(i,this.in.options.delay),i.paused(!1)},i.prototype.extendTimelineOut=function(t){var i=this.getTimelineOut();t.add(i,this.out.options.delay),i.paused(!1)},i.prototype._animate=function(t,i,s,h,n,o,r){var a=S([],this.splitText[i]),u=null,f=[];switch(s){case"reversed":a.reverse();break;case"random":!function(t,i,s,h){for(s=t.length;s;)i=Math.random()*s--|0,h=t[s],t[s]=t[i],t[i]=h}(a);break;case"side":case"center":for(u=[];a.length>1;)f.push(a.shift()),u.push(a.pop());1===a.length&&f.push(a.shift()),a=f,"center"===s&&(a.reverse(),u.reverse());break;case"sideShifted":case"centerShifted":for(;a.length>1;)f.push(a.shift()),f.push(a.pop());1===a.length&&f.push(a.shift()),a=f,"centerShifted"===s&&a.reverse()}t.staggerFromTo(c.MW.D(a),h,n,o,r,0),u&&u.length&&t.staggerFromTo(c.MW.D(u),h,n,o,r,0)},i.prototype.optimize=function(t,i){"lines"===t.mode&&(t.mode="words");var s={mode:t.mode,sort:t.sort,duration:t.duration,stagger:t.stagger,delay:i,from:{},ease:t.ease};return 1!=t.opacity&&(s.from.opacity=t.opacity),1!=t.scale&&(s.from.scale=t.scale),0!=t.x&&(s.from.x=t.x),0!=t.y&&(s.from.y=t.y),0!=t.rotationX&&(s.from.rotationX=t.rotationX),0!=t.rotationY&&(s.from.rotationY=t.rotationY),0!=t.rotationZ&&(s.from.rotationZ=t.rotationZ),s},i})),c.d("FrontendItemTransition",(function(){function t(t,i,h){this.slider=t,this.animation=h;var n=s.getElementById(i);at(n,"mouseenter",this["in"+h].bind(this)),at(n,"mouseleave",this["out"+h].bind(this)),this.gi=c.MW.D(n.querySelectorAll("img")),this.Si=c.MW.I(n.querySelector(".n2-ss-item-transition-inner")),this["init"+h]()}return t.prototype.initFade=function(){this.gi[1].opacity=0},t.prototype.inFade=function(){c.J.to(this.gi[1],.5,{opacity:1}),c.J.to(this.gi[0],.5,{opacity:0})},t.prototype.outFade=function(){c.J.to(this.gi[1],.5,{opacity:0}),c.J.to(this.gi[0],.5,{opacity:1})},t.prototype.initVerticalFlip=function(){this.Si.perspective=1e3,this.gi[0].transformPerspective=1e3,this.gi[1].transformPerspective=1e3,this.gi[0].rotationX=0,this.gi[1].rotationX=180},t.prototype.inVerticalFlip=function(){c.J.to(this.gi[0],.5,{rotationX:-180}),c.J.to(this.gi[1],.5,{rotationX:0})},t.prototype.outVerticalFlip=function(){c.J.to(this.gi[0],.5,{rotationX:0}),c.J.to(this.gi[1],.5,{rotationX:180})},t.prototype.initHorizontalFlip=function(){this.Si.perspective=1e3,this.gi[0].transformPerspective=1e3,this.gi[1].transformPerspective=1e3,this.gi[0].rotationY=0,this.gi[1].rotationY=180},t.prototype.inHorizontalFlip=function(){c.J.to(this.gi[0],.5,{rotationY:-180}),c.J.to(this.gi[1],.5,{rotationY:0})},t.prototype.outHorizontalFlip=function(){c.J.to(this.gi[0],.5,{rotationY:0}),c.J.to(this.gi[1],.5,{rotationY:180})},t})),c.d("FrontendItemVideo",(function(){var t=1;function i(i,h,n,o){this.state={slideVisible:!1,visible:!1,scroll:!1,slide:!1,play:!1,continuePlay:!1},this.counter=t++,this.slider=i,this.playerId=h,this.playerElement=s.getElementById(this.playerId),this.parameters=S({autoplay:0,loop:0,reset:0},n),this.slide=i.findSlideByElement(this.playerElement),this.isStatic=this.slide.isStatic(),this.cover=this.playerElement.parentNode.querySelector(".n2_ss_video_player__cover");var r=+D(this.playerElement,"volume");0===r?(this.playerElement.volume=1,this.playerElement.muted=!0):(this.playerElement.volume=r,this.playerElement.muted=!1),this.slider.stages.done("BeforeShow",this.initVideoPlayer.bind(this))}return i.prototype.fadeOutCover=function(){this.coverFadedOut===o&&this.cover&&(this.coverFadedOut=!0,c.J.to(c.MW.I(this.cover),.3,{opacity:0,onComplete:function(){B(this.cover)}.bind(this)}))},i.prototype.initVideoPlayer=function(){"fill"===D(this.playerElement.parentNode,"aspectRatio")&&this.slider.responsive.doThrottledResize();var t=this.playerElement.closest(".n2-ss-layer");this.layer=t.layer,new ResizeObserver(function(t){var i=t[0].contentRect;if(i.width&&i.height)this.state.visible||this.setState("visible",!0,!0);else if(this.state.visible){var s=this.state.play;this.setState("visible",!1,!0),s&&this.setState("continuePlay",!0)}}.bind(this)).observe(t),this.slide.isVisible&&this.setState("slideVisible",!0,!0),at(this.slide.element,"Hidden",function(){var t=this.state.play;this.setState("slideVisible",!1,!0),t&&this.setState("continuePlay",!0)}.bind(this)),at(this.slide.element,"Visible",function(){this.setState("slideVisible",!0,!0)}.bind(this)),at(this.playerElement,"playing",function(){this.isStatic||nt(this.slider.sliderElement,"mediaStarted",{id:this.playerId}),ht(t,"n2play")}.bind(this)),at(this.playerElement,"ended",function(){1!==parseInt(this.parameters.loop)&&(this.isStatic||nt(this.slider.sliderElement,"mediaEnded",{id:this.playerId}),ht(t,"n2stop"),this.setState("play",!1),"next"===this.parameters.ended&&((s.fullscreenElement||s.webkitFullscreenElement)&&(s.exitFullscreen||s.webkitExitFullscreen).call(s),this.slider.next(!0)))}.bind(this)),at(this.playerElement,"pause",function(){ht(t,"n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1)}.bind(this)),this.slide.isActiveWhen()&&this.setState("slide",!0,!0),1===parseInt(this.parameters.autoplay)&&this.slider.visible(this.initAutoplay.bind(this)),this.isStatic||(at(this.slider.sliderElement,"CurrentSlideChanged",function(e){this.onCurrentSlideChange(e.detail.currentSlide)}.bind(this)),at(this.slider.sliderElement,"mainAnimationStart",function(e){this.onCurrentSlideChange(this.slider.slides[e.detail.currentSlideIndex])}.bind(this)),parseInt(this.parameters.reset)&&at(this.slider.sliderElement,"mainAnimationComplete",function(e){this.playerElement.currentTime>0&&!this.slide.isActiveWhen(this.slider.slides[e.detail.currentSlideIndex])&&(this.playerElement.currentTime=0)}.bind(this))),""!==this.parameters["scroll-pause"]?c.ScrollTracker.add(this.playerElement,this.parameters["scroll-pause"],function(){this.setState("scroll",!0,!0)}.bind(this),function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)}.bind(this)):this.setState("scroll",!0,!0),this.cover&&(ct(this.cover,"click",this.safePlay.bind(this)),ct(t,"n2play",this.fadeOutCover.bind(this)))},i.prototype.onCurrentSlideChange=function(t){var i=this.slide.isActiveWhen(t);i&&1==this.parameters.autoplay&&this.setState("play",!0),this.setState("slide",i,!0)},i.prototype.initAutoplay=function(){this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(at(this.slider.sliderElement,"mainAnimationComplete",function(e){this.slide.isActiveWhen(this.slider.slides[e.detail.currentSlideIndex])?(this.setState("play",!0),r(function(){this.setState("slide",!0,!0)}.bind(this),100)):this.setState("slide",!1,!0)}.bind(this)),this.slide.isActiveWhen()&&(this.setState("play",!0),this.setState("slide",!0,!0)))},i.prototype.setState=function(t,i,s){s=s||!1,this.state[t]=i,s&&(this.state.slideVisible&&this.state.visible&&this.state.play&&this.state.slide&&this.state.scroll?this.safePlay():this.safePause())},i.prototype.safePlay=function(){this.safeCallback(function(){this.playerElement.readyState<4&&this.playerElement.load(),this.promise=this.playerElement.play(),this.promise&&Promise!==o&&this.promise.catch(function(e){if("NotAllowedError"===e.name)var t=function(){ot(i),!1!==this.promise&&this.safePlay()}.bind(this),i=[rt(n,"click",t),rt(n,"touchend",t)]}.bind(this))}.bind(this))},i.prototype.safePause=function(){this.safeCallback(function(){this.playerElement.pause(),this.promise=!1}.bind(this))},i.prototype.safeCallback=function(t){this.promise&&Promise!==o?this.promise.then(t).catch(t):t()},i})),c.d("FrontendItemVimeo",(function(){function t(t,i,h,n,o,r){if(this.state={slideVisible:!1,visible:!1,scroll:!1,slide:!1,InComplete:!1,play:!1,continuePlay:!1},this.promise=new Promise(function(t){this._resolve=t}.bind(this)),this.slider=t,this.playerId=i,this.playerElement=s.getElementById(this.playerId),this.cover=this.playerElement.querySelector(".n2_ss_video_player__cover"),this.hasImage=o,this.start=r,this.parameters=S({vimeourl:"//vimeo.com/144598279",privateid:"",autoplay:"0",ended:"",reset:"0",title:"1",byline:"1",portrait:"0",loop:"0",color:"00adef",volume:"-1",dnt:"0"},n),1===parseInt(this.parameters.autoplay))if(navigator.userAgent.toLowerCase().indexOf("android")>-1)this.parameters.volume=0;else if(n2const.isIOS){this.parameters.autoplay=0;try{"playsInline"in f("video")&&(this.parameters.autoplay=1,this.parameters.volume=0)}catch(t){}}n2const.isLighthouse||c.r("windowLoad",this.whenLoaded.bind(this))}var i;return t.prototype.whenLoaded=function(){1===parseInt(this.parameters.autoplay)||!this.hasImage||n2const.isMobile?this.ready(this.initVimeoPlayer.bind(this)):this.ready(function(){var t=function(e){ot(i),e.preventDefault(),e.stopPropagation(),this.initVimeoPlayer(),this.safePlay()}.bind(this),i=[rt(this.playerElement,"click",t),rt(this.playerElement,"n2click",t)]}.bind(this))},t.prototype.ready=function(t){i||(i=new Promise((function(t){var i=f("script");i.onload=t,i.src="https://player.vimeo.com/api/player.js",s.head.appendChild(i)}))),i.then(t)},t.prototype.initVimeoPlayer=function(){var t=f("iframe");t.className="intrinsic-ignore",t.allow="fullscreen; autoplay; encrypted-media",t.id=this.playerId+"-frame",t.src="https://player.vimeo.com/video/"+this.parameters.vimeocode+"?autoplay=0&_video&title="+this.parameters.title+"&byline="+this.parameters.byline+"&background="+this.parameters.background+"&portrait="+this.parameters.portrait+"&color="+this.parameters.color+"&loop="+this.parameters.loop+("-1"==this.parameters.quality?"":"&quality="+this.parameters.quality)+"&dnt="+this.parameters["privacy-enhanced"]+(""!==this.parameters.privateid?"&h="+this.parameters.privateid:"")+"&playsinline=1",t.webkitAllowFullScreen=!0,t.allowFullScreen=!0,this.parameters["iframe-title"]!==o&&""!==this.parameters["iframe-title"]&&(t.title=this.parameters["iframe-title"]),N(t,{position:"absolute",top:0,left:0,width:"100%",height:"100%"}),this.playerElement.prepend(t),this.player=new Vimeo.Player(t,{autoplay:!1}),this.promise=this.player.ready(),this.slider.stages.done("BeforeShow",function(){this.promise.then(this.onReady.bind(this))}.bind(this))},t.prototype.onReady=function(){var t=parseFloat(this.parameters.volume);t>=0&&this.setVolume(t),this.slide=this.slider.findSlideByElement(this.playerElement),this.isStatic=this.slide.isStatic();var i=this.playerElement.closest(".n2-ss-layer");this.layer=i.layer,new ResizeObserver(function(t){var i=t[0].contentRect;if(i.width&&i.height)this.state.visible||this.setState("visible",!0,!0);else if(this.state.visible){var s=this.state.play;this.setState("visible",!1,!0),s&&this.setState("continuePlay",!0)}}.bind(this)).observe(this.layer.layer),this.slide.isVisible&&this.setState("slideVisible",!0,!0),at(this.slide.element,"Hidden",function(){var t=this.state.play;this.setState("slideVisible",!1,!0),t&&this.setState("continuePlay",!0)}.bind(this)),at(this.slide.element,"Visible",function(){this.setState("slideVisible",!0,!0)}.bind(this)),this.cover&&(n2const.isMobile&&ct(this.cover,"click",this.safePlay.bind(this)),ct(i,"n2play",function(){c.J.to(c.MW.I(this.cover),.3,{opacity:0,onComplete:function(){B(this.cover)}.bind(this)})}.bind(this))),this.player.on("play",function(){this.isStatic||nt(this.slider.sliderElement,"mediaStarted",{id:this.playerId}),ht(i,"n2play")}.bind(this)),this.player.on("pause",function(){ht(i,"n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1)}.bind(this)),this.player.on("ended",function(){this.isStatic||nt(this.slider.sliderElement,"mediaEnded",{id:this.playerId}),ht(i,"n2stop"),this.setState("play",!1),"next"===this.parameters.ended&&0==this.parameters.loop&&((s.fullscreenElement||s.webkitFullscreenElement)&&(s.exitFullscreen||s.webkitExitFullscreen).call(s),this.slider.next(!0))}.bind(this)),this.isStatic||(at(this.slider.sliderElement,"CurrentSlideChanged",function(e){this.onCurrentSlideChange(e.detail.currentSlide)}.bind(this)),at(this.slider.sliderElement,"mainAnimationStart",function(e){this.onCurrentSlideChange(this.slider.slides[e.detail.currentSlideIndex])}.bind(this))),""!==this.parameters["scroll-pause"]?c.ScrollTracker.add(this.playerElement,this.parameters["scroll-pause"],function(){this.setState("scroll",!0,!0)}.bind(this),function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)}.bind(this)):this.setState("scroll",!0,!0),this.slide.isActiveWhen()&&this.setState("slide",!0,!0),1===parseInt(this.parameters.autoplay)&&this.slider.visible(this.initAutoplay.bind(this)),this._resolve()},t.prototype.onCurrentSlideChange=function(t){this.slide.isActiveWhen(t)?(1==this.parameters.autoplay&&this.setState("play",!0),this.setState("slide",!0,!0)):(parseInt(this.parameters.reset)&&this.reset(),this.setState("slide",!0,!0))},t.prototype.initAutoplay=function(){this.layer.addStateCallback(function(t){this.setState("InComplete",t.InComplete,!0)}.bind(this)),this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(at(this.slider.sliderElement,"mainAnimationComplete",function(e){this.slide.isActiveWhen(this.slider.slides[e.detail.currentSlideIndex])?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)}.bind(this)),this.slide.isActiveWhen()&&(this.setState("play",!0),this.setState("slide",!0,!0)))},t.prototype.setState=function(t,i,s){s=s||!1,this.state[t]=i,s&&(this.state.slideVisible&&this.state.visible&&this.state.play&&this.state.slide&&this.state.InComplete&&this.state.scroll&&this.layer.isVisible?this.play():this.pause(),this.state.slideVisible&&this.state.visible&&this.state.slide&&this.layer.isVisible?O(this.player.element,"tabindex"):P(this.player.element,"tabindex","-1"))},t.prototype.play=function(){nt(this.slider.sliderElement,"mediaStarted",{id:this.playerId}),0!=this.start&&this.safeSetCurrentTime(this.start),this.safePlay(),this.player.getCurrentTime().then(function(t){t{this.shouldPlayWhenReady=!0,ot(this.listeners.play)}))),this.slide=this.slider.findSlideByElement(this.playerElement),this.isStatic=this.slide.isStatic();var h={enablejsapi:1,origin:i.location.protocol+"//"+i.location.host,wmode:"opaque",rel:1-this.parameters.related,start:this.parameters.start,end:this.parameters.end,modestbranding:this.parameters.modestbranding,playsinline:this.parameters.playsinline};if(1===parseInt(this.parameters.autoplay))if(navigator.userAgent.toLowerCase().indexOf("android")>-1)this.parameters.volume=0;else if(n2const.isIOS){this.parameters.autoplay=0;try{"playsInline"in f("video")&&(this.parameters.autoplay=1,this.parameters.volume=0,h.playsinline=1)}catch(t){}}for(var n in n2const.isIOS&&this.parameters.controls&&(h.use_native_controls=1),1==this.parameters.center&&(h.controls=0),1!=this.parameters.controls&&(h.autohide=1,h.controls=0),+(navigator.platform.toUpperCase().indexOf("MAC")>=0&&navigator.userAgent.search("Firefox")>-1)&&(h.html5=1),this.parameters.query)this.parameters.query.hasOwnProperty(n)&&(h[n]=this.parameters.query[n]);var o={videoId:this.parameters.youtubecode,wmode:"opaque",playerVars:h,events:{onReady:this.onReady.bind(this),onStateChange:function(i){switch(i.data){case YT.PlayerState.PLAYING:case YT.PlayerState.BUFFERING:this.isStatic||this.slide.isActiveWhen(this.slider.currentSlide)&&nt(this.slider.sliderElement,"mediaStarted",{id:this.playerId}),ht(t,"n2play");break;case YT.PlayerState.PAUSED:ht(t,"n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1);break;case YT.PlayerState.ENDED:1==this.parameters.loop?(this.player.seekTo(this.parameters.start),this.player.playVideo()):(this.isStatic||nt(this.slider.sliderElement,"mediaEnded",{id:this.playerId}),ht(t,"n2stop"),this.setState("play",!1),"next"===this.parameters.ended&&((s.fullscreenElement||s.webkitFullscreenElement)&&(s.exitFullscreen||s.webkitExitFullscreen).call(s),this.slider.next(!0)))}}.bind(this)}};(this.parameters["privacy-enhanced"]||i.jQuery&&i.jQuery.fn.revolution)&&(o.host="https://www.youtube-nocookie.com"),this.player=new YT.Player(this.playerId+"-frame",o),1==this.parameters.center&&(F(this.playerElement.parentNode,"overflow","hidden"),this.onResize(),at(this.slider.sliderElement,"SliderResize",this.onResize.bind(this)))},t.prototype.onReady=function(){this.cover&&(n2const.isMobile&&ct(this.cover,"click",this.play.bind(this)),ct(this.layerElement,"n2play",this.fadeOutCover.bind(this))),ot(this.listeners.play),this.shouldPlayWhenReady&&this.play(),this.slider.stages.done("BeforeShow",this.onBeforeShow.bind(this))},t.prototype.onBeforeShow=function(){var t=parseFloat(this.parameters.volume);t>0?this.setVolume(t):-1!==t&&this.player.mute(),new ResizeObserver(function(t){var i=t[0].contentRect;if(i.width&&i.height)this.state.visible||this.setState("visible",!0,!0);else if(this.state.visible){var s=this.state.play;this.setState("visible",!1,!0),s&&this.setState("continuePlay",!0)}}.bind(this)).observe(this.layer.layer),this.slide.isVisible&&this.setState("slideVisible",!0,!0),at(this.slide.element,"Hidden",function(){var t=this.state.play;this.setState("slideVisible",!1,!0),t&&this.setState("continuePlay",!0)}.bind(this)),at(this.slide.element,"Visible",function(){this.setState("slideVisible",!0,!0)}.bind(this)),this.slide.isActiveWhen()&&this.setState("slide",!0,!0),1==this.parameters.autoplay&&this.slider.visible(this.initAutoplay.bind(this)),this.isStatic||(at(this.slider.sliderElement,"CurrentSlideChanged",function(e){this.onCurrentSlideChange(e.detail.currentSlide)}.bind(this)),at(this.slider.sliderElement,"mainAnimationStart",function(e){this.onCurrentSlideChange(this.slider.slides[e.detail.currentSlideIndex])}.bind(this)),parseInt(this.parameters.reset)&&at(this.slider.sliderElement,"mainAnimationComplete",function(e){this.slide.isActiveWhen(this.slider.slides[e.detail.currentSlideIndex])||0!==this.player.getCurrentTime()&&this.player.seekTo(this.parameters.start)}.bind(this))),this._resolve(),""!==this.parameters["scroll-pause"]?c.ScrollTracker.add(this.playerElement,this.parameters["scroll-pause"],function(){this.setState("scroll",!0,!0)}.bind(this),function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)}.bind(this)):this.setState("scroll",!0,!0)},t.prototype.onCurrentSlideChange=function(t){var i=this.slide.isActiveWhen(t);i&&1==this.parameters.autoplay&&this.setState("play",!0),this.setState("slide",i,!0)},t.prototype.onResize=function(){var t=this.playerElement.parentNode.getBoundingClientRect(),i=t.width,s=t.height+100,h=16/9,n={width:i+"px",height:s+"px","margin-top":0};n[n2const.rtl["margin-left"]]=0,i/s>h?(n.height=i*h+"px",n["margin-top"]=(s-i*h)/2+"px"):(n.width=s*h+"px",n[n2const.rtl["margin-left"]]=(i-s*h)/2+"px"),N(this.playerElement,n)},t.prototype.initAutoplay=function(){this.layer.addStateCallback(function(t){this.setState("InComplete",t.InComplete,!0)}.bind(this)),this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(at(this.slider.sliderElement,"mainAnimationComplete",function(e){this.slide.isActiveWhen(this.slider.slides[e.detail.currentSlideIndex])?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)}.bind(this)),this.slide.isActiveWhen()&&(this.setState("play",!0),this.setState("slide",!0,!0)))},t.prototype.setState=function(t,i,s){s=s||!1,this.state[t]=i,s&&(this.state.slideVisible&&this.state.visible&&this.state.play&&this.state.slide&&this.state.InComplete&&this.state.scroll?this.play():this.pause())},t.prototype.play=function(){this.isStopped()&&(this.coverFadedOut===o&&r(this.fadeOutCover.bind(this),200),nt(this.slider.sliderElement,"mediaStarted",{id:this.playerId}),this.player.playVideo())},t.prototype.pause=function(){this.isStopped()||this.player.pauseVideo()},t.prototype.stop=function(){this.player.stopVideo()},t.prototype.isStopped=function(){switch(this.player.getPlayerState()){case-1:case 2:case 5:return!0;default:return!1}},t.prototype.setVolume=function(t){this.player.setVolume(100*t)},t})),c.d("smartslider-frontend")})(window); !function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var s=t.document,n=(s.documentElement,t.setTimeout),h=t.clearTimeout,a=i._N2,r=(t.requestAnimationFrame,Object.assign),o=function(t,i){return t.dispatchEvent(i)},c=function(t,i){return o(t,new Event(i,{bubbles:!1,cancelable:!1}))},u=function(t,i,s){t.addEventListener(i,s,{once:!0})};navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;!function(t){if("complete"===s.readyState||"interactive"===s.readyState)t();else if(Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==s.addEventListener){const i=()=>{t(),t=()=>{}};s.addEventListener("DOMContentLoaded",i),s.addEventListener("readystatechange",(()=>{"complete"!==s.readyState&&"interactive"!==s.readyState||i()})),Document.prototype.addEventListener.call(s,"DOMContentLoaded",i)}else s.addEventListener("DOMContentLoaded",t)}((function(){s.body})),a.d("SmartSliderMainAnimationSimple",["SmartSliderMainAnimationAbstract"],(function(){function t(t,i){switch(this.postBackgroundAnimation=!1,this._currentBackgroundAnimation=!1,this.reverseSlideIndex=null,(i=r({delay:0,type:"horizontal",shiftedBackgroundAnimation:"auto"},i)).delay/=1e3,i.duration<300&&(i.type="no"),a.SmartSliderMainAnimationAbstract.prototype.constructor.call(this,t,i),t.isAdmin||t.disabled.postBackgroundAnimations||!this.slider.parameters.postBackgroundAnimations||(this.isReverseAllowed=!1,this.postBackgroundAnimation=new a.SmartSliderPostBackgroundAnimation(t,this)),this.parameters.type){case"no":this.animation=this._mainAnimationNo,this.isNoAnimation=!0;break;case"fade":this.animation=this._mainAnimationFade;break;case"crossfade":this.animation=this._mainAnimationCrossFade;break;case"vertical":t.backgrounds.hasFixed?this.animation=this._mainAnimationFade:this.animation=this._mainAnimationVertical;break;case"vertical-reversed":t.backgrounds.hasFixed?this.animation=this._mainAnimationFade:this.animation=this._mainAnimationVerticalReversed;break;case"horizontal-reversed":this.animation=this._mainAnimationHorizontalReversed;break;default:this.animation=this._mainAnimationHorizontal}}return t.prototype=Object.create(a.SmartSliderMainAnimationAbstract.prototype),t.prototype.constructor=t,t.prototype.changeTo=function(t,i,s,n){this.postBackgroundAnimation&&this.postBackgroundAnimation.prepareToSwitchSlide(t,i),a.SmartSliderMainAnimationAbstract.prototype.changeTo.apply(this,arguments)},t.prototype.setActiveSlide=function(t){for(var i=0;i0&&this.timeline.shiftChildren(r),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()}else h&&(s.extraDelay>0&&this.timeline.shiftChildren(s.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}else s.outDelay+=.1;var o=[t.SMWs[0]];!this._currentBackgroundAnimation&&t.SMWs[1]&&o.push(t.SMWs[1]),this.timeline.fromTo(o,s.outDuration,{opacity:1},{opacity:0,ease:this.getEase()},s.outDelay);var c=a.MW.I(i.element);this.timeline.fromTo(c,s.inDuration,{opacity:0},{opacity:1,ease:this.getEase()},s.inDelay),!this._currentBackgroundAnimation&&i.background&&(a.MW.I(i.background.element).opacity=1),u(this.sliderElement,"mainAnimationComplete",function(e){var t=this.slider.slides[e.detail.previousSlideIndex];a.MW.B(t.SMWs,{zIndex:"",opacity:1})}.bind(this)),this.slider.updateInsideSlides([t,i])},t.prototype._mainAnimationCrossFade=function(t,i){a.MW.B(t.SMWs,{zIndex:23}),this.showSlide(i),t.unsetActive(),i.setActive();var s=this.adjustMainAnimation();if(0!=this.parameters.shiftedBackgroundAnimation){var n=!1,h=!1;if("auto"==this.parameters.shiftedBackgroundAnimation?t.hasLayers()?n=!0:h=!0:n=!0,this._currentBackgroundAnimation&&n){var r=s.outDuration-s.extraDelay;r>0&&this.timeline.shiftChildren(r),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()}else h&&(s.extraDelay>0&&this.timeline.shiftChildren(s.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}else s.outDelay+=.1;var o=[t.SMWs[0]];!this._currentBackgroundAnimation&&t.SMWs[1]&&o.push(t.SMWs[1]),this.timeline.fromTo(o,s.outDuration,{opacity:1},{opacity:0,ease:this.getEase()},s.outDelay);var c=[i.SMWs[0]];!this._currentBackgroundAnimation&&i.SMWs[1]&&c.push(i.SMWs[1]),this.timeline.fromTo(c,s.inDuration,{opacity:0},{opacity:1,ease:this.getEase()},s.inDelay),u(this.sliderElement,"mainAnimationComplete",function(e){var t=this.slider.slides[e.detail.previousSlideIndex],i=this.slider.slides[e.detail.currentSlideIndex];a.MW.B(t.SMWs,{zIndex:"",opacity:1}),a.MW.B(i.SMWs,{opacity:1})}.bind(this)),this.slider.updateInsideSlides([t,i])},t.prototype._mainAnimationHorizontal=function(t,i,s){this.__mainAnimationDirection(t,i,"horizontal",s)},t.prototype._mainAnimationVertical=function(t,i,s){this.showSlide(i),this.__mainAnimationDirection(t,i,"vertical",s)},t.prototype._mainAnimationHorizontalReversed=function(t,i,s){this.__mainAnimationDirection(t,i,"horizontal",!s)},t.prototype._mainAnimationVerticalReversed=function(t,i,s){this.showSlide(i),this.__mainAnimationDirection(t,i,"vertical",!s)},t.prototype.__mainAnimationDirection=function(t,i,s,n){var h=t.SMWs,r=i.SMWs,o=[t,i],c="",l=0;"horizontal"===s?(c="x",l=Math.floor(this.slider.responsive.resizeContext.slideOuterWidth),n2const.rtl.isRtl&&(n=!n)):"vertical"===s&&(c="y",l=Math.floor(this.slider.responsive.resizeContext.slideOuterHeight)),n&&(l*=-1);var f={},v={snap:"x,y",ease:this.getEase()},d={snap:"x,y",ease:this.getEase()};f[c]=l,d[c]=-l,a.MW.B(h,{zIndex:23});var m={zIndex:23};m[c]=l,a.MW.B(r,m),t.unsetActive(),i.setActive();var p,S=this.adjustMainAnimation();if(v[c]=0,this.timeline.fromTo(r,S.inDuration,f,v,S.inDelay),0!=this.parameters.shiftedBackgroundAnimation){var y=!1,x=!1;if("auto"===this.parameters.shiftedBackgroundAnimation?t.hasLayers()?y=!0:x=!0:y=!0,this._currentBackgroundAnimation&&y){var b=S.outDuration-S.extraDelay;b>0&&this.timeline.shiftChildren(b),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()}else x&&(S.extraDelay>0&&this.timeline.shiftChildren(S.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}else S.outDelay+=.1;if(this.timeline.to(h,S.outDuration,d,S.outDelay),this.isTouch&&this.isReverseAllowed)if(n?this.slider.blockCarousel&&this.slider.isChangeCarousel("next")||(p=t.getNext()):this.slider.blockCarousel&&this.slider.isChangeCarousel("previous")||(p=t.getPrevious()),p&&p!==i){this.reverseSlideIndex=p.index,this.enableReverseMode(),o.push(p),"vertical"===s&&this.showSlide(p);var D=p.SMWs,z={};z[c]=l,a.MW.B(D,z);var w={},A={snap:"x,y",ease:this.getEase()},I={},C={snap:"x,y",ease:this.getEase()};A[c]=0,w[c]=-l,C[c]=l,I[c]=0,p.t("mainAnimationStartIn",{mainAnimation:this,previousSlideIndex:t.index,currentSlideIndex:p.index,isSystem:!1}),this.reverseTimeline.paused(!0),this.reverseTimeline.eventCallback("onComplete",this.onBackwardChangeToComplete.bind(this),[t,p,!1]),this.reverseTimeline.fromTo(D,S.inDuration,w,A,S.inDelay),this.reverseTimeline.fromTo(h,S.inDuration,I,C,S.inDelay)}else this.reverseSlideIndex=null;u(this.sliderElement,"mainAnimationComplete",function(e){var t=this.slider.slides[e.detail.previousSlideIndex],i=this.slider.slides[e.detail.currentSlideIndex];a.MW.B(t.SMWs,{zIndex:""}),a.MW.B(i.SMWs,{zIndex:""})}.bind(this)),this.slider.updateInsideSlides(o)},t.prototype.getExtraDelay=function(){return 0},t.prototype.adjustMainAnimation=function(){var t=this.parameters.duration,i=this.parameters.delay,s=this.timeline.totalDuration(),n=this.getExtraDelay();if(s>0){var h=t+i;if(!(h>s))return{inDuration:t,outDuration:t,inDelay:s-t,outDelay:n,extraDelay:n};t=t*s/h,(i=i*s/h)-1||n.requestIdleCallback,n.cancelIdleCallback;!function(t){if("complete"===i.readyState||"interactive"===i.readyState)t();else if(Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==i.addEventListener){const n=()=>{t(),t=()=>{}};i.addEventListener("DOMContentLoaded",n),i.addEventListener("readystatechange",(()=>{"complete"!==i.readyState&&"interactive"!==i.readyState||n()})),Document.prototype.addEventListener.call(i,"DOMContentLoaded",n)}else i.addEventListener("DOMContentLoaded",t)}((function(){i.body})),r.d("SmartSliderWidgetArrowImage","SmartSliderWidget",(function(){function t(t,n,i){this.tn=i,r.SmartSliderWidget.prototype.constructor.call(this,n,t,"#"+n.elementID+"-arrow-"+t)}return t.prototype=Object.create(r.SmartSliderWidget.prototype),t.prototype.constructor=t,t.prototype.onStart=function(){var t,n,i,o;t=this.widget,n="click",i=function(e){e.stopPropagation(),this.slider[this.tn]()}.bind(this),o=o||{},t.addEventListener(n,i,o)},function(n){this.key="arrow",this.previous=new t("previous",n,"previousWithDirection"),this.next=new t("next",n,"nextWithDirection")}}))}(window); !function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var n,s=t.document,o=(s.documentElement,t.setTimeout),a=t.clearTimeout,r=i._N2,h=(t.requestAnimationFrame,function(t,i=null,n=null,o=null){const a=s.createElement(t);return i&&("string"==typeof i?g(a,i):v(a,i)),n&&l(a,n),o&&d(a,o),a}),c=function(t,i,n){return h("div",t,i,n)},u=(Object.assign,function(t,i,n){t.setAttribute(i,n)}),l=function(t,i){for(var n in i)u(t,n,i[n])},f=function(t,i){t.removeAttribute(i)},p=function(t,i,n){t.dataset[i]=n},d=function(t,i){for(let n in i)p(t,n,i[n])},m=function(t,i,n){t.style.setProperty(i,n)},b=function(t,i){for(var n in i)m(t,n,i[n])},g=function(t,i){t.classList.add(i)},v=function(t,i){i.forEach((function(i){t.classList.add(i)}))},x=function(t,i){t.classList.remove(i)},w=function(t,i,n,s){s=s||{},t.addEventListener(i,n,s)};navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;!function(t){if("complete"===s.readyState||"interactive"===s.readyState)t();else if(Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==s.addEventListener){const i=()=>{t(),t=()=>{}};s.addEventListener("DOMContentLoaded",i),s.addEventListener("readystatechange",(()=>{"complete"!==s.readyState&&"interactive"!==s.readyState||i()})),Document.prototype.addEventListener.call(s,"DOMContentLoaded",i)}else s.addEventListener("DOMContentLoaded",t)}((function(){s.body})),r.d("SmartSliderWidgetBulletTransition","SmartSliderWidget",(function(){function t(t,i){this.parameters=i,r.SmartSliderWidget.prototype.constructor.call(this,t,"bullet",".n2-ss-control-bullet")}return t.prototype=Object.create(r.SmartSliderWidget.prototype),t.prototype.constructor=t,t.prototype.onStart=function(){switch(this.hasDots=!0,this.axis="horizontal",this.bar=this.widget.querySelector(".nextend-bullet-bar"),this.parameters.area){case 5:case 8:this.axis="vertical"}this.slider.stages.done("BeforeShow",this.onBeforeShow.bind(this))},t.prototype.onBeforeShow=function(){if(this.onVisibleSlidesChanged(),this.hasDots){var t=this.slider.currentSlide.ssdot;g(t,"n2-active"),f(t,"tabindex"),u(t,"aria-current","true")}w(this.slider.sliderElement,"SlideWillChange",this.onSlideSwitch.bind(this)),w(this.slider.sliderElement,"visibleSlidesChanged",this.onVisibleSlidesChanged.bind(this))},t.prototype.onSlideSwitch=function(e){if(this.hasDots){for(var t,i=0;ie.offsetHeight+100?t.style.display="block":t.style.display="none":300{e.classList.remove("ast-submenu-expanded"),Array.from(e.querySelectorAll(".sub-menu")).forEach(e=>{e.hasAttribute("data-initial-display")||e.setAttribute("data-initial-display",window.getComputedStyle(e).display),"block"===e.getAttribute("data-initial-display")?e.style.display="block":e.style.display="none"})});var t=document.querySelectorAll(".menu-toggle");document.body.classList.remove("ast-main-header-nav-open","ast-popup-nav-open"),document.documentElement.classList.remove("ast-off-canvas-active");for(var a=0;a #ast-desktop-header .ast-desktop-header-content"),n=document.querySelector(".elementor-editor-active"),a&&(a.style.display="none"),(null!==navigator.userAgent.match(/Android/i)&&"Android"===navigator.userAgent.match(/Android/i)[0]?window.visualViewport.width:window.innerWidth)!==s&&(t&&null===n&&t.click(),document.body.classList.remove("ast-main-header-nav-open","ast-popup-nav-open"),e)&&null==n&&e.click(),h(),AstraToggleSetup())}),document.addEventListener("DOMContentLoaded",function(){if(AstraToggleSetup(),null!==(e=u.classList.contains("ast-header-break-point")?document.getElementById("ast-mobile-header"):document.getElementById("ast-desktop-header"))){var e,t=e.querySelector(".navigation-accessibility");if(t&&e){var a=e.getElementsByTagName("button")[0];if(void 0===a){if(!0===(a=e.getElementsByTagName("a")[0]).classList.contains("astra-search-icon"))return;if(void 0===a)return}var n=t.getElementsByTagName("ul")[0];if(void 0===n)a.style.display="none";else{if(-1===n.className.indexOf("nav-menu")&&(n.className+=" nav-menu"),document.addEventListener("DOMContentLoaded",function(){var e;"off-canvas"===d&&(e=document.getElementById("menu-toggle-close"))&&(e.onclick=function(){-1!==t.className.indexOf("toggled")?(t.className=t.className.replace(" toggled",""),a.setAttribute("aria-expanded","false"),n.setAttribute("aria-expanded","false")):(t.className+=" toggled",a.setAttribute("aria-expanded","true"),n.setAttribute("aria-expanded","true"))})}),a.onclick=function(){-1!==t.className.indexOf("toggled")?(t.className=t.className.replace(" toggled",""),a.setAttribute("aria-expanded","false"),n.setAttribute("aria-expanded","false")):(t.className+=" toggled",a.setAttribute("aria-expanded","true"),n.setAttribute("aria-expanded","true"))},!astra.is_header_footer_builder_active){for(var s=n.getElementsByTagName("a"),o=n.getElementsByTagName("ul"),r=0,l=o.length;r a .ast-header-navigation-arrow"),a=document.querySelectorAll("nav.site-navigation .sub-menu"),n=document.querySelectorAll("nav.site-navigation .menu-item-has-children"),s=document.querySelectorAll(".astra-full-megamenu-wrapper");t&&(t.forEach(e=>{e.addEventListener("keydown",function(a){"Enter"===a.key&&(a.target.closest("li").querySelector(".sub-menu").classList.contains("astra-megamenu")?setTimeout(()=>{var e=a.target.closest("li").querySelector(".sub-menu"),t=a.target.closest("li").querySelector(".astra-full-megamenu-wrapper");e&&e.classList.toggle("astra-megamenu-focus"),t&&t.classList.toggle("astra-megamenu-wrapper-focus"),a.target.closest("li").classList.toggle("ast-menu-hover"),"false"!==a.target.getAttribute("aria-expanded")&&a.target.getAttribute("aria-expanded")?a.target.setAttribute("aria-expanded","false"):a.target.setAttribute("aria-expanded","true")},10):setTimeout(()=>{a.target.closest("li").querySelector(".sub-menu").classList.toggle("toggled-on"),a.target.closest("li").classList.toggle("ast-menu-hover"),"false"!==a.target.getAttribute("aria-expanded")&&a.target.getAttribute("aria-expanded")?a.target.setAttribute("aria-expanded","false"):a.target.setAttribute("aria-expanded","true")},10))})}),(a||n)&&document.addEventListener("click",function(e){b(a,t,n,s)},!1),a||n)&&document.addEventListener("keydown",function(e){"Escape"===e.key&&b(a,t,n,s)},!1);var e=document.querySelectorAll("nav.site-navigation .ast-nav-menu > .menu-item-has-children > a .ast-header-navigation-arrow");e&&e.forEach(e=>{e.addEventListener("keydown",function(e){e.target.closest("li").classList.contains("ast-menu-hover")||"Enter"!==e.key||b(a,t,n,s)},!1)})}()}}}});for(var t,a,o,l,h=function(){var e=u.style.overflow,t=(u.style.overflow="hidden",document.documentElement.clientWidth);if(u.style.overflow=e,astra.break_point .menu-link, ul.main-header-menu .ast-menu-toggle"):t[r].querySelectorAll("ul.main-header-menu .ast-menu-toggle")).length)for(var l=0;l #ast-mobile-header .main-header-bar-navigation"),t=(r=document.querySelectorAll("#masthead > #ast-mobile-header .main-header-menu-toggle"),"0");if(null!==this.closest("#ast-fixed-header")&&(e=document.querySelectorAll("#ast-fixed-header > #ast-mobile-header .main-header-bar-navigation"),r=document.querySelectorAll("#ast-fixed-header .main-header-menu-toggle"),t="0"),void 0===e[t])return!1;for(var a=e[t].querySelectorAll(".menu-item-has-children"),n=0;n{e.classList.remove("astra-megamenu-focus"),e.classList.remove("toggled-on")}),a&&a.forEach(e=>{e.classList.remove("ast-menu-hover")}),n&&n.forEach(e=>{e.classList.remove("astra-megamenu-wrapper-focus")}),t&&t.forEach(e=>{e.setAttribute("aria-expanded","false")})}function L(){var e=this||"";if(e&&!e.classList.contains("astra-search-icon")&&null===e.closest(".ast-builder-menu")&&-1!==new String(e).indexOf("#")){var t=e.parentNode;if(u.classList.contains("ast-header-break-point"))document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-link")&&t.classList.contains("menu-item-has-children")||(document.querySelector(".main-header-menu-toggle").classList.remove("toggled"),(t=document.querySelector(".main-header-bar-navigation")).classList.remove("toggle-on"),t.style.display="none",astraTriggerEvent(document.querySelector("body"),"astraMenuHashLinkClicked"));else for(;-1===e.className.indexOf("nav-menu");)"li"===e.tagName.toLowerCase()&&-1!==e.className.indexOf("focus")&&(e.className=e.className.replace(" focus","")),e=e.parentElement}}function E(){for(var e=this;-1===e.className.indexOf("navigation-accessibility");)"li"===e.tagName.toLowerCase()&&e.classList.toggle("focus"),e=e.parentElement}if(document.querySelectorAll(".search-field").forEach(e=>{e.addEventListener("focus",function(e){var t=this.parentNode.parentNode.parentNode.querySelector(".ast-search-menu-icon");t&&astraToggleClass(t,"ast-dropdown-active")}),e.addEventListener("blur",function(e){var t=this.parentNode.parentNode.parentNode.querySelector(".ast-search-menu-icon");t&&(t.classList.remove("ast-dropdown-active"),astraToggleClass(t,"ast-dropdown-active"))})}),u.onclick=function(e){if(void 0!==e.target.classList&&!e.target.classList.contains("ast-search-menu-icon")&&0===astraGetParents(e.target,".ast-search-menu-icon").length&&0===astraGetParents(e.target,".ast-search-icon").length)for(var t=document.getElementsByClassName("ast-search-menu-icon"),a=0;a{t+=e.clientHeight}),a=this.hash)&&(a=document.querySelector(a))&&(a=a.offsetTop-t)&&astraSmoothScroll(e,a)}window.addEventListener("DOMContentLoaded",e=>{for(var a of t)if(window.location.href.split("#")[0]===a.url){var n=document.querySelector(".site-header");let t=0;n=n.querySelectorAll("div[data-stick-support]"),n=(n&&n.forEach(e=>{t+=e.clientHeight}),document.querySelector(a.hash));n&&(a=n.offsetTop-t)&&astraSmoothScroll(e,a)}})}astra.is_scroll_to_top&&(o=document.querySelector("#page header"),l=document.getElementById("ast-scroll-top"),astScrollToTopHandler(o,l),window.addEventListener("scroll",function(){astScrollToTopHandler(o,l)}),l.onclick=function(e){astraSmoothScroll(e,0)},l.addEventListener("keydown",function(e){"Enter"===e.key&&astraSmoothScroll(e,0)})),window.addEventListener("DOMContentLoaded",e=>{document.querySelector(".woocommerce-store-notice__dismiss-link")?.addEventListener("click",()=>!wp?.customize&&document.body.classList.remove("ast-woocommerce-store-notice-hanged"))})}(),document.addEventListener("DOMContentLoaded",function(){function t(e){var e=e.closest(".menu-link"),t=e.nextElementSibling.classList.contains("toggled-on");e.setAttribute("aria-expanded",t?"true":"false")}document.querySelectorAll(".menu-link .dropdown-menu-toggle").forEach(function(e){e.addEventListener("focus",function(){t(this)}),e.addEventListener("blur",function(){t(this)}),e.addEventListener("keydown",function(e){var t;"Enter"===e.key&&(e=(e=this).closest(".menu-link"),t=e.getAttribute("aria-expanded"),e.setAttribute("aria-expanded","true"===t?"false":"true"))})}),document.addEventListener("keydown",function(e){"Escape"===e.key&&document.querySelectorAll(".menu-link .dropdown-menu-toggle").forEach(function(e){t(e)})})}); (()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function i(t){if(this.formData={},this.tree={},!(t instanceof FormData))return this;this.formData=t;const e=()=>{const t=new Map;return t.largestIndex=0,t.set=function(e,i){""===e?e=t.largestIndex++:/^[0-9]+$/.test(e)&&(e=parseInt(e),t.largestIndex<=e&&(t.largestIndex=e+1)),Map.prototype.set.call(t,e,i)},t};this.tree=e();const i=/^(?[a-z][-a-z0-9_:]*)(?(?:\[(?:[a-z][-a-z0-9_:]*|[0-9]*)\])*)/i;for(const[t,s]of this.formData){const o=t.match(i);if(o)if(""===o.groups.array)this.tree.set(o.groups.name,s);else{const t=[...o.groups.array.matchAll(/\[([a-z][-a-z0-9_:]*|[0-9]*)\]/gi)].map((([t,e])=>e));t.unshift(o.groups.name);const i=t.pop();t.reduce(((t,i)=>{if(/^[0-9]+$/.test(i)&&(i=parseInt(i)),t.get(i)instanceof Map)return t.get(i);const s=e();return t.set(i,s),s}),this.tree).set(i,s)}}}t.r(e),t.d(e,{all:()=>D,any:()=>M,date:()=>m,dayofweek:()=>u,email:()=>r,enum:()=>h,file:()=>d,maxdate:()=>z,maxfilesize:()=>j,maxitems:()=>v,maxlength:()=>x,maxnumber:()=>y,mindate:()=>A,minfilesize:()=>$,minitems:()=>w,minlength:()=>g,minnumber:()=>b,number:()=>c,required:()=>n,requiredfile:()=>a,stepnumber:()=>I,tel:()=>l,time:()=>f,url:()=>p}),i.prototype.entries=function(){return this.tree.entries()},i.prototype.get=function(t){return this.tree.get(t)},i.prototype.getAll=function(t){if(!this.has(t))return[];const e=t=>{const i=[];if(t instanceof Map)for(const[s,o]of t)i.push(...e(o));else""!==t&&i.push(t);return i};return e(this.get(t))},i.prototype.has=function(t){return this.tree.has(t)},i.prototype.keys=function(){return this.tree.keys()},i.prototype.values=function(){return this.tree.values()};const s=i;function o({rule:t,field:e,error:i,...s}){this.rule=t,this.field=e,this.error=i,this.properties=s}const n=function(t){if(0===t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).length)throw new o(this)},a=function(t){if(0===t.getAll(this.field).length)throw new o(this)},r=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{if(t.length<6)return!1;if(-1===t.indexOf("@",1))return!1;if(t.indexOf("@")!==t.lastIndexOf("@"))return!1;const[e,i]=t.split("@",2);if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(e))return!1;if(/\.{2,}/.test(i))return!1;if(/(?:^[ \t\n\r\0\x0B.]|[ \t\n\r\0\x0B.]$)/.test(i))return!1;const s=i.split(".");if(s.length<2)return!1;for(const t of s){if(/(?:^[ \t\n\r\0\x0B-]|[ \t\n\r\0\x0B-]$)/.test(t))return!1;if(!/^[a-z0-9-]+$/i.test(t))return!1}return!0})))throw new o(this)},p=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));if(!e.every((t=>{try{return(t=>-1!==["http","https","ftp","ftps","mailto","news","irc","irc6","ircs","gopher","nntp","feed","telnet","mms","rtsp","sms","svn","tel","fax","xmpp","webcal","urn"].indexOf(t))(new URL(t).protocol.replace(/:$/,""))}catch{return!1}})))throw new o(this)},l=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>(((t=(t=t.replace(/[#*].*$/,"")).replaceAll(/[()/.*#\s-]+/g,"")).startsWith("+")||t.startsWith("00"))&&(t=`+${t.replace(/^[+0]+/,"")}`),!!/^[+]?[0-9]+$/.test(t)&&6t.trim())).filter((t=>""!==t)).every((t=>!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t))))throw new o(this)},m=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{if(!/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t))return!1;const e=new Date(t);return!Number.isNaN(e.valueOf())})))throw new o(this)},f=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{const e=t.match(/^([0-9]{2})\:([0-9]{2})(?:\:([0-9]{2}))?$/);if(!e)return!1;const i=parseInt(e[1]),s=parseInt(e[2]),o=e[3]?parseInt(e[3]):0;return 0<=i&&i<=23&&0<=s&&s<=59&&0<=o&&o<=59})))throw new o(this)},d=function(t){if(!t.getAll(this.field).every((t=>t instanceof File&&this.accept?.some((e=>/^\.[a-z0-9]+$/i.test(e)?t.name.toLowerCase().endsWith(e.toLowerCase()):(t=>{const e=[],i=t.match(/^(?[a-z]+)\/(?[*]|[a-z0-9.+-]+)$/i);if(i){const t=i.groups.toplevel.toLowerCase(),s=i.groups.sub.toLowerCase();for(const[o,n]of(()=>{const t=new Map;return t.set("jpg|jpeg|jpe","image/jpeg"),t.set("gif","image/gif"),t.set("png","image/png"),t.set("bmp","image/bmp"),t.set("tiff|tif","image/tiff"),t.set("webp","image/webp"),t.set("ico","image/x-icon"),t.set("heic","image/heic"),t.set("asf|asx","video/x-ms-asf"),t.set("wmv","video/x-ms-wmv"),t.set("wmx","video/x-ms-wmx"),t.set("wm","video/x-ms-wm"),t.set("avi","video/avi"),t.set("divx","video/divx"),t.set("flv","video/x-flv"),t.set("mov|qt","video/quicktime"),t.set("mpeg|mpg|mpe","video/mpeg"),t.set("mp4|m4v","video/mp4"),t.set("ogv","video/ogg"),t.set("webm","video/webm"),t.set("mkv","video/x-matroska"),t.set("3gp|3gpp","video/3gpp"),t.set("3g2|3gp2","video/3gpp2"),t.set("txt|asc|c|cc|h|srt","text/plain"),t.set("csv","text/csv"),t.set("tsv","text/tab-separated-values"),t.set("ics","text/calendar"),t.set("rtx","text/richtext"),t.set("css","text/css"),t.set("htm|html","text/html"),t.set("vtt","text/vtt"),t.set("dfxp","application/ttaf+xml"),t.set("mp3|m4a|m4b","audio/mpeg"),t.set("aac","audio/aac"),t.set("ra|ram","audio/x-realaudio"),t.set("wav","audio/wav"),t.set("ogg|oga","audio/ogg"),t.set("flac","audio/flac"),t.set("mid|midi","audio/midi"),t.set("wma","audio/x-ms-wma"),t.set("wax","audio/x-ms-wax"),t.set("mka","audio/x-matroska"),t.set("rtf","application/rtf"),t.set("js","application/javascript"),t.set("pdf","application/pdf"),t.set("swf","application/x-shockwave-flash"),t.set("class","application/java"),t.set("tar","application/x-tar"),t.set("zip","application/zip"),t.set("gz|gzip","application/x-gzip"),t.set("rar","application/rar"),t.set("7z","application/x-7z-compressed"),t.set("exe","application/x-msdownload"),t.set("psd","application/octet-stream"),t.set("xcf","application/octet-stream"),t.set("doc","application/msword"),t.set("pot|pps|ppt","application/vnd.ms-powerpoint"),t.set("wri","application/vnd.ms-write"),t.set("xla|xls|xlt|xlw","application/vnd.ms-excel"),t.set("mdb","application/vnd.ms-access"),t.set("mpp","application/vnd.ms-project"),t.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),t.set("docm","application/vnd.ms-word.document.macroEnabled.12"),t.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),t.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),t.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),t.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),t.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),t.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),t.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),t.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),t.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),t.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),t.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),t.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),t.set("potm","application/vnd.ms-powerpoint.template.macroEnabled.12"),t.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),t.set("sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"),t.set("sldm","application/vnd.ms-powerpoint.slide.macroEnabled.12"),t.set("onetoc|onetoc2|onetmp|onepkg","application/onenote"),t.set("oxps","application/oxps"),t.set("xps","application/vnd.ms-xpsdocument"),t.set("odt","application/vnd.oasis.opendocument.text"),t.set("odp","application/vnd.oasis.opendocument.presentation"),t.set("ods","application/vnd.oasis.opendocument.spreadsheet"),t.set("odg","application/vnd.oasis.opendocument.graphics"),t.set("odc","application/vnd.oasis.opendocument.chart"),t.set("odb","application/vnd.oasis.opendocument.database"),t.set("odf","application/vnd.oasis.opendocument.formula"),t.set("wp|wpd","application/wordperfect"),t.set("key","application/vnd.apple.keynote"),t.set("numbers","application/vnd.apple.numbers"),t.set("pages","application/vnd.apple.pages"),t})())("*"===s&&n.startsWith(t+"/")||n===i[0])&&e.push(...o.split("|"))}return e})(e).some((e=>(e="."+e.trim(),t.name.toLowerCase().endsWith(e.toLowerCase())))))))))throw new o(this)},h=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>this.accept?.some((e=>t===String(e))))))throw new o(this)},u=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{const e=0===(i=new Date(t).getDay())?7:i;var i;return this.accept?.some((t=>e===parseInt(t)))})))throw new o(this)},w=function(t){if(t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).lengtht.trim())).filter((t=>""!==t));if(parseInt(this.threshold)t.trim())).filter((t=>""!==t));let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),0!==i&&it.trim())).filter((t=>""!==t));let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),parseInt(this.threshold)t.trim())).filter((t=>""!==t)).every((t=>!(parseFloat(t)t.trim())).filter((t=>""!==t)).every((t=>!(parseFloat(this.threshold)t.trim())).filter((t=>""!==t)).every((t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&tt.trim())).filter((t=>""!==t)).every((t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&this.threshold{t instanceof File&&(i+=t.size)})),i{t instanceof File&&(i+=t.size)})),parseInt(this.threshold)t.trim())).filter((t=>""!==t)),i=parseFloat(this.base),s=parseFloat(this.interval);if(!(0{const e=(parseFloat(t)-i)%s;return"0.000000"===Math.abs(e).toFixed(6)||"0.000000"===Math.abs(e-s).toFixed(6)})))throw new o(this)},O=({ruleObj:t,options:i})=>{const{rule:s,...o}=t;return"function"==typeof e[s]&&("function"!=typeof e[s].matches||e[s].matches(o,i))},E=({ruleObj:t,formDataTree:i,options:s})=>{const{rule:o}=t;e[o].call(t,i,s)},k=[],F=t=>[...k].reduce(((t,e)=>i=>e(i,t)),t),D=function(t,e={}){const i=(this.rules??[]).filter((t=>O({ruleObj:t,options:e}))),s=F(E);if(!i.every((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;if(void 0!==t.error)throw t;return!1}return!0})))throw new o(this)},M=function(t,e={}){const i=(this.rules??[]).filter((t=>O({ruleObj:t,options:e}))),s=F(E);if(!i.some((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;return!1}return!0})))throw new o(this)};var L;window.swv={validators:e,validate:(t,e,i={})=>{const n=(t.rules??[]).filter((t=>O({ruleObj:t,options:i})));if(!n.length)return new Map;const a=F(E),r=new s(e),p=n.reduce(((t,e)=>{try{a({ruleObj:e,formDataTree:r,options:i})}catch(e){if(!(e instanceof o))throw e;if(void 0!==e.field&&!t.has(e.field)&&void 0!==e.error)return t.set(e.field,e)}return t}),new Map);for(const t of r.keys())p.has(t)||p.set(t,{validInputs:r.getAll(t)});return p},use:t=>{k.push(t)},...null!==(L=window.swv)&&void 0!==L?L:{}}})(); (()=>{"use strict";const e=window.wp.i18n,t=e=>Math.abs(parseInt(e,10)),a=(e,t,a)=>{const n=new CustomEvent(`wpcf7${t}`,{bubbles:!0,detail:a});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(n)},n=(e,t)=>{const n=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["validating","validating"],["payment_required","payment-required"]]);n.has(t)&&(t=n.get(t)),Array.from(n.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const r=e.getAttribute("data-status");if(e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),r&&r!==t){e.classList.remove(r);const t={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,prevStatus:r};a(e,"statuschanged",t)}return t},r=e=>{const{root:t,namespace:a="contact-form-7/v1"}=wpcf7.api;return c.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:c,path:o,endpoint:s,headers:i,body:l,data:p,...d}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),o=r?n+"/"+r:n),"string"==typeof o&&(-1!==t.indexOf("?")&&(o=o.replace("?","&")),o=o.replace(/^\//,""),c=t+o),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],p&&(l=JSON.stringify(p),i["Content-Type"]="application/json");const f={code:"fetch_error",message:"You are probably offline."},u={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(c||o||window.location.href,{...d,headers:i,body:l}).then((e=>Promise.resolve(e).then((e=>{if(e.status>=200&&e.status<300)return e;throw e})).then((e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch((()=>{throw u}));throw u}))),(()=>{throw f}))}))(e)},c=[];function o(e,t={}){const{target:a,scope:r=e,...c}=t;if(void 0===e.wpcf7?.schema)return;const o={...e.wpcf7.schema};if(void 0!==a){if(!e.contains(a))return;if(!a.closest(".wpcf7-form-control-wrap[data-name]"))return;if(a.closest(".novalidate"))return}const p=r.querySelectorAll(".wpcf7-form-control-wrap"),d=Array.from(p).reduce(((e,t)=>(t.closest(".novalidate")||t.querySelectorAll(":where( input, textarea, select ):enabled").forEach((t=>{if(t.name)switch(t.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":t.checked&&e.append(t.name,t.value);break;case"select-multiple":for(const a of t.selectedOptions)e.append(t.name,a.value);break;case"file":for(const a of t.files)e.append(t.name,a);break;default:e.append(t.name,t.value)}})),e)),new FormData),f=e.getAttribute("data-status");Promise.resolve(n(e,"validating")).then((n=>{if(void 0!==swv){const n=swv.validate(o,d,t);for(const t of p){if(void 0===t.dataset.name)continue;const c=t.dataset.name;if(n.has(c)){const{error:t,validInputs:a}=n.get(c);i(e,c),void 0!==t&&s(e,c,t,{scope:r}),l(e,c,null!=a?a:[])}if(t.contains(a))break}}})).finally((()=>{n(e,f)}))}r.use=e=>{c.unshift(e)};const s=(e,t,a,n)=>{const{scope:r=e,...c}=null!=n?n:{},o=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,""),s=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control`);(()=>{const t=document.createElement("li");t.setAttribute("id",o),s&&s.id?t.insertAdjacentHTML("beforeend",`
${a}`):t.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(t)})(),r.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{const t=document.createElement("span");t.classList.add("wpcf7-not-valid-tip"),t.setAttribute("aria-hidden","true"),t.insertAdjacentText("beforeend",a),e.appendChild(t),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.classList.add("wpcf7-not-valid"),e.setAttribute("aria-describedby",o),"function"==typeof e.setCustomValidity&&e.setCustomValidity(a),e.closest(".use-floating-validation-tip")&&(e.addEventListener("focus",(e=>{t.setAttribute("style","display: none")})),t.addEventListener("click",(e=>{t.setAttribute("style","display: none")})))}))}))},i=(e,t)=>{const a=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,"");e.wpcf7.parent.querySelector(`.screen-reader-response ul li#${a}`)?.remove(),e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{e.querySelector(".wpcf7-not-valid-tip")?.remove(),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","false")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid"),"function"==typeof e.setCustomValidity&&e.setCustomValidity("")}))}))},l=(e,t,a)=>{e.querySelectorAll(`[data-reflection-of="${t}"]`).forEach((e=>{if("output"===e.tagName.toLowerCase()){const t=e;0===a.length&&a.push(t.dataset.default),a.slice(0,1).forEach((e=>{e instanceof File&&(e=e.name),t.textContent=e}))}else e.querySelectorAll("output").forEach((e=>{e.hasAttribute("data-default")?0===a.length?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"):e.remove()})),a.forEach((a=>{a instanceof File&&(a=a.name);const n=document.createElement("output");n.setAttribute("name",t),n.textContent=a,e.appendChild(n)}))}))};function p(e,t={}){if(wpcf7.blocked)return d(e),void n(e,"submitting");const c=new FormData(e);t.submitter&&t.submitter.name&&c.append(t.submitter.name,t.submitter.value);const o={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(c,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:c};r({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:c,wpcf7:{endpoint:"feedback",form:e,detail:o}}).then((t=>{const r=n(e,t.status);return o.status=t.status,o.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,o):["sent","failed"].includes(r)&&a(e,`mail${r}`,o),a(e,"submit",o),t})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach((t=>{s(e,t.field,t.message)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:t,detail:r}=e.wpcf7;d(t),a(t,"beforesubmit",r),n(t,"submitting")}return t(e)}));const d=e=>{e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t=>{t.dataset.name&&i(e,t.dataset.name)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function f(e){const t=new FormData(e),c={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(t,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:t};r({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:c}}).then((t=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,n(e,"mail_sent")):n(e,"init"),c.apiResponse=t,a(e,"reset",c)})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"refill"===e.wpcf7.endpoint){const{form:t,detail:a}=e.wpcf7;d(t),n(t,"resetting")}return t(e)}));const u=(e,t)=>{for(const a in t){const n=t[a];e.querySelectorAll(`input[name="${a}"]`).forEach((e=>{e.value=""})),e.querySelectorAll(`img.wpcf7-captcha-${a.replaceAll(":","")}`).forEach((e=>{e.setAttribute("src",n)}));const r=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);r&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${a}"]`).forEach((e=>{e.value=r[1]}))}},m=(e,t)=>{for(const a in t){const n=t[a][0],r=t[a][1];e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${a}"]`).forEach((e=>{e.querySelector(`input[name="${a}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=n,e.querySelector(`input[name="_wpcf7_quiz_answer_${a}"]`).value=r}))}};function w(e){const a=new FormData(e);e.wpcf7={id:t(a.get("_wpcf7")),status:e.getAttribute("data-status"),pluginVersion:a.get("_wpcf7_version"),locale:a.get("_wpcf7_locale"),unitTag:a.get("_wpcf7_unit_tag"),containerPost:t(a.get("_wpcf7_container_post")),parent:e.closest(".wpcf7"),get schema(){return wpcf7.schemas.get(this.id)}},wpcf7.schemas.set(e.wpcf7.id,void 0),e.querySelectorAll(".has-spinner").forEach((e=>{e.insertAdjacentHTML("afterend",'')})),(e=>{e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((t=>{t.addEventListener("change",(t=>{const a=t.target.getAttribute("name");e.querySelectorAll(`input[type="checkbox"][name="${a}"]`).forEach((e=>{e!==t.target&&(e.checked=!1)}))}))}))})(e),(e=>{e.querySelectorAll(".has-free-text").forEach((t=>{const a=t.querySelector("input.wpcf7-free-text"),n=t.querySelector('input[type="checkbox"], input[type="radio"]');a.disabled=!n.checked,e.addEventListener("change",(e=>{a.disabled=!n.checked,e.target===n&&n.checked&&a.focus()}))}))})(e),(e=>{e.querySelectorAll(".wpcf7-validates-as-url").forEach((e=>{e.addEventListener("change",(t=>{let a=e.value.trim();a&&!a.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==a.indexOf(".")&&(a=a.replace(/^\/+/,""),a="http://"+a),e.value=a}))}))})(e),(e=>{if(!e.querySelector(".wpcf7-acceptance")||e.classList.contains("wpcf7-acceptance-as-validation"))return;const t=()=>{let t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((e=>{if(!t||e.classList.contains("optional"))return;const a=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&a.checked||!e.classList.contains("invert")&&!a.checked)&&(t=!1)})),e.querySelectorAll(".wpcf7-submit").forEach((e=>{e.disabled=!t}))};t(),e.addEventListener("change",(e=>{t()})),e.addEventListener("wpcf7reset",(e=>{t()}))})(e),(e=>{const a=(e,a)=>{const n=t(e.getAttribute("data-starting-value")),r=t(e.getAttribute("data-maximum-value")),c=t(e.getAttribute("data-minimum-value")),o=e.classList.contains("down")?n-a.value.trim().length:a.value.trim().length;e.setAttribute("data-current-value",o),e.innerText=o,r&&r{t={init:!1,...t},e.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),c=e.querySelector(`[name="${r}"]`);c&&(c.value=c.defaultValue,a(n,c),t.init&&c.addEventListener("keyup",(e=>{a(n,c)})))}))};n({init:!0}),e.addEventListener("wpcf7reset",(e=>{n()}))})(e),window.addEventListener("load",(t=>{wpcf7.cached&&e.reset()})),e.addEventListener("reset",(t=>{wpcf7.reset(e)})),e.addEventListener("submit",(t=>{wpcf7.submit(e,{submitter:t.submitter}),t.preventDefault()})),e.addEventListener("wpcf7submit",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("wpcf7reset",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("change",(t=>{t.target.closest(".wpcf7-form-control")&&wpcf7.validate(e,{target:t.target})})),e.addEventListener("wpcf7statuschanged",(t=>{const a=t.detail.status;e.querySelectorAll(".active-on-any").forEach((e=>{e.removeAttribute("inert"),e.classList.remove("active-on-any")})),e.querySelectorAll(`.inert-on-${a}`).forEach((e=>{e.setAttribute("inert","inert"),e.classList.add("active-on-any")}))}))}document.addEventListener("DOMContentLoaded",(t=>{var a;if("undefined"!=typeof wpcf7)if(void 0!==wpcf7.api)if("function"==typeof window.fetch)if("function"==typeof window.FormData)if("function"==typeof NodeList.prototype.forEach)if("function"==typeof String.prototype.replaceAll){wpcf7={init:w,submit:p,reset:f,validate:o,schemas:new Map,...null!==(a=wpcf7)&&void 0!==a?a:{}},document.querySelectorAll("form .wpcf7[data-wpcf7-id]").forEach((t=>{const a=document.createElement("p");a.setAttribute("class","wpcf7-form-in-wrong-place");const n=document.createElement("strong");n.append((0,e.__)("Error:","contact-form-7"));const r=(0,e.__)("This contact form is placed in the wrong place.","contact-form-7");a.append(n," ",r),t.replaceWith(a)})),document.querySelectorAll(".wpcf7 > form").forEach((e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")}));for(const e of wpcf7.schemas.keys())r({endpoint:`contact-forms/${e}/feedback/schema`,method:"GET"}).then((t=>{wpcf7.schemas.set(e,t)}))}else console.error("Your browser does not support String.replaceAll().");else console.error("Your browser does not support NodeList.forEach().");else console.error("Your browser does not support window.FormData().");else console.error("Your browser does not support window.fetch().");else console.error("wpcf7.api is not defined.");else console.error("wpcf7 is not defined.")}))})(); /*! PowerTip v1.3.0 (2017-01-15) https://stevenbenner.github.io/jquery-powertip/ Copyright (c) 2017 Steven Benner (http://stevenbenner.com/). Released under MIT license. https://raw.github.com/stevenbenner/jquery-powertip/master/LICENSE.txt */ !function(a,b){"function"==typeof define&&define.amd?define(["jquery"],b):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){function b(){var b=this;b.top="auto",b.left="auto",b.right="auto",b.bottom="auto",b.set=function(c,d){a.isNumeric(d)&&(b[c]=Math.round(d))}}function c(a,b,c){function d(d,e){g(),a.data(u)?h():d?(e&&a.data(v,!0),i(),c.showTip(a)):(E.tipOpenImminent=!0,k=setTimeout(function(){k=null,f()},b.intentPollInterval))}function e(d){l&&(l=E.closeDelayTimeout=clearTimeout(l),E.delayInProgress=!1),g(),E.tipOpenImminent=!1,a.data(u)&&(a.data(v,!1),d?c.hideTip(a):(E.delayInProgress=!0,E.closeDelayTimeout=setTimeout(function(){E.closeDelayTimeout=null,c.hideTip(a),E.delayInProgress=!1,l=null},b.closeDelay),l=E.closeDelayTimeout))}function f(){var e=Math.abs(E.previousX-E.currentX),f=Math.abs(E.previousY-E.currentY),g=e+f;g-1||a.inArray("mouseout",c.closeEvents)>-1||a.inArray("blur",c.closeEvents)>-1||a.inArray("focusout",c.closeEvents)>-1)&&(E.activeHover.data(u)===!1||E.activeHover.is(":disabled")?b=!0:m(E.activeHover)||E.activeHover.is(":focus")||E.activeHover.data(v)||(y.data(x)?m(y)||(b=!0):b=!0),b&&g(E.activeHover))}var l=new d,y=a("#"+c.popupId);0===y.length&&(y=a("
",{id:c.popupId}),0===s.length&&(s=a("body")),s.append(y),E.tooltips=E.tooltips?E.tooltips.add(y):y),c.followMouse&&(y.data(w)||(q.on("mousemove"+C,h),r.on("scroll"+C,h),y.data(w,!0))),this.showTip=e,this.hideTip=g,this.resetPosition=i}function f(a){return Boolean(window.SVGElement&&a[0]instanceof SVGElement)}function g(a){return Boolean(a&&"number"==typeof a.pageX)}function h(){E.mouseTrackingActive||(E.mouseTrackingActive=!0,i(),a(i),q.on("mousemove"+C,l),r.on("resize"+C,j),r.on("scroll"+C,k))}function i(){E.scrollLeft=r.scrollLeft(),E.scrollTop=r.scrollTop(),E.windowWidth=r.width(),E.windowHeight=r.height()}function j(){E.windowWidth=r.width(),E.windowHeight=r.height()}function k(){var a=r.scrollLeft(),b=r.scrollTop();a!==E.scrollLeft&&(E.currentX+=a-E.scrollLeft,E.scrollLeft=a),b!==E.scrollTop&&(E.currentY+=b-E.scrollTop,E.scrollTop=b)}function l(a){E.currentX=a.pageX,E.currentY=a.pageY}function m(a){var b=a.offset(),c=a[0].getBoundingClientRect(),d=c.right-c.left,e=c.bottom-c.top;return E.currentX>=b.left&&E.currentX<=b.left+d&&E.currentY>=b.top&&E.currentY<=b.top+e}function n(b){var c,d,e=b.data(z),f=b.data(A),g=b.data(B);return e?(a.isFunction(e)&&(e=e.call(b[0])),d=e):f?(a.isFunction(f)&&(f=f.call(b[0])),f.length>0&&(d=f.clone(!0,!0))):g&&(c=a("#"+g),c.length>0&&(d=c.html())),d}function o(a,b,c){var d=E.scrollTop,e=E.scrollLeft,f=d+E.windowHeight,g=e+E.windowWidth,h=F.none;return(a.topf||Math.abs(a.bottom-E.windowHeight)>f)&&(h|=F.bottom),(a.leftg)&&(h|=F.left),(a.left+b>g||a.right-1?j.on(c+C,function(b){a.powerTip.toggle(this,b)}):j.on(c+C,function(b){a.powerTip.show(this,b)})}),a.each(f.closeEvents,function(b,c){a.inArray(c,f.openEvents)<0&&j.on(c+C,function(b){a.powerTip.hide(this,!g(b))})}),j.on("keydown"+C,function(b){27===b.keyCode&&a.powerTip.hide(this,!0)})),E.elements=E.elements?E.elements.add(j):j,j):j},a.fn.powerTip.defaults={fadeInTime:200,fadeOutTime:100,followMouse:!1,popupId:"powerTip",popupClass:null,intentSensitivity:7,intentPollInterval:100,closeDelay:100,placement:"n",smartPlacement:!1,offset:10,mouseOnToPopup:!1,manual:!1,openEvents:["mouseenter","focus"],closeEvents:["mouseleave","blur"]},a.fn.powerTip.smartPlacementLists={n:["n","ne","nw","s"],e:["e","ne","se","w","nw","sw","n","s","e"],s:["s","se","sw","n"],w:["w","nw","sw","e","ne","se","n","s","w"],nw:["nw","w","sw","n","s","se","nw"],ne:["ne","e","se","n","s","sw","ne"],sw:["sw","w","nw","s","n","ne","sw"],se:["se","e","ne","s","n","nw","se"],"nw-alt":["nw-alt","n","ne-alt","sw-alt","s","se-alt","w","e"],"ne-alt":["ne-alt","n","nw-alt","se-alt","s","sw-alt","e","w"],"sw-alt":["sw-alt","s","se-alt","nw-alt","n","ne-alt","w","e"],"se-alt":["se-alt","s","sw-alt","ne-alt","n","nw-alt","e","w"]},a.powerTip={show:function(b,c){return g(c)?(l(c),E.previousX=c.pageX,E.previousY=c.pageY,a(b).data(t).show()):a(b).first().data(t).show(!0,!0),b},reposition:function(b){return a(b).first().data(t).resetPosition(),b},hide:function(b,c){var d;return c=!b||c,b?d=a(b).first().data(t):E.activeHover&&(d=E.activeHover.data(t)),d&&d.hide(c),b},toggle:function(b,c){return E.activeHover&&E.activeHover.is(b)?a.powerTip.hide(b,!g(c)):a.powerTip.show(b,c),b},destroy:function(b){var c=b?a(b):E.elements;return E.elements&&0!==E.elements.length?(c.off(C).each(function(){var b=a(this),c=[y,t,u,v];b.data(y)&&(b.attr("title",b.data(y)),c.push(z)),b.removeData(c)}),E.elements=E.elements.not(c),0===E.elements.length&&(r.off(C),q.off(C),E.mouseTrackingActive=!1,E.tooltips.remove(),E.tooltips=null),b):b}},a.powerTip.showTip=a.powerTip.show,a.powerTip.closeTip=a.powerTip.hide,a.powerTip}); (function($){function ihotspotInit(){$('.ihotspot_hastooltop').each(function(){$(this).data('powertip',function(){var htmlThis=$(this).parents('.ihotspot_tooltop_html').attr('data-html');return htmlThis;});var thisPlace=$(this).parents('.ihotspot_tooltop_html').data('placement');$(this).powerTip({placement:thisPlace,smartPlacement:true,mouseOnToPopup:true,}).on({powerTipClose:function(){$('#powerTip').html('');}});});} $('body').on('click','.close_ihp',function(){$.powerTip.hide();});$(document).ready(function(){ihotspotInit();});let firstLoad=true;function scroll_element(){let $top=$(window).scrollTop();if($top>=100&&firstLoad){ihotspotInit();firstLoad=false;}} $(window).scroll(function(){scroll_element();});$(window).bind('touchmove',function(e){scroll_element();});})(jQuery); !function(t){"use strict";if("function"==typeof define&&define.amd)define(["jquery"],t);else if("object"==typeof exports)t(require("jquery"));else{if("undefined"==typeof jQuery)throw"jquery-numerator requires jQuery to be loaded first";t(jQuery)}}(function(t){function e(e,s){this.element=e,this.settings=t.extend({},i,s),this._defaults=i,this._name=n,this.init()}var n="numerator",i={easing:"swing",duration:500,delimiter:void 0,rounding:0,toValue:void 0,fromValue:void 0,queue:!1,onStart:function(){},onStep:function(){},onProgress:function(){},onComplete:function(){}};e.prototype={init:function(){this.parseElement(),this.setValue()},parseElement:function(){var e=t.trim(t(this.element).text());this.settings.fromValue=this.settings.fromValue||this.format(e)},setValue:function(){var e=this;t({value:e.settings.fromValue}).animate({value:e.settings.toValue},{duration:parseInt(e.settings.duration,10),easing:e.settings.easing,start:e.settings.onStart,step:function(n,i){t(e.element).text(e.format(n)),e.settings.onStep(n,i)},progress:e.settings.onProgress,complete:e.settings.onComplete})},format:function(t){var e=this;return t=parseInt(this.settings.rounding)<1?parseInt(t,10):parseFloat(t).toFixed(parseInt(this.settings.rounding)),e.settings.delimiter?this.delimit(t):t},delimit:function(t){var e=this;if(t=t.toString(),e.settings.rounding&&parseInt(e.settings.rounding,10)>0){var n=t.substring(t.length-(e.settings.rounding+1),t.length),i=t.substring(0,t.length-(e.settings.rounding+1));return e.addDelimiter(i)+n}return e.addDelimiter(t)},addDelimiter:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.settings.delimiter)}},t.fn[n]=function(i){return this.each(function(){t.data(this,"plugin_"+n)&&t.data(this,"plugin_"+n,null),t.data(this,"plugin_"+n,new e(this,i))})}}); /*! This file is auto-generated */ /*! * imagesLoaded PACKAGED v5.0.0 * JavaScript is all like "You images are done yet or what?" * MIT License */ !function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})), /*! * imagesLoaded v5.0.0 * JavaScript is all like "You images are done yet or what?" * MIT License */ function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n})); !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=101)}({101:function(e,t,n){"use strict";n.r(t);var r=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var o=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var i=function(e,t){return function(n,i,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,l=e[t];if(o(n)&&r(i))if("function"==typeof a)if("number"==typeof s){var c={callback:a,priority:s,namespace:i};if(l[n]){var u,d=l[n].handlers;for(u=d.length;u>0&&!(s>=d[u-1].priority);u--);u===d.length?d[u]=c:d.splice(u,0,c),l.__current.forEach((function(e){e.name===n&&e.currentIndex>=u&&e.currentIndex++}))}else l[n]={handlers:[c],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,i,a,s)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i,a){var s=e[t];if(o(i)&&(n||r(a))){if(!s[i])return 0;var l=0;if(n)l=s[i].handlers.length,s[i]={runs:s[i].runs,handlers:[]};else for(var c=s[i].handlers,u=function(e){c[e].namespace===a&&(c.splice(e,1),l++,s.__current.forEach((function(t){t.name===i&&t.currentIndex>=e&&t.currentIndex--})))},d=c.length-1;d>=0;d--)u(d);return"hookRemoved"!==i&&e.doAction("hookRemoved",i,a),l}}};var s=function(e,t){return function(n,r){var o=e[t];return void 0!==r?n in o&&o[n].handlers.some((function(e){return e.namespace===r})):n in o}};var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var o=e[t];o[r]||(o[r]={handlers:[],runs:0}),o[r].runs++;var i=o[r].handlers;for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l0){var s=a.data("custom-id-offset");s=s?parseFloat(s):0,e("html, body").animate({scrollTop:e(o).offset().top-s},300)}}}catch(e){}})),e(document).on("click",".e-n-tab-title",(function(){setTimeout((function(){window.dispatchEvent(new Event("resize"))}),100)}))}(jQuery),(w=jQuery)(document).on("click",".theme-savoy .eael-product-popup .nm-qty-minus, .theme-savoy .eael-product-popup .nm-qty-plus",(function(e){var t=w(this),n=t.closest(".quantity").find(".qty"),r=parseFloat(n.val()),o=parseFloat(n.attr("max")),i=parseFloat(n.attr("min")),a=n.attr("step");r&&""!==r&&"NaN"!==r||(r=0),""!==o&&"NaN"!==o||(o=""),""!==i&&"NaN"!==i||(i=0),"any"!==a&&""!==a&&void 0!==a&&"NaN"!==parseFloat(a)||(a=1),t.hasClass("nm-qty-plus")?o&&(o==r||r>o)?n.val(o):n.val(r+parseFloat(a)):i&&(i==r||r0&&n.val(r-parseFloat(a))})),function(e){e.fn.isInViewport=function(){if(e(this).length<1)return!1;var t=e(this).offset().top,n=t+e(this).outerHeight()/2,r=e(window).scrollTop(),o=r+e(window).height()/2;return n>r&&tOpen dynamic content');} wrapper.find('#make-column-clickable-open-dynamic').click();return true;} return true;} if(url.match("^#")){var hash=url;$('html, body').animate({scrollTop:$(hash).offset().top},800,function(){window.location.hash=hash;});return true;} window.open(url,wrapper.data('column-clickable-blank'));return false;}});}); (function($){$.prettyPhoto={version:'3.1.5'};$.fn.prettyPhoto=function(pp_settings){pp_settings=jQuery.extend({hook:'data-rel',animation_speed:'fast',ajaxcallback:function(){},slideshow:0,autoplay_slideshow:false,opacity:0.80,show_title:true,allow_resize:true,allow_expand:false,default_width:500,default_height:300,counter_separator_label:'/',theme:'pp_default',horizontal_padding:20,hideflash:false,wmode:'opaque',autoplay:false,modal:false,deeplinking:true,overlay_gallery:false,overlay_gallery_max:30,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},ie6_fallback:true,markup:'
\
\
\
\
\
\
\
\
\
\
\
\ Expand \
\ next \ previous \
\
\
\
\ Previous \

0/0

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