vendor: 18,336 bytes, lines 1-2
1/*! For license information please see video-carousel-init.js.LICENSE.txt */ 2!function(){"use strict";var e={n:function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},d:function(t,n){for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})}};e.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var t=window.wp.domReady,n=e.n(t);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 r="(prefers-reduced-motion: reduce)",o={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7};function a(e){e.length=0}function s(e,t,n){return Array.prototype.slice.call(e,t,n)}function u(e){return e.bind.apply(e,[null].concat(s(arguments,1)))}var c=setTimeout,l=function(){};function d(e){return requestAnimationFrame(e)}function f(e,t){return typeof t===e}function h(e){return!g(e)&&f("object",e)}var p=Array.isArray,v=u(f,"function"),y=u(f,"string"),m=u(f,"undefined");function g(e){return null===e}function w(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch(e){return!1}}function b(e){return p(e)?e:[e]}function E(e,t){b(e).forEach(t)}function k(e,t){return e.indexOf(t)>-1}function P(e,t){return e.push.apply(e,b(t)),e}function S(e,t,n){e&&E(t,function(t){t&&e.classList[n?"add":"remove"](t)})}function x(e,t){S(e,y(t)?t.split(" "):t,!0)}function _(e,t){E(t,e.appendChild.bind(e))}function C(e,t){E(e,function(e){var n=(t||e).parentNode;n&&n.insertBefore(e,t)})}function T(e,t){return w(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 T(e,t)}):n}function M(e,t){return t?A(e,t)[0]:e.firstElementChild}var L=Object.keys;function N(e,t,n){return e&&(n?L(e).reverse():L(e)).forEach(function(n){"__proto__"!==n&&t(e[n],n)}),e}function F(e){return s(arguments,1).forEach(function(t){N(t,function(n,i){e[i]=t[i]})}),e}function I(e){return s(arguments,1).forEach(function(t){N(t,function(t,n){p(t)?e[n]=t.slice():h(t)?e[n]=I({},h(e[n])?e[n]:{},t):e[n]=t})}),e}function j(e,t){E(t||L(e),function(t){delete e[t]})}function O(e,t){E(e,function(e){E(t,function(t){e&&e.removeAttribute(t)})})}function R(e,t,n){h(t)?N(t,function(t,n){R(e,n,t)}):E(e,function(e){g(n)||""===n?O(e,t):e.setAttribute(t,String(n))})}function V(e,t,n){var i=document.createElement(e);return t&&(y(t)?x(i,t):R(i,t)),n&&_(n,i),i}function D(e,t,n){if(m(n))return getComputedStyle(e)[t];g(n)||(e.style[t]=""+n)}function z(e,t){D(e,"display",t)}function q(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function W(e,t){return e.getAttribute(t)}function $(e,t){return e&&e.classList.contains(t)}function B(e){return e.getBoundingClientRect()}function Y(e){E(e,function(e){e&&e.parentNode&&e.parentNode.removeChild(e)})}function H(e){return M((new DOMParser).parseFromString(e,"text/html").body)}function U(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function X(e,t){return e&&e.querySelector(t)}function G(e,t){return t?s(e.querySelectorAll(t)):[]}function Q(e,t){S(e,t,!1)}function J(e){return e.timeStamp}function K(e){return y(e)?e:e?e+"px":""}var Z="splide",ee="data-"+Z;function te(e,t){if(!e)throw new Error("["+Z+"] "+(t||""))}var ne=Math.min,ie=Math.max,re=Math.floor,oe=Math.ceil,ae=Math.abs;function se(e,t,n){return ae(e-t)<n}function ue(e,t,n,i){var r=ne(t,n),o=ie(t,n);return i?r<e&&e<o:r<=e&&e<=o}function ce(e,t,n){var i=ne(t,n),r=ie(t,n);return ne(ie(i,e),r)}function le(e){return+(e>0)-+(e<0)}function de(e,t){return E(t,function(t){e=e.replace("%s",""+t)}),e}function fe(e){return e<10?"0"+e:""+e}var he={};function pe(e){return""+e+fe(he[e]=(he[e]||0)+1)}function ve(){var e=[];function t(e,t,n){E(e,function(e){e&&E(t,function(t){t.split(" ").forEach(function(t){var i=t.split(".");n(e,i[0],i[1])})})})}return{bind:function(n,i,r,o){t(n,i,function(t,n,i){var a="addEventListener"in t,s=a?t.removeEventListener.bind(t,n,r,o):t.removeListener.bind(t,r);a?t.addEventListener(n,r,o):t.addListener(r),e.push([t,n,i,r,s])})},unbind:function(n,i,r){t(n,i,function(t,n,i){e=e.filter(function(e){return!!(e[0]!==t||e[1]!==n||e[2]!==i||r&&e[3]!==r)||(e[4](),!1)})})},dispatch:function(e,t,n){var i,r=!0;return"function"===typeof CustomEvent?i=new CustomEvent(t,{bubbles:r,detail:n}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,r,!1,n),e.dispatchEvent(i),i},destroy:function(){e.forEach(function(e){e[4]()}),a(e)}}}var ye="mounted",me="ready",ge="move",we="moved",be="click",Ee="active",ke="inactive",Pe="visible",Se="hidden",xe="refresh",_e="updated",Ce="resize",Te="resized",Ae="scroll",Me="scrolled",Le="destroy",Ne="arrows:mounted",Fe="navigation:mounted",Ie="autoplay:play",je="autoplay:pause",Oe="lazyload:loaded",Re="sk",Ve="sh",De="ei";function ze(e){var t=e?e.event.bus:document.createDocumentFragment(),n=ve();return e&&e.event.on(Le,n.destroy),F(n,{bus:t,on:function(e,i){n.bind(t,b(e).join(" "),function(e){i.apply(i,p(e.detail)?e.detail:[])})},off:u(n.unbind,t),emit:function(e){n.dispatch(t,e,s(arguments,1))}})}function qe(e,t,n,i){var r,o,a=Date.now,s=0,u=!0,c=0;function l(){if(!u){if(s=e?ne((a()-r)/e,1):1,n&&n(s),s>=1&&(t(),r=a(),i&&++c>=i))return f();o=d(l)}}function f(){u=!0}function h(){o&&cancelAnimationFrame(o),s=0,o=0,u=!0}return{start:function(t){t||h(),r=a()-(t?s*e:0),u=!1,o=d(l)},rewind:function(){r=a(),s=0,n&&n(s)},pause:f,cancel:h,set:function(t){e=t},isPaused:function(){return u}}}var We="Arrow",$e=We+"Left",Be=We+"Right",Ye=We+"Up",He=We+"Down",Ue="ttb",Xe={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Ye,Be],ArrowRight:[He,$e]};function Ge(e,t,n){return{resolve:function(e,t,i){var r="rtl"!==(i=i||n.direction)||t?i===Ue?0:-1:1;return Xe[e]&&Xe[e][r]||e.replace(/width|left|right/i,function(e,t){var n=Xe[e.toLowerCase()][r]||e;return t>0?n.charAt(0).toUpperCase()+n.slice(1):n})},orient:function(e){return e*("rtl"===n.direction?1:-1)}}}var Qe="role",Je="tabindex",Ke="aria-",Ze=Ke+"controls",et=Ke+"current",tt=Ke+"selected",nt=Ke+"label",it=Ke+"labelledby",rt=Ke+"hidden",ot=Ke+"orientation",at=Ke+"roledescription",st=Ke+"live",ut=Ke+"busy",ct=Ke+"atomic",lt=[Qe,Je,"disabled",Ze,et,nt,it,rt,ot,at],dt=Z+"__",ft="is-",ht=Z,pt=dt+"track",vt=dt+"list",yt=dt+"slide",mt=yt+"--clone",gt=yt+"__container",wt=dt+"arrows",bt=dt+"arrow",Et=bt+"--prev",kt=bt+"--next",Pt=dt+"pagination",St=Pt+"__page",xt=dt+"progress"+"__bar",_t=dt+"toggle",Ct=dt+"sr",Tt=ft+"initialized",At=ft+"active",Mt=ft+"prev",Lt=ft+"next",Nt=ft+"visible",Ft=ft+"loading",It=ft+"focus-in",jt=ft+"overflow",Ot=[At,Nt,Mt,Lt,Ft,It,jt],Rt={slide:yt,clone:mt,arrows:wt,arrow:bt,prev:Et,next:kt,pagination:Pt,page:St,spinner:dt+"spinner"};var Vt="touchstart mousedown",Dt="touchmove mousemove",zt="touchend touchcancel mouseup click";var qt="slide",Wt="loop",$t="fade";function Bt(e,t,n,i){var r,o=ze(e),a=o.on,s=o.emit,c=o.bind,l=e.Components,d=e.root,f=e.options,h=f.isNavigation,p=f.updateOnMove,v=f.i18n,y=f.pagination,m=f.slideFocus,g=l.Direction.resolve,w=W(i,"style"),b=W(i,nt),E=n>-1,k=M(i,"."+gt);function P(){var r=e.splides.map(function(e){var n=e.splide.Components.Slides.getAt(t);return n?n.slide.id:""}).join(" ");R(i,nt,de(v.slideX,(E?n:t)+1)),R(i,Ze,r),R(i,Qe,m?"button":""),m&&O(i,at)}function x(){r||_()}function _(){if(!r){var n=e.index;!function(){var e=C();e!==$(i,At)&&(S(i,At,e),R(i,et,h&&e||""),s(e?Ee:ke,T))}(),function(){var t=function(){if(e.is($t))return C();var t=B(l.Elements.track),n=B(i),r=g("left",!0),o=g("right",!0);return re(t[r])<=oe(n[r])&&re(n[o])<=oe(t[o])}(),n=!t&&(!C()||E);e.state.is([4,5])||R(i,rt,n||"");R(G(i,f.focusableNodes||""),Je,n?-1:""),m&&R(i,Je,n?-1:0);t!==$(i,Nt)&&(S(i,Nt,t),s(t?Pe:Se,T));if(!t&&document.activeElement===i){var r=l.Slides.getAt(e.index);r&&q(r.slide)}}(),S(i,Mt,t===n-1),S(i,Lt,t===n+1)}}function C(){var i=e.index;return i===t||f.cloneStatus&&i===n}var T={index:t,slideIndex:n,slide:i,container:k,isClone:E,mount:function(){E||(i.id=d.id+"-slide"+fe(t+1),R(i,Qe,y?"tabpanel":"group"),R(i,at,v.slide),R(i,nt,b||de(v.slideLabel,[t+1,e.length]))),c(i,"click",u(s,be,T)),c(i,"keydown",u(s,Re,T)),a([we,Ve,Me],_),a(Fe,P),p&&a(ge,x)},destroy:function(){r=!0,o.destroy(),Q(i,Ot),O(i,lt),R(i,"style",w),R(i,nt,b||"")},update:_,style:function(e,t,n){D(n&&k||i,e,t)},isWithin:function(n,i){var r=ae(n-t);return E||!f.rewind&&!e.is(Wt)||(r=ne(r,e.length-r)),r<=i}};return T}var Yt="http://www.w3.org/2000/svg",Ht="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";var Ut=ee+"-interval";var Xt={passive:!1,capture:!0};var Gt={Spacebar:" ",Right:Be,Left:$e,Up:Ye,Down:He};function Qt(e){return e=y(e)?e:e.key,Gt[e]||e}var Jt="keydown";var Kt=ee+"-lazy",Zt=Kt+"-srcset",en="["+Kt+"], ["+Zt+"]";var tn=[" ","Enter"];var nn=Object.freeze({__proto__:null,Media:function(e,t,n){var i=e.state,o=n.breakpoints||{},a=n.reducedMotion||{},s=ve(),u=[];function c(e){e&&s.destroy()}function l(e,t){var n=matchMedia(t);s.bind(n,"change",d),u.push([e,n])}function d(){var t=i.is(7),r=n.direction,o=u.reduce(function(e,t){return I(e,t[1].matches?t[0]:{})},{});j(n),f(o),n.destroy?e.destroy("completely"===n.destroy):t?(c(!0),e.mount()):r!==n.direction&&e.refresh()}function f(t,r,o){I(n,t),r&&I(Object.getPrototypeOf(n),t),!o&&i.is(1)||e.emit(_e,n)}return{setup:function(){var e="min"===n.mediaQuery;L(o).sort(function(t,n){return e?+t-+n:+n-+t}).forEach(function(t){l(o[t],"("+(e?"min":"max")+"-width:"+t+"px)")}),l(a,r),d()},destroy:c,reduce:function(e){matchMedia(r).matches&&(e?I(n,a):j(n,L(a)))},set:f}},Direction:Ge,Elements:function(e,t,n){var i,r,o,s=ze(e),u=s.on,c=s.bind,l=e.root,d=n.i18n,f={},h=[],p=[],y=[];function m(){i=b("."+pt),r=M(i,"."+vt),te(i&&r,"A track/list element is missing."),P(h,A(r,"."+yt+":not(."+mt+")")),N({arrows:wt,pagination:Pt,prev:Et,next:kt,bar:xt,toggle:_t},function(e,t){f[t]=b("."+e)}),F(f,{root:l,track:i,list:r,slides:h}),function(){var e=l.id||pe(Z),t=n.role;l.id=e,i.id=i.id||e+"-track",r.id=r.id||e+"-list",!W(l,Qe)&&"SECTION"!==l.tagName&&t&&R(l,Qe,t);R(l,at,d.carousel),R(r,Qe,"presentation")}(),w()}function g(e){var t=lt.concat("style");a(h),Q(l,p),Q(i,y),O([i,r],t),O(l,e?t:["style",at])}function w(){Q(l,p),Q(i,y),p=E(ht),y=E(pt),x(l,p),x(i,y),R(l,nt,n.label),R(l,it,n.labelledby)}function b(e){var t=X(l,e);return t&&function(e,t){if(v(e.closest))return e.closest(t);for(var n=e;n&&1===n.nodeType&&!T(n,t);)n=n.parentElement;return n}(t,"."+ht)===l?t:void 0}function E(e){return[e+"--"+n.type,e+"--"+n.direction,n.drag&&e+"--draggable",n.isNavigation&&e+"--nav",e===ht&&At]}return F(f,{setup:m,mount:function(){u(xe,g),u(xe,m),u(_e,w),c(document,Vt+" keydown",function(e){o="keydown"===e.type},{capture:!0}),c(l,"focusin",function(){S(l,It,!!o)})},destroy:g})},Slides:function(e,t,n){var i=ze(e),r=i.on,o=i.emit,s=i.bind,c=t.Elements,l=c.slides,d=c.list,f=[];function h(){l.forEach(function(e,t){m(e,t,-1)})}function p(){P(function(e){e.destroy()}),a(f)}function m(t,n,i){var r=Bt(e,n,i,t);r.mount(),f.push(r),f.sort(function(e,t){return e.index-t.index})}function g(e){return e?S(function(e){return!e.isClone}):f}function P(e,t){g(t).forEach(e)}function S(e){return f.filter(v(e)?e:function(t){return y(e)?T(t.slide,e):k(b(e),t.index)})}return{mount:function(){h(),r(xe,p),r(xe,h)},destroy:p,update:function(){P(function(e){e.update()})},register:m,get:g,getIn:function(e){var i=t.Controller,r=i.toIndex(e),o=i.hasFocus()?1:n.perPage;return S(function(e){return ue(e.index,r,r+o-1)})},getAt:function(e){return S(e)[0]},add:function(e,t){E(e,function(e){if(y(e)&&(e=H(e)),w(e)){var i=l[t];i?C(e,i):_(d,e),x(e,n.classes.slide),function(e,t){var n=G(e,"img"),i=n.length;i?n.forEach(function(e){s(e,"load error",function(){--i||t()})}):t()}(e,u(o,Ce))}}),o(xe)},remove:function(e){Y(S(e).map(function(e){return e.slide})),o(xe)},forEach:P,filter:S,style:function(e,t,n){P(function(i){i.style(e,t,n)})},getLength:function(e){return e?l.length:f.length},isEnough:function(){return f.length>n.perPage}}},Layout:function(e,t,n){var i,r,o,a=ze(e),s=a.on,c=a.bind,l=a.emit,d=t.Slides,f=t.Direction.resolve,p=t.Elements,v=p.root,y=p.track,m=p.list,g=d.getAt,w=d.style;function b(){i=n.direction===Ue,D(v,"maxWidth",K(n.width)),D(y,f("paddingLeft"),k(!1)),D(y,f("paddingRight"),k(!0)),E(!0)}function E(e){var t=B(v);(e||r.width!==t.width||r.height!==t.height)&&(D(y,"height",function(){var e="";i&&(te(e=P(),"height or heightRatio is missing."),e="calc("+e+" - "+k(!1)+" - "+k(!0)+")");return e}()),w(f("marginRight"),K(n.gap)),w("width",n.autoWidth?null:K(n.fixedWidth)||(i?"":x())),w("height",K(n.fixedHeight)||(i?n.autoHeight?null:x():P()),!0),r=t,l(Te),o!==(o=L())&&(S(v,jt,o),l("overflow",o)))}function k(e){var t=n.padding,i=f(e?"right":"left");return t&&K(t[i]||(h(t)?0:t))||"0px"}function P(){return K(n.height||B(m).width*n.heightRatio)}function x(){var e=K(n.gap);return"calc((100%"+(e&&" + "+e)+")/"+(n.perPage||1)+(e&&" - "+e)+")"}function _(){return B(m)[f("width")]}function C(e,t){var n=g(e||0);return n?B(n.slide)[f("width")]+(t?0:M()):0}function T(e,t){var n=g(e);if(n){var i=B(n.slide)[f("right")],r=B(m)[f("left")];return ae(i-r)+(t?0:M())}return 0}function A(t){return T(e.length-1)-T(0)+C(0,t)}function M(){var e=g(0);return e&&parseFloat(D(e.slide,f("marginRight")))||0}function L(){return e.is($t)||A(!0)>_()}return{mount:function(){b(),c(window,"resize load",function(e,t){var n=qe(t||0,e,null,1);return function(){n.isPaused()&&n.start()}}(u(l,Ce))),s([_e,xe],b),s(Ce,E)},resize:E,listSize:_,slideSize:C,sliderSize:A,totalSize:T,getPadding:function(e){return parseFloat(D(y,f("padding"+(e?"Right":"Left"))))||0},isOverflow:L}},Clones:function(e,t,n){var i,r=ze(e),o=r.on,s=t.Elements,u=t.Slides,c=t.Direction.resolve,l=[];function d(){o(xe,f),o([_e,Ce],p),(i=v())&&(!function(t){var i=u.get().slice(),r=i.length;if(r){for(;i.length<t;)P(i,i);P(i.slice(-t),i.slice(0,t)).forEach(function(o,a){var c=a<t,d=function(t,i){var r=t.cloneNode(!0);return x(r,n.classes.clone),r.id=e.root.id+"-clone"+fe(i+1),r}(o.slide,a);c?C(d,i[0].slide):_(s.list,d),P(l,d),u.register(d,a-t+(c?0:r),o.index)})}}(i),t.Layout.resize(!0))}function f(){h(),d()}function h(){Y(l),a(l),r.destroy()}function p(){var e=v();i!==e&&(i<e||!e)&&r.emit(xe)}function v(){var i=n.clones;if(e.is(Wt)){if(m(i)){var r=n[c("fixedWidth")]&&t.Layout.slideSize(0);i=r&&oe(B(s.track)[c("width")]/r)||n[c("autoWidth")]&&e.length||2*n.perPage}}else i=0;return i}return{mount:d,destroy:h}},Move:function(e,t,n){var i,r=ze(e),o=r.on,a=r.emit,s=e.state.set,u=t.Layout,c=u.slideSize,l=u.getPadding,d=u.totalSize,f=u.listSize,h=u.sliderSize,p=t.Direction,v=p.resolve,y=p.orient,g=t.Elements,w=g.list,b=g.track;function E(){t.Controller.isBusy()||(t.Scroll.cancel(),k(e.index),t.Slides.update())}function k(e){P(C(e,!0))}function P(n,i){if(!e.is($t)){var r=i?n:function(n){if(e.is(Wt)){var i=_(n),r=i>t.Controller.getEnd();(i<0||r)&&(n=S(n,r))}return n}(n);D(w,"transform","translate"+v("X")+"("+r+"px)"),n!==r&&a(Ve)}}function S(e,t){var n=e-A(t),i=h();return e-=y(i*(oe(ae(n)/i)||1))*(t?1:-1)}function x(){P(T(),!0),i.cancel()}function _(e){for(var n=t.Slides.get(),i=0,r=1/0,o=0;o<n.length;o++){var a=n[o].index,s=ae(C(a,!0)-e);if(!(s<=r))break;r=s,i=a}return i}function C(t,i){var r=y(d(t-1)-function(e){var t=n.focus;return"center"===t?(f()-c(e,!0))/2:+t*c(e)||0}(t));return i?function(t){n.trimSpace&&e.is(qt)&&(t=ce(t,0,y(h(!0)-f())));return t}(r):r}function T(){var e=v("left");return B(w)[e]-B(b)[e]+y(l(!1))}function A(e){return C(e?t.Controller.getEnd():0,!!n.trimSpace)}return{mount:function(){i=t.Transition,o([ye,Te,_e,xe],E)},move:function(e,t,n,r){e!==t&&function(e){var t=y(S(T(),e));return e?t>=0:t<=w[v("scrollWidth")]-B(b)[v("width")]}(e>n)&&(x(),P(S(T(),e>n),!0)),s(4),a(ge,t,n,e),i.start(t,function(){s(3),a(we,t,n,e),r&&r()})},jump:k,translate:P,shift:S,cancel:x,toIndex:_,toPosition:C,getPosition:T,getLimit:A,exceededLimit:function(e,t){t=m(t)?T():t;var n=!0!==e&&y(t)<y(A(!1)),i=!1!==e&&y(t)>y(A(!0));return n||i},reposition:E}},Controller:function(e,t,n){var i,r,o,a,s=ze(e),c=s.on,l=s.emit,d=t.Move,f=d.getPosition,h=d.getLimit,p=d.toPosition,v=t.Slides,g=v.isEnough,w=v.getLength,b=n.omitEnd,E=e.is(Wt),k=e.is(qt),P=u(A,!1),S=u(A,!0),x=n.start||0,_=x;function C(){r=w(!0),o=n.perMove,a=n.perPage,i=N();var e=ce(x,0,b?i:r-1);e!==x&&(x=e,d.reposition())}function T(){i!==N()&&l(De)}function A(e,t){var n=o||(O()?1:a),r=M(x+n*(e?-1:1),x,!(o||O()));return-1===r&&k&&!se(f(),h(!e),1)?e?0:i:t?r:L(r)}function M(t,s,u){if(g()||O()){var c=function(t){if(k&&"move"===n.trimSpace&&t!==x)for(var i=f();i===p(t,!0)&&ue(t,0,e.length-1,!n.rewind);)t<x?--t:++t;return t}(t);c!==t&&(s=t,t=c,u=!1),t<0||t>i?t=o||!ue(0,t,s,!0)&&!ue(i,s,t,!0)?E?u?t<0?-(r%a||a):r:t:n.rewind?t<0?i:0:-1:F(I(t)):u&&t!==s&&(t=F(I(s)+(t<s?-1:1)))}else t=-1;return t}function L(e){return E?(e+r)%r||0:e}function N(){for(var e=r-(O()||E&&o?1:a);b&&e-- >0;)if(p(r-1,!0)!==p(e,!0)){e++;break}return ce(e,0,r-1)}function F(e){return ce(O()?e:a*e,0,i)}function I(e){return O()?ne(e,i):re((e>=i?r-1:e)/a)}function j(e){e!==x&&(_=x,x=e)}function O(){return!m(n.focus)||n.isNavigation}function R(){return e.state.is([4,5])&&!!n.waitForTransition}return{mount:function(){C(),c([_e,xe,De],C),c(Te,T)},go:function(e,t,n){if(!R()){var r=function(e){var t=x;if(y(e)){var n=e.match(/([+\-<>])(\d+)?/)||[],r=n[1],o=n[2];"+"===r||"-"===r?t=M(x+ +(""+r+(+o||1)),x):">"===r?t=o?F(+o):P(!0):"<"===r&&(t=S(!0))}else t=E?e:ce(e,0,i);return t}(e),o=L(r);o>-1&&(t||o!==x)&&(j(o),d.move(r,o,_,n))}},scroll:function(e,n,r,o){t.Scroll.scroll(e,n,r,function(){var e=L(d.toIndex(f()));j(b?ne(e,i):e),o&&o()})},getNext:P,getPrev:S,getAdjacent:A,getEnd:N,setIndex:j,getIndex:function(e){return e?_:x},toIndex:F,toPage:I,toDest:function(e){var t=d.toIndex(e);return k?ce(t,0,i):t},hasFocus:O,isBusy:R}},Arrows:function(e,t,n){var i,r,o=ze(e),a=o.on,s=o.bind,c=o.emit,l=n.classes,d=n.i18n,f=t.Elements,h=t.Controller,p=f.arrows,v=f.track,y=p,m=f.prev,g=f.next,w={};function b(){!function(){var e=n.arrows;
2!e||m&&g||(y=p||V("div",l.arrows),m=S(!0),g=S(!1),i=!0,_(y,[m,g]),!p&&C(y,v));m&&g&&(F(w,{prev:m,next:g}),z(y,e?"":"none"),x(y,r=wt+"--"+n.direction),e&&(a([ye,we,xe,Me,De],T),s(g,"click",u(P,">")),s(m,"click",u(P,"<")),T(),R([m,g],Ze,v.id),c(Ne,m,g)))}(),a(_e,E)}function E(){k(),b()}function k(){o.destroy(),Q(y,r),i?(Y(p?[m,g]:y),m=g=null):O([m,g],lt)}function P(e){h.go(e,!0)}function S(e){return H('<button class="'+l.arrow+" "+(e?l.prev:l.next)+'" type="button"><svg xmlns="'+Yt+'" viewBox="0 0 '+"40 "+'40" width="'+'40" height="'+'40" focusable="false"><path d="'+(n.arrowPath||Ht)+'" />')}function T(){if(m&&g){var t=e.index,n=h.getPrev(),i=h.getNext(),r=n>-1&&t<n?d.last:d.prev,o=i>-1&&t>i?d.first:d.next;m.disabled=n<0,g.disabled=i<0,R(m,nt,r),R(g,nt,o),c("arrows:updated",m,g,n,i)}}return{arrows:w,mount:b,destroy:k,update:T}},Autoplay:function(e,t,n){var i,r,o=ze(e),a=o.on,s=o.bind,u=o.emit,c=qe(n.interval,e.go.bind(e,">"),function(e){var t=d.bar;t&&D(t,"width",100*e+"%"),u("autoplay:playing",e)}),l=c.isPaused,d=t.Elements,f=t.Elements,h=f.root,p=f.toggle,v=n.autoplay,y="pause"===v;function m(){l()&&t.Slides.isEnough()&&(c.start(!n.resetProgress),r=i=y=!1,b(),u(Ie))}function g(e){void 0===e&&(e=!0),y=!!e,b(),l()||(c.pause(),u(je))}function w(){y||(i||r?g(!1):m())}function b(){p&&(S(p,At,!y),R(p,nt,n.i18n[y?"play":"pause"]))}function E(e){var i=t.Slides.getAt(e);c.set(i&&+W(i.slide,Ut)||n.interval)}return{mount:function(){v&&(!function(){n.pauseOnHover&&s(h,"mouseenter mouseleave",function(e){i="mouseenter"===e.type,w()});n.pauseOnFocus&&s(h,"focusin focusout",function(e){r="focusin"===e.type,w()});p&&s(p,"click",function(){y?m():g(!0)});a([ge,Ae,xe],c.rewind),a(ge,E)}(),p&&R(p,Ze,d.track.id),y||m(),b())},destroy:c.cancel,play:m,pause:g,isPaused:l}},Cover:function(e,t,n){var i=ze(e).on;function r(e){t.Slides.forEach(function(t){var n=M(t.container||t.slide,"img");n&&n.src&&o(e,n,t)})}function o(e,t,n){n.style("background",e?'center/cover no-repeat url("'+t.src+'")':"",!0),z(t,e?"none":"")}return{mount:function(){n.cover&&(i(Oe,u(o,!0)),i([ye,_e,xe],u(r,!0)))},destroy:u(r,!1)}},Scroll:function(e,t,n){var i,r,o=ze(e),a=o.on,s=o.emit,c=e.state.set,l=t.Move,d=l.getPosition,f=l.getLimit,h=l.exceededLimit,p=l.translate,v=e.is(qt),y=1;function m(e,n,o,a,f){var p=d();if(b(),o&&(!v||!h())){var m=t.Layout.sliderSize(),E=le(e)*m*re(ae(e)/m)||0;e=l.toPosition(t.Controller.toDest(e%m))+E}var k=se(p,e,1);y=1,n=k?0:n||ie(ae(e-p)/1.5,800),r=a,i=qe(n,g,u(w,p,e,f),1),c(5),s(Ae),i.start()}function g(){c(3),r&&r(),s(Me)}function w(e,t,i,o){var a=d(),s=(e+(t-e)*function(e){var t=n.easingFunc;return t?t(e):1-Math.pow(1-e,4)}(o)-a)*y;p(a+s),v&&!i&&h()&&(y*=.6,ae(s)<10&&m(f(h(!0)),600,!1,r,!0))}function b(){i&&i.cancel()}function E(){i&&!i.isPaused()&&(b(),g())}return{mount:function(){a(ge,b),a([_e,xe],E)},destroy:b,scroll:m,cancel:E}},Drag:function(e,t,n){var i,r,o,a,s,u,c,d,f=ze(e),p=f.on,v=f.emit,y=f.bind,m=f.unbind,g=e.state,w=t.Move,b=t.Scroll,E=t.Controller,k=t.Elements.track,P=t.Media.reduce,S=t.Direction,x=S.resolve,_=S.orient,C=w.getPosition,A=w.exceededLimit,M=!1;function L(){var e=n.drag;W(!e),a="free"===e}function N(e){if(u=!1,!c){var t=q(e);!function(e){var t=n.noDrag;return!T(e,"."+St+", ."+bt)&&(!t||!T(e,t))}(e.target)||!t&&e.button||(E.isBusy()?U(e,!0):(d=t?k:window,s=g.is([4,5]),o=null,y(d,Dt,F,Xt),y(d,zt,I,Xt),w.cancel(),b.cancel(),O(e)))}}function F(t){if(g.is(6)||(g.set(6),v("drag")),t.cancelable)if(s){w.translate(i+R(t)/(M&&e.is(qt)?5:1));var r=V(t)>200,o=M!==(M=A());(r||o)&&O(t),u=!0,v("dragging"),U(t)}else(function(e){return ae(R(e))>ae(R(e,!0))})(t)&&(s=function(e){var t=n.dragMinThreshold,i=h(t),r=i&&t.mouse||0,o=(i?t.touch:+t)||10;return ae(R(e))>(q(e)?o:r)}(t),U(t))}function I(i){g.is(6)&&(g.set(3),v("dragged")),s&&(!function(i){var r=function(t){if(e.is(Wt)||!M){var n=V(t);if(n&&n<200)return R(t)/n}return 0}(i),o=function(e){return C()+le(e)*ne(ae(e)*(n.flickPower||600),a?1/0:t.Layout.listSize()*(n.flickMaxPages||1))}(r),s=n.rewind&&n.rewindByDrag;P(!1),a?E.scroll(o,0,n.snap):e.is($t)?E.go(_(le(r))<0?s?"<":"-":s?">":"+"):e.is(qt)&&M&&s?E.go(A(!0)?">":"<"):E.go(E.toDest(o),!0);P(!0)}(i),U(i)),m(d,Dt,F),m(d,zt,I),s=!1}function j(e){!c&&u&&U(e,!0)}function O(e){o=r,r=e,i=C()}function R(e,t){return z(e,t)-z(D(e),t)}function V(e){return J(e)-J(D(e))}function D(e){return r===e&&o||r}function z(e,t){return(q(e)?e.changedTouches[0]:e)["page"+x(t?"Y":"X")]}function q(e){return"undefined"!==typeof TouchEvent&&e instanceof TouchEvent}function W(e){c=e}return{mount:function(){y(k,Dt,l,Xt),y(k,zt,l,Xt),y(k,Vt,N,Xt),y(k,"click",j,{capture:!0}
vendor: 5,914 bytes, line 2
2),y(k,"dragstart",U),p([ye,_e],L)},disable:W,isDragging:function(){return s}}},Keyboard:function(e,t,n){var i,r,o=ze(e),a=o.on,s=o.bind,u=o.unbind,l=e.root,d=t.Direction.resolve;function f(){var e=n.keyboard;e&&(i="global"===e?window:l,s(i,Jt,v))}function h(){u(i,Jt)}function p(){var e=r;r=!0,c(function(){r=e})}function v(t){if(!r){var n=Qt(t);n===d($e)?e.go("<"):n===d(Be)&&e.go(">")}}return{mount:function(){f(),a(_e,h),a(_e,f),a(ge,p)},destroy:h,disable:function(e){r=e}}},LazyLoad:function(e,t,n){var i=ze(e),r=i.on,o=i.off,s=i.bind,c=i.emit,l="sequential"===n.lazyLoad,d=[we,Me],f=[];function h(){a(f),t.Slides.forEach(function(e){G(e.slide,en).forEach(function(t){var i=W(t,Kt),r=W(t,Zt);if(i!==t.src||r!==t.srcset){var o=n.classes.spinner,a=t.parentElement,s=M(a,"."+o)||V("span",o,a);f.push([t,e,s]),t.src||z(t,"none")}})}),l?m():(o(d),r(d,p),p())}function p(){(f=f.filter(function(t){var i=n.perPage*((n.preloadPages||1)+1)-1;return!t[1].isWithin(e.index,i)||v(t)})).length||o(d)}function v(e){var t=e[0];x(e[1].slide,Ft),s(t,"load error",u(y,e)),R(t,"src",W(t,Kt)),R(t,"srcset",W(t,Zt)),O(t,Kt),O(t,Zt)}function y(e,t){var n=e[0],i=e[1];Q(i.slide,Ft),"error"!==t.type&&(Y(e[2]),z(n,""),c(Oe,n,i),c(Ce)),l&&m()}function m(){f.length&&v(f.shift())}return{mount:function(){n.lazyLoad&&(h(),r(xe,h))},destroy:u(a,f),check:p}},Pagination:function(e,t,n){var i,r,o=ze(e),c=o.on,l=o.emit,d=o.bind,f=t.Slides,h=t.Elements,p=t.Controller,v=p.hasFocus,y=p.getIndex,m=p.go,g=t.Direction.resolve,w=h.pagination,b=[];function E(){i&&(Y(w?s(i.children):i),Q(i,r),a(b),i=null),o.destroy()}function k(e){m(">"+e,!0)}function P(e,t){var n=b.length,i=Qt(t),r=S(),o=-1;i===g(Be,!1,r)?o=++e%n:i===g($e,!1,r)?o=(--e+n)%n:"Home"===i?o=0:"End"===i&&(o=n-1);var a=b[o];a&&(q(a.button),m(">"+o),U(t,!0))}function S(){return n.paginationDirection||n.direction}function _(e){return b[p.toPage(e)]}function C(){var e=_(y(!0)),t=_(y());if(e){var n=e.button;Q(n,At),O(n,tt),R(n,Je,-1)}if(t){var r=t.button;x(r,At),R(r,tt,!0),R(r,Je,"")}l("pagination:updated",{list:i,items:b},e,t)}return{items:b,mount:function t(){E(),c([_e,xe,De],t);var o=n.pagination;w&&z(w,o?"":"none"),o&&(c([ge,Ae,Me],C),function(){var t=e.length,o=n.classes,a=n.i18n,s=n.perPage,c=v()?p.getEnd()+1:oe(t/s);x(i=w||V("ul",o.pagination,h.track.parentElement),r=Pt+"--"+S()),R(i,Qe,"tablist"),R(i,nt,a.select),R(i,ot,S()===Ue?"vertical":"");for(var l=0;l<c;l++){var y=V("li",null,i),m=V("button",{class:o.page,type:"button"},y),g=f.getIn(l).map(function(e){return e.slide.id}),E=!v()&&s>1?a.pageX:a.slideX;d(m,"click",u(k,l)),n.paginationKeyboard&&d(m,"keydown",u(P,l)),R(y,Qe,"presentation"),R(m,Qe,"tab"),R(m,Ze,g.join(" ")),R(m,nt,de(E,l+1)),R(m,Je,-1),b.push({li:y,button:m,page:l})}}(),C(),l("pagination:mounted",{list:i,items:b},_(e.index)))},destroy:E,getAt:_,update:C}},Sync:function(e,t,n){var i=n.isNavigation,r=n.slideFocus,o=[];function s(){e.splides.forEach(function(t){t.isParent||(l(e,t.splide),l(t.splide,e))}),i&&function(){var t=ze(e),n=t.on;n(be,f),n(Re,h),n([ye,_e],d),o.push(t),t.emit(Fe,e.splides)}()}function c(){o.forEach(function(e){e.destroy()}),a(o)}function l(e,t){var n=ze(e);n.on(ge,function(e,n,i){t.go(t.is(Wt)?i:e)}),o.push(n)}function d(){R(t.Elements.list,ot,n.direction===Ue?"vertical":"")}function f(t){e.go(t.index)}function h(e,t){k(tn,Qt(t))&&(f(e),U(t))}return{setup:u(t.Media.set,{slideFocus:m(r)?i:r},!0),mount:s,destroy:c,remount:function(){c(),s()}}},Wheel:function(e,t,n){var i=ze(e).bind,r=0;function o(i){if(i.cancelable){var o=i.deltaY,a=o<0,s=J(i),u=n.wheelMinThreshold||0,c=n.wheelSleep||0;ae(o)>u&&s-r>c&&(e.go(a?"<":">"),r=s),function(i){return!n.releaseWheel||e.state.is(4)||-1!==t.Controller.getAdjacent(i)}(a)&&U(i)}}return{mount:function(){n.wheel&&i(t.Elements.track,"wheel",o,Xt)}}},Live:function(e,t,n){var i=ze(e).on,r=t.Elements.track,o=n.live&&!n.isNavigation,a=V("span",Ct),s=qe(90,u(c,!1));function c(e){R(r,ut,e),e?(_(r,a),s.start()):(Y(a),s.cancel())}function l(e){o&&R(r,st,e?"off":"polite")}return{mount:function(){o&&(l(!t.Autoplay.isPaused()),R(r,ct,!0),a.textContent="â¦",i(Ie,u(l,!0)),i(je,u(l,!1)),i([we,Me],u(c,!0)))},disable:l,destroy:function(){O(r,[st,ct,ut]),Y(a)}}}}),rn={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:Rt,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 on(e,t,n){var i=t.Slides;function r(){i.forEach(function(e){e.style("transform","translateX(-"+100*e.index+"%)")})}return{mount:function(){ze(e).on([ye,xe],r)},start:function(e,t){i.style("transition","opacity "+n.speed+"ms "+n.easing),c(t)},cancel:l}}function an(e,t,n){var i,r=t.Move,o=t.Controller,a=t.Scroll,s=t.Elements.list,c=u(D,s,"transition");function l(){c(""),a.cancel()}return{mount:function(){ze(e).bind(s,"transitionend",function(e){e.target===s&&i&&(l(),i())})},start:function(t,s){var u=r.toPosition(t,!0),l=r.getPosition(),d=function(t){var i=n.rewindSpeed;if(e.is(qt)&&i){var r=o.getIndex(!0),a=o.getEnd();if(0===r&&t>=a||r>=a&&0===t)return i}return n.speed}(t);ae(u-l)>=1&&d>=1?n.useScroll?a.scroll(u,d,!1,s):(c("transform "+d+"ms "+n.easing),r.translate(u,!0),i=s):(r.jump(t),s())},cancel:l}}var sn=function(){function e(t,n){this.event=ze(),this.Components={},this.state=function(e){var t=e;return{set:function(e){t=e},is:function(e){return k(b(e),t)}}}(1),this.splides=[],this._o={},this._E={};var i=y(t)?X(document,t):t;
2te(i,i+" is invalid."),this.root=i,n=I({label:W(i,nt)||"",labelledby:W(i,it)||""},rn,e.defaults,n||{});try{I(n,JSON.parse(W(i,ee)))}catch(e){te(!1,"Invalid JSON")}this._o=Object.create(I({},n))}var t,n,r,o=e.prototype;return o.mount=function(e,t){var n=this,i=this.state,r=this.Components;return te(i.is([1,7]),"Already mounted!"),i.set(1),this._C=r,this._T=t||this._T||(this.is($t)?on:an),this._E=e||this._E,N(F({},nn,this._E,{Transition:this._T}),function(e,t){var i=e(n,r,n._o);r[t]=i,i.setup&&i.setup()}),N(r,function(e){e.mount&&e.mount()}),this.emit(ye),x(this.root,Tt),i.set(3),this.emit(me),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(xe),this},o.destroy=function(e){void 0===e&&(e=!0);var t=this.event,n=this.state;return n.is(1)?ze(this).on(me,this.destroy.bind(this,e)):(N(this._C,function(t){t.destroy&&t.destroy(e)},!0),t.emit(Le),t.destroy(),e&&a(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),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),un=sn;un.defaults={},un.STATES=o;function cn(e,t,n){return Array.prototype.slice.call(e,t,n)}function ln(e){return e.bind.apply(e,[null].concat(cn(arguments,1)))}function dn(e,t){return typeof t===e}var fn=Array.isArray;function hn(e){return fn(e)?e:[e]}function pn(e,t){hn(e).forEach(t)}ln(dn,"function"),ln(dn,"string"),ln(dn,"undefined");var vn=Object.keys;function yn(e){return cn(arguments,1).forEach(function(t){!function(e,t,n){if(e){var i=vn(e);i=n?i.reverse():i;for(var r=0;r<i.length;r++){var o=i[r];if("__proto__"!==o&&!1===t(e[o],o))break}}}(t,function(n,i){e[i]=t[i]})}),e}var mn="dragging";function gn(e){var t=e?e.event.bus:document.createDocumentFragment(),n=function(){var e=[];function t(e,t,n){pn(e,function(e){e&&pn(t,function(t){t.split(" ").forEach(function(t){var i=t.split(".");n(e,i[0],i[1])})})})}return{bind:function(n,i,r,o){t(n,i,function(t,n,i){var a="addEventListener"in t,s=a?t.removeEventListener.bind(t,n,r,o):t.removeListener.bind(t,r);a?t.addEventListener(n,r,o):t.addListener(r),e.push([t,n,i,r,s])})},unbind:function(n,i,r){t(n,i,function(t,n,i){e=e.filter(function(e){return!!(e[0]!==t||e[1]!==n||e[2]!==i||r&&e[3]!==r)||(e[4](),!1)})})},dispatch:function(e,t,n){var i,r=!0;return"function"===typeof CustomEvent?i=new CustomEvent(t,{bubbles:r,detail:n}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,r,!1,n),e.dispatchEvent(i),i},destroy:function(){e.forEach(function(e){e[4]()}),e.length=0}}}();return e&&e.event.on("destroy",n.destroy),yn(n,{bus:t,on:function(e,i){n.bind(t,hn(e).join(" "),function(e){i.apply(i,fn(e.detail)?e.detail:[])})},off:ln(n.unbind,t),emit:function(e){n.dispatch(t,e,cn(arguments,1))}})}var wn="splide__slide",bn=wn+"__container";function En(e,t,n){return Array.prototype.slice.call(e,t,n)}function kn(e){return e.bind(null,...En(arguments,1))}function Pn(e,t){return typeof t===e}function Sn(e){return!An(e)&&Pn("object",e)}const xn=Array.isArray,_n=kn(Pn,"function"),Cn=kn(Pn,"string"),Tn=kn(Pn,"undefined");function An(e){return null===e}function Mn(e,t){var n;(n=e,xn(n)?n:[n]).forEach(t)}function Ln(e,t,n){e&&Mn(t,t=>{t&&e.classList[n?"add":"remove"](t)})}function Nn(e,t){Ln(e,Cn(t)?t.split(" "):t,!0)}function Fn(e,t){return e instanceof HTMLElement&&(e.msMatchesSelector||e.matches).call(e,t)}function In(e,t){return t?function(e,t){const n=e?En(e.children):[];return t?n.filter(e=>Fn(e,t)):n}(e,t)[0]:e.firstElementChild}const jn=Object.keys;function On(e,t,n){if(e){let i=jn(e);i=n?i.reverse():i;for(let n=0;n<i.length;n++){const r=i[n];if("__proto__"!==r&&!1===t(e[r],r))break}}return e}
2function Rn(e){return En(arguments,1).forEach(t=>{On(t,(n,i)=>{e[i]=t[i]})}),e}function Vn(e){return En(arguments,1).forEach(t=>{On(t,(t,n)=>{xn(t)?e[n]=t.slice():Sn(t)?e[n]=Vn({},Sn(e[n])?e[n]:{},t):e[n]=t})}),e}function Dn(e,t,n){Sn(t)?On(t,(t,n)=>{Dn(e,n,t)}):Mn(e,e=>{An(n)||""===n?function(e,t){Mn(e,e=>{Mn(t,t=>{e&&e.removeAttribute(t)})})}(e,t):e.setAttribute(t,String(n))})}function zn(e,t,n){const i=document.createElement(e);return t&&(Cn(t)?Nn(i,t):Dn(i,t)),n&&function(e,t){Mn(t,e.appendChild.bind(e))}(n,i),i}function qn(e,t){!function(e,t,n){if(Tn(n))return getComputedStyle(e)[t];An(n)||(e.style[t]=`${n}`)}(e,"display",t)}function Wn(e,t){Ln(e,t,!1)}const{min:$n,max:Bn,floor:Yn,ceil:Hn,abs:Un}=Math;function Xn(e,t,n){const i=$n(t,n),r=Bn(t,n);return $n(Bn(i,e),r)}const Gn="splide__video",Qn=`${Gn}__wrapper`,Jn=`${Gn}__play`,Kn="--has-video",Zn={hideControls:!1,loop:!1,mute:!1,volume:.2},ei="video:click";class ti{constructor(e,t,n){this.state=function(e){var t=e;return{set:function(e){t=e},is:function(e){return n=hn(e),i=t,n.indexOf(i)>-1;var n,i}}}(1),this.event=gn(),this.target=e,this.videoId=t,this.options=n||{},this.onPlay=this.onPlay.bind(this),this.onPause=this.onPause.bind(this),this.onEnded=this.onEnded.bind(this),this.onPlayerReady=this.onPlayerReady.bind(this),this.onError=this.onError.bind(this)}on(e,t){this.event.on(e,t)}play(){const{state:e}=this;return e.is(9)?(t="Can not play this video.",void console.error(`[splide] ${t}`)):(this.event.emit("play"),e.is(2)?e.set(4):e.is(3)?(this.player=this.createPlayer(this.videoId),e.set(4)):void(e.is([4,8])||e.is(5)&&(e.set(6),this.playVideo())));var t}pause(){const{state:e}=this;if(!e.is(9))return this.event.emit("pause"),e.is(4)?e.set(2):e.is(6)?e.set(7):void(e.is(8)&&(this.pauseVideo(),this.state.set(5)))}isPaused(){return!this.state.is(8)}destroy(){this.event.destroy()}onPlayerReady(){const{state:e}=this,t=e.is(4);e.set(5),t&&this.play()}onPlay(){const{state:e}=this,t=e.is(7);e.set(8),t?this.pause():this.event.emit("played")}onPause(){this.state.set(5),this.event.emit("paused")}onEnded(){this.state.set(5),this.event.emit("ended")}onError(){this.state.set(9),this.event.emit("error")}}function ni(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 ii="undefined"!==typeof e.g&&"[object global]"==={}.toString.call(e.g);function ri(e,t){return 0===e.indexOf(t.toLowerCase())?e:"".concat(t.toLowerCase()).concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}function oi(e){return/^(https?:)?\/\/((player|www)\.)?vimeo\.com(?=$|\/)/.test(e)}function ai(e){return/^https:\/\/player\.vimeo\.com\/video\/\d+/.test(e)}function si(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.id,i=t.url,r=n||i;if(!r)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(e=r,!isNaN(parseFloat(e))&&isFinite(e)&&Math.floor(e)==e)return"https://vimeo.com/".concat(r);if(oi(r))return r.replace("http:","https:");if(n)throw new TypeError("â".concat(n,"â is not a valid video id."));throw new TypeError("â".concat(r,"â is not a vimeo.com url."))}var ui="undefined"!==typeof Array.prototype.indexOf,ci="undefined"!==typeof window&&"undefined"!==typeof window.postMessage;if(!ii&&(!ui||!ci))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var li="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e.g?e.g:"undefined"!==typeof self?self:{};!function(e){if(!e.WeakMap){var t=Object.prototype.hasOwnProperty,n=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(e){}}(),i=function(e,t,i){n?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:i}):e[t]=i};e.WeakMap=function(){function e(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(i(this,"_id","_WeakMap"+"_"+o()+"."+o()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function n(e,n){if(!r(e)||!t.call(e,"_id"))throw new TypeError(n+" method called on incompatible receiver "+typeof e)}function o(){return Math.random().toString().substring(2)}return i(e.prototype,"delete",function(e){if(n(this,"delete"),!r(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)}),i(e.prototype,"get",function(e){if(n(this,"get"),r(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}}),i(e.prototype,"has",function(e){if(n(this,"has"),!r(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)}),i(e.prototype,"set",function(e,t){if(n(this,"set"),!r(e))throw new TypeError("Invalid value used as weak map key");var o=e[this._id];return o&&o[0]===e?(o[1]=t,this):(i(e,this._id,[e,t]),this)}),i(e,"_polyfill",!0),e}()}function r(e){return Object(e)===e}}("undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:li);var di,fi,hi=(di=function(e){var t,n,i;i=function(){var e,t,n,i=Object.prototype.toString,r="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,i){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==i})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function o(e,i){n.add(e,i),t||(t=r(n.drain))}function a(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function s(){for(var e=0;e<this.chain.length;e++)u(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function u(e,t,n){var i,r;try{!1===t?n.reject(e.msg):(i=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(r=a(i))?r.call(i,n.resolve,n.reject):n.resolve(i)}catch(e){n.reject(e)}}function c(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=a(e))?o(function(){var i=new f(n);try{t.call(e,function(){c.apply(i,arguments)},function(){l.apply(i,arguments)})}catch(e){l.call(i,e)}}):(n.msg=e,n.state=1,n.chain.length>0&&o(s,n))}catch(e){l.call(new f(n),e)}}}function l(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&o(s,t))}function d(e,t,n,i){for(var r=0;r<t.length;r++)(function(r){e.resolve(t[r]).then(function(e){n(r,e)},i)})(r)}function f(e){this.def=e,this.triggered=!1}function h(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function p(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new h(this);this.then=function(e,n){var i={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return i.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");i.resolve=e,i.reject=t}),t.chain.push(i),0!==t.state&&o(s,t),i.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){c.call(t,e)},function(e){l.call(t,e)})}catch(e){l.call(t,e)}}n=function(){var e,n,i;function r(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,o){i=new r(t,o),n?n.next=i:e=i,n=i,i=void 0},drain:function(){var i=e;for(e=n=t=void 0;i;)i.fn.call(i.self),i=i.next}}}();var v=e({},"constructor",p,!1);return p.prototype=v,e(v,"__NPO__",0,!1),e(p,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),e(p,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),e(p,"all",function(e){var t=this;return"[object Array]"!=i.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,i){if
2("function"!=typeof n||"function"!=typeof i)throw TypeError("Not a function");var r=e.length,o=Array(r),a=0;d(t,e,function(e,t){o[e]=t,++a===r&&n(o)},i)})}),e(p,"race",function(e){var t=this;return"[object Array]"!=i.call(e)?t.reject(TypeError("Not an array")):new t(function(n,i){if("function"!=typeof n||"function"!=typeof i)throw TypeError("Not a function");d(t,e,function(e,t){n(t)},i)})}),p},(n=li)[t="Promise"]=n[t]||i(),e.exports&&(e.exports=n[t])},di(fi={exports:{}},fi.exports),fi.exports),pi=new WeakMap;function vi(e,t,n){var i=pi.get(e.element)||{};t in i||(i[t]=[]),i[t].push(n),pi.set(e.element,i)}function yi(e,t){return(pi.get(e.element)||{})[t]||[]}function mi(e,t,n){var i=pi.get(e.element)||{};if(!i[t])return!0;if(!n)return i[t]=[],pi.set(e.element,i),!0;var r=i[t].indexOf(n);return-1!==r&&i[t].splice(r,1),pi.set(e.element,i),i[t]&&0===i[t].length}function gi(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function wi(e,t,n){if(e.element.contentWindow&&e.element.contentWindow.postMessage){var i={method:t};void 0!==n&&(i.value=n);var r=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));r>=8&&r<10&&(i=JSON.stringify(i)),e.element.contentWindow.postMessage(i,e.origin)}}function bi(e,t){var n,i=[];if((t=gi(t)).event){if("error"===t.event)yi(e,t.data.method).forEach(function(n){var i=new Error(t.data.message);i.name=t.data.name,n.reject(i),mi(e,t.data.method,n)});i=yi(e,"event:".concat(t.event)),n=t.data}else if(t.method){var r=function(e,t){var n=yi(e,t);if(n.length<1)return!1;var i=n.shift();return mi(e,t,i),i}(e,t.method);r&&(i.push(r),n=t.value)}i.forEach(function(t){try{if("function"===typeof t)return void t.call(e,n);t.resolve(n)}catch(e){}})}var Ei=["autopause","autoplay","background","byline","color","controls","dnt","height","id","interactive_params","keyboard","loop","maxheight","maxwidth","muted","playsinline","portrait","responsive","speed","texttrack","title","transparent","url","width"];function ki(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ei.reduce(function(t,n){var i=e.getAttribute("data-vimeo-".concat(n));return(i||""===i)&&(t[n]=""===i?1:i),t},t)}function Pi(e,t){var n=e.html;if(!t)throw new TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");var i=document.createElement("div");return i.innerHTML=n,t.appendChild(i.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function Si(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise(function(i,r){if(!oi(e))throw new TypeError("â".concat(e,"â is not a vimeo.com url."));var o="https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(e));for(var a in t)t.hasOwnProperty(a)&&(o+="&".concat(a,"=").concat(encodeURIComponent(t[a])));var s="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;s.open("GET",o,!0),s.onload=function(){if(404!==s.status)if(403!==s.status)try{var t=JSON.parse(s.responseText);if(403===t.domain_status_code)return Pi(t,n),void r(new Error("â".concat(e,"â is not embeddable.")));i(t)}catch(e){r(e)}else r(new Error("â".concat(e,"â is not embeddable.")));else r(new Error("â".concat(e,"â was not found.")))},s.onerror=function(){var e=s.status?" (".concat(s.status,")"):"";r(new Error("There was an error fetching the embed code from Vimeo".concat(e,".")))},s.send()})}var xi=new WeakMap,_i=new WeakMap,Ci={},Ti=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),window.jQuery&&t instanceof jQuery&&(t.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),t=t[0]),"undefined"!==typeof document&&"string"===typeof t&&(t=document.getElementById(t)),!function(e){return Boolean(e&&1===e.nodeType&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}(t))throw new TypeError("You must pass either a valid element or a valid id.");
2if("IFRAME"!==t.nodeName){var r=t.querySelector("iframe");r&&(t=r)}if("IFRAME"===t.nodeName&&!oi(t.getAttribute("src")||""))throw new Error("The player element passed isnât a Vimeo embed.");if(xi.has(t))return xi.get(t);this._window=t.ownerDocument.defaultView,this.element=t,this.origin="*";var o=new hi(function(e,r){if(n._onMessage=function(t){if(oi(t.origin)&&n.element.contentWindow===t.source){"*"===n.origin&&(n.origin=t.origin);var i=gi(t.data);if(i&&"error"===i.event&&i.data&&"ready"===i.data.method){var o=new Error(i.data.message);return o.name=i.data.name,void r(o)}var a=i&&"ready"===i.event,s=i&&"ping"===i.method;if(a||s)return n.element.setAttribute("data-ready","true"),void e();bi(n,i)}},n._window.addEventListener("message",n._onMessage),"IFRAME"!==n.element.nodeName){var o=ki(t,i);Si(si(o),o,t).then(function(e){var i=Pi(e,t);return n.element=i,n._originalElement=t,function(e,t){var n=pi.get(e);pi.set(t,n),pi.delete(e)}(t,i),xi.set(n.element,n),e}).catch(r)}});if(_i.set(this,o),xi.set(this.element,this),"IFRAME"===this.element.nodeName&&wi(this,"ping"),Ci.isEnabled){var a=function(){return Ci.exit()};this.fullscreenchangeHandler=function(){Ci.isFullscreen?vi(n,"event:exitFullscreen",a):mi(n,"event:exitFullscreen",a),n.ready().then(function(){wi(n,"fullscreenchange",Ci.isFullscreen)})},Ci.on("fullscreenchange",this.fullscreenchangeHandler)}return this}var t,n,i;return t=e,n=[{key:"callMethod",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new hi(function(i,r){return t.ready().then(function(){vi(t,e,{resolve:i,reject:r}),wi(t,e,n)}).catch(r)})}},{key:"get",value:function(e){var t=this;return new hi(function(n,i){return e=ri(e,"get"),t.ready().then(function(){vi(t,e,{resolve:n,reject:i}),wi(t,e)}).catch(i)})}},{key:"set",value:function(e,t){var n=this;return new hi(function(i,r){if(e=ri(e,"set"),void 0===t||null===t)throw new TypeError("There must be a value to set.");return n.ready().then(function(){vi(n,e,{resolve:i,reject:r}),wi(n,e,t)}).catch(r)})}},{key:"on",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!==typeof t)throw new TypeError("The callback must be a function.");0===yi(this,"event:".concat(e)).length&&this.callMethod("addEventListener",e).catch(function(){}),vi(this,"event:".concat(e),t)}},{key:"off",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&"function"!==typeof t)throw new TypeError("The callback must be a function.");mi(this,"event:".concat(e),t)&&this.callMethod("removeEventListener",e).catch(function(e){})}},{key:"loadVideo",value:function(e){return this.callMethod("loadVideo",e)}},{key:"ready",value:function(){var e=_i.get(this)||new hi(function(e,t){t(new Error("Unknown player. Probably unloaded."))});return hi.resolve(e)}},{key:"addCuePoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}},{key:"removeCuePoint",value:function(e){return this.callMethod("removeCuePoint",e)}},{key:"enableTextTrack",value:function(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return Ci.isEnabled?Ci.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return Ci.isEnabled?Ci.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return Ci.isEnabled?hi.resolve(Ci.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var e=this;return new hi(function(t){if(_i.delete(e),xi.delete(e.element),e._originalElement&&(xi.delete(e._originalElement),e._originalElement.removeAttribute("data-vimeo-initialized")),e.element&&"IFRAME"===e.element.nodeName&&e.element.parentNode&&(e.element.parentNode.parentNode&&e._originalElement&&e._originalElement!==e.element.parentNode?e.element.parentNode.parentNode.removeChild(e.element.parentNode):e.element.parentNode.removeChild(e.element)),e.element&&"DIV"===e.element.nodeName&&e.element.parentNode){e.element.removeAttribute("data-vimeo-initialized");var n=e.element.querySelector("iframe");n&&n.parentNode&&(n.parentNode.parentNode&&e._originalElement&&e._originalElement!==n.parentNode?n.parentNode.parentNode.removeChild(n.parentNode):n.parentNode.removeChild(n))}e._window.removeEventListener("message",e._onMessage),Ci.isEnabled&&Ci.off("fullscreenchange",e.fullscreenchangeHandler),t()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(e){return this.set("autopause",e)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(e){return this.set("cameraProps",e)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"setColor",value:function(e){return this.set("color",e)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(e){return this.set("currentTime",e)}
2},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(e){return this.set("loop",e)}},{key:"setMuted",value:function(e){return this.set("muted",e)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(e){return this.set("playbackRate",e)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(e){return this.set("quality",e)}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(e){return this.set("volume",e)}}],n&&ni(t.prototype,n),i&&ni(t,i),e}();ii||(Ci=function(){var e=function(){for(var e,t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,i=t.length,r={};n<i;n++)if((e=t[n])&&e[1]in document){for(n=0;n<e.length;n++)r[t[0][n]]=e[n];return r}return!1}(),t={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},n={request:function(t){return new Promise(function(i,r){var o=function e(){n.off("fullscreenchange",e),i()};n.on("fullscreenchange",o);var a=(t=t||document.documentElement)[e.requestFullscreen]();a instanceof Promise&&a.then(o).catch(r)})},exit:function(){return new Promise(function(t,i){if(n.isFullscreen){var r=function e(){n.off("fullscreenchange",e),t()};n.on("fullscreenchange",r);var o=document[e.exitFullscreen]();o instanceof Promise&&o.then(r).catch(i)}else t()})},on:function(e,n){var i=t[e];i&&document.addEventListener(i,n)},off:function(e,n){var i=t[e];i&&document.removeEventListener(i,n)}};return Object.defineProperties(n,{isFullscreen:{get:function(){return Boolean(document[e.fullscreenElement])}},element:{enumerable:!0,get:function(){return document[e.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(document[e.fullscreenEnabled])}}}),n}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(e){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(e))};t.forEach(function(e){try{if(null!==e.getAttribute("data-vimeo-defer"))return;var t=ki(e);Si(si(t),t,e).then(function(t){return Pi(t,e)}).catch(n)}catch(e){n(e)}})}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",function(t){if(oi(t.origin)&&t.data&&"spacechange"===t.data.event)for(var n=e.querySelectorAll("iframe"),i=0;i<n.length;i++)if(n[i].contentWindow===t.source){n[i].parentElement.style.paddingBottom="".concat(t.data.data[0].bottom,"px");break}}
2))}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoSeoMetadataAppended||(window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",function(t){if(oi(t.origin)){var n=gi(t.data);if(n&&"ready"===n.event)for(var i=e.querySelectorAll("iframe"),r=0;r<i.length;r++){var o=i[r],a=o.contentWindow===t.source;ai(o.src)&&a&&new Ti(o).callMethod("appendVideoMetadata",window.location.href)}}}))}());const Ai="//www.youtube.com/player_api";class Mi{load(e){if(window.YT&&_n(window.YT.Player))return e();this.attachCallback(e),this.shouldLoad()&&zn("script",{src:`${location.protocol}${Ai}`},document.head)}shouldLoad(){return!(e=document,t="script",t?En(e.querySelectorAll(t)):[]).some(e=>e.src.replace(/^https?:/,"")===Ai);var e,t}attachCallback(e){let t;Tn(window.onYouTubeIframeAPIReady)||(t=window.onYouTubeIframeAPIReady),window.onYouTubeIframeAPIReady=()=>{t&&t(),e()}}}const Li="Play Video";class Ni{constructor(e,t){this.event=gn(),this.Splide=e,this.slide=t,this.container=In(this.slide,`.${bn}`),this.parent=this.container||this.slide,this.init(),this.create(),this.show(),this.listen()}init(){Nn(this.slide,`${wn}${Kn}`),Nn(this.container,`${bn}${Kn}`)}create(){this.video=zn("div",Gn,this.parent),this.playButton=zn("button",{class:Jn,type:"button","aria-label":this.Splide.options.i18n.playVideo||Li},this.video),this.wrapper=zn("div",Qn,this.video),this.placeholder=zn("div",null,this.wrapper)}listen(){this.parent.addEventListener("click",()=>{this.event.emit("click")})}toggleButton(e){qn(this.playButton,e?"":"none")}toggleWrapper(e){qn(this.wrapper,e?"":"none")}getPlaceholder(){return this.placeholder}hide(){this.toggleButton(!1),this.toggleWrapper(!0)}show(){this.disabled||this.toggleButton(!0),this.toggleWrapper(!1)}disable(e){this.disabled=e,e&&this.toggleButton(!1)}on(e,t){this.event.on(e,t)}destroy(){Wn(this.slide,`${wn}${Kn}`),Wn(this.container,`${bn}${Kn}`),Mn(this.video,e=>{e&&e.parentNode&&e.parentNode.removeChild(e)}),this.event.destroy()}}const Fi=[["data-splide-youtube",class extends ti{constructor(e,t,n={}){super(e,t,n),this.videoId=this.parseVideoId(t),this.videoId&&(this.state.set(2),(new Mi).load(this.onAPIReady.bind(this)))}onAPIReady(){const{state:e}=this,t=e.is(4);e.set(3),t&&this.play()}createPlayer(e){const{options:t,options:{playerOptions:n={}}}=this;return new YT.Player(this.target,{videoId:e,host:t.host,playerVars:Rn({controls:t.hideControls?0:1,iv_load_policy:3,loop:t.loop?1:0,playlist:t.loop?e:void 0,rel:0,autoplay:0,mute:t.mute?1:0},n.youtube||{}),events:{onReady:this.onPlayerReady.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onError:this.onError.bind(this)}})}onPlayerReady(){super.onPlayerReady(),this.player.setVolume(100*Xn(this.options.volume,0,1))}onPlayerStateChange(e){const{PLAYING:t,PAUSED:n,ENDED:i}=YT.PlayerState;switch(!0){case e.data===t:this.onPlay();break;case e.data===n:this.onPause();break;case e.data===i:this.onEnded()}}playVideo(){this.player.playVideo()}pauseVideo(){this.player.pauseVideo()}parseVideoId(e){return 0===e.indexOf("http")?this.parseUrl(e):e}parseUrl(e){const[,t]=e.split(/[#?]/),n=(i=t.split("&"),r=e=>0===e.indexOf("v="),En(i).filter(r)[0]);var i,r;return n&&n.replace("v=","")}}],["data-splide-vimeo",class extends ti{constructor(e,t,n={}){super(e,t,n),this.state.set(3)}createPlayer(e){const{options:t,options:{playerOptions:n={}}}=this,i=0===e.indexOf("http")?{url:e}:{id:+e},r=new Ti(this.target,Rn(i,{controls:!t.hideControls,loop:t.loop,muted:t.mute},n.vimeo||{}));return r.on("play",this.onPlay),r.on("pause",this.onPause),r.on("ended",this.onEnded),r.ready().then(this.onPlayerReady,this.onError),r.getMuted()||r.setVolume(Xn(t.volume,0,1)),r}playVideo(){this.player.play().catch(()=>{this.state.is(7)&&this.state.set(5)})}pauseVideo(){this.player.pause()}}],["data-splide-html-video",class extends ti{constructor(e,t,n={}){super(e,t,n),this.state.set(3)}createPlayer(e){const{options:t,options:{playerOptions:n={}}}=this,i=zn("video",{src:e},this.target),r=i.addEventListener.bind(i);return Rn(i,{controls:!t.hideControls,loop:t.loop,volume:Xn(t.volume,0,1),muted:t.mute},n.htmlVideo||{}),r("play",this.onPlay),r("pause",this.onPause),r("ended",this.onEnded),r("loadeddata",this.onPlayerReady),r("error",this.onError),i}playVideo(){const e=this.player.play();e&&e.catch(this.onError.bind(this))}pauseVideo(){this.player.pause()}onError(){this.state.is(7)?this.state.set(5):super.onError()}destroy(){super.destroy();const{player:e}=this,t=e.addEventListener.bind(e);t("play",this.onPlay),t("pause",this.onPause),t("ended",this.onEnded),t("loadeddata",this.onPlayerReady)}}]];class Ii{constructor(e,t){this.Splide=e,this.slide=t,this.event=gn(e),this.options=Vn(Vn({},Zn),this.Splide.options.video),this.createPlayer(t),this.player&&this.listen()}createPlayer(e){Fi.forEach(([t,n])=>{const i=function(e,t){return e.getAttribute(t)}(e,t);i&&(this.ui=new Ni(this.Splide,e),this.player=new n(this.ui.getPlaceholder(),i,this.options),this.ui.disable(this.options.disableOverlayUI))})}listen(){const{player:e,event:t}=this;this.ui.on("click",this.onClick.bind(this)),e.on("play",this.onPlay.bind(this)),e.on("played",this.onPlayed.bind(this)),e.on("pause",this.onPause.bind(this)),e.on("paused",this.onPaused.bind(this)),e.on("ended",this.onEnded.bind(this)),e.on("error",this.onError.bind(this)),t.on(["move","scroll"],this.pause.bind(this)),t.on(ei,this.onVideoClick.bind(this)),t.on("drag",()=>
2{t.off(mn),t.on(mn,()=>{this.pause(),t.off(mn)})}),this.options.autoplay&&t.on(["mounted","moved","scrolled"],this.onAutoplayRequested.bind(this))}onClick(){this.isPaused()?this.play():this.pause(),this.event.emit(ei,this)}onVideoClick(e){this!==e&&this.pause()}onPlay(){this.ui.hide()}onPlayed(){this.ui.hide(),this.togglePlaying(!0),this.event.emit("video:play",this)}onPause(){this.ui.show()}onPaused(){this.togglePlaying(!1),this.event.emit("video:pause",this)}onEnded(){this.togglePlaying(!1),this.event.emit("video:ended",this)}onError(){Nn(this.slide,"is-error"),this.ui.show(),this.event.emit("video:error",this)}onAutoplayRequested(){this.Splide.Components.Slides.getAt(this.Splide.index).slide===this.slide&&this.play()}togglePlaying(e){Ln(this.Splide.root,"is-playing",e)}play(){this.player&&!this.disabled&&this.player.play()}pause(){this.player&&!this.disabled&&this.player.pause()}destroy(){this.player&&(this.ui.destroy(),this.player.destroy()),this.disable(!1)}disable(e){this.disabled=e,Ln(this.Splide.root,"is-video-disabled",e)}isPaused(){return this.player.isPaused()}}function ji(e,t){const{on:n}=gn(e),{Slides:i}=t,r={};function o(){i.forEach(t=>{const{slide:n}=t;var i,o;o=`${wn}${Kn}`,(i=n)&&i.classList.contains(o)||(r[t.index]=new Ii(e,n))}),i.update()}return{mount:function(){o(),n("refresh",o)},destroy:function(){On(r,e=>{e.destroy()})},play:function(t=e.index){const n=r[t];n&&n.play()},pause:function(){On(r,e=>{e.pause()})},disable:function(e){On(r,t=>{t.disable(e)}
2)}}}const Oi={cover:!0,heightRatio:.5625,lazyLoad:"nearby",pagination:!1,perPage:1,type:"fade",video:{host:"https://www.youtube-nocookie.com"},breakpoints:{768:{arrows:!1}}},Ri={arrows:!1,width:"94vw",fixedWidth:"246px",gap:20,isNavigation:!0,pagination:!1,rewind:!0};var Vi=()=>{const e=document.querySelectorAll(".wp-block-cityam-video-carousel");if(!e)return;e.forEach(e=>(e=>{const t=e.querySelector(".js-carousel-videos");if(!t)return;const n=new un(t,Oi),i=e.querySelector(".js-carousel-thumbs");let r=!1;i&&(r=new un(i,Ri),n.sync(r)),n.mount({Video:ji}),r&&r.mount()})(e))};n()(()=>{Vi()})}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.