var tns=function(){var e=window,t=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(e){return setTimeout(e,16)},n=window,i=n.cancelAnimationFrame||n.mozCancelAnimationFrame||function(e){clearTimeout(e)};function o(){for(var e,t,n,i=arguments[0]||{},o=1,r=arguments.length;o<r;o++)if(null!==(e=arguments[o]))for(t in e)i!==(n=e[t])&&void 0!==n&&(i[t]=n);return i}function r(e){return 0<=["true","false"].indexOf(e)?JSON.parse(e):e}function a(e,t,n,i){if(i)try{e.setItem(t,n)}catch(e){}return n}function s(){var e=document,t=e.body;return t||((t=e.createElement("body")).fake=!0),t}var c=document.documentElement;function l(e){var t="";return e.fake&&(t=c.style.overflow,e.style.background="",e.style.overflow=c.style.overflow="hidden",c.appendChild(e)),t}function u(e,t){e.fake&&(e.remove(),c.style.overflow=t,c.offsetHeight)}function d(e,t,n,i){"insertRule"in e?e.insertRule(t+"{"+n+"}",i):e.addRule(t,n,i)}function f(e){return("insertRule"in e?e.cssRules:e.rules).length}function m(e,t,n){for(var i=0,o=e.length;i<o;i++)t.call(n,e[i],i)}var v="classList"in document.createElement("_"),h=v?function(e,t){return e.classList.contains(t)}:function(e,t){return 0<=e.className.indexOf(t)},p=v?function(e,t){h(e,t)||e.classList.add(t)}:function(e,t){h(e,t)||(e.className+=" "+t)},y=v?function(e,t){h(e,t)&&e.classList.remove(t)}:function(e,t){h(e,t)&&(e.className=e.className.replace(t,""))};function g(e,t){return e.hasAttribute(t)}function b(e,t){return e.getAttribute(t)}function w(e){return void 0!==e.item}function x(e,t){if(e=w(e)||e instanceof Array?e:[e],"[object Object]"===Object.prototype.toString.call(t))for(var n=e.length;n--;)for(var i in t)e[n].setAttribute(i,t[i])}function L(e,t){e=w(e)||e instanceof Array?e:[e];for(var n=(t=t instanceof Array?t:[t]).length,i=e.length;i--;)for(var o=n;o--;)e[i].removeAttribute(t[o])}function S(e){for(var t=[],n=0,i=e.length;n<i;n++)t.push(e[n]);return t}function A(e,t){"none"!==e.style.display&&(e.style.display="none")}function M(e,t){"none"===e.style.display&&(e.style.display="")}function E(e){return"none"!==window.getComputedStyle(e).display}function T(e){if("string"==typeof e){var t=[e],n=e.charAt(0).toUpperCase()+e.substr(1);["Webkit","Moz","ms","O"].forEach((function(i){"ms"===i&&"transform"!==e||t.push(i+n)})),e=t}for(var i=document.createElement("fakeelement"),o=(e.length,0);o<e.length;o++){var r=e[o];if(void 0!==i.style[r])return r}return!1}function C(e,t){var n=!1;return/^Webkit/.test(e)?n="webkit"+t+"End":/^O/.test(e)?n="o"+t+"End":e&&(n=t.toLowerCase()+"end"),n}var q=!1;try{var k=Object.defineProperty({},"passive",{get:function(){q=!0}});window.addEventListener("test",null,k)}catch(e){}var B=!!q&&{passive:!0};function H(e,t,n){for(var i in t){var o=0<=["touchstart","touchmove"].indexOf(i)&&!n&&B;e.addEventListener(i,t[i],o)}}function N(e,t){for(var n in t){var i=0<=["touchstart","touchmove"].indexOf(n)&&B;e.removeEventListener(n,t[n],i)}}function D(){return{topics:{},on:function(e,t){this.topics[e]=this.topics[e]||[],this.topics[e].push(t)},off:function(e,t){if(this.topics[e])for(var n=0;n<this.topics[e].length;n++)if(this.topics[e][n]===t){this.topics[e].splice(n,1);break}},emit:function(e,t){t.type=e,this.topics[e]&&this.topics[e].forEach((function(n){n(t,e)}))}}}Object.keys||(Object.keys=function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}),"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});var O=function(e){e=o({container:".slider",mode:"carousel",axis:"horizontal",items:1,gutter:0,edgePadding:0,fixedWidth:!1,autoWidth:!1,viewportMax:!1,slideBy:1,center:!1,controls:!0,controlsPosition:"top",controlsText:["prev","next"],controlsContainer:!1,prevButton:!1,nextButton:!1,nav:!0,navPosition:"top",navContainer:!1,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayPosition:"top",autoplayTimeout:5e3,autoplayDirection:"forward",autoplayText:["start","stop"],autoplayHoverPause:!1,autoplayButton:!1,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,animateIn:"tns-fadeIn",animateOut:"tns-fadeOut",animateNormal:"tns-normal",animateDelay:!1,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,lazyloadSelector:".tns-lazy-img",touch:!0,mouseDrag:!1,swipeAngle:15,nested:!1,preventActionWhenRunning:!1,preventScrollOnTouch:!1,freezable:!0,onInit:!1,useLocalStorage:!0,nonce:!1},e||{});var n=document,c=window,v={ENTER:13,SPACE:32,LEFT:37,RIGHT:39},w={},q=e.useLocalStorage;if(q){var k=navigator.userAgent,B=new Date;try{(w=c.localStorage)?(w.setItem(B,B),q=w.getItem(B)==B,w.removeItem(B)):q=!1,q||(w={})}catch(k){q=!1}q&&(w.tnsApp&&w.tnsApp!==k&&["tC","tPL","tMQ","tTf","t3D","tTDu","tTDe","tADu","tADe","tTE","tAE"].forEach((function(e){w.removeItem(e)})),localStorage.tnsApp=k)}var P=w.tC?r(w.tC):a(w,"tC",function(){var e=document,t=s(),n=l(t),i=e.createElement("div"),o=!1;t.appendChild(i);try{for(var r,a="(10px * 10)",c=["calc"+a,"-moz-calc"+a,"-webkit-calc"+a],d=0;d<3;d++)if(r=c[d],i.style.width=r,100===i.offsetWidth){o=r.replace(a,"");break}}catch(e){}return t.fake?u(t,n):i.remove(),o}(),q),_=w.tPL?r(w.tPL):a(w,"tPL",function(){var e,t=document,n=s(),i=l(n),o=t.createElement("div"),r=t.createElement("div"),a="";o.className="tns-t-subp2",r.className="tns-t-ct";for(var c=0;c<70;c++)a+="<div></div>";return r.innerHTML=a,o.appendChild(r),n.appendChild(o),e=Math.abs(o.getBoundingClientRect().left-r.children[67].getBoundingClientRect().left)<2,n.fake?u(n,i):o.remove(),e}(),q),I=w.tMQ?r(w.tMQ):a(w,"tMQ",function(){if(window.matchMedia||window.msMatchMedia)return!0;var e,t=document,n=s(),i=l(n),o=t.createElement("div"),r=t.createElement("style"),a="@media all and (min-width:1px){.tns-mq-test{position:absolute}}";return r.type="text/css",o.className="tns-mq-test",n.appendChild(r),n.appendChild(o),r.styleSheet?r.styleSheet.cssText=a:r.appendChild(t.createTextNode(a)),e=window.getComputedStyle?window.getComputedStyle(o).position:o.currentStyle.position,n.fake?u(n,i):o.remove(),"absolute"===e}(),q),R=w.tTf?r(w.tTf):a(w,"tTf",T("transform"),q),W=w.t3D?r(w.t3D):a(w,"t3D",function(e){if(!e)return!1;if(!window.getComputedStyle)return!1;var t,n=document,i=s(),o=l(i),r=n.createElement("p"),a=9<e.length?"-"+e.slice(0,-9).toLowerCase()+"-":"";return a+="transform",i.insertBefore(r,null),r.style[e]="translate3d(1px,1px,1px)",t=window.getComputedStyle(r).getPropertyValue(a),i.fake?u(i,o):r.remove(),void 0!==t&&0<t.length&&"none"!==t}(R),q),z=w.tTDu?r(w.tTDu):a(w,"tTDu",T("transitionDuration"),q),j=w.tTDe?r(w.tTDe):a(w,"tTDe",T("transitionDelay"),q),F=w.tADu?r(w.tADu):a(w,"tADu",T("animationDuration"),q),V=w.tADe?r(w.tADe):a(w,"tADe",T("animationDelay"),q),X=w.tTE?r(w.tTE):a(w,"tTE",C(z,"Transition"),q),Y=w.tAE?r(w.tAE):a(w,"tAE",C(F,"Animation"),q),Q=c.console&&"function"==typeof c.console.warn,G=["container","controlsContainer","prevButton","nextButton","navContainer","autoplayButton"],U={};if(G.forEach((function(t){if("string"==typeof e[t]){var i=e[t],o=n.querySelector(i);if(U[t]=i,!o||!o.nodeName)return void(Q&&console.warn("Can't find",e[t]));e[t]=o}})),!(e.container.children.length<1)){var K=e.responsive,J=e.nested,Z="carousel"===e.mode;if(K){0 in K&&(e=o(e,K[0]),delete K[0]);var ee={};for(var te in K){var ne=K[te];ne="number"==typeof ne?{items:ne}:ne,ee[te]=ne}K=ee,ee=null}if(Z||function e(t){for(var n in t)Z||("slideBy"===n&&(t[n]="page"),"edgePadding"===n&&(t[n]=!1),"autoHeight"===n&&(t[n]=!1)),"responsive"===n&&e(t[n])}(e),!Z){e.axis="horizontal",e.slideBy="page",e.edgePadding=!1;var ie=e.animateIn,oe=e.animateOut,re=e.animateDelay,ae=e.animateNormal}var se,ce,le="horizontal"===e.axis,ue=n.createElement("div"),de=n.createElement("div"),fe=e.container,me=fe.parentNode,ve=fe.outerHTML,he=fe.children,pe=he.length,ye=Hn(),ge=!1;K&&Jn(),Z&&(fe.className+=" tns-vpfix");var be,we,xe,Le,Se,Ae,Me,Ee,$=e.autoWidth,Te=Pn("fixedWidth"),Ce=Pn("edgePadding"),qe=Pn("gutter"),ke=Dn(),Be=Pn("center"),He=$?1:Math.floor(Pn("items")),Ne=Pn("slideBy"),De=e.viewportMax||e.fixedWidthViewportWidth,Oe=Pn("arrowKeys"),Pe=Pn("speed"),_e=e.rewind,Ie=!_e&&e.loop,Re=Pn("autoHeight"),We=Pn("controls"),ze=Pn("controlsText"),je=Pn("nav"),Fe=Pn("touch"),Ve=Pn("mouseDrag"),Xe=Pn("autoplay"),Ye=Pn("autoplayTimeout"),Qe=Pn("autoplayText"),Ge=Pn("autoplayHoverPause"),Ue=Pn("autoplayResetOnVisibility"),Ke=(Me=Pn("nonce"),Ee=document.createElement("style"),Me&&Ee.setAttribute("nonce",Me),document.querySelector("head").appendChild(Ee),Ee.sheet?Ee.sheet:Ee.styleSheet),$e=e.lazyload,Je=e.lazyloadSelector,Ze=[],et=Ie?(Se=function(){if($||Te&&!De)return pe-1;var t=Te?"fixedWidth":"items",n=[];if((Te||e[t]<pe)&&n.push(e[t]),K)for(var i in K){var o=K[i][t];o&&(Te||o<pe)&&n.push(o)}return n.length||n.push(0),Math.ceil(Te?De/Math.min.apply(null,n):Math.max.apply(null,n))}(),Ae=Z?Math.ceil((5*Se-pe)/2):4*Se-pe,Ae=Math.max(Se,Ae),On("edgePadding")?Ae+1:Ae):0,tt=Z?pe+2*et:pe+et,nt=!(!Te&&!$||Ie),it=Te?Ai():null,ot=!Z||!Ie,rt=le?"left":"top",at="",st="",ct=Te?function(){return Be&&!Ie?pe-1:Math.ceil(-it/(Te+qe))}:$?function(){for(var e=0;e<tt;e++)if(be[e]>=-it)return e}:function(){return Be&&Z&&!Ie?pe-1:Ie||Z?Math.max(0,tt-Math.ceil(He)):tt-1},lt=qn(Pn("startIndex")),ut=lt,dt=(Cn(),0),ft=$?null:ct(),mt=e.preventActionWhenRunning,vt=e.swipeAngle,ht=!vt||"?",pt=!1,yt=e.onInit,gt=new D,bt=" tns-slider tns-"+e.mode,wt=fe.id||(Le=window.tnsId,window.tnsId=Le?Le+1:1,"tns"+window.tnsId),xt=Pn("disable"),Lt=!1,St=e.freezable,At=!(!St||$)&&$n(),Mt=!1,Et={click:Ni,keydown:function(e){e=zi(e);var t=[v.LEFT,v.RIGHT].indexOf(e.keyCode);0<=t&&(0===t?Gt.disabled||Ni(e,-1):Ut.disabled||Ni(e,1))}},Tt={click:function(e){if(pt){if(mt)return;Bi()}for(var t=ji(e=zi(e));t!==Zt&&!g(t,"data-nav");)t=t.parentNode;if(g(t,"data-nav")){var n=on=Number(b(t,"data-nav")),i=Te||$?n*pe/tn:n*He;Hi(Ot?n:Math.min(Math.ceil(i),pe-1),e),rn===n&&(dn&&Ii(),on=-1)}},keydown:function(e){e=zi(e);var t=n.activeElement;if(g(t,"data-nav")){var i=[v.LEFT,v.RIGHT,v.ENTER,v.SPACE].indexOf(e.keyCode),o=Number(b(t,"data-nav"));0<=i&&(0===i?0<o&&Wi(Jt[o-1]):1===i?o<tn-1&&Wi(Jt[o+1]):Hi(on=o,e))}}},Ct={mouseover:function(){dn&&(Oi(),fn=!0)},mouseout:function(){fn&&(Di(),fn=!1)}},qt={visibilitychange:function(){n.hidden?dn&&(Oi(),vn=!0):vn&&(Di(),vn=!1)}},kt={keydown:function(e){e=zi(e);var t=[v.LEFT,v.RIGHT].indexOf(e.keyCode);0<=t&&Ni(e,0===t?-1:1)}},Bt={touchstart:Yi,touchmove:Qi,touchend:Gi,touchcancel:Gi},Ht={mousedown:Yi,mousemove:Qi,mouseup:Gi,mouseleave:Gi},Nt=On("controls"),Dt=On("nav"),Ot=!!$||e.navAsThumbnails,Pt=On("autoplay"),_t=On("touch"),It=On("mouseDrag"),Rt="tns-slide-active",Wt="tns-slide-cloned",zt="tns-complete",jt={load:function(e){si(ji(e))},error:function(e){var t;t=ji(e),p(t,"failed"),ci(t)}},Ft="force"===e.preventScrollOnTouch;if(Nt)var Vt,Xt,Yt=e.controlsContainer,Qt=e.controlsContainer?e.controlsContainer.outerHTML:"",Gt=e.prevButton,Ut=e.nextButton,Kt=e.prevButton?e.prevButton.outerHTML:"",$t=e.nextButton?e.nextButton.outerHTML:"";if(Dt)var Jt,Zt=e.navContainer,en=e.navContainer?e.navContainer.outerHTML:"",tn=$?pe:Ki(),nn=0,on=-1,rn=Bn(),an=rn,sn="tns-nav-active",cn="Carousel Page ",ln=" (Current Slide)";if(Pt)var un,dn,fn,mn,vn,hn="forward"===e.autoplayDirection?1:-1,pn=e.autoplayButton,yn=e.autoplayButton?e.autoplayButton.outerHTML:"",gn=["<span class='tns-visually-hidden'>"," animation</span>"];if(_t||It)var bn,wn,xn={},Ln={},Sn=!1,An=le?function(e,t){return e.x-t.x}:function(e,t){return e.y-t.y};$||Tn(xt||At),R&&(rt=R,at="translate",W?(at+=le?"3d(":"3d(0px, ",st=le?", 0px, 0px)":", 0px)"):(at+=le?"X(":"Y(",st=")")),Z&&(fe.className=fe.className.replace("tns-vpfix","")),function(){(On("gutter"),ue.className="tns-outer",de.className="tns-inner",ue.id=wt+"-ow",de.id=wt+"-iw",""===fe.id&&(fe.id=wt),bt+=_||$?" tns-subpixel":" tns-no-subpixel",bt+=P?" tns-calc":" tns-no-calc",$&&(bt+=" tns-autowidth"),bt+=" tns-"+e.axis,fe.className+=bt,Z?((se=n.createElement("div")).id=wt+"-mw",se.className="tns-ovh",ue.appendChild(se),se.appendChild(de)):ue.appendChild(de),Re)&&((se||de).className+=" tns-ah");if(me.insertBefore(ue,fe),de.appendChild(fe),m(he,(function(e,t){p(e,"tns-item"),e.id||(e.id=wt+"-item"+t),!Z&&ae&&p(e,ae),x(e,{"aria-hidden":"true",tabindex:"-1"})})),et){for(var t=n.createDocumentFragment(),i=n.createDocumentFragment(),o=et;o--;){var r=o%pe,a=he[r].cloneNode(!0);if(p(a,Wt),L(a,"id"),i.insertBefore(a,i.firstChild),Z){var s=he[pe-1-r].cloneNode(!0);p(s,Wt),L(s,"id"),t.appendChild(s)}}fe.insertBefore(t,fe.firstChild),fe.appendChild(i),he=fe.children}}(),function(){if(!Z)for(var t=lt,n=lt+Math.min(pe,He);t<n;t++){var i=he[t];i.style.left=100*(t-lt)/He+"%",p(i,ie),y(i,ae)}if(le&&(_||$?(d(Ke,"#"+wt+" > .tns-item","font-size:"+c.getComputedStyle(he[0]).fontSize+";",f(Ke)),d(Ke,"#"+wt,"font-size:0;",f(Ke))):Z&&m(he,(function(e,t){var n;e.style.marginLeft=(n=t,P?P+"("+100*n+"% / "+tt+")":100*n/tt+"%")}))),I){if(z){var o=se&&e.autoHeight?jn(e.speed):"";d(Ke,"#"+wt+"-mw",o,f(Ke))}o=_n(e.edgePadding,e.gutter,e.fixedWidth,e.speed,e.autoHeight),d(Ke,"#"+wt+"-iw",o,f(Ke)),Z&&(o=le&&!$?"width:"+In(e.fixedWidth,e.gutter,e.items)+";":"",z&&(o+=jn(Pe)),d(Ke,"#"+wt,o,f(Ke))),o=le&&!$?Rn(e.fixedWidth,e.gutter,e.items):"",e.gutter&&(o+=Wn(e.gutter)),Z||(z&&(o+=jn(Pe)),F&&(o+=Fn(Pe))),o&&d(Ke,"#"+wt+" > .tns-item",o,f(Ke))}else{Z&&Re&&(se.style[z]=Pe/1e3+"s"),de.style.cssText=_n(Ce,qe,Te,Re),Z&&le&&!$&&(fe.style.width=In(Te,qe,He));o=le&&!$?Rn(Te,qe,He):"";qe&&(o+=Wn(qe)),o&&d(Ke,"#"+wt+" > .tns-item",o,f(Ke))}if(K&&I)for(var r in K){r=parseInt(r);var a=K[r],s=(o="",""),l="",u="",v="",h=$?null:Pn("items",r),g=Pn("fixedWidth",r),b=Pn("speed",r),w=Pn("edgePadding",r),x=Pn("autoHeight",r),L=Pn("gutter",r);z&&se&&Pn("autoHeight",r)&&"speed"in a&&(s="#"+wt+"-mw{"+jn(b)+"}"),("edgePadding"in a||"gutter"in a)&&(l="#"+wt+"-iw{"+_n(w,L,g,b,x)+"}"),Z&&le&&!$&&("fixedWidth"in a||"items"in a||Te&&"gutter"in a)&&(u="width:"+In(g,L,h)+";"),z&&"speed"in a&&(u+=jn(b)),u&&(u="#"+wt+"{"+u+"}"),("fixedWidth"in a||Te&&"gutter"in a||!Z&&"items"in a)&&(v+=Rn(g,L,h)),"gutter"in a&&(v+=Wn(L)),!Z&&"speed"in a&&(z&&(v+=jn(b)),F&&(v+=Fn(b))),v&&(v="#"+wt+" > .tns-item{"+v+"}"),(o=s+l+u+v)&&Ke.insertRule("@media (min-width: "+r/16+"em) {"+o+"}",Ke.cssRules.length)}}(),Vn();var Mn=Ie?Z?function(){var e=dt,t=ft;e+=Ne,t-=Ne,Ce?(e+=1,t-=1):Te&&(ke+qe)%(Te+qe)&&(t-=1),et&&(t<lt?lt-=pe:lt<e&&(lt+=pe))}:function(){if(ft<lt)for(;dt+pe<=lt;)lt-=pe;else if(lt<dt)for(;lt<=ft-pe;)lt+=pe}:function(){lt=Math.max(dt,Math.min(ft,lt))},En=Z?function(){var e,t,n,i,o,r,a,s,c,l,u;Li(fe,""),z||!Pe?(Ti(),Pe&&E(fe)||Bi()):(e=fe,t=rt,n=at,i=st,o=Mi(),r=Pe,a=Bi,s=Math.min(r,10),c=0<=o.indexOf("%")?"%":"px",o=o.replace(c,""),l=Number(e.style[t].replace(n,"").replace(i,"").replace(c,"")),u=(o-l)/r*s,setTimeout((function o(){r-=s,l+=u,e.style[t]=n+l+c+i,0<r?setTimeout(o,s):a()}),s)),le||Ui()}:function(){Ze=[];var e={};e[X]=e[Y]=Bi,N(he[ut],e),H(he[lt],e),Ci(ut,ie,oe,!0),Ci(lt,ae,ie),X&&Y&&Pe&&E(fe)||Bi()};return{version:"2.9.4",getInfo:Ji,events:gt,goTo:Hi,play:function(){Xe&&!dn&&(_i(),mn=!1)},pause:function(){dn&&(Ii(),mn=!0)},isOn:ge,updateSliderHeight:vi,refresh:Vn,destroy:function(){if(Ke.disabled=!0,Ke.ownerNode&&Ke.ownerNode.remove(),N(c,{resize:Un}),Oe&&N(n,kt),Yt&&N(Yt,Et),Zt&&N(Zt,Tt),N(fe,Ct),N(fe,qt),pn&&N(pn,{click:Ri}),Xe&&clearInterval(un),Z&&X){var t={};t[X]=Bi,N(fe,t)}Fe&&N(fe,Bt),Ve&&N(fe,Ht);var i=[ve,Qt,Kt,$t,en,yn];for(var o in G.forEach((function(t,n){var o="container"===t?ue:e[t];if("object"==typeof o&&o){var r=!!o.previousElementSibling&&o.previousElementSibling,a=o.parentNode;o.outerHTML=i[n],e[t]=r?r.nextElementSibling:a.firstElementChild}})),G=ie=oe=re=ae=le=ue=de=fe=me=ve=he=pe=ce=ye=$=Te=Ce=qe=ke=He=Ne=De=Oe=Pe=_e=Ie=Re=Ke=$e=be=Ze=et=tt=nt=it=ot=rt=at=st=ct=lt=ut=dt=ft=vt=ht=pt=yt=gt=bt=wt=xt=Lt=St=At=Mt=Et=Tt=Ct=qt=kt=Bt=Ht=Nt=Dt=Ot=Pt=_t=It=Rt=zt=jt=we=We=ze=Yt=Qt=Gt=Ut=Vt=Xt=je=Zt=en=Jt=tn=nn=on=rn=an=sn=cn=ln=Xe=Ye=hn=Qe=Ge=pn=yn=Ue=gn=un=dn=fn=mn=vn=xn=Ln=bn=Sn=wn=An=Fe=Ve=null,this)"rebuild"!==o&&(this[o]=null);ge=!1},rebuild:function(){return O(o(e,U))}}}function Tn(e){e&&(We=je=Fe=Ve=Oe=Xe=Ge=Ue=!1)}function Cn(){for(var e=Z?lt-et:lt;e<0;)e+=pe;return e%pe+1}function qn(e){return e=e?Math.max(0,Math.min(Ie?pe-1:pe-He,e)):0,Z?e+et:e}function kn(e){for(null==e&&(e=lt),Z&&(e-=et);e<0;)e+=pe;return Math.floor(e%pe)}function Bn(){var e,t=kn();return e=Ot?t:Te||$?Math.ceil((t+1)*tn/pe-1):Math.floor(t/He),!Ie&&Z&&lt===ft&&(e=tn-1),e}function Hn(){return c.innerWidth||n.documentElement.clientWidth||n.body.clientWidth}function Nn(e){return"top"===e?"afterbegin":"beforeend"}function Dn(){var e=Ce?2*Ce-qe:0;return function e(t){if(null!=t){var i,o,r=n.createElement("div");return t.appendChild(r),o=(i=r.getBoundingClientRect()).right-i.left,r.remove(),o||e(t.parentNode)}}(me)-e}function On(t){if(e[t])return!0;if(K)for(var n in K)if(K[n][t])return!0;return!1}function Pn(t,n){if(null==n&&(n=ye),"items"===t&&Te)return Math.floor((ke+qe)/(Te+qe))||1;var i=e[t];if(K)for(var o in K)n>=parseInt(o)&&t in K[o]&&(i=K[o][t]);return"slideBy"===t&&"page"===i&&(i=Pn("items")),Z||"slideBy"!==t&&"items"!==t||(i=Math.floor(i)),i}function _n(e,t,n,i,o){var r="";if(void 0!==e){var a=e;t&&(a-=t),r=le?"margin: 0 "+a+"px 0 "+e+"px;":"margin: "+e+"px 0 "+a+"px 0;"}else if(t&&!n){var s="-"+t+"px";r="margin: 0 "+(le?s+" 0 0":"0 "+s+" 0")+";"}return!Z&&o&&z&&i&&(r+=jn(i)),r}function In(e,t,n){return e?(e+t)*tt+"px":P?P+"("+100*tt+"% / "+n+")":100*tt/n+"%"}function Rn(e,t,n){var i;if(e)i=e+t+"px";else{Z||(n=Math.floor(n));var o=Z?tt:n;i=P?P+"(100% / "+o+")":100/o+"%"}return i="width:"+i,"inner"!==J?i+";":i+" !important;"}function Wn(e){var t="";return!1!==e&&(t=(le?"padding-":"margin-")+(le?"right":"bottom")+": "+e+"px;"),t}function zn(e,t){var n=e.substring(0,e.length-t).toLowerCase();return n&&(n="-"+n+"-"),n}function jn(e){return zn(z,18)+"transition-duration:"+e/1e3+"s;"}function Fn(e){return zn(F,17)+"animation-duration:"+e/1e3+"s;"}function Vn(){if(On("autoHeight")||$||!le){var e=fe.querySelectorAll("img");m(e,(function(e){var t=e.src;$e||(t&&t.indexOf("data:image")<0?(e.src="",H(e,jt),p(e,"loading"),e.src=t):si(e))})),t((function(){di(S(e),(function(){we=!0}))})),On("autoHeight")&&(e=li(lt,Math.min(lt+He-1,tt-1))),$e?Xn():t((function(){di(S(e),Xn)}))}else Z&&Ei(),Qn(),Gn()}function Xn(){if($&&1<pe){var e=Ie?lt:pe-1;!function t(){var n=he[e].getBoundingClientRect().left,i=he[e-1].getBoundingClientRect().right;Math.abs(n-i)<=1?Yn():setTimeout((function(){t()}),16)}()}else Yn()}function Yn(){le&&!$||(hi(),$?(it=Ai(),St&&(At=$n()),ft=ct(),Tn(xt||At)):Ui()),Z&&Ei(),Qn(),Gn()}function Qn(){if(pi(),ue.insertAdjacentHTML("afterbegin",'<div class="tns-liveregion tns-visually-hidden" aria-live="polite" aria-atomic="true">slide <span class="current">'+oi()+"</span>  of "+pe+"</div>"),xe=ue.querySelector(".tns-liveregion .current"),Pt){var t=Xe?"stop":"start";pn?x(pn,{"data-action":t}):e.autoplayButtonOutput&&(ue.insertAdjacentHTML(Nn(e.autoplayPosition),'<button type="button" data-action="'+t+'">'+gn[0]+t+gn[1]+Qe[0]+"</button>"),pn=ue.querySelector("[data-action]")),pn&&H(pn,{click:Ri}),Xe&&(_i(),Ge&&H(fe,Ct),Ue&&H(fe,qt))}if(Dt){if(Zt)x(Zt,{"aria-label":"Carousel Pagination"}),m(Jt=Zt.children,(function(e,t){x(e,{"data-nav":t,tabindex:"-1","aria-label":cn+(t+1),"aria-controls":wt})}));else{for(var n="",i=Ot?"":'style="display:none"',o=0;o<pe;o++)n+='<button type="button" data-nav="'+o+'" tabindex="-1" aria-controls="'+wt+'" '+i+' aria-label="'+cn+(o+1)+'"></button>';n='<div class="tns-nav" aria-label="Carousel Pagination">'+n+"</div>",ue.insertAdjacentHTML(Nn(e.navPosition),n),Zt=ue.querySelector(".tns-nav"),Jt=Zt.children}if($i(),z){var r=z.substring(0,z.length-18).toLowerCase(),a="transition: all "+Pe/1e3+"s";r&&(a="-"+r+"-"+a),d(Ke,"[aria-controls^="+wt+"-item]",a,f(Ke))}x(Jt[rn],{"aria-label":cn+(rn+1)+ln}),L(Jt[rn],"tabindex"),p(Jt[rn],sn),H(Zt,Tt)}Nt&&(Yt||Gt&&Ut||(ue.insertAdjacentHTML(Nn(e.controlsPosition),'<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button type="button" data-controls="prev" tabindex="-1" aria-controls="'+wt+'">'+ze[0]+'</button><button type="button" data-controls="next" tabindex="-1" aria-controls="'+wt+'">'+ze[1]+"</button></div>"),Yt=ue.querySelector(".tns-controls")),Gt&&Ut||(Gt=Yt.children[0],Ut=Yt.children[1]),e.controlsContainer&&x(Yt,{"aria-label":"Carousel Navigation",tabindex:"0"}),(e.controlsContainer||e.prevButton&&e.nextButton)&&x([Gt,Ut],{"aria-controls":wt,tabindex:"-1"}),(e.controlsContainer||e.prevButton&&e.nextButton)&&(x(Gt,{"data-controls":"prev"}),x(Ut,{"data-controls":"next"})),Vt=gi(Gt),Xt=gi(Ut),xi(),Yt?H(Yt,Et):(H(Gt,Et),H(Ut,Et))),Zn()}function Gn(){if(Z&&X){var t={};t[X]=Bi,H(fe,t)}Fe&&H(fe,Bt,e.preventScrollOnTouch),Ve&&H(fe,Ht),Oe&&H(n,kt),"inner"===J?gt.on("outerResized",(function(){Kn(),gt.emit("innerLoaded",Ji())})):(K||Te||$||Re||!le)&&H(c,{resize:Un}),Re&&("outer"===J?gt.on("innerLoaded",ui):xt||ui()),ai(),xt?ni():At&&ti(),gt.on("indexChanged",fi),"inner"===J&&gt.emit("innerLoaded",Ji()),"function"==typeof yt&&yt(Ji()),ge=!0}function Un(e){t((function(){Kn(zi(e))}))}function Kn(t){if(ge){"outer"===J&&gt.emit("outerResized",Ji(t)),ye=Hn();var i,o=ce,r=!1;K&&(Jn(),(i=o!==ce)&&gt.emit("newBreakpointStart",Ji(t)));var a,s,c,l,u=He,v=xt,h=At,g=Oe,b=We,w=je,x=Fe,L=Ve,S=Xe,E=Ge,T=Ue,C=lt;if(i){var q=Te,k=Re,B=ze,D=Be,O=Qe;if(!I)var P=qe,_=Ce}if(Oe=Pn("arrowKeys"),We=Pn("controls"),je=Pn("nav"),Fe=Pn("touch"),Be=Pn("center"),Ve=Pn("mouseDrag"),Xe=Pn("autoplay"),Ge=Pn("autoplayHoverPause"),Ue=Pn("autoplayResetOnVisibility"),i&&(xt=Pn("disable"),Te=Pn("fixedWidth"),Pe=Pn("speed"),Re=Pn("autoHeight"),ze=Pn("controlsText"),Qe=Pn("autoplayText"),Ye=Pn("autoplayTimeout"),I||(Ce=Pn("edgePadding"),qe=Pn("gutter"))),Tn(xt),ke=Dn(),le&&!$||xt||(hi(),le||(Ui(),r=!0)),(Te||$)&&(it=Ai(),ft=ct()),(i||Te)&&(He=Pn("items"),Ne=Pn("slideBy"),(s=He!==u)&&(Te||$||(ft=ct()),Mn())),i&&xt!==v&&(xt?ni():function(){if(Lt){if(Ke.disabled=!1,fe.className+=bt,Ei(),Ie)for(var e=et;e--;)Z&&M(he[e]),M(he[tt-e-1]);if(!Z)for(var t=lt,n=lt+pe;t<n;t++){var i=he[t],o=t<lt+He?ie:ae;i.style.left=100*(t-lt)/He+"%",p(i,o)}ei(),Lt=!1}}()),St&&(i||Te||$)&&(At=$n())!==h&&(At?(Ti(Mi(qn(0))),ti()):(function(){if(Mt){if(Ce&&I&&(de.style.margin=""),et)for(var e="tns-transparent",t=et;t--;)Z&&y(he[t],e),y(he[tt-t-1],e);ei(),Mt=!1}}(),r=!0)),Tn(xt||At),Xe||(Ge=Ue=!1),Oe!==g&&(Oe?H(n,kt):N(n,kt)),We!==b&&(We?Yt?M(Yt):(Gt&&M(Gt),Ut&&M(Ut)):Yt?A(Yt):(Gt&&A(Gt),Ut&&A(Ut))),je!==w&&(je?(M(Zt),$i()):A(Zt)),Fe!==x&&(Fe?H(fe,Bt,e.preventScrollOnTouch):N(fe,Bt)),Ve!==L&&(Ve?H(fe,Ht):N(fe,Ht)),Xe!==S&&(Xe?(pn&&M(pn),dn||mn||_i()):(pn&&A(pn),dn&&Ii())),Ge!==E&&(Ge?H(fe,Ct):N(fe,Ct)),Ue!==T&&(Ue?H(n,qt):N(n,qt)),i){if(Te===q&&Be===D||(r=!0),Re!==k&&(Re||(de.style.height="")),We&&ze!==B&&(Gt.innerHTML=ze[0],Ut.innerHTML=ze[1]),pn&&Qe!==O){var R=Xe?1:0,W=pn.innerHTML,z=W.length-O[R].length;W.substring(z)===O[R]&&(pn.innerHTML=W.substring(0,z)+Qe[R])}}else Be&&(Te||$)&&(r=!0);if((s||Te&&!$)&&(tn=Ki(),$i()),(a=lt!==C)?(gt.emit("indexChanged",Ji()),r=!0):s?a||fi():(Te||$)&&(ai(),pi(),ii()),s&&!Z&&function(){for(var e=lt+Math.min(pe,He),t=tt;t--;){var n=he[t];lt<=t&&t<e?(p(n,"tns-moving"),n.style.left=100*(t-lt)/He+"%",p(n,ie),y(n,ae)):n.style.left&&(n.style.left="",p(n,ae),y(n,ie)),y(n,oe)}setTimeout((function(){m(he,(function(e){y(e,"tns-moving")}))}),300)}(),!xt&&!At){if(i&&!I&&(Ce===_&&qe===P||(de.style.cssText=_n(Ce,qe,Te,Pe,Re)),le)){Z&&(fe.style.width=In(Te,qe,He));var j=Rn(Te,qe,He)+Wn(qe);l=f(c=Ke)-1,"deleteRule"in c?c.deleteRule(l):c.removeRule(l),d(Ke,"#"+wt+" > .tns-item",j,f(Ke))}Re&&ui(),r&&(Ei(),ut=lt)}i&&gt.emit("newBreakpointEnd",Ji(t))}}function $n(){if(!Te&&!$)return pe<=(Be?He-(He-1)/2:He);var e=Te?(Te+qe)*pe:be[pe],t=Ce?ke+2*Ce:ke+qe;return Be&&(t-=Te?(ke-Te)/2:(ke-(be[lt+1]-be[lt]-qe))/2),e<=t}function Jn(){for(var e in ce=0,K)(e=parseInt(e))<=ye&&(ce=e)}function Zn(){!Xe&&pn&&A(pn),!je&&Zt&&A(Zt),We||(Yt?A(Yt):(Gt&&A(Gt),Ut&&A(Ut)))}function ei(){Xe&&pn&&M(pn),je&&Zt&&M(Zt),We&&(Yt?M(Yt):(Gt&&M(Gt),Ut&&M(Ut)))}function ti(){if(!Mt){if(Ce&&(de.style.margin="0px"),et)for(var e="tns-transparent",t=et;t--;)Z&&p(he[t],e),p(he[tt-t-1],e);Zn(),Mt=!0}}function ni(){if(!Lt){if(Ke.disabled=!0,fe.className=fe.className.replace(bt.substring(1),""),L(fe,["style"]),Ie)for(var e=et;e--;)Z&&A(he[e]),A(he[tt-e-1]);if(le&&Z||L(de,["style"]),!Z)for(var t=lt,n=lt+pe;t<n;t++){var i=he[t];L(i,["style"]),y(i,ie),y(i,ae)}Zn(),Lt=!0}}function ii(){var e=oi();xe.innerHTML!==e&&(xe.innerHTML=e)}function oi(){var e=ri(),t=e[0]+1,n=e[1]+1;return t===n?t+"":t+" to "+n}function ri(e){null==e&&(e=Mi());var t,n,i,o=lt;if(Be||Ce?($||Te)&&(n=-(parseFloat(e)+Ce),i=n+ke+2*Ce):$&&(n=be[lt],i=n+ke),$)be.forEach((function(e,r){r<tt&&((Be||Ce)&&e<=n+.5&&(o=r),.5<=i-e&&(t=r))}));else{if(Te){var r=Te+qe;Be||Ce?(o=Math.floor(n/r),t=Math.ceil(i/r-1)):t=o+Math.ceil(ke/r)-1}else if(Be||Ce){var a=He-1;if(Be?(o-=a/2,t=lt+a/2):t=lt+a,Ce){var s=Ce*He/ke;o-=s,t+=s}o=Math.floor(o),t=Math.ceil(t)}else t=o+He-1;o=Math.max(o,0),t=Math.min(t,tt-1)}return[o,t]}function ai(){if($e&&!xt){var e=ri();e.push(Je),li.apply(null,e).forEach((function(e){if(!h(e,zt)){var t={};t[X]=function(e){e.stopPropagation()},H(e,t),H(e,jt),e.src=b(e,"data-src");var n=b(e,"data-srcset");n&&(e.srcset=n),p(e,"loading")}}))}}function si(e){p(e,"loaded"),ci(e)}function ci(e){p(e,zt),y(e,"loading"),N(e,jt)}function li(e,t,n){var i=[];for(n||(n="img");e<=t;)m(he[e].querySelectorAll(n),(function(e){i.push(e)})),e++;return i}function ui(){var e=li.apply(null,ri());t((function(){di(e,vi)}))}function di(e,n){return we?n():(e.forEach((function(t,n){!$e&&t.complete&&ci(t),h(t,zt)&&e.splice(n,1)})),e.length?void t((function(){di(e,n)})):n())}function fi(){ai(),pi(),ii(),xi(),function(){if(je&&(rn=0<=on?on:Bn(),on=-1,rn!==an)){var e=Jt[an],t=Jt[rn];x(e,{tabindex:"-1","aria-label":cn+(an+1)}),y(e,sn),x(t,{"aria-label":cn+(rn+1)+ln}),L(t,"tabindex"),p(t,sn),an=rn}}()}function mi(e,t){for(var n=[],i=e,o=Math.min(e+t,tt);i<o;i++)n.push(he[i].offsetHeight);return Math.max.apply(null,n)}function vi(){var e=Re?mi(lt,He):mi(et,pe),t=se||de;t.style.height!==e&&(t.style.height=e+"px")}function hi(){be=[0];var e=le?"left":"top",t=le?"right":"bottom",n=he[0].getBoundingClientRect()[e];m(he,(function(i,o){o&&be.push(i.getBoundingClientRect()[e]-n),o===tt-1&&be.push(i.getBoundingClientRect()[t]-n)}))}function pi(){var e=ri(),t=e[0],n=e[1];m(he,(function(e,i){t<=i&&i<=n?g(e,"aria-hidden")&&(L(e,["aria-hidden","tabindex"]),p(e,Rt)):g(e,"aria-hidden")||(x(e,{"aria-hidden":"true",tabindex:"-1"}),y(e,Rt))}))}function yi(e){return e.nodeName.toLowerCase()}function gi(e){return"button"===yi(e)}function bi(e){return"true"===e.getAttribute("aria-disabled")}function wi(e,t,n){e?t.disabled=n:t.setAttribute("aria-disabled",n.toString())}function xi(){if(We&&!_e&&!Ie){var e=Vt?Gt.disabled:bi(Gt),t=Xt?Ut.disabled:bi(Ut),n=lt<=dt,i=!_e&&ft<=lt;n&&!e&&wi(Vt,Gt,!0),!n&&e&&wi(Vt,Gt,!1),i&&!t&&wi(Xt,Ut,!0),!i&&t&&wi(Xt,Ut,!1)}}function Li(e,t){z&&(e.style[z]=t)}function Si(e){return null==e&&(e=lt),$?(ke-(Ce?qe:0)-(be[e+1]-be[e]-qe))/2:Te?(ke-Te)/2:(He-1)/2}function Ai(){var e=ke+(Ce?qe:0)-(Te?(Te+qe)*tt:be[tt]);return Be&&!Ie&&(e=Te?-(Te+qe)*(tt-1)-Si():Si(tt-1)-be[tt-1]),0<e&&(e=0),e}function Mi(e){var t;if(null==e&&(e=lt),le&&!$)if(Te)t=-(Te+qe)*e,Be&&(t+=Si());else{var n=R?tt:He;Be&&(e-=Si()),t=100*-e/n}else t=-be[e],Be&&$&&(t+=Si());return nt&&(t=Math.max(t,it)),t+(!le||$||Te?"px":"%")}function Ei(e){Li(fe,"0s"),Ti(e)}function Ti(e){null==e&&(e=Mi()),fe.style[rt]=at+e+st}function Ci(e,t,n,i){var o=e+He;Ie||(o=Math.min(o,tt));for(var r=e;r<o;r++){var a=he[r];i||(a.style.left=100*(r-lt)/He+"%"),re&&j&&(a.style[j]=a.style[V]=re*(r-e)/1e3+"s"),y(a,t),p(a,n),i&&Ze.push(a)}}function qi(e,t){ot&&Mn(),(lt!==ut||t)&&(gt.emit("indexChanged",Ji()),gt.emit("transitionStart",Ji()),Re&&ui(),dn&&e&&0<=["click","keydown"].indexOf(e.type)&&Ii(),pt=!0,En())}function ki(e){return e.toLowerCase().replace(/-/g,"")}function Bi(e){if(Z||pt){if(gt.emit("transitionEnd",Ji(e)),!Z&&0<Ze.length)for(var t=0;t<Ze.length;t++){var n=Ze[t];n.style.left="",V&&j&&(n.style[V]="",n.style[j]=""),y(n,oe),p(n,ae)}if(!e||!Z&&e.target.parentNode===fe||e.target===fe&&ki(e.propertyName)===ki(rt)){if(!ot){var i=lt;Mn(),lt!==i&&(gt.emit("indexChanged",Ji()),Ei())}"inner"===J&&gt.emit("innerLoaded",Ji()),pt=!1,ut=lt}}}function Hi(e,t){if(!At)if("prev"===e)Ni(t,-1);else if("next"===e)Ni(t,1);else{if(pt){if(mt)return;Bi()}var n=kn(),i=0;if("first"===e?i=-n:"last"===e?i=Z?pe-He-n:pe-1-n:("number"!=typeof e&&(e=parseInt(e)),isNaN(e)||(t||(e=Math.max(0,Math.min(pe-1,e))),i=e-n)),!Z&&i&&Math.abs(i)<He){var o=0<i?1:-1;i+=dt<=lt+i-pe?pe*o:2*pe*o*-1}lt+=i,Z&&Ie&&(lt<dt&&(lt+=pe),ft<lt&&(lt-=pe)),kn(lt)!==kn(ut)&&qi(t)}}function Ni(e,t){if(pt){if(mt)return;Bi()}var n;if(!t){for(var i=ji(e=zi(e));i!==Yt&&[Gt,Ut].indexOf(i)<0;)i=i.parentNode;var o=[Gt,Ut].indexOf(i);0<=o&&(n=!0,t=0===o?-1:1)}if(_e){if(lt===dt&&-1===t)return void Hi("last",e);if(lt===ft&&1===t)return void Hi("first",e)}t&&(lt+=Ne*t,$&&(lt=Math.floor(lt)),qi(n||e&&"keydown"===e.type?e:null))}function Di(){un=setInterval((function(){Ni(null,hn)}),Ye),dn=!0}function Oi(){clearInterval(un),dn=!1}function Pi(e,t){x(pn,{"data-action":e}),pn.innerHTML=gn[0]+e+gn[1]+t}function _i(){Di(),pn&&Pi("stop",Qe[1])}function Ii(){Oi(),pn&&Pi("start",Qe[0])}function Ri(){dn?(Ii(),mn=!0):(_i(),mn=!1)}function Wi(e){e.focus()}function zi(e){return Fi(e=e||c.event)?e.changedTouches[0]:e}function ji(e){return e.target||c.event.srcElement}function Fi(e){return 0<=e.type.indexOf("touch")}function Vi(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Xi(){return r=Ln.y-xn.y,a=Ln.x-xn.x,t=Math.atan2(r,a)*(180/Math.PI),i=!1,90-(n=vt)<=(o=Math.abs(90-Math.abs(t)))?i="horizontal":o<=n&&(i="vertical"),i===e.axis;var t,n,i,o,r,a}function Yi(e){if(pt){if(mt)return;Bi()}Xe&&dn&&Oi(),Sn=!0,wn&&(i(wn),wn=null);var t=zi(e);gt.emit(Fi(e)?"touchStart":"dragStart",Ji(e)),!Fi(e)&&0<=["img","a"].indexOf(yi(ji(e)))&&Vi(e),Ln.x=xn.x=t.clientX,Ln.y=xn.y=t.clientY,Z&&(bn=parseFloat(fe.style[rt].replace(at,"")),Li(fe,"0s"))}function Qi(e){if(Sn){var n=zi(e);Ln.x=n.clientX,Ln.y=n.clientY,Z?wn||(wn=t((function(){!function e(n){if(ht){if(i(wn),Sn&&(wn=t((function(){e(n)}))),"?"===ht&&(ht=Xi()),ht){!Ft&&Fi(n)&&(Ft=!0);try{n.type&&gt.emit(Fi(n)?"touchMove":"dragMove",Ji(n))}catch(e){}var o=bn,r=An(Ln,xn);if(!le||Te||$)o+=r,o+="px";else o+=R?r*He*100/((ke+qe)*tt):100*r/(ke+qe),o+="%";fe.style[rt]=at+o+st}}else Sn=!1}(e)}))):("?"===ht&&(ht=Xi()),ht&&(Ft=!0)),("boolean"!=typeof e.cancelable||e.cancelable)&&Ft&&e.preventDefault()}}function Gi(n){if(Sn){wn&&(i(wn),wn=null),Z&&Li(fe,""),Sn=!1;var o=zi(n);Ln.x=o.clientX,Ln.y=o.clientY;var r=An(Ln,xn);if(Math.abs(r)){if(!Fi(n)){var a=ji(n);H(a,{click:function e(t){Vi(t),N(a,{click:e})}})}Z?wn=t((function(){if(le&&!$){var e=-r*He/(ke+qe);e=0<r?Math.floor(e):Math.ceil(e),lt+=e}else{var t=-(bn+r);if(t<=0)lt=dt;else if(t>=be[tt-1])lt=ft;else for(var i=0;i<tt&&t>=be[i];)t>be[lt=i]&&r<0&&(lt+=1),i++}qi(n,r),gt.emit(Fi(n)?"touchEnd":"dragEnd",Ji(n))})):ht&&Ni(n,0<r?-1:1)}}"auto"===e.preventScrollOnTouch&&(Ft=!1),vt&&(ht="?"),Xe&&!dn&&Di()}function Ui(){(se||de).style.height=be[lt+He]-be[lt]+"px"}function Ki(){var e=Te?(Te+qe)*pe/ke:pe/He;return Math.min(Math.ceil(e),pe)}function $i(){if(je&&!Ot&&tn!==nn){var e=nn,t=tn,n=M;for(tn<nn&&(e=tn,t=nn,n=A);e<t;)n(Jt[e]),e++;nn=tn}}function Ji(e){return{container:fe,slideItems:he,navContainer:Zt,navItems:Jt,controlsContainer:Yt,hasControls:Nt,prevButton:Gt,nextButton:Ut,items:He,slideBy:Ne,cloneCount:et,slideCount:pe,slideCountNew:tt,index:lt,indexCached:ut,displayIndex:Cn(),navCurrentIndex:rn,navCurrentIndexCached:an,pages:tn,pagesCached:nn,sheet:Ke,isOn:ge,event:e||{}}}Q&&console.warn("No slides found in",e.container)};return O}();function iframeBusterNativeHome(){
if(document.querySelector('div[id*="promo1"]')){const e=document.querySelector('div[id*="promo1"]');if(e.classList.contains("ad-loaded")){document.querySelector('.ad div[id*="promo1"] div iframe').setAttribute("class","iframe-buster-native-home");const t=document.querySelectorAll(".iframe-buster-native-home")[0],n=t.contentDocument||t.contentWindow.document;0==n.body.innerHTML.length&&(e.parentElement.style.display="none"),e.insertAdjacentHTML("beforeend",n.body.innerHTML)}}}function iframeBusterNativeArticle(){if(document.querySelector('div[id*="underarticlenative1"]')){const e=document.querySelector('div[id*="underarticlenative1"]');if(e.classList.contains("ad-loaded")){document.querySelector('.ad div[id*="underarticlenative1"] div iframe').setAttribute("class","iframe-buster-native-article");const t=document.querySelectorAll(".iframe-buster-native-article")[0],n=t.contentDocument||t.contentWindow.document;0==n.body.innerHTML.length&&(e.style.display="none"),e.insertAdjacentHTML("beforeend",n.body.innerHTML)}}}function iframeBusterAdhesionBanner(){if(document.querySelector('div[id*="boot_desktop"]')){const e=document.querySelector('div[id*="boot_desktop"]');if(e.classList.contains("ad-loaded")){document.querySelector('.footer div[id*="boot_desktop"] div iframe').setAttribute("class","iframe-buster-adhesionBanner");const t=document.querySelectorAll(".iframe-buster-adhesionBanner")[0],n=t.contentDocument||t.contentWindow.document;0==n.body.innerHTML.length&&(e.style.display="none"),e.insertAdjacentHTML("beforeend",n.body.innerHTML)}}}function iframeBusterAdhesionBannerMobile(){if(document.querySelector('div[id*="boot_mobile"]')){const e=document.querySelector('div[id*="boot_mobile"]');if(e.classList.contains("ad-loaded")){document.querySelector('.footer div[id*="boot_mobile"] div iframe').setAttribute("class","iframe-buster-adhesionBannerMobile");const t=document.querySelectorAll(".iframe-buster-adhesionBannerMobile")[0],n=t.contentDocument||t.contentWindow.document;0==n.body.innerHTML.length&&(e.style.display="none"),e.insertAdjacentHTML("beforeend",n.body.innerHTML)}}}function resizeVids(){var e=document.body.querySelectorAll("iframe[src*='//www.youtube.com/embed'],iframe[src*='//player.vimeo.com/video'],iframe[src*='//www.kickstarter.com/projects'],iframe[src*='//players.brightcove.net/'],iframe[src*='//www.hulu.com/embed'],object[data*='//www.flickr.com/apps/video'],iframe[src*='//vine.co/v/'],iframe[src*='//videopress.com/embed'],iframe[src*='//www.dailymotion.com/embed'],iframe[src*='//vid.me/e/'],iframe[src*='//player.twitch.tv/'],.superembed-force");[].forEach.call(e,(function(e){if(!e.classList.contains("superembed-ignore")){e.hasAttribute("data-width")||(e.classList.contains("superembed-square")?(e.setAttribute("data-width","1"),e.setAttribute("data-height","1")):e.hasAttribute("width")&&e.hasAttribute("height")?(e.setAttribute("data-width",e.offsetWidth),e.setAttribute("data-height",e.offsetHeight)):(e.setAttribute("data-width","16"),e.setAttribute("data-height","9")));var t=e.parentElement.offsetWidth,n=document.body.clientHeight,i=0,o=e.getAttribute("data-width"),r=e.getAttribute("data-height");o!=t&&(i=t/o,e.setAttribute("width",t),e.setAttribute("height",r*i),r*=i,o*=i),r>n&&(i=n/r,e.setAttribute("height",n),e.setAttribute("width",o*i),o*=i,r*=i)}}))}window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),window.HTMLCollection&&!HTMLCollection.prototype.forEach&&(HTMLCollection.prototype.forEach=Array.prototype.forEach),document.addEventListener("DOMContentLoaded",(()=>{if(document.querySelector(".search")){document.querySelector(".search input[type='text']").setAttribute("placeholder","Search"),document.querySelector(".search input").setAttribute("autocomplete","off");const i=document.querySelector(".search"),o=document.querySelector(".social-top");document.querySelector(".search-icon").addEventListener("click",(function(){o.classList.toggle("active-search"),i.style.display="block"})),document.querySelector(".search-icon-close").addEventListener("click",(function(){o.classList.toggle("active-search"),i.style.display="none"}))}if(document.querySelector("#main > .ad")){if(!0===window.matchMedia("(min-width: 1550px)").matches){const r=document.querySelector("#main"),a=document.querySelectorAll("#main > .ad","#main > .ad:nth-child(2)"),s=r.offsetTop;window.onscroll=function(){window.pageYOffset>s+100?(r.classList.add("inview"),a.forEach((function(e){e.classList.add("special--fixed")}))):(r.classList.remove("inview"),a.forEach((function(e){e.classList.remove("special--fixed")})))}}}if(document.querySelector(".whatsnew li[id*='300Ad'] div[id*='google_ads_iframe']")&&document.querySelector(".whatsnew li[id*='300Ad'] div[id*='google_ads_iframe']").length<1&&(document.querySelector("li[id*='300Ad']").style.display="none"),document.querySelector("#rssFeed")){document.querySelector("#level1 .intro").classList.add("rssFeedPage");let c=document.querySelectorAll("#rssFeed td a"),l=document.querySelectorAll("#rssFeed tr"),u=l.length,d='<ul class="rssFeed">';for(let f=1;f<u;f++){const m=Array.from(l[f].querySelectorAll("td:first-of-type"));d+=`<li><a href=" ${c[f-1].getAttribute("href")} "> ${m[0].innerText} </a></li>`}d+="</ul>",document.querySelector("#rssFeed").insertAdjacentHTML("beforeend",d)}if(document.querySelector(".standard")&&document.querySelector(".standard").length>0&&(document.querySelector("#comments").style.display="block"),document.querySelector("#article .associatedFiles")){const v=document.querySelector("#article .associatedFiles");document.querySelector("#article .byline").insertAdjacentElement("afterend",v)}if(document.querySelector("#level0 #article")||document.querySelector("#level0 #blogPost")){const h=document.querySelector("#level0 #article"),p=document.querySelector("#level0 #blogPost .names + div"),y=document.querySelector(".pContent"),g='<div class="socialshare__wrapper">\n                          <ul class="share__list">\n                            <li class="share__item"><button class="share__link  share__link--facebook" aria-label="Share the Article on Facebook"></button></li>\n                            <li class="share__item"><button class="share__link share__link--linkedin" aria-label="Share the Article on LinkedIn"></button></li>\n                            <li class="share__item"><button class="share__link share__link--twitter" aria-label="Share the Article on Twitter / X"></button></li>\n                          </ul>\n                         </div>';h?y.insertAdjacentHTML("afterbegin",g):p&&p.insertAdjacentHTML("beforeend",g);var e=encodeURIComponent(document.URL),t=encodeURIComponent(document.title);function n(e,t,n){var i=(screen.width-t)/2,o="menubar=no,toolbar=no,status=no,width="+t+",height="+n+",top="+(screen.height-n)/2+",left="+i;window.open(e,"",o),event.preventDefault()}document.addEventListener("click",(function(i){let o=null;i.target.classList.contains("share__link--facebook")&&(o="https://www.facebook.com/sharer.php?u="+e,n(o,570,570)),i.target.classList.contains("share__link--linkedin")&&(o="https://www.linkedin.com/shareArticle?mini=true&url="+e,n(o,570,570)),i.target.classList.contains("share__link--twitter")&&(o="https://twitter.com/intent/tweet?url="+e+"&text="+t,n(o,570,570))}),!1)}if(document.querySelector(".awards-page")){const b=document.querySelector(".categories"),w=document.querySelector(".category-button"),x=document.querySelectorAll(".category-options li");w.addEventListener("click",(e=>{e.preventDefault(),b.classList.toggle("active"),w.setAttribute("aria-expanded","true"===w.getAttribute("aria-expanded")?"false":"true")})),x.forEach((e=>{function t(e){"click"===e.type&&0!==e.clientX&&0!==e.clientY&&b.classList.remove("active"),"Enter"===e.key&&b.classList.remove("active")}e.addEventListener("keydown",t),e.addEventListener("click",t)}))}if(document.querySelector("#level1 #article")){const L=document.querySelector(".pagination");document.querySelector("#level1").append(L)}if(document.querySelector(".slideshow-box")){document.querySelector(".slideshow-box").classList.remove("no-js");tns({container:".slideshow-box .slideshow",items:1,speed:500,gutter:15,slideBy:"page",autoplay:!1,controls:!0,mouseDrag:!0,autoplayHoverPause:!1,autoplayButtonOutput:!1,autoplayTimeout:6e3,responsive:{1e3:{edgePadding:80},840:{edgePadding:130},650:{edgePadding:80},320:{edgePadding:0}}});document.querySelectorAll(".tns-controls button").forEach((e=>{e.addEventListener("click",(function(e){e.preventDefault()}))})),document.querySelectorAll(".tns-nav button").forEach((e=>{e.addEventListener("click",(function(e){e.preventDefault()}))}))}})),window.addEventListener("load",(function(){setTimeout((function(){iframeBusterNativeHome(),iframeBusterNativeArticle(),iframeBusterAdhesionBanner(),iframeBusterAdhesionBannerMobile()}),500)})),window.addEventListener("load",(function(){setTimeout((function(){document.querySelector('div[id*="promo1"]')&&document.querySelector('div[id*="promo1"]').classList.contains("ad-loaded")&&document.querySelector(".native1").parentElement.classList.add("show-native"),document.querySelector('div[id*="promo2"]')&&document.querySelector('div[id*="promo2"]').classList.contains("ad-loaded")&&document.querySelector(".native2").parentElement.classList.add("show-native"),document.querySelector('div[id*="underarticlenative1"]')&&document.querySelector('div[id*="underarticlenative1"]').classList.contains("ad-loaded")&&document.querySelector(".native3").parentElement.classList.add("show-native"),document.querySelector('div[id*="underarticlenative2"]')&&document.querySelector('div[id*="underarticlenative2"]').classList.contains("ad-loaded")&&document.querySelector(".native4").parentElement.classList.add("show-native")}),700)})),window.jQuery||(window.addEventListener("DOMContentLoaded",resizeVids),window.addEventListener("resize",resizeVids)),document.addEventListener("DOMContentLoaded",(()=>{document.querySelector(".topnav")&&(document.querySelector(".topnav").id="topnav",document.querySelector(".topnavlist").setAttribute("role","list")),document.querySelector(".menu-toggle")&&document.querySelector(".menu-toggle").addEventListener("click",(function(e){e.preventDefault();const t=document.querySelector(".topnav");this.classList.toggle("act"),this.classList.contains("act")?t.classList.add("nav-open"):t.classList.remove("nav-open")}))})),function(){"use strict";const e=function(e){let t,n,i,o=e.parentElement;function r(e){const n=e.currentTarget;e.preventDefault(),t&&n!==t&&a(t),a(n)}this.init=function(){document.querySelector(".topnav").classList.remove("no-js"),e.querySelectorAll("ul").forEach((t=>{const o=t.parentElement;if(void 0!==t){let a=function(e){const t=e.getElementsByTagName("a")[0],o=t.innerHTML,r=t.attributes,a=document.createElement("button");if(null!==t){for(a.innerHTML=o.trim(),n=0,i=r.length;n<i;n++){let e=r[n];"href"!==e.name&&a.setAttribute(e.name,e.value)}e.replaceChild(a,t)}return a}(o);!function(e,t){const n=e.getAttribute("id");let i;i=null===n?t.textContent.trim().replace(/\s+/g,"-").toLowerCase()+"-submenu":menuItemId+"-submenu",t.setAttribute("aria-controls",i),t.setAttribute("aria-expanded",!1),e.setAttribute("id",i),e.setAttribute("aria-hidden",!0)}(t,a),a.addEventListener("click",r),e.addEventListener("keyup",s)}})),document.addEventListener("click",c)};function a(e){const n=document.getElementById(e.getAttribute("aria-controls"));if("true"===e.getAttribute("aria-expanded")?(e.setAttribute("aria-expanded",!1),n.setAttribute("aria-hidden",!0),t=!1):(e.setAttribute("aria-expanded",!0),n.setAttribute("aria-hidden",!1),function(e){const t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,n=e.offsetParent,i=n.getBoundingClientRect().left+e.offsetWidth;i+32>t&&e.classList.add("sub-menu--right")}(n),t=e),e.parentElement.closest("ul.second-tier")){const t=e.parentElement.closest("ul.second-tier"),n="true"===t.getAttribute("aria-hidden");t.setAttribute("aria-hidden",n?"false":"true")}}function s(e){27===e.keyCode&&(null!==e.target.closest('ul[aria-hidden="false"]')?(t.focus(),a(t)):"true"===e.target.getAttribute("aria-expanded")&&a(t))}function c(e){t&&!e.target.closest("#"+o.id)&&a(t)}document.querySelectorAll(".topnavlist li ul li ul").length>0&&document.querySelectorAll(".topnavlist ul").forEach((function(e){e.classList.add("second-tier")}))};document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".topnavlist").forEach((t=>{new e(t).init()}))}))}();