var drExports;!function(){var e={4144:function(e){e.exports=function(){"use strict";const e="undefined"!=typeof window,t=e&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),n=e&&window.devicePixelRatio>1,i={elements_selector:".lazy",container:t||e?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_bg_set:"bg-set",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1,restore_on_error:!1},o=e=>Object.assign({},i,e),r=function(e,t){let n;const i="LazyLoad::Initialized",o=new e(t);try{n=new CustomEvent(i,{detail:{instance:o}})}catch(e){n=document.createEvent("CustomEvent"),n.initCustomEvent(i,!1,!1,{instance:o})}window.dispatchEvent(n)},s="src",a="srcset",c="sizes",l="poster",u="llOriginalAttrs",d="data",f="loading",p="loaded",g="applied",h="error",v="native",m="data-",y="ll-status",_=(e,t)=>e.getAttribute(m+t),b=e=>_(e,y),w=(e,t)=>((e,t,n)=>{const i=m+t;null!==n?e.setAttribute(i,n):e.removeAttribute(i)})(e,y,t),E=e=>w(e,null),k=e=>null===b(e),x=e=>b(e)===v,S=[f,p,g,h],L=(e,t,n,i)=>{e&&"function"==typeof e&&(void 0===i?void 0===n?e(t):e(t,n):e(t,n,i))},C=(t,n)=>{e&&""!==n&&t.classList.add(n)},A=(t,n)=>{e&&""!==n&&t.classList.remove(n)},I=e=>e.llTempImage,P=(e,t)=>{if(!t)return;const n=t._observer;n&&n.unobserve(e)},M=(e,t)=>{e&&(e.loadingCount+=t)},O=(e,t)=>{e&&(e.toLoadCount=t)},D=e=>{let t=[];for(let n,i=0;n=e.children[i];i+=1)"SOURCE"===n.tagName&&t.push(n);return t},T=(e,t)=>{const n=e.parentNode;n&&"PICTURE"===n.tagName&&D(n).forEach(t)},z=(e,t)=>{D(e).forEach(t)},N=[s],j=[s,l],q=[s,a,c],F=[d],R=e=>!!e[u],G=e=>e[u],H=e=>delete e[u],B=(e,t)=>{if(R(e))return;const n={};t.forEach(t=>{n[t]=e.getAttribute(t)}),e[u]=n},W=(e,t)=>{if(!R(e))return;const n=G(e);t.forEach(t=>{((e,t,n)=>{n?e.setAttribute(t,n):e.removeAttribute(t)})(e,t,n[t])})},X=(e,t,n)=>{C(e,t.class_applied),w(e,g),n&&(t.unobserve_completed&&P(e,t),L(t.callback_applied,e,n))},U=(e,t,n)=>{C(e,t.class_loading),w(e,f),n&&(M(n,1),L(t.callback_loading,e,n))},V=(e,t,n)=>{n&&e.setAttribute(t,n)},J=(e,t)=>{V(e,c,_(e,t.data_sizes)),V(e,a,_(e,t.data_srcset)),V(e,s,_(e,t.data_src))},Y={IMG:(e,t)=>{T(e,e=>{B(e,q),J(e,t)}),B(e,q),J(e,t)},IFRAME:(e,t)=>{B(e,N),V(e,s,_(e,t.data_src))},VIDEO:(e,t)=>{z(e,e=>{B(e,N),V(e,s,_(e,t.data_src))}),B(e,j),V(e,l,_(e,t.data_poster)),V(e,s,_(e,t.data_src)),e.load()},OBJECT:(e,t)=>{B(e,F),V(e,d,_(e,t.data_src))}},$=["IMG","IFRAME","VIDEO","OBJECT"],K=(e,t)=>{!t||(e=>e.loadingCount>0)(t)||(e=>e.toLoadCount>0)(t)||L(e.callback_finish,t)},Q=(e,t,n)=>{e.addEventListener(t,n),e.llEvLisnrs[t]=n},Z=(e,t,n)=>{e.removeEventListener(t,n)},ee=e=>!!e.llEvLisnrs,te=e=>{if(!ee(e))return;const t=e.llEvLisnrs;for(let n in t){const i=t[n];Z(e,n,i)}delete e.llEvLisnrs},ne=(e,t,n)=>{(e=>{delete e.llTempImage})(e),M(n,-1),(e=>{e&&(e.toLoadCount-=1)})(n),A(e,t.class_loading),t.unobserve_completed&&P(e,n)},ie=(e,t,n)=>{const i=I(e)||e;ee(i)||((e,t,n)=>{ee(e)||(e.llEvLisnrs={});const i="VIDEO"===e.tagName?"loadeddata":"load";Q(e,i,t),Q(e,"error",n)})(i,o=>{((e,t,n,i)=>{const o=x(t);ne(t,n,i),C(t,n.class_loaded),w(t,p),L(n.callback_loaded,t,i),o||K(n,i)})(0,e,t,n),te(i)},o=>{((e,t,n,i)=>{const o=x(t);ne(t,n,i),C(t,n.class_error),w(t,h),L(n.callback_error,t,i),n.restore_on_error&&W(t,q),o||K(n,i)})(0,e,t,n),te(i)})},oe=(e,t,i)=>{(e=>$.indexOf(e.tagName)>-1)(e)?((e,t,n)=>{ie(e,t,n),((e,t,n)=>{const i=Y[e.tagName];i&&(i(e,t),U(e,t,n))})(e,t,n)})(e,t,i):((e,t,i)=>{(e=>{e.llTempImage=document.createElement("IMG")})(e),ie(e,t,i),(e=>{R(e)||(e[u]={backgroundImage:e.style.backgroundImage})})(e),((e,t,i)=>{const o=_(e,t.data_bg),r=_(e,t.data_bg_hidpi),a=n&&r?r:o;a&&(e.style.backgroundImage=`url("${a}")`,I(e).setAttribute(s,a),U(e,t,i))})(e,t,i),((e,t,i)=>{const o=_(e,t.data_bg_multi),r=_(e,t.data_bg_multi_hidpi),s=n&&r?r:o;s&&(e.style.backgroundImage=s,X(e,t,i))})(e,t,i),((e,t,n)=>{const i=_(e,t.data_bg_set);if(!i)return;let o=i.split("|").map(e=>`image-set(${e})`);e.style.backgroundImage=o.join(),X(e,t,n)})(e,t,i)})(e,t,i)},re=e=>{e.removeAttribute(s),e.removeAttribute(a),e.removeAttribute(c)},se=e=>{T(e,e=>{W(e,q)}),W(e,q)},ae={IMG:se,IFRAME:e=>{W(e,N)},VIDEO:e=>{z(e,e=>{W(e,N)}),W(e,j),e.load()},OBJECT:e=>{W(e,F)}},ce=["IMG","IFRAME","VIDEO"],le=e=>e.use_native&&"loading"in HTMLImageElement.prototype,ue=e=>Array.prototype.slice.call(e),de=e=>e.container.querySelectorAll(e.elements_selector),fe=e=>(e=>b(e)===h)(e),pe=(e,t)=>(e=>ue(e).filter(k))(e||de(t)),ge=function(t,n){const i=o(t);this._settings=i,this.loadingCount=0,((e,t)=>{le(e)||(t._observer=new IntersectionObserver(n=>{((e,t,n)=>{e.forEach(e=>(e=>e.isIntersecting||e.intersectionRatio>0)(e)?((e,t,n,i)=>{const o=(e=>S.indexOf(b(e))>=0)(e);w(e,"entered"),C(e,n.class_entered),A(e,n.class_exited),((e,t,n)=>{t.unobserve_entered&&P(e,n)})(e,n,i),L(n.callback_enter,e,t,i),o||oe(e,n,i)})(e.target,e,t,n):((e,t,n,i)=>{k(e)||(C(e,n.class_exited),((e,t,n,i)=>{n.cancel_on_exit&&(e=>b(e)===f)(e)&&"IMG"===e.tagName&&(te(e),(e=>{T(e,e=>{re(e)}),re(e)})(e),se(e),A(e,n.class_loading),M(i,-1),E(e),L(n.callback_cancel,e,t,i))})(e,t,n,i),L(n.callback_exit,e,t,i))})(e.target,e,t,n))})(n,e,t)},(e=>({root:e.container===document?null:e.container,rootMargin:e.thresholds||e.threshold+"px"}))(e)))})(i,this),((t,n)=>{e&&(n._onlineHandler=()=>{((e,t)=>{var n;(n=de(e),ue(n).filter(fe)).forEach(t=>{A(t,e.class_error),E(t)}),t.update()})(t,n)},window.addEventListener("online",n._onlineHandler))})(i,this),this.update(n)};return ge.prototype={update:function(e){const n=this._settings,i=pe(e,n);var o,r;O(this,i.length),t?this.loadAll(i):le(n)?((e,t,n)=>{e.forEach(e=>{-1!==ce.indexOf(e.tagName)&&((e,t,n)=>{e.setAttribute("loading","lazy"),ie(e,t,n),((e,t)=>{const n=Y[e.tagName];n&&n(e,t)})(e,t),w(e,v)})(e,t,n)}),O(n,0)})(i,n,this):(r=i,(e=>{e.disconnect()})(o=this._observer),((e,t)=>{t.forEach(t=>{e.observe(t)})})(o,r))},destroy:function(){this._observer&&this._observer.disconnect(),e&&window.removeEventListener("online",this._onlineHandler),de(this._settings).forEach(e=>{H(e)}),delete this._observer,delete this._settings,delete this._onlineHandler,delete this.loadingCount,delete this.toLoadCount},loadAll:function(e){const t=this._settings;pe(e,t).forEach(e=>{P(e,this),oe(e,t,this)})},restoreAll:function(){const e=this._settings;de(e).forEach(t=>{((e,t)=>{(e=>{const t=ae[e.tagName];t?t(e):(e=>{if(!R(e))return;const t=G(e);e.style.backgroundImage=t.backgroundImage})(e)})(e),((e,t)=>{k(e)||x(e)||(A(e,t.class_entered),A(e,t.class_exited),A(e,t.class_applied),A(e,t.class_loading),A(e,t.class_loaded),A(e,t.class_error))})(e,t),E(e),H(e)})(t,e)})}},ge.load=(e,t)=>{const n=o(t);oe(e,n)},ge.resetStatus=e=>{E(e)},e&&((e,t)=>{if(t)if(t.length)for(let n,i=0;n=t[i];i+=1)r(e,n);else r(e,t)})(ge,window.lazyLoadOptions),ge}()}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i].call(r.exports,r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=n(4144),t=n.n(e);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o="(prefers-reduced-motion: reduce)";function r(e){e.length=0}function s(e,t,n){return Array.prototype.slice.call(e,t,n)}function a(e){return e.bind.apply(e,[null].concat(s(arguments,1)))}var c=setTimeout,l=function(){};function u(e){return requestAnimationFrame(e)}function d(e,t){return typeof t===e}function f(e){return!m(e)&&d("object",e)}var p=Array.isArray,g=a(d,"function"),h=a(d,"string"),v=a(d,"undefined");function m(e){return null===e}function y(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch(e){return!1}}function _(e){return p(e)?e:[e]}function b(e,t){_(e).forEach(t)}function w(e,t){return e.indexOf(t)>-1}function E(e,t){return e.push.apply(e,_(t)),e}function k(e,t,n){e&&b(t,function(t){t&&e.classList[n?"add":"remove"](t)})}function x(e,t){k(e,h(t)?t.split(" "):t,!0)}function S(e,t){b(t,e.appendChild.bind(e))}function L(e,t){b(e,function(e){var n=(t||e).parentNode;n&&n.insertBefore(e,t)})}function C(e,t){return y(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function A(e,t){var n=e?s(e.children):[];return t?n.filter(function(e){return C(e,t)}):n}function I(e,t){return t?A(e,t)[0]:e.firstElementChild}var P=Object.keys;function M(e,t,n){return e&&(n?P(e).reverse():P(e)).forEach(function(n){"__proto__"!==n&&t(e[n],n)}),e}function O(e){return s(arguments,1).forEach(function(t){M(t,function(n,i){e[i]=t[i]})}),e}function D(e){return s(arguments,1).forEach(function(t){M(t,function(t,n){p(t)?e[n]=t.slice():f(t)?e[n]=D({},f(e[n])?e[n]:{},t):e[n]=t})}),e}function T(e,t){b(t||P(e),function(t){delete e[t]})}function z(e,t){b(e,function(e){b(t,function(t){e&&e.removeAttribute(t)})})}function N(e,t,n){f(t)?M(t,function(t,n){N(e,n,t)}):b(e,function(e){m(n)||""===n?z(e,t):e.setAttribute(t,String(n))})}function j(e,t,n){var i=document.createElement(e);return t&&(h(t)?x(i,t):N(i,t)),n&&S(n,i),i}function q(e,t,n){if(v(n))return getComputedStyle(e)[t];m(n)||(e.style[t]=""+n)}function F(e,t){q(e,"display",t)}function R(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function G(e,t){return e.getAttribute(t)}function H(e,t){return e&&e.classList.contains(t)}function B(e){return e.getBoundingClientRect()}function W(e){b(e,function(e){e&&e.parentNode&&e.parentNode.removeChild(e)})}function X(e){return I((new DOMParser).parseFromString(e,"text/html").body)}function U(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function V(e,t){return e&&e.querySelector(t)}function J(e,t){return t?s(e.querySelectorAll(t)):[]}function Y(e,t){k(e,t,!1)}function $(e){return e.timeStamp}function K(e){return h(e)?e:e?e+"px":""}var Q="splide",Z="data-"+Q;function ee(e,t){if(!e)throw new Error("["+Q+"] "+(t||""))}var te=Math.min,ne=Math.max,ie=Math.floor,oe=Math.ceil,re=Math.abs;function se(e,t,n){return re(e-t)<n}function ae(e,t,n,i){var o=te(t,n),r=ne(t,n);return i?o<e&&e<r:o<=e&&e<=r}function ce(e,t,n){var i=te(t,n),o=ne(t,n);return te(ne(i,e),o)}function le(e){return+(e>0)-+(e<0)}function ue(e,t){return b(t,function(t){e=e.replace("%s",""+t)}),e}function de(e){return e<10?"0"+e:""+e}var fe={};function pe(){var e=[];function t(e,t,n){b(e,function(e){e&&b(t,function(t){t.split(" ").forEach(function(t){var i=t.split(".");n(e,i[0],i[1])})})})}return{bind:function(n,i,o,r){t(n,i,function(t,n,i){var s="addEventListener"in t,a=s?t.removeEventListener.bind(t,n,o,r):t.removeListener.bind(t,o);s?t.addEventListener(n,o,r):t.addListener(o),e.push([t,n,i,o,a])})},unbind:function(n,i,o){t(n,i,function(t,n,i){e=e.filter(function(e){return!!(e[0]!==t||e[1]!==n||e[2]!==i||o&&e[3]!==o)||(e[4](),!1)})})},dispatch:function(e,t,n){var i,o=!0;return"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:o,detail:n}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,o,!1,n),e.dispatchEvent(i),i},destroy:function(){e.forEach(function(e){e[4]()}),r(e)}}}var ge="mounted",he="ready",ve="move",me="moved",ye="click",_e="refresh",be="updated",we="resize",Ee="resized",ke="scroll",xe="scrolled",Se="destroy",Le="navigation:mounted",Ce="autoplay:play",Ae="autoplay:pause",Ie="lazyload:loaded",Pe="ei";function Me(e){var t=e?e.event.bus:document.createDocumentFragment(),n=pe();return e&&e.event.on(Se,n.destroy),O(n,{bus:t,on:function(e,i){n.bind(t,_(e).join(" "),function(e){i.apply(i,p(e.detail)?e.detail:[])})},off:a(n.unbind,t),emit:function(e){n.dispatch(t,e,s(arguments,1))}})}function Oe(e,t,n,i){var o,r,s=Date.now,a=0,c=!0,l=0;function d(){if(!c){if(a=e?te((s()-o)/e,1):1,n&&n(a),a>=1&&(t(),o=s(),i&&++l>=i))return f();r=u(d)}}function f(){c=!0}function p(){r&&cancelAnimationFrame(r),a=0,r=0,c=!0}return{start:function(t){t||p(),o=s()-(t?a*e:0),c=!1,r=u(d)},rewind:function(){o=s(),a=0,n&&n(a)},pause:f,cancel:p,set:function(t){e=t},isPaused:function(){return c}}}var De="Arrow",Te=De+"Left",ze=De+"Right",Ne=De+"Up",je=De+"Down",qe="ttb",Fe={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Ne,ze],ArrowRight:[je,Te]};var Re="role",Ge="tabindex",He="aria-",Be=He+"controls",We=He+"current",Xe=He+"selected",Ue=He+"label",Ve=He+"labelledby",Je=He+"hidden",Ye=He+"orientation",$e=He+"roledescription",Ke=He+"live",Qe=He+"busy",Ze=He+"atomic",et=[Re,Ge,"disabled",Be,We,Ue,Ve,Je,Ye,$e],tt=Q+"__",nt="is-",it=Q,ot=tt+"track",rt=tt+"list",st=tt+"slide",at=st+"--clone",ct=st+"__container",lt=tt+"arrows",ut=tt+"arrow",dt=ut+"--prev",ft=ut+"--next",pt=tt+"pagination",gt=pt+"__page",ht=tt+"progress__bar",vt=tt+"toggle",mt=tt+"sr",yt=nt+"initialized",_t=nt+"active",bt=nt+"prev",wt=nt+"next",Et=nt+"visible",kt=nt+"loading",xt=nt+"focus-in",St=nt+"overflow",Lt=[_t,Et,bt,wt,kt,xt,St],Ct={slide:st,clone:at,arrows:lt,arrow:ut,prev:dt,next:ft,pagination:pt,page:gt,spinner:tt+"spinner"},At="touchstart mousedown",It="touchmove mousemove",Pt="touchend touchcancel mouseup click",Mt="slide",Ot="loop",Dt="fade";var Tt=Z+"-interval",zt={passive:!1,capture:!0},Nt={Spacebar:" ",Right:ze,Left:Te,Up:Ne,Down:je};function jt(e){return e=h(e)?e:e.key,Nt[e]||e}var qt="keydown",Ft=Z+"-lazy",Rt=Ft+"-srcset",Gt="["+Ft+"], ["+Rt+"]",Ht=[" ","Enter"],Bt=Object.freeze({__proto__:null,Media:function(e,t,n){var i=e.state,r=n.breakpoints||{},s=n.reducedMotion||{},a=pe(),c=[];function l(e){e&&a.destroy()}function u(e,t){var n=matchMedia(t);a.bind(n,"change",d),c.push([e,n])}function d(){var t=i.is(7),o=n.direction,r=c.reduce(function(e,t){return D(e,t[1].matches?t[0]:{})},{});T(n),f(r),n.destroy?e.destroy("completely"===n.destroy):t?(l(!0),e.mount()):o!==n.direction&&e.refresh()}function f(t,o,r){D(n,t),o&&D(Object.getPrototypeOf(n),t),!r&&i.is(1)||e.emit(be,n)}return{setup:function(){var e="min"===n.mediaQuery;P(r).sort(function(t,n){return e?+t-+n:+n-+t}).forEach(function(t){u(r[t],"("+(e?"min":"max")+"-width:"+t+"px)")}),u(s,o),d()},destroy:l,reduce:function(e){matchMedia(o).matches&&(e?D(n,s):T(n,P(s)))},set:f}},Direction:function(e,t,n){return{resolve:function(e,t,i){var o="rtl"!==(i=i||n.direction)||t?i===qe?0:-1:1;return Fe[e]&&Fe[e][o]||e.replace(/width|left|right/i,function(e,t){var n=Fe[e.toLowerCase()][o]||e;return t>0?n.charAt(0).toUpperCase()+n.slice(1):n})},orient:function(e){return e*("rtl"===n.direction?1:-1)}}},Elements:function(e,t,n){var i,o,s,a=Me(e),c=a.on,l=a.bind,u=e.root,d=n.i18n,f={},p=[],h=[],v=[];function m(){var e,t,r;i=b("."+ot),o=I(i,"."+rt),ee(i&&o,"A track/list element is missing."),E(p,A(o,"."+st+":not(."+at+")")),M({arrows:lt,pagination:pt,prev:dt,next:ft,bar:ht,toggle:vt},function(e,t){f[t]=b("."+e)}),O(f,{root:u,track:i,list:o,slides:p}),t=u.id||""+(e=Q)+de(fe[e]=(fe[e]||0)+1),r=n.role,u.id=t,i.id=i.id||t+"-track",o.id=o.id||t+"-list",!G(u,Re)&&"SECTION"!==u.tagName&&r&&N(u,Re,r),N(u,$e,d.carousel),N(o,Re,"presentation"),_()}function y(e){var t=et.concat("style");r(p),Y(u,h),Y(i,v),z([i,o],t),z(u,e?t:["style",$e])}function _(){Y(u,h),Y(i,v),h=w(it),v=w(ot),x(u,h),x(i,v),N(u,Ue,n.label),N(u,Ve,n.labelledby)}function b(e){var t=V(u,e);return t&&function(e,t){if(g(e.closest))return e.closest(t);for(var n=e;n&&1===n.nodeType&&!C(n,t);)n=n.parentElement;return n}(t,"."+it)===u?t:void 0}function w(e){return[e+"--"+n.type,e+"--"+n.direction,n.drag&&e+"--draggable",n.isNavigation&&e+"--nav",e===it&&_t]}return O(f,{setup:m,mount:function(){c(_e,y),c(_e,m),c(be,_),l(document,At+" keydown",function(e){s="keydown"===e.type},{capture:!0}),l(u,"focusin",function(){k(u,xt,!!s)})},destroy:y})},Slides:function(e,t,n){var i=Me(e),o=i.on,s=i.emit,c=i.bind,l=t.Elements,u=l.slides,d=l.list,f=[];function p(){u.forEach(function(e,t){m(e,t,-1)})}function v(){A(function(e){e.destroy()}),r(f)}function m(t,n,i){var o=function(e,t,n,i){var o,r=Me(e),s=r.on,c=r.emit,l=r.bind,u=e.Components,d=e.root,f=e.options,p=f.isNavigation,g=f.updateOnMove,h=f.i18n,v=f.pagination,m=f.slideFocus,y=u.Direction.resolve,_=G(i,"style"),b=G(i,Ue),w=n>-1,E=I(i,"."+ct);function x(){var o=e.splides.map(function(e){var n=e.splide.Components.Slides.getAt(t);return n?n.slide.id:""}).join(" ");N(i,Ue,ue(h.slideX,(w?n:t)+1)),N(i,Be,o),N(i,Re,m?"button":""),m&&z(i,$e)}function S(){o||L()}function L(){if(!o){var n=e.index;(r=C())!==H(i,_t)&&(k(i,_t,r),N(i,We,p&&r||""),c(r?"active":"inactive",A)),function(){var t=function(){if(e.is(Dt))return C();var t=B(u.Elements.track),n=B(i),o=y("left",!0),r=y("right",!0);return ie(t[o])<=oe(n[o])&&ie(n[r])<=oe(t[r])}(),n=!t&&(!C()||w);if(e.state.is([4,5])||N(i,Je,n||""),N(J(i,f.focusableNodes||""),Ge,n?-1:""),m&&N(i,Ge,n?-1:0),t!==H(i,Et)&&(k(i,Et,t),c(t?"visible":"hidden",A)),!t&&document.activeElement===i){var o=u.Slides.getAt(e.index);o&&R(o.slide)}}(),k(i,bt,t===n-1),k(i,wt,t===n+1)}var r}function C(){var i=e.index;return i===t||f.cloneStatus&&i===n}var A={index:t,slideIndex:n,slide:i,container:E,isClone:w,mount:function(){w||(i.id=d.id+"-slide"+de(t+1),N(i,Re,v?"tabpanel":"group"),N(i,$e,h.slide),N(i,Ue,b||ue(h.slideLabel,[t+1,e.length]))),l(i,"click",a(c,ye,A)),l(i,"keydown",a(c,"sk",A)),s([me,"sh",xe],L),s(Le,x),g&&s(ve,S)},destroy:function(){o=!0,r.destroy(),Y(i,Lt),z(i,et),N(i,"style",_),N(i,Ue,b||"")},update:L,style:function(e,t,n){q(n&&E||i,e,t)},isWithin:function(n,i){var o=re(n-t);return w||!f.rewind&&!e.is(Ot)||(o=te(o,e.length-o)),o<=i}};return A}(e,n,i,t);o.mount(),f.push(o),f.sort(function(e,t){return e.index-t.index})}function E(e){return e?P(function(e){return!e.isClone}):f}function A(e,t){E(t).forEach(e)}function P(e){return f.filter(g(e)?e:function(t){return h(e)?C(t.slide,e):w(_(e),t.index)})}return{mount:function(){p(),o(_e,v),o(_e,p)},destroy:v,update:function(){A(function(e){e.update()})},register:m,get:E,getIn:function(e){var i=t.Controller,o=i.toIndex(e),r=i.hasFocus()?1:n.perPage;return P(function(e){return ae(e.index,o,o+r-1)})},getAt:function(e){return P(e)[0]},add:function(e,t){b(e,function(e){if(h(e)&&(e=X(e)),y(e)){var i=u[t];i?L(e,i):S(d,e),x(e,n.classes.slide),o=e,r=a(s,we),l=J(o,"img"),(f=l.length)?l.forEach(function(e){c(e,"load error",function(){--f||r()})}):r()}var o,r,l,f}),s(_e)},remove:function(e){W(P(e).map(function(e){return e.slide})),s(_e)},forEach:A,filter:P,style:function(e,t,n){A(function(i){i.style(e,t,n)})},getLength:function(e){return e?u.length:f.length},isEnough:function(){return f.length>n.perPage}}},Layout:function(e,t,n){var i,o,r,s=Me(e),c=s.on,l=s.bind,u=s.emit,d=t.Slides,p=t.Direction.resolve,g=t.Elements,h=g.root,v=g.track,m=g.list,y=d.getAt,_=d.style;function b(){i=n.direction===qe,q(h,"maxWidth",K(n.width)),q(v,p("paddingLeft"),E(!1)),q(v,p("paddingRight"),E(!0)),w(!0)}function w(e){var t,s=B(h);(e||o.width!==s.width||o.height!==s.height)&&(q(v,"height",(t="",i&&(ee(t=x(),"height or heightRatio is missing."),t="calc("+t+" - "+E(!1)+" - "+E(!0)+")"),t)),_(p("marginRight"),K(n.gap)),_("width",n.autoWidth?null:K(n.fixedWidth)||(i?"":S())),_("height",K(n.fixedHeight)||(i?n.autoHeight?null:S():x()),!0),o=s,u(Ee),r!==(r=M())&&(k(h,St,r),u("overflow",r)))}function E(e){var t=n.padding,i=p(e?"right":"left");return t&&K(t[i]||(f(t)?0:t))||"0px"}function x(){return K(n.height||B(m).width*n.heightRatio)}function S(){var e=K(n.gap);return"calc((100%"+(e&&" + "+e)+")/"+(n.perPage||1)+(e&&" - "+e)+")"}function L(){return B(m)[p("width")]}function C(e,t){var n=y(e||0);return n?B(n.slide)[p("width")]+(t?0:P()):0}function A(e,t){var n=y(e);if(n){var i=B(n.slide)[p("right")],o=B(m)[p("left")];return re(i-o)+(t?0:P())}return 0}function I(t){return A(e.length-1)-A(0)+C(0,t)}function P(){var e=y(0);return e&&parseFloat(q(e.slide,p("marginRight")))||0}function M(){return e.is(Dt)||I(!0)>L()}return{mount:function(){var e,t;b(),l(window,"resize load",(e=a(u,we),t=Oe(0,e,null,1),function(){t.isPaused()&&t.start()})),c([be,_e],b),c(we,w)},resize:w,listSize:L,slideSize:C,sliderSize:I,totalSize:A,getPadding:function(e){return parseFloat(q(v,p("padding"+(e?"Right":"Left"))))||0},isOverflow:M}},Clones:function(e,t,n){var i,o=Me(e),s=o.on,a=t.Elements,c=t.Slides,l=t.Direction.resolve,u=[];function d(){s(_e,f),s([be,we],g),(i=h())&&(function(t){var i=c.get().slice(),o=i.length;if(o){for(;i.length<t;)E(i,i);E(i.slice(-t),i.slice(0,t)).forEach(function(r,s){var l=s<t,d=function(t,i){var o=t.cloneNode(!0);return x(o,n.classes.clone),o.id=e.root.id+"-clone"+de(i+1),o}(r.slide,s);l?L(d,i[0].slide):S(a.list,d),E(u,d),c.register(d,s-t+(l?0:o),r.index)})}}(i),t.Layout.resize(!0))}function f(){p(),d()}function p(){W(u),r(u),o.destroy()}function g(){var e=h();i!==e&&(i<e||!e)&&o.emit(_e)}function h(){var i=n.clones;if(e.is(Ot)){if(v(i)){var o=n[l("fixedWidth")]&&t.Layout.slideSize(0);i=o&&oe(B(a.track)[l("width")]/o)||n[l("autoWidth")]&&e.length||2*n.perPage}}else i=0;return i}return{mount:d,destroy:p}},Move:function(e,t,n){var i,o=Me(e),r=o.on,s=o.emit,a=e.state.set,c=t.Layout,l=c.slideSize,u=c.getPadding,d=c.totalSize,f=c.listSize,p=c.sliderSize,g=t.Direction,h=g.resolve,m=g.orient,y=t.Elements,_=y.list,b=y.track;function w(){t.Controller.isBusy()||(t.Scroll.cancel(),E(e.index),t.Slides.update())}function E(e){k(C(e,!0))}function k(n,i){if(!e.is(Dt)){var o=i?n:function(n){if(e.is(Ot)){var i=L(n),o=i>t.Controller.getEnd();(i<0||o)&&(n=x(n,o))}return n}(n);q(_,"transform","translate"+h("X")+"("+o+"px)"),n!==o&&s("sh")}}function x(e,t){var n=e-I(t),i=p();return e-m(i*(oe(re(n)/i)||1))*(t?1:-1)}function S(){k(A(),!0),i.cancel()}function L(e){for(var n=t.Slides.get(),i=0,o=1/0,r=0;r<n.length;r++){var s=n[r].index,a=re(C(s,!0)-e);if(!(a<=o))break;o=a,i=s}return i}function C(t,i){var o=m(d(t-1)-function(e){var t=n.focus;return"center"===t?(f()-l(e,!0))/2:+t*l(e)||0}(t));return i?function(t){return n.trimSpace&&e.is(Mt)&&(t=ce(t,0,m(p(!0)-f()))),t}(o):o}function A(){var e=h("left");return B(_)[e]-B(b)[e]+m(u(!1))}function I(e){return C(e?t.Controller.getEnd():0,!!n.trimSpace)}return{mount:function(){i=t.Transition,r([ge,Ee,be,_e],w)},move:function(e,t,n,o){var r,c;e!==t&&(r=e>n,c=m(x(A(),r)),r?c>=0:c<=_[h("scrollWidth")]-B(b)[h("width")])&&(S(),k(x(A(),e>n),!0)),a(4),s(ve,t,n,e),i.start(t,function(){a(3),s(me,t,n,e),o&&o()})},jump:E,translate:k,shift:x,cancel:S,toIndex:L,toPosition:C,getPosition:A,getLimit:I,exceededLimit:function(e,t){t=v(t)?A():t;var n=!0!==e&&m(t)<m(I(!1)),i=!1!==e&&m(t)>m(I(!0));return n||i},reposition:w}},Controller:function(e,t,n){var i,o,r,s,c=Me(e),l=c.on,u=c.emit,d=t.Move,f=d.getPosition,p=d.getLimit,g=d.toPosition,m=t.Slides,y=m.isEnough,_=m.getLength,b=n.omitEnd,w=e.is(Ot),E=e.is(Mt),k=a(I,!1),x=a(I,!0),S=n.start||0,L=S;function C(){o=_(!0),r=n.perMove,s=n.perPage,i=O();var e=ce(S,0,b?i:o-1);e!==S&&(S=e,d.reposition())}function A(){i!==O()&&u(Pe)}function I(e,t){var n=r||(N()?1:s),o=P(S+n*(e?-1:1),S,!(r||N()));return-1===o&&E&&!se(f(),p(!e),1)?e?0:i:t?o:M(o)}function P(t,a,c){if(y()||N()){var l=function(t){if(E&&"move"===n.trimSpace&&t!==S)for(var i=f();i===g(t,!0)&&ae(t,0,e.length-1,!n.rewind);)t<S?--t:++t;return t}(t);l!==t&&(a=t,t=l,c=!1),t<0||t>i?t=r||!ae(0,t,a,!0)&&!ae(i,a,t,!0)?w?c?t<0?-(o%s||s):o:t:n.rewind?t<0?i:0:-1:D(T(t)):c&&t!==a&&(t=D(T(a)+(t<a?-1:1)))}else t=-1;return t}function M(e){return w?(e+o)%o||0:e}function O(){for(var e=o-(N()||w&&r?1:s);b&&e-- >0;)if(g(o-1,!0)!==g(e,!0)){e++;break}return ce(e,0,o-1)}function D(e){return ce(N()?e:s*e,0,i)}function T(e){return N()?te(e,i):ie((e>=i?o-1:e)/s)}function z(e){e!==S&&(L=S,S=e)}function N(){return!v(n.focus)||n.isNavigation}function j(){return e.state.is([4,5])&&!!n.waitForTransition}return{mount:function(){C(),l([be,_e,Pe],C),l(Ee,A)},go:function(e,t,n){if(!j()){var o=function(e){var t=S;if(h(e)){var n=e.match(/([+\-<>])(\d+)?/)||[],o=n[1],r=n[2];"+"===o||"-"===o?t=P(S+ +(""+o+(+r||1)),S):">"===o?t=r?D(+r):k(!0):"<"===o&&(t=x(!0))}else t=w?e:ce(e,0,i);return t}(e),r=M(o);r>-1&&(t||r!==S)&&(z(r),d.move(o,r,L,n))}},scroll:function(e,n,o,r){t.Scroll.scroll(e,n,o,function(){var e=M(d.toIndex(f()));z(b?te(e,i):e),r&&r()})},getNext:k,getPrev:x,getAdjacent:I,getEnd:O,setIndex:z,getIndex:function(e){return e?L:S},toIndex:D,toPage:T,toDest:function(e){var t=d.toIndex(e);return E?ce(t,0,i):t},hasFocus:N,isBusy:j}},Arrows:function(e,t,n){var i,o,r=Me(e),s=r.on,c=r.bind,l=r.emit,u=n.classes,d=n.i18n,f=t.Elements,p=t.Controller,g=f.arrows,h=f.track,v=g,m=f.prev,y=f.next,_={};function b(){var e;!(e=n.arrows)||m&&y||(v=g||j("div",u.arrows),m=C(!0),y=C(!1),i=!0,S(v,[m,y]),!g&&L(v,h)),m&&y&&(O(_,{prev:m,next:y}),F(v,e?"":"none"),x(v,o=lt+"--"+n.direction),e&&(s([ge,me,_e,xe,Pe],A),c(y,"click",a(k,">")),c(m,"click",a(k,"<")),A(),N([m,y],Be,h.id),l("arrows:mounted",m,y))),s(be,w)}function w(){E(),b()}function E(){r.destroy(),Y(v,o),i?(W(g?[m,y]:v),m=y=null):z([m,y],et)}function k(e){p.go(e,!0)}function C(e){return X('<button class="'+u.arrow+" "+(e?u.prev:u.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40" focusable="false"><path d="'+(n.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z")+'" />')}function A(){if(m&&y){var t=e.index,n=p.getPrev(),i=p.getNext(),o=n>-1&&t<n?d.last:d.prev,r=i>-1&&t>i?d.first:d.next;m.disabled=n<0,y.disabled=i<0,N(m,Ue,o),N(y,Ue,r),l("arrows:updated",m,y,n,i)}}return{arrows:_,mount:b,destroy:E,update:A}},Autoplay:function(e,t,n){var i,o,r=Me(e),s=r.on,a=r.bind,c=r.emit,l=Oe(n.interval,e.go.bind(e,">"),function(e){var t=d.bar;t&&q(t,"width",100*e+"%"),c("autoplay:playing",e)}),u=l.isPaused,d=t.Elements,f=t.Elements,p=f.root,g=f.toggle,h=n.autoplay,v="pause"===h;function m(){u()&&t.Slides.isEnough()&&(l.start(!n.resetProgress),o=i=v=!1,b(),c(Ce))}function y(e){void 0===e&&(e=!0),v=!!e,b(),u()||(l.pause(),c(Ae))}function _(){v||(i||o?y(!1):m())}function b(){g&&(k(g,_t,!v),N(g,Ue,n.i18n[v?"play":"pause"]))}function w(e){var i=t.Slides.getAt(e);l.set(i&&+G(i.slide,Tt)||n.interval)}return{mount:function(){h&&(n.pauseOnHover&&a(p,"mouseenter mouseleave",function(e){i="mouseenter"===e.type,_()}),n.pauseOnFocus&&a(p,"focusin focusout",function(e){o="focusin"===e.type,_()}),g&&a(g,"click",function(){v?m():y(!0)}),s([ve,ke,_e],l.rewind),s(ve,w),g&&N(g,Be,d.track.id),v||m(),b())},destroy:l.cancel,play:m,pause:y,isPaused:u}},Cover:function(e,t,n){var i=Me(e).on;function o(e){t.Slides.forEach(function(t){var n=I(t.container||t.slide,"img");n&&n.src&&r(e,n,t)})}function r(e,t,n){n.style("background",e?'center/cover no-repeat url("'+t.src+'")':"",!0),F(t,e?"none":"")}return{mount:function(){n.cover&&(i(Ie,a(r,!0)),i([ge,be,_e],a(o,!0)))},destroy:a(o,!1)}},Scroll:function(e,t,n){var i,o,r=Me(e),s=r.on,c=r.emit,l=e.state.set,u=t.Move,d=u.getPosition,f=u.getLimit,p=u.exceededLimit,g=u.translate,h=e.is(Mt),v=1;function m(e,n,r,s,f){var g=d();if(b(),r&&(!h||!p())){var m=t.Layout.sliderSize(),w=le(e)*m*ie(re(e)/m)||0;e=u.toPosition(t.Controller.toDest(e%m))+w}var E=se(g,e,1);v=1,n=E?0:n||ne(re(e-g)/1.5,800),o=s,i=Oe(n,y,a(_,g,e,f),1),l(5),c(ke),i.start()}function y(){l(3),o&&o(),c(xe)}function _(e,t,i,r){var s,a,c=d(),l=(e+(t-e)*(s=r,(a=n.easingFunc)?a(s):1-Math.pow(1-s,4))-c)*v;g(c+l),h&&!i&&p()&&(v*=.6,re(l)<10&&m(f(p(!0)),600,!1,o,!0))}function b(){i&&i.cancel()}function w(){i&&!i.isPaused()&&(b(),y())}return{mount:function(){s(ve,b),s([be,_e],w)},destroy:b,scroll:m,cancel:w}},Drag:function(e,t,n){var i,o,r,s,a,c,u,d,p=Me(e),g=p.on,h=p.emit,v=p.bind,m=p.unbind,y=e.state,_=t.Move,b=t.Scroll,w=t.Controller,E=t.Elements.track,k=t.Media.reduce,x=t.Direction,S=x.resolve,L=x.orient,A=_.getPosition,I=_.exceededLimit,P=!1;function M(){var e=n.drag;H(!e),s="free"===e}function O(e){if(c=!1,!u){var t=G(e);i=e.target,o=n.noDrag,C(i,"."+gt+", ."+ut)||o&&C(i,o)||!t&&e.button||(w.isBusy()?U(e,!0):(d=t?E:window,a=y.is([4,5]),r=null,v(d,It,D,zt),v(d,Pt,T,zt),_.cancel(),b.cancel(),N(e)))}var i,o}function D(t){if(y.is(6)||(y.set(6),h("drag")),t.cancelable)if(a){_.translate(i+j(t)/(P&&e.is(Mt)?5:1));var o=q(t)>200,r=P!==(P=I());(o||r)&&N(t),c=!0,h("dragging"),U(t)}else(function(e){return re(j(e))>re(j(e,!0))})(t)&&(a=function(e){var t=n.dragMinThreshold,i=f(t),o=i&&t.mouse||0,r=(i?t.touch:+t)||10;return re(j(e))>(G(e)?r:o)}(t),U(t))}function T(i){y.is(6)&&(y.set(3),h("dragged")),a&&(function(i){var o=function(t){if(e.is(Ot)||!P){var n=q(t);if(n&&n<200)return j(t)/n}return 0}(i),r=function(e){return A()+le(e)*te(re(e)*(n.flickPower||600),s?1/0:t.Layout.listSize()*(n.flickMaxPages||1))}(o),a=n.rewind&&n.rewindByDrag;k(!1),s?w.scroll(r,0,n.snap):e.is(Dt)?w.go(L(le(o))<0?a?"<":"-":a?">":"+"):e.is(Mt)&&P&&a?w.go(I(!0)?">":"<"):w.go(w.toDest(r),!0),k(!0)}(i),U(i)),m(d,It,D),m(d,Pt,T),a=!1}function z(e){!u&&c&&U(e,!0)}function N(e){r=o,o=e,i=A()}function j(e,t){return R(e,t)-R(F(e),t)}function q(e){return $(e)-$(F(e))}function F(e){return o===e&&r||o}function R(e,t){return(G(e)?e.changedTouches[0]:e)["page"+S(t?"Y":"X")]}function G(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}function H(e){u=e}return{mount:function(){v(E,It,l,zt),v(E,Pt,l,zt),v(E,At,O,zt),v(E,"click",z,{capture:!0}),v(E,"dragstart",U),g([ge,be],M)},disable:H,isDragging:function(){return a}}},Keyboard:function(e,t,n){var i,o,r=Me(e),s=r.on,a=r.bind,l=r.unbind,u=e.root,d=t.Direction.resolve;function f(){var e=n.keyboard;e&&(i="global"===e?window:u,a(i,qt,h))}function p(){l(i,qt)}function g(){var e=o;o=!0,c(function(){o=e})}function h(t){if(!o){var n=jt(t);n===d(Te)?e.go("<"):n===d(ze)&&e.go(">")}}return{mount:function(){f(),s(be,p),s(be,f),s(ve,g)},destroy:p,disable:function(e){o=e}}},LazyLoad:function(e,t,n){var i=Me(e),o=i.on,s=i.off,c=i.bind,l=i.emit,u="sequential"===n.lazyLoad,d=[me,xe],f=[];function p(){r(f),t.Slides.forEach(function(e){J(e.slide,Gt).forEach(function(t){var i=G(t,Ft),o=G(t,Rt);if(i!==t.src||o!==t.srcset){var r=n.classes.spinner,s=t.parentElement,a=I(s,"."+r)||j("span",r,s);f.push([t,e,a]),t.src||F(t,"none")}})}),u?m():(s(d),o(d,g),g())}function g(){(f=f.filter(function(t){var i=n.perPage*((n.preloadPages||1)+1)-1;return!t[1].isWithin(e.index,i)||h(t)})).length||s(d)}function h(e){var t=e[0];x(e[1].slide,kt),c(t,"load error",a(v,e)),N(t,"src",G(t,Ft)),N(t,"srcset",G(t,Rt)),z(t,Ft),z(t,Rt)}function v(e,t){var n=e[0],i=e[1];Y(i.slide,kt),"error"!==t.type&&(W(e[2]),F(n,""),l(Ie,n,i),l(we)),u&&m()}function m(){f.length&&h(f.shift())}return{mount:function(){n.lazyLoad&&(p(),o(_e,p))},destroy:a(r,f),check:g}},Pagination:function(e,t,n){var i,o,c=Me(e),l=c.on,u=c.emit,d=c.bind,f=t.Slides,p=t.Elements,g=t.Controller,h=g.hasFocus,v=g.getIndex,m=g.go,y=t.Direction.resolve,_=p.pagination,b=[];function w(){i&&(W(_?s(i.children):i),Y(i,o),r(b),i=null),c.destroy()}function E(e){m(">"+e,!0)}function k(e,t){var n=b.length,i=jt(t),o=S(),r=-1;i===y(ze,!1,o)?r=++e%n:i===y(Te,!1,o)?r=(--e+n)%n:"Home"===i?r=0:"End"===i&&(r=n-1);var s=b[r];s&&(R(s.button),m(">"+r),U(t,!0))}function S(){return n.paginationDirection||n.direction}function L(e){return b[g.toPage(e)]}function C(){var e=L(v(!0)),t=L(v());if(e){var n=e.button;Y(n,_t),z(n,Xe),N(n,Ge,-1)}if(t){var o=t.button;x(o,_t),N(o,Xe,!0),N(o,Ge,"")}u("pagination:updated",{list:i,items:b},e,t)}return{items:b,mount:function t(){w(),l([be,_e,Pe],t);var r=n.pagination;_&&F(_,r?"":"none"),r&&(l([ve,ke,xe],C),function(){var t=e.length,r=n.classes,s=n.i18n,c=n.perPage,l=h()?g.getEnd()+1:oe(t/c);x(i=_||j("ul",r.pagination,p.track.parentElement),o=pt+"--"+S()),N(i,Re,"tablist"),N(i,Ue,s.select),N(i,Ye,S()===qe?"vertical":"");for(var u=0;u<l;u++){var v=j("li",null,i),m=j("button",{class:r.page,type:"button"},v),y=f.getIn(u).map(function(e){return e.slide.id}),w=!h()&&c>1?s.pageX:s.slideX;d(m,"click",a(E,u)),n.paginationKeyboard&&d(m,"keydown",a(k,u)),N(v,Re,"presentation"),N(m,Re,"tab"),N(m,Be,y.join(" ")),N(m,Ue,ue(w,u+1)),N(m,Ge,-1),b.push({li:v,button:m,page:u})}}(),C(),u("pagination:mounted",{list:i,items:b},L(e.index)))},destroy:w,getAt:L,update:C}},Sync:function(e,t,n){var i=n.isNavigation,o=n.slideFocus,s=[];function c(){var t,n;e.splides.forEach(function(t){t.isParent||(u(e,t.splide),u(t.splide,e))}),i&&((n=(t=Me(e)).on)(ye,f),n("sk",p),n([ge,be],d),s.push(t),t.emit(Le,e.splides))}function l(){s.forEach(function(e){e.destroy()}),r(s)}function u(e,t){var n=Me(e);n.on(ve,function(e,n,i){t.go(t.is(Ot)?i:e)}),s.push(n)}function d(){N(t.Elements.list,Ye,n.direction===qe?"vertical":"")}function f(t){e.go(t.index)}function p(e,t){w(Ht,jt(t))&&(f(e),U(t))}return{setup:a(t.Media.set,{slideFocus:v(o)?i:o},!0),mount:c,destroy:l,remount:function(){l(),c()}}},Wheel:function(e,t,n){var i=Me(e).bind,o=0;function r(i){if(i.cancelable){var r=i.deltaY,s=r<0,a=$(i),c=n.wheelMinThreshold||0,l=n.wheelSleep||0;re(r)>c&&a-o>l&&(e.go(s?"<":">"),o=a),function(i){return!n.releaseWheel||e.state.is(4)||-1!==t.Controller.getAdjacent(i)}(s)&&U(i)}}return{mount:function(){n.wheel&&i(t.Elements.track,"wheel",r,zt)}}},Live:function(e,t,n){var i=Me(e).on,o=t.Elements.track,r=n.live&&!n.isNavigation,s=j("span",mt),c=Oe(90,a(l,!1));function l(e){N(o,Qe,e),e?(S(o,s),c.start()):(W(s),c.cancel())}function u(e){r&&N(o,Ke,e?"off":"polite")}return{mount:function(){r&&(u(!t.Autoplay.isPaused()),N(o,Ze,!0),s.textContent="…",i(Ce,a(u,!0)),i(Ae,a(u,!1)),i([me,xe],a(l,!0)))},disable:u,destroy:function(){z(o,[Ke,Ze,Qe]),W(s)}}}}),Wt={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:Ct,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function Xt(e,t,n){var i=t.Slides;function o(){i.forEach(function(e){e.style("transform","translateX(-"+100*e.index+"%)")})}return{mount:function(){Me(e).on([ge,_e],o)},start:function(e,t){i.style("transition","opacity "+n.speed+"ms "+n.easing),c(t)},cancel:l}}function Ut(e,t,n){var i,o=t.Move,r=t.Controller,s=t.Scroll,c=t.Elements.list,l=a(q,c,"transition");function u(){l(""),s.cancel()}return{mount:function(){Me(e).bind(c,"transitionend",function(e){e.target===c&&i&&(u(),i())})},start:function(t,a){var c=o.toPosition(t,!0),u=o.getPosition(),d=function(t){var i=n.rewindSpeed;if(e.is(Mt)&&i){var o=r.getIndex(!0),s=r.getEnd();if(0===o&&t>=s||o>=s&&0===t)return i}return n.speed}(t);re(c-u)>=1&&d>=1?n.useScroll?s.scroll(c,d,!1,a):(l("transform "+d+"ms "+n.easing),o.translate(c,!0),i=a):(o.jump(t),a())},cancel:u}}var Vt=function(){function e(t,n){var i;this.event=Me(),this.Components={},this.state=(i=1,{set:function(e){i=e},is:function(e){return w(_(e),i)}}),this.splides=[],this._o={},this._E={};var o=h(t)?V(document,t):t;ee(o,o+" is invalid."),this.root=o,n=D({label:G(o,Ue)||"",labelledby:G(o,Ve)||""},Wt,e.defaults,n||{});try{D(n,JSON.parse(G(o,Z)))}catch(e){ee(!1,"Invalid JSON")}this._o=Object.create(D({},n))}var t,n,o=e.prototype;return o.mount=function(e,t){var n=this,i=this.state,o=this.Components;return ee(i.is([1,7]),"Already mounted!"),i.set(1),this._C=o,this._T=t||this._T||(this.is(Dt)?Xt:Ut),this._E=e||this._E,M(O({},Bt,this._E,{Transition:this._T}),function(e,t){var i=e(n,o,n._o);o[t]=i,i.setup&&i.setup()}),M(o,function(e){e.mount&&e.mount()}),this.emit(ge),x(this.root,yt),i.set(3),this.emit(he),this},o.sync=function(e){return this.splides.push({splide:e}),e.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._C.Sync.remount(),e.Components.Sync.remount()),this},o.go=function(e){return this._C.Controller.go(e),this},o.on=function(e,t){return this.event.on(e,t),this},o.off=function(e){return this.event.off(e),this},o.emit=function(e){var t;return(t=this.event).emit.apply(t,[e].concat(s(arguments,1))),this},o.add=function(e,t){return this._C.Slides.add(e,t),this},o.remove=function(e){return this._C.Slides.remove(e),this},o.is=function(e){return this._o.type===e},o.refresh=function(){return this.emit(_e),this},o.destroy=function(e){void 0===e&&(e=!0);var t=this.event,n=this.state;return n.is(1)?Me(this).on(he,this.destroy.bind(this,e)):(M(this._C,function(t){t.destroy&&t.destroy(e)},!0),t.emit(Se),t.destroy(),e&&r(this.splides),n.set(7)),this},t=e,(n=[{key:"options",get:function(){return this._o},set:function(e){this._C.Media.set(e,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Jt=Vt;Jt.defaults={},Jt.STATES={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7},window.recipe_global=class{constructor(){}},new(t())({elements_selector:".dr-lazy"}).update(),document.addEventListener("DOMContentLoaded",function(){document.addEventListener("click",function(e){const t=e.target.closest(".dr-recipe-wishlist span.dr-bookmark-wishlist");if(!t)return;e.preventDefault();const n=t.getAttribute("data-recipe-id"),i=t.classList.contains("dr-wishlist-is-bookmarked")?"remove":"add";t.classList.add("loading");const o=new FormData;o.append("action","delicious_recipes_wishlist"),o.append("add_remove",i),o.append("recipe_id",n),fetch(delicious_recipes.ajax_url,{method:"POST",body:o}).then(e=>e.json()).then(e=>{if(e&&e.data){const n=t.querySelector(".dr-wishlist-total"),o=t.querySelector(".dr-wishlist-info");if(n&&(n.innerHTML=e.data.wishlists),t.hasAttribute("data-manage-labels")&&o){const n=e.data.isBookmarked||"add"===i,r=t.getAttribute("data-label-added")||e.data.message||o.textContent,s=t.getAttribute("data-label-default")||o.textContent;o.textContent=n?r:s}e.data.isBookmarked||"add"===i?t.classList.add("dr-wishlist-is-bookmarked"):t.classList.remove("dr-wishlist-is-bookmarked")}}).finally(()=>{if(t.classList.remove("loading"),"undefined"!=typeof recipeProGlobal&&t.closest(".dr-floating-box .dr-add-to-wishlist-single .dr-recipe-wishlist")){const e=window.location.href,n=recipeProGlobal.filter(t=>t.path===e);n[0]&&(n[0].wishlist=t.closest(".dr-recipe-wishlist").innerHTML)}})}),function(){const e=document.querySelectorAll(".dr-recipe-wishlist span.dr-popup-user__registration");if(!e.length)return;const t=document.getElementById("dr-user__registration-login-popup");if(!t)return;e.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),t.style.display="flex",t.style.position="fixed",t.style.left="0",t.style.top="0",t.style.width="100%",t.style.height="100%",t.style.zIndex="999999",t.style.alignItems="center",t.style.justifyContent="center",document.body.style.overflow="hidden"})});const n=document.querySelector(".dr-user__registration-login-popup-close");n&&(n.onclick=function(){t.style.display="none",document.body.style.overflow="",t.style.position="",t.style.left="",t.style.top="",t.style.width="",t.style.height="",t.style.zIndex="",t.style.alignItems="",t.style.justifyContent=""}),window.addEventListener("click",function(e){e.target===t&&(t.style.display="none",document.body.style.overflow="",t.style.position="",t.style.left="",t.style.top="",t.style.width="",t.style.height="",t.style.zIndex="",t.style.alignItems="",t.style.justifyContent="")});const i=document.querySelector("form[name='dr-form__log-in']");i&&i.addEventListener("submit",function(e){e.preventDefault();const t=i.querySelector('input[name="username"]').value,n=i.querySelector('input[name="password"]').value,o=i.querySelector('input[name="rememberme"]').value,r=i.querySelector('input[name="login"]').value,s=i.querySelector('input[name="delicious_recipes_user_login_nonce"]').value;i.classList.add("dr-loading");const a=document.querySelector(".delicious-recipes-success-msg"),c=document.querySelector(".delicious-recipes-error-msg");a&&(a.style.display="none"),c&&(c.style.display="none");const l=new FormData;l.append("action","delicious_recipes_process_login"),l.append("username",t),l.append("password",n),l.append("rememberme",o),l.append("login",r),l.append("delicious_recipes_user_login_nonce",s),l.append("calling_action","delicious_recipes_modal_login"),fetch(delicious_recipes.ajax_url,{method:"POST",body:l}).then(e=>e.json()).then(e=>{e.success?(document.querySelectorAll(".dr-recipe-wishlist > span").forEach(function(e){e.classList.remove("dr-popup-user__registration"),e.classList.add("dr-bookmark-wishlist")}),a&&(a.innerHTML=e.data.success,a.style.display="block"),location.reload()):c&&(c.innerHTML=e.data.error,c.style.display="block")}).finally(()=>{i.classList.remove("dr-loading")})})}(),function(){const e=document.querySelectorAll("[data-liked_recipe_id]");if(e.length){const t=Array.from(e).map(e=>e.getAttribute("data-liked_recipe_id")).filter(Boolean);if(t.length){const n=new FormData;n.append("action","recipe_get_likes"),t.forEach(e=>n.append("ids[]",e)),fetch(delicious_recipes.ajax_url,{method:"POST",body:n}).then(e=>e.json()).then(t=>{if(t.success&&t.data?.recipes)for(const e in t.data.recipes){const n=document.querySelector(`[data-liked_recipe_id="${e}"] .dr-likes-total`),i=document.querySelector(`[data-liked_recipe_id="${e}"] .dr_like__recipe`);n&&i&&(n.textContent=t.data.recipes[e].likes_count,i.setAttribute("title",t.data.recipes[e].likes),i.classList.remove("loading"))}else e.forEach(e=>{const t=e.querySelector(".dr_like__recipe");t&&t.classList.remove("loading")})}).catch(()=>{e.forEach(e=>{const t=e.querySelector(".dr_like__recipe");t&&t.classList.remove("loading")})})}}if(void 0!==delicious_recipes.isUserLoggedIn&&""===delicious_recipes.isUserLoggedIn&&window.location.pathname.includes("/recipe/")){const e=document.querySelector(".dr_like__recipe");if(e){const t=e.id.split("-").pop();let n="";if("undefined"!=typeof Storage&&(n=localStorage.getItem("delicious_recipes_user_identifier_for_recipe_likes"),n)){const i=new FormData;i.append("action","delicious_recipes_check_like_for_logged_out_users"),i.append("id",t),i.append("unique_user_id",n),e.classList.add("loading"),fetch(delicious_recipes.ajax_url,{method:"POST",body:i}).then(e=>e.json()).then(t=>{t.data&&!t.data.can_like&&e.classList.toggle("recipe-liked",!1)}).finally(()=>{e.classList.remove("loading")})}}}document.addEventListener("click",function(e){const t=e.target.closest(".dr_like__recipe");if(!t)return;e.preventDefault();const n=t.id.split("-").pop();let i,o=localStorage.getItem("delicious_recipes_user_identifier_for_recipe_likes");o||(o="dr_user_identifier_"+Math.random().toString(36).substring(2,15),localStorage.setItem("delicious_recipes_user_identifier_for_recipe_likes",o)),t.classList.toggle("recipe-liked"),i=t.classList.contains("recipe-liked")?"remove":"add",t.classList.add("loading");const r=new FormData;r.append("action","recipe_likes"),r.append("add_remove",i),r.append("id",n),r.append("unique_user_id",o),fetch(delicious_recipes.ajax_url,{method:"POST",body:r}).then(e=>e.json()).then(e=>{if(e.data){t.setAttribute("title",e.data.likes);const n=t.querySelector(".dr-likes-total");n&&(n.innerHTML=e.data.likes_count)}}).finally(()=>{if(t.classList.remove("loading"),"undefined"!=typeof recipeProGlobal&&t.closest(".dr-floating-box .post-like .single-like")){const e=window.location.href,n=recipeProGlobal.filter(t=>t.path===e);n[0]&&(n[0].likes=t.closest(".single-like").innerHTML)}})})}(),document.querySelectorAll(".post-share a.meta-title").forEach(function(e){e.addEventListener("click",function(e){e.stopPropagation();const t=this.parentElement.querySelector(".social-networks");t&&(t.classList.contains("active")?t.classList.remove("active"):t.classList.add("active"))})}),document.querySelectorAll(".dr-category a, .post-navigation article .dr-category > span").forEach(function(e){var t=e.offsetWidth,n=e.querySelector(".cat-name");if(n){var i=n.offsetWidth,o=(parseInt(i)-parseInt(t))/2;document.body.classList.contains("rtl")?(n.style.left="auto",n.style.right=-o+"px"):n.style.left=-o+"px"}});var e={on:function(e,t,n){document.addEventListener(e,function(e){for(var i=e.target;i&&i!=this;i=i.parentNode)if(i instanceof Element&&i.matches(t)){n.call(i,e);break}},!1)}};window.delicious_recipes.utilities=e})}(),(drExports=void 0===drExports?{}:drExports).wpdPublic={}}();
var drExports;!function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var t="(prefers-reduced-motion: reduce)";function n(e){e.length=0}function i(e,t,n){return Array.prototype.slice.call(e,t,n)}function o(e){return e.bind.apply(e,[null].concat(i(arguments,1)))}var r=setTimeout,s=function(){};function a(e){return requestAnimationFrame(e)}function c(e,t){return typeof t===e}function u(e){return!v(e)&&c("object",e)}var l=Array.isArray,d=o(c,"function"),f=o(c,"string"),p=o(c,"undefined");function v(e){return null===e}function g(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch(e){return!1}}function h(e){return l(e)?e:[e]}function m(e,t){h(e).forEach(t)}function y(e,t){return e.indexOf(t)>-1}function b(e,t){return e.push.apply(e,h(t)),e}function _(e,t,n){e&&m(t,function(t){t&&e.classList[n?"add":"remove"](t)})}function w(e,t){_(e,f(t)?t.split(" "):t,!0)}function S(e,t){m(t,e.appendChild.bind(e))}function k(e,t){m(e,function(e){var n=(t||e).parentNode;n&&n.insertBefore(e,t)})}function E(e,t){return g(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function x(e,t){var n=e?i(e.children):[];return t?n.filter(function(e){return E(e,t)}):n}function L(e,t){return t?x(e,t)[0]:e.firstElementChild}var P=Object.keys;function C(e,t,n){return e&&(n?P(e).reverse():P(e)).forEach(function(n){"__proto__"!==n&&t(e[n],n)}),e}function A(e){return i(arguments,1).forEach(function(t){C(t,function(n,i){e[i]=t[i]})}),e}function D(e){return i(arguments,1).forEach(function(t){C(t,function(t,n){l(t)?e[n]=t.slice():u(t)?e[n]=D({},u(e[n])?e[n]:{},t):e[n]=t})}),e}function M(e,t){m(t||P(e),function(t){delete e[t]})}function I(e,t){m(e,function(e){m(t,function(t){e&&e.removeAttribute(t)})})}function T(e,t,n){u(t)?C(t,function(t,n){T(e,n,t)}):m(e,function(e){v(n)||""===n?I(e,t):e.setAttribute(t,String(n))})}function q(e,t,n){var i=document.createElement(e);return t&&(f(t)?w(i,t):T(i,t)),n&&S(n,i),i}function z(e,t,n){if(p(n))return getComputedStyle(e)[t];v(n)||(e.style[t]=""+n)}function O(e,t){z(e,"display",t)}function j(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function N(e,t){return e.getAttribute(t)}function F(e,t){return e&&e.classList.contains(t)}function R(e){return e.getBoundingClientRect()}function G(e){m(e,function(e){e&&e.parentNode&&e.parentNode.removeChild(e)})}function H(e){return L((new DOMParser).parseFromString(e,"text/html").body)}function B(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function W(e,t){return e&&e.querySelector(t)}function X(e,t){return t?i(e.querySelectorAll(t)):[]}function U(e,t){_(e,t,!1)}function Y(e){return e.timeStamp}function J(e){return f(e)?e:e?e+"px":""}var K="splide",V="data-"+K;function $(e,t){if(!e)throw new Error("["+K+"] "+(t||""))}var Q=Math.min,Z=Math.max,ee=Math.floor,te=Math.ceil,ne=Math.abs;function ie(e,t,n){return ne(e-t)<n}function oe(e,t,n,i){var o=Q(t,n),r=Z(t,n);return i?o<e&&e<r:o<=e&&e<=r}function re(e,t,n){var i=Q(t,n),o=Z(t,n);return Q(Z(i,e),o)}function se(e){return+(e>0)-+(e<0)}function ae(e,t){return m(t,function(t){e=e.replace("%s",""+t)}),e}function ce(e){return e<10?"0"+e:""+e}var ue={};function le(){var e=[];function t(e,t,n){m(e,function(e){e&&m(t,function(t){t.split(" ").forEach(function(t){var i=t.split(".");n(e,i[0],i[1])})})})}return{bind:function(n,i,o,r){t(n,i,function(t,n,i){var s="addEventListener"in t,a=s?t.removeEventListener.bind(t,n,o,r):t.removeListener.bind(t,o);s?t.addEventListener(n,o,r):t.addListener(o),e.push([t,n,i,o,a])})},unbind:function(n,i,o){t(n,i,function(t,n,i){e=e.filter(function(e){return!!(e[0]!==t||e[1]!==n||e[2]!==i||o&&e[3]!==o)||(e[4](),!1)})})},dispatch:function(e,t,n){var i,o=!0;return"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:o,detail:n}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,o,!1,n),e.dispatchEvent(i),i},destroy:function(){e.forEach(function(e){e[4]()}),n(e)}}}var de="mounted",fe="ready",pe="move",ve="moved",ge="click",he="refresh",me="updated",ye="resize",be="resized",_e="scroll",we="scrolled",Se="destroy",ke="navigation:mounted",Ee="autoplay:play",xe="autoplay:pause",Le="lazyload:loaded",Pe="ei";function Ce(e){var t=e?e.event.bus:document.createDocumentFragment(),n=le();return e&&e.event.on(Se,n.destroy),A(n,{bus:t,on:function(e,i){n.bind(t,h(e).join(" "),function(e){i.apply(i,l(e.detail)?e.detail:[])})},off:o(n.unbind,t),emit:function(e){n.dispatch(t,e,i(arguments,1))}})}function Ae(e,t,n,i){var o,r,s=Date.now,c=0,u=!0,l=0;function d(){if(!u){if(c=e?Q((s()-o)/e,1):1,n&&n(c),c>=1&&(t(),o=s(),i&&++l>=i))return f();r=a(d)}}function f(){u=!0}function p(){r&&cancelAnimationFrame(r),c=0,r=0,u=!0}return{start:function(t){t||p(),o=s()-(t?c*e:0),u=!1,r=a(d)},rewind:function(){o=s(),c=0,n&&n(c)},pause:f,cancel:p,set:function(t){e=t},isPaused:function(){return u}}}var De="Arrow",Me=De+"Left",Ie=De+"Right",Te=De+"Up",qe=De+"Down",ze="ttb",Oe={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Te,Ie],ArrowRight:[qe,Me]};var je="role",Ne="tabindex",Fe="aria-",Re=Fe+"controls",Ge=Fe+"current",He=Fe+"selected",Be=Fe+"label",We=Fe+"labelledby",Xe=Fe+"hidden",Ue=Fe+"orientation",Ye=Fe+"roledescription",Je=Fe+"live",Ke=Fe+"busy",Ve=Fe+"atomic",$e=[je,Ne,"disabled",Re,Ge,Be,We,Xe,Ue,Ye],Qe=K+"__",Ze="is-",et=K,tt=Qe+"track",nt=Qe+"list",it=Qe+"slide",ot=it+"--clone",rt=it+"__container",st=Qe+"arrows",at=Qe+"arrow",ct=at+"--prev",ut=at+"--next",lt=Qe+"pagination",dt=lt+"__page",ft=Qe+"progress__bar",pt=Qe+"toggle",vt=Qe+"sr",gt=Ze+"initialized",ht=Ze+"active",mt=Ze+"prev",yt=Ze+"next",bt=Ze+"visible",_t=Ze+"loading",wt=Ze+"focus-in",St=Ze+"overflow",kt=[ht,bt,mt,yt,_t,wt,St],Et={slide:it,clone:ot,arrows:st,arrow:at,prev:ct,next:ut,pagination:lt,page:dt,spinner:Qe+"spinner"},xt="touchstart mousedown",Lt="touchmove mousemove",Pt="touchend touchcancel mouseup click",Ct="slide",At="loop",Dt="fade";var Mt=V+"-interval",It={passive:!1,capture:!0},Tt={Spacebar:" ",Right:Ie,Left:Me,Up:Te,Down:qe};function qt(e){return e=f(e)?e:e.key,Tt[e]||e}var zt="keydown",Ot=V+"-lazy",jt=Ot+"-srcset",Nt="["+Ot+"], ["+jt+"]",Ft=[" ","Enter"],Rt=Object.freeze({__proto__:null,Media:function(e,n,i){var o=e.state,r=i.breakpoints||{},s=i.reducedMotion||{},a=le(),c=[];function u(e){e&&a.destroy()}function l(e,t){var n=matchMedia(t);a.bind(n,"change",d),c.push([e,n])}function d(){var t=o.is(7),n=i.direction,r=c.reduce(function(e,t){return D(e,t[1].matches?t[0]:{})},{});M(i),f(r),i.destroy?e.destroy("completely"===i.destroy):t?(u(!0),e.mount()):n!==i.direction&&e.refresh()}function f(t,n,r){D(i,t),n&&D(Object.getPrototypeOf(i),t),!r&&o.is(1)||e.emit(me,i)}return{setup:function(){var e="min"===i.mediaQuery;P(r).sort(function(t,n){return e?+t-+n:+n-+t}).forEach(function(t){l(r[t],"("+(e?"min":"max")+"-width:"+t+"px)")}),l(s,t),d()},destroy:u,reduce:function(e){matchMedia(t).matches&&(e?D(i,s):M(i,P(s)))},set:f}},Direction:function(e,t,n){return{resolve:function(e,t,i){var o="rtl"!==(i=i||n.direction)||t?i===ze?0:-1:1;return Oe[e]&&Oe[e][o]||e.replace(/width|left|right/i,function(e,t){var n=Oe[e.toLowerCase()][o]||e;return t>0?n.charAt(0).toUpperCase()+n.slice(1):n})},orient:function(e){return e*("rtl"===n.direction?1:-1)}}},Elements:function(e,t,i){var o,r,s,a=Ce(e),c=a.on,u=a.bind,l=e.root,f=i.i18n,p={},v=[],g=[],h=[];function m(){var e,t,n;o=k("."+tt),r=L(o,"."+nt),$(o&&r,"A track/list element is missing."),b(v,x(r,"."+it+":not(."+ot+")")),C({arrows:st,pagination:lt,prev:ct,next:ut,bar:ft,toggle:pt},function(e,t){p[t]=k("."+e)}),A(p,{root:l,track:o,list:r,slides:v}),t=l.id||""+(e=K)+ce(ue[e]=(ue[e]||0)+1),n=i.role,l.id=t,o.id=o.id||t+"-track",r.id=r.id||t+"-list",!N(l,je)&&"SECTION"!==l.tagName&&n&&T(l,je,n),T(l,Ye,f.carousel),T(r,je,"presentation"),S()}function y(e){var t=$e.concat("style");n(v),U(l,g),U(o,h),I([o,r],t),I(l,e?t:["style",Ye])}function S(){U(l,g),U(o,h),g=P(et),h=P(tt),w(l,g),w(o,h),T(l,Be,i.label),T(l,We,i.labelledby)}function k(e){var t=W(l,e);return t&&function(e,t){if(d(e.closest))return e.closest(t);for(var n=e;n&&1===n.nodeType&&!E(n,t);)n=n.parentElement;return n}(t,"."+et)===l?t:void 0}function P(e){return[e+"--"+i.type,e+"--"+i.direction,i.drag&&e+"--draggable",i.isNavigation&&e+"--nav",e===et&&ht]}return A(p,{setup:m,mount:function(){c(he,y),c(he,m),c(me,S),u(document,xt+" keydown",function(e){s="keydown"===e.type},{capture:!0}),u(l,"focusin",function(){_(l,wt,!!s)})},destroy:y})},Slides:function(e,t,i){var r=Ce(e),s=r.on,a=r.emit,c=r.bind,u=t.Elements,l=u.slides,p=u.list,v=[];function b(){l.forEach(function(e,t){P(e,t,-1)})}function x(){A(function(e){e.destroy()}),n(v)}function P(t,n,i){var r=function(e,t,n,i){var r,s=Ce(e),a=s.on,c=s.emit,u=s.bind,l=e.Components,d=e.root,f=e.options,p=f.isNavigation,v=f.updateOnMove,g=f.i18n,h=f.pagination,m=f.slideFocus,y=l.Direction.resolve,b=N(i,"style"),w=N(i,Be),S=n>-1,k=L(i,"."+rt);function E(){var o=e.splides.map(function(e){var n=e.splide.Components.Slides.getAt(t);return n?n.slide.id:""}).join(" ");T(i,Be,ae(g.slideX,(S?n:t)+1)),T(i,Re,o),T(i,je,m?"button":""),m&&I(i,Ye)}function x(){r||P()}function P(){if(!r){var n=e.index;(o=C())!==F(i,ht)&&(_(i,ht,o),T(i,Ge,p&&o||""),c(o?"active":"inactive",A)),function(){var t=function(){if(e.is(Dt))return C();var t=R(l.Elements.track),n=R(i),o=y("left",!0),r=y("right",!0);return ee(t[o])<=te(n[o])&&ee(n[r])<=te(t[r])}(),n=!t&&(!C()||S);if(e.state.is([4,5])||T(i,Xe,n||""),T(X(i,f.focusableNodes||""),Ne,n?-1:""),m&&T(i,Ne,n?-1:0),t!==F(i,bt)&&(_(i,bt,t),c(t?"visible":"hidden",A)),!t&&document.activeElement===i){var o=l.Slides.getAt(e.index);o&&j(o.slide)}}(),_(i,mt,t===n-1),_(i,yt,t===n+1)}var o}function C(){var i=e.index;return i===t||f.cloneStatus&&i===n}var A={index:t,slideIndex:n,slide:i,container:k,isClone:S,mount:function(){S||(i.id=d.id+"-slide"+ce(t+1),T(i,je,h?"tabpanel":"group"),T(i,Ye,g.slide),T(i,Be,w||ae(g.slideLabel,[t+1,e.length]))),u(i,"click",o(c,ge,A)),u(i,"keydown",o(c,"sk",A)),a([ve,"sh",we],P),a(ke,E),v&&a(pe,x)},destroy:function(){r=!0,s.destroy(),U(i,kt),I(i,$e),T(i,"style",b),T(i,Be,w||"")},update:P,style:function(e,t,n){z(n&&k||i,e,t)},isWithin:function(n,i){var o=ne(n-t);return S||!f.rewind&&!e.is(At)||(o=Q(o,e.length-o)),o<=i}};return A}(e,n,i,t);r.mount(),v.push(r),v.sort(function(e,t){return e.index-t.index})}function C(e){return e?D(function(e){return!e.isClone}):v}function A(e,t){C(t).forEach(e)}function D(e){return v.filter(d(e)?e:function(t){return f(e)?E(t.slide,e):y(h(e),t.index)})}return{mount:function(){b(),s(he,x),s(he,b)},destroy:x,update:function(){A(function(e){e.update()})},register:P,get:C,getIn:function(e){var n=t.Controller,o=n.toIndex(e),r=n.hasFocus()?1:i.perPage;return D(function(e){return oe(e.index,o,o+r-1)})},getAt:function(e){return D(e)[0]},add:function(e,t){m(e,function(e){if(f(e)&&(e=H(e)),g(e)){var n=l[t];n?k(e,n):S(p,e),w(e,i.classes.slide),r=e,s=o(a,ye),u=X(r,"img"),(d=u.length)?u.forEach(function(e){c(e,"load error",function(){--d||s()})}):s()}var r,s,u,d}),a(he)},remove:function(e){G(D(e).map(function(e){return e.slide})),a(he)},forEach:A,filter:D,style:function(e,t,n){A(function(i){i.style(e,t,n)})},getLength:function(e){return e?l.length:v.length},isEnough:function(){return v.length>i.perPage}}},Layout:function(e,t,n){var i,r,s,a=Ce(e),c=a.on,l=a.bind,d=a.emit,f=t.Slides,p=t.Direction.resolve,v=t.Elements,g=v.root,h=v.track,m=v.list,y=f.getAt,b=f.style;function w(){i=n.direction===ze,z(g,"maxWidth",J(n.width)),z(h,p("paddingLeft"),k(!1)),z(h,p("paddingRight"),k(!0)),S(!0)}function S(e){var t,o=R(g);(e||r.width!==o.width||r.height!==o.height)&&(z(h,"height",(t="",i&&($(t=E(),"height or heightRatio is missing."),t="calc("+t+" - "+k(!1)+" - "+k(!0)+")"),t)),b(p("marginRight"),J(n.gap)),b("width",n.autoWidth?null:J(n.fixedWidth)||(i?"":x())),b("height",J(n.fixedHeight)||(i?n.autoHeight?null:x():E()),!0),r=o,d(be),s!==(s=M())&&(_(g,St,s),d("overflow",s)))}function k(e){var t=n.padding,i=p(e?"right":"left");return t&&J(t[i]||(u(t)?0:t))||"0px"}function E(){return J(n.height||R(m).width*n.heightRatio)}function x(){var e=J(n.gap);return"calc((100%"+(e&&" + "+e)+")/"+(n.perPage||1)+(e&&" - "+e)+")"}function L(){return R(m)[p("width")]}function P(e,t){var n=y(e||0);return n?R(n.slide)[p("width")]+(t?0:D()):0}function C(e,t){var n=y(e);if(n){var i=R(n.slide)[p("right")],o=R(m)[p("left")];return ne(i-o)+(t?0:D())}return 0}function A(t){return C(e.length-1)-C(0)+P(0,t)}function D(){var e=y(0);return e&&parseFloat(z(e.slide,p("marginRight")))||0}function M(){return e.is(Dt)||A(!0)>L()}return{mount:function(){var e,t;w(),l(window,"resize load",(e=o(d,ye),t=Ae(0,e,null,1),function(){t.isPaused()&&t.start()})),c([me,he],w),c(ye,S)},resize:S,listSize:L,slideSize:P,sliderSize:A,totalSize:C,getPadding:function(e){return parseFloat(z(h,p("padding"+(e?"Right":"Left"))))||0},isOverflow:M}},Clones:function(e,t,i){var o,r=Ce(e),s=r.on,a=t.Elements,c=t.Slides,u=t.Direction.resolve,l=[];function d(){s(he,f),s([me,ye],g),(o=h())&&(function(t){var n=c.get().slice(),o=n.length;if(o){for(;n.length<t;)b(n,n);b(n.slice(-t),n.slice(0,t)).forEach(function(r,s){var u=s<t,d=function(t,n){var o=t.cloneNode(!0);return w(o,i.classes.clone),o.id=e.root.id+"-clone"+ce(n+1),o}(r.slide,s);u?k(d,n[0].slide):S(a.list,d),b(l,d),c.register(d,s-t+(u?0:o),r.index)})}}(o),t.Layout.resize(!0))}function f(){v(),d()}function v(){G(l),n(l),r.destroy()}function g(){var e=h();o!==e&&(o<e||!e)&&r.emit(he)}function h(){var n=i.clones;if(e.is(At)){if(p(n)){var o=i[u("fixedWidth")]&&t.Layout.slideSize(0);n=o&&te(R(a.track)[u("width")]/o)||i[u("autoWidth")]&&e.length||2*i.perPage}}else n=0;return n}return{mount:d,destroy:v}},Move:function(e,t,n){var i,o=Ce(e),r=o.on,s=o.emit,a=e.state.set,c=t.Layout,u=c.slideSize,l=c.getPadding,d=c.totalSize,f=c.listSize,v=c.sliderSize,g=t.Direction,h=g.resolve,m=g.orient,y=t.Elements,b=y.list,_=y.track;function w(){t.Controller.isBusy()||(t.Scroll.cancel(),S(e.index),t.Slides.update())}function S(e){k(P(e,!0))}function k(n,i){if(!e.is(Dt)){var o=i?n:function(n){if(e.is(At)){var i=L(n),o=i>t.Controller.getEnd();(i<0||o)&&(n=E(n,o))}return n}(n);z(b,"transform","translate"+h("X")+"("+o+"px)"),n!==o&&s("sh")}}function E(e,t){var n=e-A(t),i=v();return e-m(i*(te(ne(n)/i)||1))*(t?1:-1)}function x(){k(C(),!0),i.cancel()}function L(e){for(var n=t.Slides.get(),i=0,o=1/0,r=0;r<n.length;r++){var s=n[r].index,a=ne(P(s,!0)-e);if(!(a<=o))break;o=a,i=s}return i}function P(t,i){var o=m(d(t-1)-function(e){var t=n.focus;return"center"===t?(f()-u(e,!0))/2:+t*u(e)||0}(t));return i?function(t){return n.trimSpace&&e.is(Ct)&&(t=re(t,0,m(v(!0)-f()))),t}(o):o}function C(){var e=h("left");return R(b)[e]-R(_)[e]+m(l(!1))}function A(e){return P(e?t.Controller.getEnd():0,!!n.trimSpace)}return{mount:function(){i=t.Transition,r([de,be,me,he],w)},move:function(e,t,n,o){var r,c;e!==t&&(r=e>n,c=m(E(C(),r)),r?c>=0:c<=b[h("scrollWidth")]-R(_)[h("width")])&&(x(),k(E(C(),e>n),!0)),a(4),s(pe,t,n,e),i.start(t,function(){a(3),s(ve,t,n,e),o&&o()})},jump:S,translate:k,shift:E,cancel:x,toIndex:L,toPosition:P,getPosition:C,getLimit:A,exceededLimit:function(e,t){t=p(t)?C():t;var n=!0!==e&&m(t)<m(A(!1)),i=!1!==e&&m(t)>m(A(!0));return n||i},reposition:w}},Controller:function(e,t,n){var i,r,s,a,c=Ce(e),u=c.on,l=c.emit,d=t.Move,v=d.getPosition,g=d.getLimit,h=d.toPosition,m=t.Slides,y=m.isEnough,b=m.getLength,_=n.omitEnd,w=e.is(At),S=e.is(Ct),k=o(A,!1),E=o(A,!0),x=n.start||0,L=x;function P(){r=b(!0),s=n.perMove,a=n.perPage,i=I();var e=re(x,0,_?i:r-1);e!==x&&(x=e,d.reposition())}function C(){i!==I()&&l(Pe)}function A(e,t){var n=s||(O()?1:a),o=D(x+n*(e?-1:1),x,!(s||O()));return-1===o&&S&&!ie(v(),g(!e),1)?e?0:i:t?o:M(o)}function D(t,o,c){if(y()||O()){var u=function(t){if(S&&"move"===n.trimSpace&&t!==x)for(var i=v();i===h(t,!0)&&oe(t,0,e.length-1,!n.rewind);)t<x?--t:++t;return t}(t);u!==t&&(o=t,t=u,c=!1),t<0||t>i?t=s||!oe(0,t,o,!0)&&!oe(i,o,t,!0)?w?c?t<0?-(r%a||a):r:t:n.rewind?t<0?i:0:-1:T(q(t)):c&&t!==o&&(t=T(q(o)+(t<o?-1:1)))}else t=-1;return t}function M(e){return w?(e+r)%r||0:e}function I(){for(var e=r-(O()||w&&s?1:a);_&&e-- >0;)if(h(r-1,!0)!==h(e,!0)){e++;break}return re(e,0,r-1)}function T(e){return re(O()?e:a*e,0,i)}function q(e){return O()?Q(e,i):ee((e>=i?r-1:e)/a)}function z(e){e!==x&&(L=x,x=e)}function O(){return!p(n.focus)||n.isNavigation}function j(){return e.state.is([4,5])&&!!n.waitForTransition}return{mount:function(){P(),u([me,he,Pe],P),u(be,C)},go:function(e,t,n){if(!j()){var o=function(e){var t=x;if(f(e)){var n=e.match(/([+\-<>])(\d+)?/)||[],o=n[1],r=n[2];"+"===o||"-"===o?t=D(x+ +(""+o+(+r||1)),x):">"===o?t=r?T(+r):k(!0):"<"===o&&(t=E(!0))}else t=w?e:re(e,0,i);return t}(e),r=M(o);r>-1&&(t||r!==x)&&(z(r),d.move(o,r,L,n))}},scroll:function(e,n,o,r){t.Scroll.scroll(e,n,o,function(){var e=M(d.toIndex(v()));z(_?Q(e,i):e),r&&r()})},getNext:k,getPrev:E,getAdjacent:A,getEnd:I,setIndex:z,getIndex:function(e){return e?L:x},toIndex:T,toPage:q,toDest:function(e){var t=d.toIndex(e);return S?re(t,0,i):t},hasFocus:O,isBusy:j}},Arrows:function(e,t,n){var i,r,s=Ce(e),a=s.on,c=s.bind,u=s.emit,l=n.classes,d=n.i18n,f=t.Elements,p=t.Controller,v=f.arrows,g=f.track,h=v,m=f.prev,y=f.next,b={};function _(){var e;!(e=n.arrows)||m&&y||(h=v||q("div",l.arrows),m=P(!0),y=P(!1),i=!0,S(h,[m,y]),!v&&k(h,g)),m&&y&&(A(b,{prev:m,next:y}),O(h,e?"":"none"),w(h,r=st+"--"+n.direction),e&&(a([de,ve,he,we,Pe],C),c(y,"click",o(L,">")),c(m,"click",o(L,"<")),C(),T([m,y],Re,g.id),u("arrows:mounted",m,y))),a(me,E)}function E(){x(),_()}function x(){s.destroy(),U(h,r),i?(G(v?[m,y]:h),m=y=null):I([m,y],$e)}function L(e){p.go(e,!0)}function P(e){return H('<button class="'+l.arrow+" "+(e?l.prev:l.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40" focusable="false"><path d="'+(n.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z")+'" />')}function C(){if(m&&y){var t=e.index,n=p.getPrev(),i=p.getNext(),o=n>-1&&t<n?d.last:d.prev,r=i>-1&&t>i?d.first:d.next;m.disabled=n<0,y.disabled=i<0,T(m,Be,o),T(y,Be,r),u("arrows:updated",m,y,n,i)}}return{arrows:b,mount:_,destroy:x,update:C}},Autoplay:function(e,t,n){var i,o,r=Ce(e),s=r.on,a=r.bind,c=r.emit,u=Ae(n.interval,e.go.bind(e,">"),function(e){var t=d.bar;t&&z(t,"width",100*e+"%"),c("autoplay:playing",e)}),l=u.isPaused,d=t.Elements,f=t.Elements,p=f.root,v=f.toggle,g=n.autoplay,h="pause"===g;function m(){l()&&t.Slides.isEnough()&&(u.start(!n.resetProgress),o=i=h=!1,w(),c(Ee))}function y(e){void 0===e&&(e=!0),h=!!e,w(),l()||(u.pause(),c(xe))}function b(){h||(i||o?y(!1):m())}function w(){v&&(_(v,ht,!h),T(v,Be,n.i18n[h?"play":"pause"]))}function S(e){var i=t.Slides.getAt(e);u.set(i&&+N(i.slide,Mt)||n.interval)}return{mount:function(){g&&(n.pauseOnHover&&a(p,"mouseenter mouseleave",function(e){i="mouseenter"===e.type,b()}),n.pauseOnFocus&&a(p,"focusin focusout",function(e){o="focusin"===e.type,b()}),v&&a(v,"click",function(){h?m():y(!0)}),s([pe,_e,he],u.rewind),s(pe,S),v&&T(v,Re,d.track.id),h||m(),w())},destroy:u.cancel,play:m,pause:y,isPaused:l}},Cover:function(e,t,n){var i=Ce(e).on;function r(e){t.Slides.forEach(function(t){var n=L(t.container||t.slide,"img");n&&n.src&&s(e,n,t)})}function s(e,t,n){n.style("background",e?'center/cover no-repeat url("'+t.src+'")':"",!0),O(t,e?"none":"")}return{mount:function(){n.cover&&(i(Le,o(s,!0)),i([de,me,he],o(r,!0)))},destroy:o(r,!1)}},Scroll:function(e,t,n){var i,r,s=Ce(e),a=s.on,c=s.emit,u=e.state.set,l=t.Move,d=l.getPosition,f=l.getLimit,p=l.exceededLimit,v=l.translate,g=e.is(Ct),h=1;function m(e,n,s,a,f){var v=d();if(_(),s&&(!g||!p())){var m=t.Layout.sliderSize(),w=se(e)*m*ee(ne(e)/m)||0;e=l.toPosition(t.Controller.toDest(e%m))+w}var S=ie(v,e,1);h=1,n=S?0:n||Z(ne(e-v)/1.5,800),r=a,i=Ae(n,y,o(b,v,e,f),1),u(5),c(_e),i.start()}function y(){u(3),r&&r(),c(we)}function b(e,t,i,o){var s,a,c=d(),u=(e+(t-e)*(s=o,(a=n.easingFunc)?a(s):1-Math.pow(1-s,4))-c)*h;v(c+u),g&&!i&&p()&&(h*=.6,ne(u)<10&&m(f(p(!0)),600,!1,r,!0))}function _(){i&&i.cancel()}function w(){i&&!i.isPaused()&&(_(),y())}return{mount:function(){a(pe,_),a([me,he],w)},destroy:_,scroll:m,cancel:w}},Drag:function(e,t,n){var i,o,r,a,c,l,d,f,p=Ce(e),v=p.on,g=p.emit,h=p.bind,m=p.unbind,y=e.state,b=t.Move,_=t.Scroll,w=t.Controller,S=t.Elements.track,k=t.Media.reduce,x=t.Direction,L=x.resolve,P=x.orient,C=b.getPosition,A=b.exceededLimit,D=!1;function M(){var e=n.drag;H(!e),a="free"===e}function I(e){if(l=!1,!d){var t=G(e);i=e.target,o=n.noDrag,E(i,"."+dt+", ."+at)||o&&E(i,o)||!t&&e.button||(w.isBusy()?B(e,!0):(f=t?S:window,c=y.is([4,5]),r=null,h(f,Lt,T,It),h(f,Pt,q,It),b.cancel(),_.cancel(),O(e)))}var i,o}function T(t){if(y.is(6)||(y.set(6),g("drag")),t.cancelable)if(c){b.translate(i+j(t)/(D&&e.is(Ct)?5:1));var o=N(t)>200,r=D!==(D=A());(o||r)&&O(t),l=!0,g("dragging"),B(t)}else(function(e){return ne(j(e))>ne(j(e,!0))})(t)&&(c=function(e){var t=n.dragMinThreshold,i=u(t),o=i&&t.mouse||0,r=(i?t.touch:+t)||10;return ne(j(e))>(G(e)?r:o)}(t),B(t))}function q(i){y.is(6)&&(y.set(3),g("dragged")),c&&(function(i){var o=function(t){if(e.is(At)||!D){var n=N(t);if(n&&n<200)return j(t)/n}return 0}(i),r=function(e){return C()+se(e)*Q(ne(e)*(n.flickPower||600),a?1/0:t.Layout.listSize()*(n.flickMaxPages||1))}(o),s=n.rewind&&n.rewindByDrag;k(!1),a?w.scroll(r,0,n.snap):e.is(Dt)?w.go(P(se(o))<0?s?"<":"-":s?">":"+"):e.is(Ct)&&D&&s?w.go(A(!0)?">":"<"):w.go(w.toDest(r),!0),k(!0)}(i),B(i)),m(f,Lt,T),m(f,Pt,q),c=!1}function z(e){!d&&l&&B(e,!0)}function O(e){r=o,o=e,i=C()}function j(e,t){return R(e,t)-R(F(e),t)}function N(e){return Y(e)-Y(F(e))}function F(e){return o===e&&r||o}function R(e,t){return(G(e)?e.changedTouches[0]:e)["page"+L(t?"Y":"X")]}function G(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}function H(e){d=e}return{mount:function(){h(S,Lt,s,It),h(S,Pt,s,It),h(S,xt,I,It),h(S,"click",z,{capture:!0}),h(S,"dragstart",B),v([de,me],M)},disable:H,isDragging:function(){return c}}},Keyboard:function(e,t,n){var i,o,s=Ce(e),a=s.on,c=s.bind,u=s.unbind,l=e.root,d=t.Direction.resolve;function f(){var e=n.keyboard;e&&(i="global"===e?window:l,c(i,zt,g))}function p(){u(i,zt)}function v(){var e=o;o=!0,r(function(){o=e})}function g(t){if(!o){var n=qt(t);n===d(Me)?e.go("<"):n===d(Ie)&&e.go(">")}}return{mount:function(){f(),a(me,p),a(me,f),a(pe,v)},destroy:p,disable:function(e){o=e}}},LazyLoad:function(e,t,i){var r=Ce(e),s=r.on,a=r.off,c=r.bind,u=r.emit,l="sequential"===i.lazyLoad,d=[ve,we],f=[];function p(){n(f),t.Slides.forEach(function(e){X(e.slide,Nt).forEach(function(t){var n=N(t,Ot),o=N(t,jt);if(n!==t.src||o!==t.srcset){var r=i.classes.spinner,s=t.parentElement,a=L(s,"."+r)||q("span",r,s);f.push([t,e,a]),t.src||O(t,"none")}})}),l?m():(a(d),s(d,v),v())}function v(){(f=f.filter(function(t){var n=i.perPage*((i.preloadPages||1)+1)-1;return!t[1].isWithin(e.index,n)||g(t)})).length||a(d)}function g(e){var t=e[0];w(e[1].slide,_t),c(t,"load error",o(h,e)),T(t,"src",N(t,Ot)),T(t,"srcset",N(t,jt)),I(t,Ot),I(t,jt)}function h(e,t){var n=e[0],i=e[1];U(i.slide,_t),"error"!==t.type&&(G(e[2]),O(n,""),u(Le,n,i),u(ye)),l&&m()}function m(){f.length&&g(f.shift())}return{mount:function(){i.lazyLoad&&(p(),s(he,p))},destroy:o(n,f),check:v}},Pagination:function(e,t,r){var s,a,c=Ce(e),u=c.on,l=c.emit,d=c.bind,f=t.Slides,p=t.Elements,v=t.Controller,g=v.hasFocus,h=v.getIndex,m=v.go,y=t.Direction.resolve,b=p.pagination,_=[];function S(){s&&(G(b?i(s.children):s),U(s,a),n(_),s=null),c.destroy()}function k(e){m(">"+e,!0)}function E(e,t){var n=_.length,i=qt(t),o=x(),r=-1;i===y(Ie,!1,o)?r=++e%n:i===y(Me,!1,o)?r=(--e+n)%n:"Home"===i?r=0:"End"===i&&(r=n-1);var s=_[r];s&&(j(s.button),m(">"+r),B(t,!0))}function x(){return r.paginationDirection||r.direction}function L(e){return _[v.toPage(e)]}function P(){var e=L(h(!0)),t=L(h());if(e){var n=e.button;U(n,ht),I(n,He),T(n,Ne,-1)}if(t){var i=t.button;w(i,ht),T(i,He,!0),T(i,Ne,"")}l("pagination:updated",{list:s,items:_},e,t)}return{items:_,mount:function t(){S(),u([me,he,Pe],t);var n=r.pagination;b&&O(b,n?"":"none"),n&&(u([pe,_e,we],P),function(){var t=e.length,n=r.classes,i=r.i18n,c=r.perPage,u=g()?v.getEnd()+1:te(t/c);w(s=b||q("ul",n.pagination,p.track.parentElement),a=lt+"--"+x()),T(s,je,"tablist"),T(s,Be,i.select),T(s,Ue,x()===ze?"vertical":"");for(var l=0;l<u;l++){var h=q("li",null,s),m=q("button",{class:n.page,type:"button"},h),y=f.getIn(l).map(function(e){return e.slide.id}),S=!g()&&c>1?i.pageX:i.slideX;d(m,"click",o(k,l)),r.paginationKeyboard&&d(m,"keydown",o(E,l)),T(h,je,"presentation"),T(m,je,"tab"),T(m,Re,y.join(" ")),T(m,Be,ae(S,l+1)),T(m,Ne,-1),_.push({li:h,button:m,page:l})}}(),P(),l("pagination:mounted",{list:s,items:_},L(e.index)))},destroy:S,getAt:L,update:P}},Sync:function(e,t,i){var r=i.isNavigation,s=i.slideFocus,a=[];function c(){var t,n;e.splides.forEach(function(t){t.isParent||(l(e,t.splide),l(t.splide,e))}),r&&((n=(t=Ce(e)).on)(ge,f),n("sk",v),n([de,me],d),a.push(t),t.emit(ke,e.splides))}function u(){a.forEach(function(e){e.destroy()}),n(a)}function l(e,t){var n=Ce(e);n.on(pe,function(e,n,i){t.go(t.is(At)?i:e)}),a.push(n)}function d(){T(t.Elements.list,Ue,i.direction===ze?"vertical":"")}function f(t){e.go(t.index)}function v(e,t){y(Ft,qt(t))&&(f(e),B(t))}return{setup:o(t.Media.set,{slideFocus:p(s)?r:s},!0),mount:c,destroy:u,remount:function(){u(),c()}}},Wheel:function(e,t,n){var i=Ce(e).bind,o=0;function r(i){if(i.cancelable){var r=i.deltaY,s=r<0,a=Y(i),c=n.wheelMinThreshold||0,u=n.wheelSleep||0;ne(r)>c&&a-o>u&&(e.go(s?"<":">"),o=a),function(i){return!n.releaseWheel||e.state.is(4)||-1!==t.Controller.getAdjacent(i)}(s)&&B(i)}}return{mount:function(){n.wheel&&i(t.Elements.track,"wheel",r,It)}}},Live:function(e,t,n){var i=Ce(e).on,r=t.Elements.track,s=n.live&&!n.isNavigation,a=q("span",vt),c=Ae(90,o(u,!1));function u(e){T(r,Ke,e),e?(S(r,a),c.start()):(G(a),c.cancel())}function l(e){s&&T(r,Je,e?"off":"polite")}return{mount:function(){s&&(l(!t.Autoplay.isPaused()),T(r,Ve,!0),a.textContent="…",i(Ee,o(l,!0)),i(xe,o(l,!1)),i([ve,we],o(u,!0)))},disable:l,destroy:function(){I(r,[Je,Ve,Ke]),G(a)}}}}),Gt={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:Et,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function Ht(e,t,n){var i=t.Slides;function o(){i.forEach(function(e){e.style("transform","translateX(-"+100*e.index+"%)")})}return{mount:function(){Ce(e).on([de,he],o)},start:function(e,t){i.style("transition","opacity "+n.speed+"ms "+n.easing),r(t)},cancel:s}}function Bt(e,t,n){var i,r=t.Move,s=t.Controller,a=t.Scroll,c=t.Elements.list,u=o(z,c,"transition");function l(){u(""),a.cancel()}return{mount:function(){Ce(e).bind(c,"transitionend",function(e){e.target===c&&i&&(l(),i())})},start:function(t,o){var c=r.toPosition(t,!0),l=r.getPosition(),d=function(t){var i=n.rewindSpeed;if(e.is(Ct)&&i){var o=s.getIndex(!0),r=s.getEnd();if(0===o&&t>=r||o>=r&&0===t)return i}return n.speed}(t);ne(c-l)>=1&&d>=1?n.useScroll?a.scroll(c,d,!1,o):(u("transform "+d+"ms "+n.easing),r.translate(c,!0),i=o):(r.jump(t),o())},cancel:l}}var Wt=function(){function t(e,n){var i;this.event=Ce(),this.Components={},this.state=(i=1,{set:function(e){i=e},is:function(e){return y(h(e),i)}}),this.splides=[],this._o={},this._E={};var o=f(e)?W(document,e):e;$(o,o+" is invalid."),this.root=o,n=D({label:N(o,Be)||"",labelledby:N(o,We)||""},Gt,t.defaults,n||{});try{D(n,JSON.parse(N(o,V)))}catch(e){$(!1,"Invalid JSON")}this._o=Object.create(D({},n))}var o,r,s=t.prototype;return s.mount=function(e,t){var n=this,i=this.state,o=this.Components;return $(i.is([1,7]),"Already mounted!"),i.set(1),this._C=o,this._T=t||this._T||(this.is(Dt)?Ht:Bt),this._E=e||this._E,C(A({},Rt,this._E,{Transition:this._T}),function(e,t){var i=e(n,o,n._o);o[t]=i,i.setup&&i.setup()}),C(o,function(e){e.mount&&e.mount()}),this.emit(de),w(this.root,gt),i.set(3),this.emit(fe),this},s.sync=function(e){return this.splides.push({splide:e}),e.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._C.Sync.remount(),e.Components.Sync.remount()),this},s.go=function(e){return this._C.Controller.go(e),this},s.on=function(e,t){return this.event.on(e,t),this},s.off=function(e){return this.event.off(e),this},s.emit=function(e){var t;return(t=this.event).emit.apply(t,[e].concat(i(arguments,1))),this},s.add=function(e,t){return this._C.Slides.add(e,t),this},s.remove=function(e){return this._C.Slides.remove(e),this},s.is=function(e){return this._o.type===e},s.refresh=function(){return this.emit(he),this},s.destroy=function(e){void 0===e&&(e=!0);var t=this.event,i=this.state;return i.is(1)?Ce(this).on(fe,this.destroy.bind(this,e)):(C(this._C,function(t){t.destroy&&t.destroy(e)},!0),t.emit(Se),t.destroy(),e&&n(this.splides),i.set(7)),this},o=t,(r=[{key:"options",get:function(){return this._o},set:function(e){this._C.Media.set(e,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}])&&e(o.prototype,r),Object.defineProperty(o,"prototype",{writable:!1}),t}(),Xt=Wt;Xt.defaults={},Xt.STATES={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7},document.addEventListener("DOMContentLoaded",function(){document.addEventListener("click",function(e){const t=e.target.closest(".dr-recipe-wishlist span.dr-bookmark-wishlist");if(!t)return;e.preventDefault();const n=t.getAttribute("data-recipe-id"),i=t.classList.contains("dr-wishlist-is-bookmarked")?"remove":"add";t.classList.add("loading");const o=new FormData;o.append("action","delicious_recipes_wishlist"),o.append("add_remove",i),o.append("recipe_id",n),fetch(delicious_recipes.ajax_url,{method:"POST",body:o}).then(e=>e.json()).then(e=>{if(e&&e.data){const n=t.querySelector(".dr-wishlist-total"),o=t.querySelector(".dr-wishlist-info");if(n&&(n.innerHTML=e.data.wishlists),t.hasAttribute("data-manage-labels")&&o){const n=e.data.isBookmarked||"add"===i,r=t.getAttribute("data-label-added")||e.data.message||o.textContent,s=t.getAttribute("data-label-default")||o.textContent;o.textContent=n?r:s}e.data.isBookmarked||"add"===i?t.classList.add("dr-wishlist-is-bookmarked"):t.classList.remove("dr-wishlist-is-bookmarked")}}).finally(()=>{if(t.classList.remove("loading"),"undefined"!=typeof recipeProGlobal&&t.closest(".dr-floating-box .dr-add-to-wishlist-single .dr-recipe-wishlist")){const e=window.location.href,n=recipeProGlobal.filter(t=>t.path===e);n[0]&&(n[0].wishlist=t.closest(".dr-recipe-wishlist").innerHTML)}})}),function(){const e=document.querySelectorAll(".dr-recipe-wishlist span.dr-popup-user__registration");if(!e.length)return;const t=document.getElementById("dr-user__registration-login-popup");if(!t)return;e.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),t.style.display="flex",t.style.position="fixed",t.style.left="0",t.style.top="0",t.style.width="100%",t.style.height="100%",t.style.zIndex="999999",t.style.alignItems="center",t.style.justifyContent="center",document.body.style.overflow="hidden"})});const n=document.querySelector(".dr-user__registration-login-popup-close");n&&(n.onclick=function(){t.style.display="none",document.body.style.overflow="",t.style.position="",t.style.left="",t.style.top="",t.style.width="",t.style.height="",t.style.zIndex="",t.style.alignItems="",t.style.justifyContent=""}),window.addEventListener("click",function(e){e.target===t&&(t.style.display="none",document.body.style.overflow="",t.style.position="",t.style.left="",t.style.top="",t.style.width="",t.style.height="",t.style.zIndex="",t.style.alignItems="",t.style.justifyContent="")});const i=document.querySelector("form[name='dr-form__log-in']");i&&i.addEventListener("submit",function(e){e.preventDefault();const t=i.querySelector('input[name="username"]').value,n=i.querySelector('input[name="password"]').value,o=i.querySelector('input[name="rememberme"]').value,r=i.querySelector('input[name="login"]').value,s=i.querySelector('input[name="delicious_recipes_user_login_nonce"]').value;i.classList.add("dr-loading");const a=document.querySelector(".delicious-recipes-success-msg"),c=document.querySelector(".delicious-recipes-error-msg");a&&(a.style.display="none"),c&&(c.style.display="none");const u=new FormData;u.append("action","delicious_recipes_process_login"),u.append("username",t),u.append("password",n),u.append("rememberme",o),u.append("login",r),u.append("delicious_recipes_user_login_nonce",s),u.append("calling_action","delicious_recipes_modal_login"),fetch(delicious_recipes.ajax_url,{method:"POST",body:u}).then(e=>e.json()).then(e=>{e.success?(document.querySelectorAll(".dr-recipe-wishlist > span").forEach(function(e){e.classList.remove("dr-popup-user__registration"),e.classList.add("dr-bookmark-wishlist")}),a&&(a.innerHTML=e.data.success,a.style.display="block"),location.reload()):c&&(c.innerHTML=e.data.error,c.style.display="block")}).finally(()=>{i.classList.remove("dr-loading")})})}(),function(){const e=document.querySelectorAll("[data-liked_recipe_id]");if(e.length){const t=Array.from(e).map(e=>e.getAttribute("data-liked_recipe_id")).filter(Boolean);if(t.length){const n=new FormData;n.append("action","recipe_get_likes"),t.forEach(e=>n.append("ids[]",e)),fetch(delicious_recipes.ajax_url,{method:"POST",body:n}).then(e=>e.json()).then(t=>{if(t.success&&t.data?.recipes)for(const e in t.data.recipes){const n=document.querySelector(`[data-liked_recipe_id="${e}"] .dr-likes-total`),i=document.querySelector(`[data-liked_recipe_id="${e}"] .dr_like__recipe`);n&&i&&(n.textContent=t.data.recipes[e].likes_count,i.setAttribute("title",t.data.recipes[e].likes),i.classList.remove("loading"))}else e.forEach(e=>{const t=e.querySelector(".dr_like__recipe");t&&t.classList.remove("loading")})}).catch(()=>{e.forEach(e=>{const t=e.querySelector(".dr_like__recipe");t&&t.classList.remove("loading")})})}}if(void 0!==delicious_recipes.isUserLoggedIn&&""===delicious_recipes.isUserLoggedIn&&window.location.pathname.includes("/recipe/")){const e=document.querySelector(".dr_like__recipe");if(e){const t=e.id.split("-").pop();let n="";if("undefined"!=typeof Storage&&(n=localStorage.getItem("delicious_recipes_user_identifier_for_recipe_likes"),n)){const i=new FormData;i.append("action","delicious_recipes_check_like_for_logged_out_users"),i.append("id",t),i.append("unique_user_id",n),e.classList.add("loading"),fetch(delicious_recipes.ajax_url,{method:"POST",body:i}).then(e=>e.json()).then(t=>{t.data&&!t.data.can_like&&e.classList.toggle("recipe-liked",!1)}).finally(()=>{e.classList.remove("loading")})}}}document.addEventListener("click",function(e){const t=e.target.closest(".dr_like__recipe");if(!t)return;e.preventDefault();const n=t.id.split("-").pop();let i,o=localStorage.getItem("delicious_recipes_user_identifier_for_recipe_likes");o||(o="dr_user_identifier_"+Math.random().toString(36).substring(2,15),localStorage.setItem("delicious_recipes_user_identifier_for_recipe_likes",o)),t.classList.toggle("recipe-liked"),i=t.classList.contains("recipe-liked")?"remove":"add",t.classList.add("loading");const r=new FormData;r.append("action","recipe_likes"),r.append("add_remove",i),r.append("id",n),r.append("unique_user_id",o),fetch(delicious_recipes.ajax_url,{method:"POST",body:r}).then(e=>e.json()).then(e=>{if(e.data){t.setAttribute("title",e.data.likes);const n=t.querySelector(".dr-likes-total");n&&(n.innerHTML=e.data.likes_count)}}).finally(()=>{if(t.classList.remove("loading"),"undefined"!=typeof recipeProGlobal&&t.closest(".dr-floating-box .post-like .single-like")){const e=window.location.href,n=recipeProGlobal.filter(t=>t.path===e);n[0]&&(n[0].likes=t.closest(".single-like").innerHTML)}})})}(),document.querySelectorAll(".post-share a.meta-title").forEach(function(e){e.addEventListener("click",function(e){e.stopPropagation();const t=this.parentElement.querySelector(".social-networks");if(t){const e=t.querySelector("li");e.classList.contains("active")?e.classList.remove("active"):e.classList.add("active")}})}),document.querySelectorAll(".dr-recipe-archive.splide").forEach(e=>{let t=e?parseInt(e.getAttribute("data-splide-count")):0;new Xt(e,{gap:"30px",pagination:!1,perPage:3,arrows:t>3,type:t>3?"loop":"slide",breakpoints:{1024:{perPage:2,arrows:t>2,type:t>2?"loop":"slide"},640:{perPage:1,arrows:t>1,type:t>1?"loop":"slide"}}}).mount()})}),(drExports=void 0===drExports?{}:drExports).wpdArchiveJS={}}();
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||!(2===c.which||c.ctrlKey||c.metaKey||c.altKey||c.shiftKey)){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split("_"),e.length>1){var f=b.find(p+"-"+e[0]);if(f.length>0){var g=e[1];"replaceWith"===g?f[0]!==d[0]&&f.replaceWith(d):"img"===g?f.is("img")?f.attr("src",d):f.replaceWith(a("<img>").attr("src",d).attr("class",f.attr("class"))):f.attr(e[1],d)}}else b.find(p+"-"+c).html(d)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()});
(function ($){
$.fn.theiaStickySidebar=function (options){
var defaults={
'containerSelector': '',
'additionalMarginTop': 0,
'additionalMarginBottom': 0,
'updateSidebarHeight': true,
'minWidth': 0,
'disableOnResponsiveLayouts': true,
'sidebarBehavior': 'modern',
'defaultPosition': 'relative',
'namespace': 'TSS'
};
options=$.extend(defaults, options);
options.additionalMarginTop=parseInt(options.additionalMarginTop)||0;
options.additionalMarginBottom=parseInt(options.additionalMarginBottom)||0;
tryInitOrHookIntoEvents(options, this);
function tryInitOrHookIntoEvents(options, $that){
var success=tryInit(options, $that);
if(!success){
console.log('TSS: Body width smaller than options.minWidth. Init is delayed.');
$(document).on('scroll.' + options.namespace, function (options, $that){
return function (evt){
var success=tryInit(options, $that);
if(success){
$(this).unbind(evt);
}};}(options, $that));
$(window).on('resize.' + options.namespace, function (options, $that){
return function (evt){
var success=tryInit(options, $that);
if(success){
$(this).unbind(evt);
}};}(options, $that))
}}
function tryInit(options, $that){
if(options.initialized===true){
return true;
}
if($('body').width() < options.minWidth){
return false;
}
init(options, $that);
return true;
}
function init(options, $that){
options.initialized=true;
var existingStylesheet=$('#theia-sticky-sidebar-stylesheet-' + options.namespace);
if(existingStylesheet.length===0){
$('head').append($('<style id="theia-sticky-sidebar-stylesheet-' + options.namespace + '">.theiaStickySidebar:after {content: ""; display: table; clear: both;}</style>'));
}
$that.each(function (){
var o={};
o.sidebar=$(this);
o.options=options||{};
o.sidebar.data('tss-options', o.options);
o.container=$(o.options.containerSelector);
if(o.container.length==0){
o.container=o.sidebar.parent();
}
o.sidebar.parents().css('-webkit-transform', 'none'); // Fix for WebKit bug - https://code.google.com/p/chromium/issues/detail?id=20574
o.sidebar.css({
'position': o.options.defaultPosition,
'overflow': 'visible',
'-webkit-box-sizing': 'border-box',
'-moz-box-sizing': 'border-box',
'box-sizing': 'border-box'
});
o.stickySidebar=o.sidebar.find('.theiaStickySidebar');
if(o.stickySidebar.length==0){
var javaScriptMIMETypes=/(?:text|application)\/(?:x-)?(?:javascript|ecmascript)/i;
o.sidebar.find('script').filter(function (index, script){
return script.type.length===0||script.type.match(javaScriptMIMETypes);
}).remove();
o.stickySidebar=$('<div>').addClass('theiaStickySidebar').append(o.sidebar.children());
o.sidebar.append(o.stickySidebar);
}
o.marginBottom=parseInt(o.sidebar.css('margin-bottom'));
o.paddingTop=parseInt(o.sidebar.css('padding-top'));
o.paddingBottom=parseInt(o.sidebar.css('padding-bottom'));
var collapsedTopHeight=o.stickySidebar.offset().top;
var collapsedBottomHeight=o.stickySidebar.outerHeight();
o.stickySidebar.css('padding-top', 1);
o.stickySidebar.css('padding-bottom', 1);
collapsedTopHeight -=o.stickySidebar.offset().top;
collapsedBottomHeight=o.stickySidebar.outerHeight() - collapsedBottomHeight - collapsedTopHeight;
if(collapsedTopHeight==0){
o.stickySidebar.css('padding-top', 0);
o.stickySidebarPaddingTop=0;
}else{
o.stickySidebarPaddingTop=1;
}
if(collapsedBottomHeight==0){
o.stickySidebar.css('padding-bottom', 0);
o.stickySidebarPaddingBottom=0;
}else{
o.stickySidebarPaddingBottom=1;
}
o.previousScrollTop=null;
o.fixedScrollTop=0;
resetSidebar();
o.onScroll=function (o){
if(!o.stickySidebar.is(":visible")){
return;
}
if($('body').width() < o.options.minWidth){
resetSidebar();
return;
}
if(o.options.disableOnResponsiveLayouts){
var sidebarWidth=o.sidebar.outerWidth(o.sidebar.css('float')=='none');
if(sidebarWidth + 50 > o.container.width()){
resetSidebar();
return;
}}
var scrollTop=$(document).scrollTop();
var position='static';
if(scrollTop >=o.sidebar.offset().top + (o.paddingTop - o.options.additionalMarginTop)){
var offsetTop=o.paddingTop + options.additionalMarginTop;
var offsetBottom=o.paddingBottom + o.marginBottom + options.additionalMarginBottom;
var containerTop=o.sidebar.offset().top;
var containerBottom=o.sidebar.offset().top + getClearedHeight(o.container);
var windowOffsetTop=0 + options.additionalMarginTop;
var windowOffsetBottom;
var sidebarSmallerThanWindow=(o.stickySidebar.outerHeight() + offsetTop + offsetBottom) < $(window).height();
if(sidebarSmallerThanWindow){
windowOffsetBottom=windowOffsetTop + o.stickySidebar.outerHeight();
}else{
windowOffsetBottom=$(window).height() - o.marginBottom - o.paddingBottom - options.additionalMarginBottom;
}
var staticLimitTop=containerTop - scrollTop + o.paddingTop;
var staticLimitBottom=containerBottom - scrollTop - o.paddingBottom - o.marginBottom;
var top=o.stickySidebar.offset().top - scrollTop;
var scrollTopDiff=o.previousScrollTop - scrollTop;
if(o.stickySidebar.css('position')=='fixed'){
if(o.options.sidebarBehavior=='modern'){
top +=scrollTopDiff;
}}
if(o.options.sidebarBehavior=='stick-to-top'){
top=options.additionalMarginTop;
}
if(o.options.sidebarBehavior=='stick-to-bottom'){
top=windowOffsetBottom - o.stickySidebar.outerHeight();
}
if(scrollTopDiff > 0){
top=Math.min(top, windowOffsetTop);
}else{
top=Math.max(top, windowOffsetBottom - o.stickySidebar.outerHeight());
}
top=Math.max(top, staticLimitTop);
top=Math.min(top, staticLimitBottom - o.stickySidebar.outerHeight());
var sidebarSameHeightAsContainer=o.container.height()==o.stickySidebar.outerHeight();
if(!sidebarSameHeightAsContainer&&top==windowOffsetTop){
position='fixed';
}
else if(!sidebarSameHeightAsContainer&&top==windowOffsetBottom - o.stickySidebar.outerHeight()){
position='fixed';
}
else if(scrollTop + top - o.sidebar.offset().top - o.paddingTop <=options.additionalMarginTop){
position='static';
}else{
position='absolute';
}}
const transY=window.devicePixelRatio < 1.6 ? Math.round:y=> y;
if(position=='fixed'){
var scrollLeft=$(document).scrollLeft();
o.stickySidebar.css({
'position': 'fixed',
'width': getWidthForObject(o.stickySidebar) + 'px',
'transform': 'translateY(' + transY(top) + 'px)',
'left': (o.sidebar.offset().left + parseInt(o.sidebar.css('padding-left')) + parseInt(o.sidebar.css('border-left')) - scrollLeft) + 'px',
'top': '0px'
});
}
else if(position=='absolute'){
var css={};
if(o.stickySidebar.css('position')!='absolute'){
css.position='absolute';
css.transform='translateY(' + transY(scrollTop + top - o.sidebar.offset().top - o.stickySidebarPaddingTop - o.stickySidebarPaddingBottom) + 'px)';
css.top='0px';
}
css.width=getWidthForObject(o.stickySidebar) + 'px';
css.left='';
o.stickySidebar.css(css);
}
else if(position=='static'){
resetSidebar();
}
if(position!='static'){
if(o.options.updateSidebarHeight==true){
o.sidebar.css({
'min-height': o.stickySidebar.outerHeight() + o.stickySidebar.offset().top - o.sidebar.offset().top + o.paddingBottom
});
}}
o.previousScrollTop=scrollTop;
};
o.onScroll(o);
$(document).on('scroll.' + o.options.namespace, function (o){
return function (){
o.onScroll(o);
};}(o));
$(window).on('resize.' + o.options.namespace, function (o){
return function (){
o.stickySidebar.css({'position': 'static'});
o.onScroll(o);
};}(o));
if(typeof ResizeSensor!=='undefined'){
new ResizeSensor(o.stickySidebar[0], function (o){
return function (){
o.onScroll(o);
};}(o));
}
function resetSidebar(){
o.fixedScrollTop=0;
o.sidebar.css({
'min-height': '1px'
});
o.stickySidebar.css({
'position': 'static',
'width': '',
'transform': 'none'
});
}
function getClearedHeight(e){
var height=e.height();
e.children().each(function (){
height=Math.max(height, $(this).height());
});
return height;
}});
}
function getWidthForObject(object){
var width;
try {
width=object[0].getBoundingClientRect().width;
}
catch (err){
}
if(typeof width==="undefined"){
width=object.width();
}
return width;
}
return this;
}})(jQuery);