PageSourceSearch

https://www.visitnc.com/themes/custom/visitnorthcarolina/dist/js/0…/featured-image-carousel.js?tm8gy7

js visitnc.com collected 2026-10-02 02:43:51 UTC 30,886 bytes, 2 lines download raw bytes

1/*! For license information please see featured-image-carousel.js.LICENSE.txt */
2!function(){"use strict";function t(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var n="(prefers-reduced-motion: reduce)",e={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7};function i(t){t.length=0}function r(t,n,e){return Array.prototype.slice.call(t,n,e)}function o(t){return t.bind.apply(t,[null].concat(r(arguments,1)))}var u=setTimeout,a=function(){};function c(t){return requestAnimationFrame(t)}function s(t,n){return typeof n===t}function l(t){return!h(t)&&s("object",t)}var f=Array.isArray,d=o(s,"function"),v=o(s,"string"),p=o(s,"undefined");function h(t){return null===t}function g(t){try{return t instanceof(t.ownerDocument.defaultView||window).HTMLElement}catch(t){return!1}}function m(t){return f(t)?t:[t]}function y(t,n){m(t).forEach(n)}function b(t,n){return t.indexOf(n)>-1}function w(t,n){return t.push.apply(t,m(n)),t}function E(t,n,e){t&&y(n,(function(n){n&&t.classList[e?"add":"remove"](n)}))}function S(t,n){E(t,v(n)?n.split(" "):n,!0)}function x(t,n){y(n,t.appendChild.bind(t))}function C(t,n){y(t,(function(t){var e=(n||t).parentNode;e&&e.insertBefore(t,n)}))}
2function P(t,n){return g(t)&&(t.msMatchesSelector||t.matches).call(t,n)}function L(t,n){var e=t?r(t.children):[];return n?e.filter((function(t){return P(t,n)})):e}function k(t,n){return n?L(t,n)[0]:t.firstElementChild}var _=Object.keys;function A(t,n,e){return t&&(e?_(t).reverse():_(t)).forEach((function(e){"__proto__"!==e&&n(t[e],e)})),t}function M(t){return r(arguments,1).forEach((function(n){A(n,(function(e,i){t[i]=n[i]}))})),t}function D(t){return r(arguments,1).forEach((function(n){A(n,(function(n,e){f(n)?t[e]=n.slice():l(n)?t[e]=D({},l(t[e])?t[e]:{},n):t[e]=n}))})),t}function z(t,n){y(n||_(t),(function(n){delete t[n]}))}function N(t,n){y(t,(function(t){y(n,(function(n){t&&t.removeAttribute(n)}))}))}function O(t,n,e){l(n)?A(n,(function(n,e){O(t,e,n)})):y(t,(function(t){h(e)||""===e?N(t,n):t.setAttribute(n,String(e))}))}function T(t,n,e){var i=document.createElement(t);return n&&(v(n)?S(i,n):O(i,n)),e&&x(e,i),i}function I(t,n,e){if(p(e))return getComputedStyle(t)[n];h(e)||(t.style[n]=""+e)}function F(t,n){I(t,"display",n)}function j(t){t.setActive&&t.setActive()||t.focus({preventScroll:!0})}function R(t,n){return t.getAttribute(n)}function q(t,n){return t&&t.classList.contains(n)}function W(t){return t.getBoundingClientRect()}function X(t){y(t,(function(t){t&&t.parentNode&&t.parentNode.removeChild(t)}))}function G(t){return k((new DOMParser).parseFromString(t,"text/html").body)}function H(t,n){t.preventDefault(),n&&(t.stopPropagation(),t.stopImmediatePropagation())}function B(t,n){return t&&t.querySelector(n)}function Y(t,n){return n?r(t.querySelectorAll(n)):[]}function U(t,n){E(t,n,!1)}function K(t){return t.timeStamp}function J(t){return v(t)?t:t?t+"px":""}var V="splide",Q="data-"+V;function Z(t,n){if(!t)throw new Error("["+V+"] "+(n||""))}var $=Math.min,tt=Math.max,nt=Math.floor,et=Math.ceil,it=Math.abs;function rt(t,n,e){return it(t-n)<e}function ot(t,n,e,i){var r=$(n,e),o=tt(n,e);return i?r<t&&t<o:r<=t&&t<=o}function ut(t,n,e){var i=$(n,e),r=tt(n,e);return $(tt(i,t),r)}function at(t){return+(t>0)-+(t<0)}function ct(t,n){return y(n,(function(n){t=t.replace("%s",""+n)})),t}function st(t){return t<10?"0"+t:""+t}var lt={};function ft(){var t=[];function n(t,n,e){y(t,(function(t){t&&y(n,(function(n){n.split(" ").forEach((function(n){var i=n.split(".");e(t,i[0],i[1])}))}))}))}return{bind:function(e,i,r,o){n(e,i,(function(n,e,i){var u="addEventListener"in n,a=u?n.removeEventListener.bind(n,e,r,o):n.removeListener.bind(n,r);u?n.addEventListener(e,r,o):n.addListener(r),t.push([n,e,i,r,a])}))},unbind:function(e,i,r){n(e,i,(function(n,e,i){t=t.filter((function(t){return!!(t[0]!==n||t[1]!==e||t[2]!==i||r&&t[3]!==r)||(t[4](),!1)}))}))},dispatch:function(t,n,e){var i;return"function"==typeof CustomEvent?i=new CustomEvent(n,{bubbles:!0,detail:e}):(i=document.createEvent("CustomEvent")).initCustomEvent(n,!0,!1,e),t.dispatchEvent(i),i},destroy:function(){t.forEach((function(t){t[4]()})),i(t)}}}var dt="mounted",vt="ready",pt="move",ht="moved",gt="click",mt="refresh",yt="updated",bt="resize",wt="resized",Et="scroll",St="scrolled",xt="destroy",Ct="navigation:mounted",Pt="autoplay:play",Lt="autoplay:pause",kt="lazyload:loaded",_t="ei";function At(t){var n=t?t.event.bus:document.createDocumentFragment(),e=ft();return t&&t.event.on(xt,e.destroy),M(e,{bus:n,on:function(t,i){e.bind(n,m(t).join(" "),(function(t){i.apply(i,f(t.detail)?t.detail:[])}))},off:o(e.unbind,n),emit:function(t){e.dispatch(n,t,r(arguments,1))}})}function Mt(t,n,e,i){var r,o,u=Date.now,a=0,s=!0,l=0;function f(){if(!s){if(a=t?$((u()-r)/t,1):1,e&&e(a),a>=1&&(n(),r=u(),i&&++l>=i))return d();o=c(f)}}function d(){s=!0}function v(){o&&cancelAnimationFrame(o),a=0,o=0,s=!0}return{start:function(n){n||v(),r=u()-(n?a*t:0),s=!1,o=c(f)},rewind:function(){r=u(),a=0,e&&e(a)},pause:d,cancel:v,set:function(n){t=n},isPaused:function(){return s}}}var Dt="Arrow",zt=Dt+"Left",Nt=Dt+"Right",Ot=Dt+"Up",Tt=Dt+"Down",It="ttb",Ft={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Ot,Nt],ArrowRight:[Tt,zt]};var jt="role",Rt="tabindex",qt="aria-",Wt=qt+"controls",Xt=qt+"current",Gt=qt+"selected",Ht=qt+"label",Bt=qt+"labelledby",Yt=qt+"hidden",Ut=qt+"orientation",Kt=qt+"roledescription",Jt=qt+"live",Vt=qt+"busy",Qt=qt+"atomic",Zt=[jt,Rt,"disabled",Wt,Xt,Ht,Bt,Yt,Ut,Kt],$t=V+"__",tn="is-",nn=V,en=$t+"track",rn=$t+"list",on=$t+"slide",un=on+"--clone",an=on+"__container",cn=$t+"arrows",sn=$t+"arrow",ln=sn+"--prev",fn=sn+"--next",dn=$t+"pagination",vn=dn+"__page",pn=$t+"progress__bar",hn=$t+"toggle",gn=$t+"sr",mn=tn+"initialized",yn=tn+"active",bn=tn+"prev",wn=tn+"next",En=tn+"visible",Sn=tn+"loading",xn=tn+"focus-in",Cn=tn+"overflow",Pn=[yn,En,bn,wn,Sn,xn,Cn],Ln={slide:on,clone:un,arrows:cn,arrow:sn,prev:ln,next:fn,pagination:dn,page:vn,spinner:$t+"spinner"},kn="touchstart mousedown",_n="touchmove mousemove",An="touchend touchcancel mouseup click",Mn="slide",Dn="loop",zn="fade";var Nn=Q+"-interval",On={passive:!1,capture:!0},Tn={Spacebar:" ",Right:Nt,Left:zt,Up:Ot,Down:Tt};function In(t){return t=v(t)?t:t.key,Tn[t]||t}var Fn="keydown",jn=Q+"-lazy",Rn=jn+"-srcset",qn="["+jn+"], ["+Rn+"]",Wn=[" ","Enter"],
2Xn=Object.freeze({__proto__:null,Media:function(t,e,i){var r=t.state,o=i.breakpoints||{},u=i.reducedMotion||{},a=ft(),c=[];function s(t){t&&a.destroy()}function l(t,n){var e=matchMedia(n);a.bind(e,"change",f),c.push([t,e])}function f(){var n=r.is(7),e=i.direction,o=c.reduce((function(t,n){return D(t,n[1].matches?n[0]:{})}),{});z(i),d(o),i.destroy?t.destroy("completely"===i.destroy):n?(s(!0),t.mount()):e!==i.direction&&t.refresh()}function d(n,e,o){D(i,n),e&&D(Object.getPrototypeOf(i),n),!o&&r.is(1)||t.emit(yt,i)}return{setup:function(){var t="min"===i.mediaQuery;_(o).sort((function(n,e){return t?+n-+e:+e-+n})).forEach((function(n){l(o[n],"("+(t?"min":"max")+"-width:"+n+"px)")})),l(u,n),f()},destroy:s,reduce:function(t){matchMedia(n).matches&&(t?D(i,u):z(i,_(u)))},set:d}},Direction:function(t,n,e){return{resolve:function(t,n,i){var r="rtl"!==(i=i||e.direction)||n?i===It?0:-1:1;return Ft[t]&&Ft[t][r]||t.replace(/width|left|right/i,(function(t,n){var e=Ft[t.toLowerCase()][r]||t;return n>0?e.charAt(0).toUpperCase()+e.slice(1):e}))},orient:function(t){return t*("rtl"===e.direction?1:-1)}}},Elements:function(t,n,e){var r,o,u,a=At(t),c=a.on,s=a.bind,l=t.root,f=e.i18n,v={},p=[],h=[],g=[];function m(){var t,n,i;r=x("."+en),o=k(r,"."+rn),Z(r&&o,"A track/list element is missing."),w(p,L(o,"."+on+":not(."+un+")")),A({arrows:cn,pagination:dn,prev:ln,next:fn,bar:pn,toggle:hn},(function(t,n){v[n]=x("."+t)})),M(v,{root:l,track:r,list:o,slides:p}),n=l.id||""+(t=V)+st(lt[t]=(lt[t]||0)+1),i=e.role,l.id=n,r.id=r.id||n+"-track",o.id=o.id||n+"-list",!R(l,jt)&&"SECTION"!==l.tagName&&i&&O(l,jt,i),O(l,Kt,f.carousel),O(o,jt,"presentation"),b()}function y(t){var n=Zt.concat("style");i(p),U(l,h),U(r,g),N([r,o],n),N(l,t?n:["style",Kt])}function b(){U(l,h),U(r,g),h=C(nn),g=C(en),S(l,h),S(r,g),O(l,Ht,e.label),O(l,Bt,e.labelledby)}function x(t){var n=B(l,t);return n&&function(t,n){if(d(t.closest))return t.closest(n);for(var e=t;e&&1===e.nodeType&&!P(e,n);)e=e.parentElement;return e}(n,"."+nn)===l?n:void 0}function C(t){return[t+"--"+e.type,t+"--"+e.direction,e.drag&&t+"--draggable",e.isNavigation&&t+"--nav",t===nn&&yn]}return M(v,{setup:m,mount:function(){c(mt,y),c(mt,m),c(yt,b),s(document,kn+" keydown",(function(t){u="keydown"===t.type}),{capture:!0}),s(l,"focusin",(function(){E(l,xn,!!u)}))},destroy:y})},Slides:function(t,n,e){var r=At(t),u=r.on,a=r.emit,c=r.bind,s=n.Elements,l=s.slides,f=s.list,p=[];function h(){l.forEach((function(t,n){L(t,n,-1)}))}function w(){A((function(t){t.destroy()})),i(p)}function L(n,e,i){var r=function(t,n,e,i){var r,u=At(t),a=u.on,c=u.emit,s=u.bind,l=t.Components,f=t.root,d=t.options,v=d.isNavigation,p=d.updateOnMove,h=d.i18n,g=d.pagination,m=d.slideFocus,y=l.Direction.resolve,b=R(i,"style"),w=R(i,Ht),S=e>-1,x=k(i,"."+an);function C(){var r=t.splides.map((function(t){var e=t.splide.Components.Slides.getAt(n);return e?e.slide.id:""})).join(" ");O(i,Ht,ct(h.slideX,(S?e:n)+1)),O(i,Wt,r),O(i,jt,m?"button":""),m&&N(i,Kt)}function P(){r||L()}function L(){if(!r){var e=t.index;(o=_())!==q(i,yn)&&(E(i,yn,o),O(i,Xt,v&&o||""),c(o?"active":"inactive",A)),function(){var n=function(){if(t.is(zn))return _();var n=W(l.Elements.track),e=W(i),r=y("left",!0),o=y("right",!0);return nt(n[r])<=et(e[r])&&nt(e[o])<=et(n[o])}(),e=!n&&(!_()||S);if(t.state.is([4,5])||O(i,Yt,e||""),O(Y(i,d.focusableNodes||""),Rt,e?-1:""),m&&O(i,Rt,e?-1:0),n!==q(i,En)&&(E(i,En,n),c(n?"visible":"hidden",A)),!n&&document.activeElement===i){var r=l.Slides.getAt(t.index);r&&j(r.slide)}}(),E(i,bn,n===e-1),E(i,wn,n===e+1)}var o}function _(){var i=t.index;return i===n||d.cloneStatus&&i===e}var A={index:n,slideIndex:e,slide:i,container:x,isClone:S,mount:function(){S||(i.id=f.id+"-slide"+st(n+1),O(i,jt,g?"tabpanel":"group"),O(i,Kt,h.slide),O(i,Ht,w||ct(h.slideLabel,[n+1,t.length]))),s(i,"click",o(c,gt,A)),s(i,"keydown",o(c,"sk",A)),a([ht,"sh",St],L),a(Ct,C),p&&a(pt,P)},destroy:function(){r=!0,u.destroy(),U(i,Pn),N(i,Zt),O(i,"style",b),O(i,Ht,w||"")},update:L,style:function(t,n,e){I(e&&x||i,t,n)},isWithin:function(e,i){var r=it(e-n);return S||!d.rewind&&!t.is(Dn)||(r=$(r,t.length-r)),r<=i}};return A}(t,e,i,n);r.mount(),p.push(r),p.sort((function(t,n){return t.index-n.index}))}function _(t){return t?M((function(t){return!t.isClone})):p}
vendor: 5,523 bytes, line 2
2function A(t,n){_(n).forEach(t)}function M(t){return p.filter(d(t)?t:function(n){return v(t)?P(n.slide,t):b(m(t),n.index)})}return{mount:function(){h(),u(mt,w),u(mt,h)},destroy:w,update:function(){A((function(t){t.update()}))},register:L,get:_,getIn:function(t){var i=n.Controller,r=i.toIndex(t),o=i.hasFocus()?1:e.perPage;return M((function(t){return ot(t.index,r,r+o-1)}))},getAt:function(t){return M(t)[0]},add:function(t,n){y(t,(function(t){if(v(t)&&(t=G(t)),g(t)){var i=l[n];i?C(t,i):x(f,t),S(t,e.classes.slide),r=t,u=o(a,bt),s=Y(r,"img"),(d=s.length)?s.forEach((function(t){c(t,"load error",(function(){--d||u()}))})):u()}var r,u,s,d})),a(mt)},remove:function(t){X(M(t).map((function(t){return t.slide}))),a(mt)},forEach:A,filter:M,style:function(t,n,e){A((function(i){i.style(t,n,e)}))},getLength:function(t){return t?l.length:p.length},isEnough:function(){return p.length>e.perPage}}},Layout:function(t,n,e){var i,r,u,a=At(t),c=a.on,s=a.bind,f=a.emit,d=n.Slides,v=n.Direction.resolve,p=n.Elements,h=p.root,g=p.track,m=p.list,y=d.getAt,b=d.style;function w(){i=e.direction===It,I(h,"maxWidth",J(e.width)),I(g,v("paddingLeft"),x(!1)),I(g,v("paddingRight"),x(!0)),S(!0)}function S(t){var n,o=W(h);(t||r.width!==o.width||r.height!==o.height)&&(I(g,"height",(n="",i&&(Z(n=C(),"height or heightRatio is missing."),n="calc("+n+" - "+x(!1)+" - "+x(!0)+")"),n)),b(v("marginRight"),J(e.gap)),b("width",e.autoWidth?null:J(e.fixedWidth)||(i?"":P())),b("height",J(e.fixedHeight)||(i?e.autoHeight?null:P():C()),!0),r=o,f(wt),u!==(u=D())&&(E(h,Cn,u),f("overflow",u)))}function x(t){var n=e.padding,i=v(t?"right":"left");return n&&J(n[i]||(l(n)?0:n))||"0px"}function C(){return J(e.height||W(m).width*e.heightRatio)}function P(){var t=J(e.gap);return"calc((100%"+(t&&" + "+t)+")/"+(e.perPage||1)+(t&&" - "+t)+")"}function L(){return W(m)[v("width")]}function k(t,n){var e=y(t||0);return e?W(e.slide)[v("width")]+(n?0:M()):0}function _(t,n){var e=y(t);if(e){var i=W(e.slide)[v("right")],r=W(m)[v("left")];return it(i-r)+(n?0:M())}return 0}function A(n){return _(t.length-1)-_(0)+k(0,n)}function M(){var t=y(0);return t&&parseFloat(I(t.slide,v("marginRight")))||0}function D(){return t.is(zn)||A(!0)>L()}return{mount:function(){var t,n;w(),s(window,"resize load",(t=o(f,bt),n=Mt(0,t,null,1),function(){n.isPaused()&&n.start()})),c([yt,mt],w),c(bt,S)},resize:S,listSize:L,slideSize:k,sliderSize:A,totalSize:_,getPadding:function(t){return parseFloat(I(g,v("padding"+(t?"Right":"Left"))))||0},isOverflow:D}},Clones:function(t,n,e){var r,o=At(t),u=o.on,a=n.Elements,c=n.Slides,s=n.Direction.resolve,l=[];function f(){u(mt,d),u([yt,bt],h),(r=g())&&(function(n){var i=c.get().slice(),r=i.length;if(r){for(;i.length<n;)w(i,i);w(i.slice(-n),i.slice(0,n)).forEach((function(o,u){var s=u<n,f=function(n,i){var r=n.cloneNode(!0);return S(r,e.classes.clone),r.id=t.root.id+"-clone"+st(i+1),r}(o.slide,u);s?C(f,i[0].slide):x(a.list,f),w(l,f),c.register(f,u-n+(s?0:r),o.index)}))}}(r),n.Layout.resize(!0))}function d(){v(),f()}function v(){X(l),i(l),o.destroy()}function h(){var t=g();r!==t&&(r<t||!t)&&o.emit(mt)}function g(){var i=e.clones;if(t.is(Dn)){if(p(i)){var r=e[s("fixedWidth")]&&n.Layout.slideSize(0);i=r&&et(W(a.track)[s("width")]/r)||e[s("autoWidth")]&&t.length||2*e.perPage}}else i=0;return i}return{mount:f,destroy:v}},Move:function(t,n,e){var i,r=At(t),o=r.on,u=r.emit,a=t.state.set,c=n.Layout,s=c.slideSize,l=c.getPadding,f=c.totalSize,d=c.listSize,v=c.sliderSize,h=n.Direction,g=h.resolve,m=h.orient,y=n.Elements,b=y.list,w=y.track;function E(){n.Controller.isBusy()||(n.Scroll.cancel(),S(t.index),n.Slides.update())}function S(t){x(k(t,!0))}function x(e,i){if(!t.is(zn)){var r=i?e:function(e){if(t.is(Dn)){var i=L(e),r=i>n.Controller.getEnd();(i<0||r)&&(e=C(e,r))}return e}(e);I(b,"transform","translate"+g("X")+"("+r+"px)"),e!==r&&u("sh")}}function C(t,n){var e=t-A(n),i=v();return t-m(i*(et(it(e)/i)||1))*(n?1:-1)}function P(){x(_(),!0),i.cancel()}function L(t){for(var e=n.Slides.get(),i=0,r=1/0,o=0;o<e.length;o++){var u=e[o].index,a=it(k(u,!0)-t);if(!(a<=r))break;r=a,i=u}return i}function k(n,i){var r=m(f(n-1)-function(t){var n=e.focus;return"center"===n?(d()-s(t,!0))/2:+n*s(t)||0}(n));return i?function(n){return e.trimSpace&&t.is(Mn)&&(n=ut(n,0,m(v(!0)-d()))),n}(r):r}function _(){var t=g("left");return W(b)[t]-W(w)[t]+m(l(!1))}function A(t){return k(t?n.Controller.getEnd():0,!!e.trimSpace)}return{mount:function(){i=n.Transition,o([dt,wt,yt,mt],E)},move:function(t,n,e,r){var o,c;t!==n&&(o=t>e,c=m(C(_(),o)),o?c>=0:c<=b[g("scrollWidth")]-W(w)[g("width")])&&(P(),x(C(_(),t>e),!0)),a(4),u(pt,n,e,t),i.start(n,(function(){a(3),u(ht,n,e,t),r&&r()}))},jump:S,translate:x,shift:C,cancel:P,toIndex:L,toPosition:k,getPosition:_,getLimit:A,exceededLimit:function(t,n){n=p(n)?_():n;var e=!0!==t&&m(n)<m(A(!1)),i=!1!==t&&m(n)>m(A(!0));return e||i},reposition:E}},Controller:function(t,n,e){var i,r,u,a,c=At(t),s=c.on,l=c.emit,f=n.Move,d=f.getPosition,h=f.getLimit,g=f.toPosition,m=n.Slides,y=m.isEnough,b=m.getLength,w=e.omitEnd,E=t.is(Dn),S=t.is(Mn),x=o(A,!1),C=o(A,!0),P=e.start||0,L=P;function k(){r=b(!0),u=e.perMove,a=e.perPage,i=z();var t=ut(P,0,w?i:r-1);t!==P&&(P=t,f.reposition())}function _(){i!==z()&&l(_t)}function A(t,n){var e=u||(I()?1:a),r=M(P+e*(t?-1:1),P,!(u||I()));return-1===r&&S&&!rt(d(),h(!t),1)?t?0:i:n?r:D(r)}function M(n,o,c){if(y()||I()){var s=function(n){if(S&&"move"===e.trimSpace&&n!==P)for(var i=d();i===g(n,!0)&&ot(n,0,t.length-1,!e.rewind);)n<P?--n:++n;return n}(n);s!==n&&(o=n,n=s,c=!1),n<0||n>
2i?n=u||!ot(0,n,o,!0)&&!ot(i,o,n,!0)?E?c?n<0?-(r%a||a):r:n:e.rewind?n<0?i:0:-1:N(O(n)):c&&n!==o&&(n=N(O(o)+(n<o?-1:1)))}else n=-1;return n}function D(t){return E?(t+r)%r||0:t}function z(){for(var t=r-(I()||E&&u?1:a);w&&t-- >0;)if(g(r-1,!0)!==g(t,!0)){t++;break}return ut(t,0,r-1)}function N(t){return ut(I()?t:a*t,0,i)}function O(t){return I()?$(t,i):nt((t>=i?r-1:t)/a)}function T(t){t!==P&&(L=P,P=t)}function I(){return!p(e.focus)||e.isNavigation}function F(){return t.state.is([4,5])&&!!e.waitForTransition}return{mount:function(){k(),s([yt,mt,_t],k),s(wt,_)},go:function(t,n,e){if(!F()){var r=function(t){var n=P;if(v(t)){var e=t.match(/([+\-<>])(\d+)?/)||[],r=e[1],o=e[2];"+"===r||"-"===r?n=M(P+ +(""+r+(+o||1)),P):">"===r?n=o?N(+o):x(!0):"<"===r&&(n=C(!0))}else n=E?t:ut(t,0,i);return n}(t),o=D(r);o>-1&&(n||o!==P)&&(T(o),f.move(r,o,L,e))}},scroll:function(t,e,r,o){n.Scroll.scroll(t,e,r,(function(){var t=D(f.toIndex(d()));T(w?$(t,i):t),o&&o()}))},getNext:x,getPrev:C,getAdjacent:A,getEnd:z,setIndex:T,getIndex:function(t){return t?L:P},toIndex:N,toPage:O,toDest:function(t){var n=f.toIndex(t);return S?ut(n,0,i):n},hasFocus:I,isBusy:F}},Arrows:function(t,n,e){var i,r,u=At(t),a=u.on,c=u.bind,s=u.emit,l=e.classes,f=e.i18n,d=n.Elements,v=n.Controller,p=d.arrows,h=d.track,g=p,m=d.prev,y=d.next,b={};function w(){var t;!(t=e.arrows)||m&&y||(g=p||T("div",l.arrows),m=k(!0),y=k(!1),i=!0,x(g,[m,y]),!p&&C(g,h)),m&&y&&(M(b,{prev:m,next:y}),F(g,t?"":"none"),S(g,r=cn+"--"+e.direction),t&&(a([dt,ht,mt,St,_t],_),c(y,"click",o(L,">")),c(m,"click",o(L,"<")),_(),O([m,y],Wt,h.id),s("arrows:mounted",m,y))),a(yt,E)}function E(){P(),w()}function P(){u.destroy(),U(g,r),i?(X(p?[m,y]:g),m=y=null):N([m,y],Zt)}function L(t){v.go(t,!0)}function k(t){return G('<button class="'+l.arrow+" "+(t?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="'+(e.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 _(){if(m&&y){var n=t.index,e=v.getPrev(),i=v.getNext(),r=e>-1&&n<e?f.last:f.prev,o=i>-1&&n>i?f.first:f.next;m.disabled=e<0,y.disabled=i<0,O(m,Ht,r),O(y,Ht,o),s("arrows:updated",m,y,e,i)}}return{arrows:b,mount:w,destroy:P,update:_}},Autoplay:function(t,n,e){var i,r,o=At(t),u=o.on,a=o.bind,c=o.emit,s=Mt(e.interval,t.go.bind(t,">"),(function(t){var n=f.bar;n&&I(n,"width",100*t+"%"),c("autoplay:playing",t)})),l=s.isPaused,f=n.Elements,d=n.Elements,v=d.root,p=d.toggle,h=e.autoplay,g="pause"===h;function m(){l()&&n.Slides.isEnough()&&(s.start(!e.resetProgress),r=i=g=!1,w(),c(Pt))}function y(t){void 0===t&&(t=!0),g=!!t,w(),l()||(s.pause(),c(Lt))}function b(){g||(i||r?y(!1):m())}function w(){p&&(E(p,yn,!g),O(p,Ht,e.i18n[g?"play":"pause"]))}function S(t){var i=n.Slides.getAt(t);s.set(i&&+R(i.slide,Nn)||e.interval)}return{mount:function(){h&&(e.pauseOnHover&&a(v,"mouseenter mouseleave",(function(t){i="mouseenter"===t.type,b()})),e.pauseOnFocus&&a(v,"focusin focusout",(function(t){r="focusin"===t.type,b()})),p&&a(p,"click",(function(){g?m():y(!0)})),u([pt,Et,mt],s.rewind),u(pt,S),p&&O(p,Wt,f.track.id),g||m(),w())},destroy:s.cancel,play:m,pause:y,isPaused:l}},Cover:function(t,n,e){var i=At(t).on;function r(t){n.Slides.forEach((function(n){var e=k(n.container||n.slide,"img");e&&e.src&&u(t,e,n)}))}function u(t,n,e){e.style("background",t?'center/cover no-repeat url("'+n.src+'")':"",!0),F(n,t?"none":"")}return{mount:function(){e.cover&&(i(kt,o(u,!0)),i([dt,yt,mt],o(r,!0)))},destroy:o(r,!1)}},Scroll:function(t,n,e){var i,r,u=At(t),a=u.on,c=u.emit,s=t.state.set,l=n.Move,f=l.getPosition,d=l.getLimit,v=l.exceededLimit,p=l.translate,h=t.is(Mn),g=1;function m(t,e,u,a,d){var p=f();if(w(),u&&(!h||!v())){var m=n.Layout.sliderSize(),E=at(t)*m*nt(it(t)/m)||0;t=l.toPosition(n.Controller.toDest(t%m))+E}var S=rt(p,t,1);g=1,e=S?0:e||tt(it(t-p)/1.5,800),r=a,i=Mt(e,y,o(b,p,t,d),1),s(5),c(Et),i.start()}function y(){s(3),r&&r(),c(St)}function b(t,n,i,o){var u,a,c=f(),s=(t+(n-t)*(u=o,(a=e.easingFunc)?a(u):1-Math.pow(1-u,4))-c)*g;p(c+s),h&&!i&&v()&&(g*=.6,it(s)<10&&m(d(v(!0)),600,!1,r,!0))}function w(){i&&i.cancel()}
vendor: 4,117 bytes, line 2
2function E(){i&&!i.isPaused()&&(w(),y())}return{mount:function(){a(pt,w),a([yt,mt],E)},destroy:w,scroll:m,cancel:E}},Drag:function(t,n,e){var i,r,o,u,c,s,f,d,v=At(t),p=v.on,h=v.emit,g=v.bind,m=v.unbind,y=t.state,b=n.Move,w=n.Scroll,E=n.Controller,S=n.Elements.track,x=n.Media.reduce,C=n.Direction,L=C.resolve,k=C.orient,_=b.getPosition,A=b.exceededLimit,M=!1;function D(){var t=e.drag;X(!t),u="free"===t}function z(t){if(s=!1,!f){var n=W(t);i=t.target,r=e.noDrag,P(i,"."+vn+", ."+sn)||r&&P(i,r)||!n&&t.button||(E.isBusy()?H(t,!0):(d=n?S:window,c=y.is([4,5]),o=null,g(d,_n,N,On),g(d,An,O,On),b.cancel(),w.cancel(),I(t)))}var i,r}function N(n){if(y.is(6)||(y.set(6),h("drag")),n.cancelable)if(c){b.translate(i+F(n)/(M&&t.is(Mn)?5:1));var r=j(n)>200,o=M!==(M=A());(r||o)&&I(n),s=!0,h("dragging"),H(n)}else(function(t){return it(F(t))>it(F(t,!0))})(n)&&(c=function(t){var n=e.dragMinThreshold,i=l(n),r=i&&n.mouse||0,o=(i?n.touch:+n)||10;return it(F(t))>(W(t)?o:r)}(n),H(n))}function O(i){y.is(6)&&(y.set(3),h("dragged")),c&&(function(i){var r=function(n){if(t.is(Dn)||!M){var e=j(n);if(e&&e<200)return F(n)/e}return 0}(i),o=function(t){return _()+at(t)*$(it(t)*(e.flickPower||600),u?1/0:n.Layout.listSize()*(e.flickMaxPages||1))}(r),a=e.rewind&&e.rewindByDrag;x(!1),u?E.scroll(o,0,e.snap):t.is(zn)?E.go(k(at(r))<0?a?"<":"-":a?">":"+"):t.is(Mn)&&M&&a?E.go(A(!0)?">":"<"):E.go(E.toDest(o),!0),x(!0)}(i),H(i)),m(d,_n,N),m(d,An,O),c=!1}function T(t){!f&&s&&H(t,!0)}function I(t){o=r,r=t,i=_()}function F(t,n){return q(t,n)-q(R(t),n)}function j(t){return K(t)-K(R(t))}function R(t){return r===t&&o||r}function q(t,n){return(W(t)?t.changedTouches[0]:t)["page"+L(n?"Y":"X")]}function W(t){return"undefined"!=typeof TouchEvent&&t instanceof TouchEvent}function X(t){f=t}return{mount:function(){g(S,_n,a,On),g(S,An,a,On),g(S,kn,z,On),g(S,"click",T,{capture:!0}),g(S,"dragstart",H),p([dt,yt],D)},disable:X,isDragging:function(){return c}}},Keyboard:function(t,n,e){var i,r,o=At(t),a=o.on,c=o.bind,s=o.unbind,l=t.root,f=n.Direction.resolve;function d(){var t=e.keyboard;t&&(i="global"===t?window:l,c(i,Fn,h))}function v(){s(i,Fn)}function p(){var t=r;r=!0,u((function(){r=t}))}function h(n){if(!r){var e=In(n);e===f(zt)?t.go("<"):e===f(Nt)&&t.go(">")}}return{mount:function(){d(),a(yt,v),a(yt,d),a(pt,p)},destroy:v,disable:function(t){r=t}}},LazyLoad:function(t,n,e){var r=At(t),u=r.on,a=r.off,c=r.bind,s=r.emit,l="sequential"===e.lazyLoad,f=[ht,St],d=[];function v(){i(d),n.Slides.forEach((function(t){Y(t.slide,qn).forEach((function(n){var i=R(n,jn),r=R(n,Rn);if(i!==n.src||r!==n.srcset){var o=e.classes.spinner,u=n.parentElement,a=k(u,"."+o)||T("span",o,u);d.push([n,t,a]),n.src||F(n,"none")}}))})),l?m():(a(f),u(f,p),p())}function p(){(d=d.filter((function(n){var i=e.perPage*((e.preloadPages||1)+1)-1;return!n[1].isWithin(t.index,i)||h(n)}))).length||a(f)}function h(t){var n=t[0];S(t[1].slide,Sn),c(n,"load error",o(g,t)),O(n,"src",R(n,jn)),O(n,"srcset",R(n,Rn)),N(n,jn),N(n,Rn)}function g(t,n){var e=t[0],i=t[1];U(i.slide,Sn),"error"!==n.type&&(X(t[2]),F(e,""),s(kt,e,i),s(bt)),l&&m()}function m(){d.length&&h(d.shift())}return{mount:function(){e.lazyLoad&&(v(),u(mt,v))},destroy:o(i,d),check:p}},Pagination:function(t,n,e){var u,a,c=At(t),s=c.on,l=c.emit,f=c.bind,d=n.Slides,v=n.Elements,p=n.Controller,h=p.hasFocus,g=p.getIndex,m=p.go,y=n.Direction.resolve,b=v.pagination,w=[];function E(){u&&(X(b?r(u.children):u),U(u,a),i(w),u=null),c.destroy()}function x(t){m(">"+t,!0)}function C(t,n){var e=w.length,i=In(n),r=P(),o=-1;i===y(Nt,!1,r)?o=++t%e:i===y(zt,!1,r)?o=(--t+e)%e:"Home"===i?o=0:"End"===i&&(o=e-1);var u=w[o];u&&(j(u.button),m(">"+o),H(n,!0))}function P(){return e.paginationDirection||e.direction}function L(t){return w[p.toPage(t)]}function k(){var t=L(g(!0)),n=L(g());if(t){var e=t.button;U(e,yn),N(e,Gt),O(e,Rt,-1)}if(n){var i=n.button;S(i,yn),O(i,Gt,!0),O(i,Rt,"")}l("pagination:updated",{list:u,items:w},t,n)}return{items:w,mount:function n(){E(),s([yt,mt,_t],n);var i=e.pagination;b&&F(b,i?"":"none"),i&&(s([pt,Et,St],k),function(){var n=t.length,i=e.classes,r=e.i18n,c=e.perPage,s=h()?p.getEnd()+1:et(n/c);
2S(u=b||T("ul",i.pagination,v.track.parentElement),a=dn+"--"+P()),O(u,jt,"tablist"),O(u,Ht,r.select),O(u,Ut,P()===It?"vertical":"");for(var l=0;l<s;l++){var g=T("li",null,u),m=T("button",{class:i.page,type:"button"},g),y=d.getIn(l).map((function(t){return t.slide.id})),E=!h()&&c>1?r.pageX:r.slideX;f(m,"click",o(x,l)),e.paginationKeyboard&&f(m,"keydown",o(C,l)),O(g,jt,"presentation"),O(m,jt,"tab"),O(m,Wt,y.join(" ")),O(m,Ht,ct(E,l+1)),O(m,Rt,-1),w.push({li:g,button:m,page:l})}}(),k(),l("pagination:mounted",{list:u,items:w},L(t.index)))},destroy:E,getAt:L,update:k}},Sync:function(t,n,e){var r=e.isNavigation,u=e.slideFocus,a=[];function c(){var n,e;t.splides.forEach((function(n){n.isParent||(l(t,n.splide),l(n.splide,t))})),r&&((e=(n=At(t)).on)(gt,d),e("sk",v),e([dt,yt],f),a.push(n),n.emit(Ct,t.splides))}function s(){a.forEach((function(t){t.destroy()})),i(a)}function l(t,n){var e=At(t);e.on(pt,(function(t,e,i){n.go(n.is(Dn)?i:t)})),a.push(e)}function f(){O(n.Elements.list,Ut,e.direction===It?"vertical":"")}function d(n){t.go(n.index)}function v(t,n){b(Wn,In(n))&&(d(t),H(n))}return{setup:o(n.Media.set,{slideFocus:p(u)?r:u},!0),mount:c,destroy:s,remount:function(){s(),c()}}},Wheel:function(t,n,e){var i=At(t).bind,r=0;function o(i){if(i.cancelable){var o=i.deltaY,u=o<0,a=K(i),c=e.wheelMinThreshold||0,s=e.wheelSleep||0;it(o)>c&&a-r>s&&(t.go(u?"<":">"),r=a),function(i){return!e.releaseWheel||t.state.is(4)||-1!==n.Controller.getAdjacent(i)}(u)&&H(i)}}return{mount:function(){e.wheel&&i(n.Elements.track,"wheel",o,On)}}},Live:function(t,n,e){var i=At(t).on,r=n.Elements.track,u=e.live&&!e.isNavigation,a=T("span",gn),c=Mt(90,o(s,!1));function s(t){O(r,Vt,t),t?(x(r,a),c.start()):(X(a),c.cancel())}function l(t){u&&O(r,Jt,t?"off":"polite")}return{mount:function(){u&&(l(!n.Autoplay.isPaused()),O(r,Qt,!0),a.textContent="…",i(Pt,o(l,!0)),i(Lt,o(l,!1)),i([ht,St],o(s,!0)))},disable:l,destroy:function(){N(r,[Jt,Qt,Vt]),X(a)}}}}),Gn={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:Ln,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 Hn(t,n,e){var i=n.Slides;function r(){i.forEach((function(t){t.style("transform","translateX(-"+100*t.index+"%)")}))}return{mount:function(){At(t).on([dt,mt],r)},start:function(t,n){i.style("transition","opacity "+e.speed+"ms "+e.easing),u(n)},cancel:a}}function Bn(t,n,e){var i,r=n.Move,u=n.Controller,a=n.Scroll,c=n.Elements.list,s=o(I,c,"transition");function l(){s(""),a.cancel()}return{mount:function(){At(t).bind(c,"transitionend",(function(t){t.target===c&&i&&(l(),i())}))},start:function(n,o){var c=r.toPosition(n,!0),l=r.getPosition(),f=function(n){var i=e.rewindSpeed;if(t.is(Mn)&&i){var r=u.getIndex(!0),o=u.getEnd();if(0===r&&n>=o||r>=o&&0===n)return i}return e.speed}(n);it(c-l)>=1&&f>=1?e.useScroll?a.scroll(c,f,!1,o):(s("transform "+f+"ms "+e.easing),r.translate(c,!0),i=o):(r.jump(n),o())},cancel:l}}var Yn=function(){function n(t,e){var i;this.event=At(),this.Components={},this.state=(i=1,{set:function(t){i=t},is:function(t){return b(m(t),i)}}),this.splides=[],this._o={},this._E={};var r=v(t)?B(document,t):t;Z(r,r+" is invalid."),this.root=r,e=D({label:R(r,Ht)||"",labelledby:R(r,Bt)||""},Gn,n.defaults,e||{});try{D(e,JSON.parse(R(r,Q)))}catch(t){Z(!1,"Invalid JSON")}this._o=Object.create(D({},e))}var e,o,u=n.prototype;return u.mount=function(t,n){var e=this,i=this.state,r=this.Components;return Z(i.is([1,7]),"Already mounted!"),i.set(1),this._C=r,this._T=n||this._T||(this.is(zn)?Hn:Bn),this._E=t||this._E,A(M({},Xn,this._E,{Transition:this._T}),(function(t,n){var i=t(e,r,e._o);r[n]=i,i.setup&&i.setup()})),A(r,(function(t){t.mount&&t.mount()}
2)),this.emit(dt),S(this.root,mn),i.set(3),this.emit(vt),this},u.sync=function(t){return this.splides.push({splide:t}),t.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._C.Sync.remount(),t.Components.Sync.remount()),this},u.go=function(t){return this._C.Controller.go(t),this},u.on=function(t,n){return this.event.on(t,n),this},u.off=function(t){return this.event.off(t),this},u.emit=function(t){var n;return(n=this.event).emit.apply(n,[t].concat(r(arguments,1))),this},u.add=function(t,n){return this._C.Slides.add(t,n),this},u.remove=function(t){return this._C.Slides.remove(t),this},u.is=function(t){return this._o.type===t},u.refresh=function(){return this.emit(mt),this},u.destroy=function(t){void 0===t&&(t=!0);var n=this.event,e=this.state;return e.is(1)?At(this).on(vt,this.destroy.bind(this,t)):(A(this._C,(function(n){n.destroy&&n.destroy(t)}),!0),n.emit(xt),n.destroy(),t&&i(this.splides),e.set(7)),this},e=n,(o=[{key:"options",get:function(){return this._o},set:function(t){this._C.Media.set(t,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}])&&t(e.prototype,o),Object.defineProperty(e,"prototype",{writable:!1}),n}(),Un=Yn;Un.defaults={},Un.STATES=e,Drupal.behaviors.featuredImageCarousel={attach:function(){var t=document.querySelectorAll(".splide-featured-image-carousel");t&&t.forEach((function(t,n){var e=t.querySelector(".splide__arrow-count");t.id||(t.id="splide-featured-".concat(n));var i=new Un(t,{type:"loop",perPage:1,perMove:1});i.on("ready",(function(){var n=t.querySelector(".is-active");e.innerHTML=n.ariaLabel.replace("of","/")})),i.mount(),i.root.removeAttribute("aria-roledescription"),i.root.removeAttribute("aria-label"),i.root.removeAttribute("role");var r=i.root.querySelector(".splide__list");r&&r.setAttribute("role","none"),i.root.querySelectorAll(".splide__slide").forEach((function(t){t.removeAttribute("role"),t.removeAttribute("aria-roledescription")})),i.on("moved",(function(){var n=t.querySelector(".is-active");e.innerHTML=n.ariaLabel.replace("of","/")})),1===i.length&&t.classList.add("splide--single-slide")}))}}}();

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.