var tns=function(){var t=window,Ai=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(t){return setTimeout(t,16)},e=window,Ni=e.cancelAnimationFrame||e.mozCancelAnimationFrame||function(t){clearTimeout(t)};function Li(t){for(var e,n,i,a=t||{},o=1,r=arguments.length;o";return o.innerHTML=r,a.appendChild(o),n.appendChild(a),t=Math.abs(a.getBoundingClientRect().left-o.children[67].getBoundingClientRect().left)<2,n.fake?Di(n,i):a.remove(),t}(),n),D=e.tMQ?Bi(e.tMQ):Si(e,"tMQ",function(){if(window.matchMedia||window.msMatchMedia)return!0;var t,e=document,n=Hi(),i=Oi(n),a=e.createElement("div"),o=e.createElement("style"),r="@media all and (min-width:1px){.tns-mq-test{position:absolute}}";return o.type="text/css",a.className="tns-mq-test",n.appendChild(o),n.appendChild(a),o.styleSheet?o.styleSheet.cssText=r:o.appendChild(e.createTextNode(r)),t=window.getComputedStyle?window.getComputedStyle(a).position:a.currentStyle.position,n.fake?Di(n,i):a.remove(),"absolute"===t}(),n),o=e.tTf?Bi(e.tTf):Si(e,"tTf",Ki("transform"),n),r=e.t3D?Bi(e.t3D):Si(e,"t3D",function(t){if(!t)return!1;if(!window.getComputedStyle)return!1;var e,n=document,i=Hi(),a=Oi(i),o=n.createElement("p"),r=9=-ce)return t}:function(){return zt&&W&&!Qt?Q-1:Qt||W?Math.max(0,le-Math.ceil(Wt)):le-1},me=en(sn("startIndex")),ye=me,ge=(tn(),0),xe=Dt?null:he(),be=H.preventActionWhenRunning,we=H.swipeAngle,Ce=!we||"?",Me=!1,Te=H.onInit,Ee=new Zi,Ae=" tns-slider tns-"+H.mode,Ne=V.id||(S=window.tnsId,window.tnsId=S?S+1:1,"tns"+window.tnsId),Le=sn("disable"),Be=!1,Se=H.freezable,He=!(!Se||Dt)&&Tn(),Oe=!1,De={click:ri,keydown:function(t){t=vi(t);var e=[a.LEFT,a.RIGHT].indexOf(t.keyCode);0<=e&&(0===e?et.disabled||ri(t,-1):nt.disabled||ri(t,1))}},ke={click:function(t){if(Me){if(be)return;ai()}var e=hi(t=vi(t));for(;e!==ut&&!qi(e,"data-nav");)e=e.parentNode;{var n,i;qi(e,"data-nav")&&(n=dt=Number(Fi(e,"data-nav")),i=kt||Dt?n*Q/ct:n*Wt,oi(je?n:Math.min(Math.ceil(i),Q-1),t),pt===n&&(Mt&&fi(),dt=-1))}},keydown:function(t){t=vi(t);var e=O.activeElement;if(!qi(e,"data-nav"))return;var n=[a.LEFT,a.RIGHT,a.ENTER,a.SPACE].indexOf(t.keyCode),i=Number(Fi(e,"data-nav"));0<=n&&(0===n?0"," animation"]),(Ge||Qe)&&(Nt={},St=!(Lt={}),Ot=F?function(t,e){return t.x-e.x}:function(t,e){return t.y-e.y}),Dt||$e(Le||He),o&&(de=o,pe="translate",ve=r?(pe+=F?"3d(":"3d(0px, ",F?", 0px, 0px)":", 0px)"):(pe+=F?"X(":"Y(",")")),W&&(V.className=V.className.replace("tns-vpfix","")),function(){ln("gutter");T.className="tns-outer",j.className="tns-inner",T.id=Ne+"-ow",j.id=Ne+"-iw",""===V.id&&(V.id=Ne);Ae+=g||Dt?" tns-subpixel":" tns-no-subpixel",Ae+=y?" tns-calc":" tns-no-calc",Dt&&(Ae+=" tns-autowidth");Ae+=" tns-"+H.axis,V.className+=Ae,W?((M=O.createElement("div")).id=Ne+"-mw",M.className="tns-ovh",T.appendChild(M),M.appendChild(j)):T.appendChild(j);{Xt&&((M||j).className+=" tns-ah")}if(E.insertBefore(T,V),j.appendChild(V),Ii(G,function(t,e){zi(t,"tns-item"),t.id||(t.id=Ne+"-item"+e),!W&&I&&zi(t,I),ji(t,{"aria-hidden":"true",tabindex:"-1"})}),ue){for(var t=O.createDocumentFragment(),e=O.createDocumentFragment(),n=ue;n--;){var i,a=n%Q,o=G[a].cloneNode(!0);zi(o,Ye),Vi(o,"id"),e.insertBefore(o,e.firstChild),W&&(i=G[Q-1-a].cloneNode(!0),zi(i,Ye),Vi(i,"id"),t.appendChild(i))}V.insertBefore(t,V.firstChild),V.appendChild(e),G=V.children}}(),function(){if(!W)for(var t=me,e=me+Math.min(Q,Wt);t .tns-item","font-size:"+m.getComputedStyle(G[0]).fontSize+";",Ri(ie)),ki(ie,"#"+Ne,"font-size:0;",Ri(ie))):W&&Ii(G,function(t,e){var n;t.style.marginLeft=(n=e,y?y+"("+100*n+"% / "+le+")":100*n/le+"%")}));{D?(x&&(o=M&&H.autoHeight?hn(H.speed):"",ki(ie,"#"+Ne+"-mw",o,Ri(ie))),o=cn(H.edgePadding,H.gutter,H.fixedWidth,H.speed,H.autoHeight),ki(ie,"#"+Ne+"-iw",o,Ri(ie)),W&&(o=F&&!Dt?"width:"+fn(H.fixedWidth,H.gutter,H.items)+";":"",x&&(o+=hn(Vt)),ki(ie,"#"+Ne,o,Ri(ie))),o=F&&!Dt?dn(H.fixedWidth,H.gutter,H.items):"",H.gutter&&(o+=pn(H.gutter)),W||(x&&(o+=hn(Vt)),b&&(o+=mn(Vt)))):(W&&Xt&&(M.style[x]=Vt/1e3+"s"),j.style.cssText=cn(Rt,It,kt,Xt),W&&F&&!Dt&&(V.style.width=fn(kt,It,Wt)),o=F&&!Dt?dn(kt,It,Wt):"",It&&(o+=pn(It))),o&&ki(ie,"#"+Ne+" > .tns-item",o,Ri(ie))}if(P&&D)for(var i in P){i=parseInt(i);var a=P[i],o="",r="",u="",l="",s="",c=Dt?null:sn("items",i),f=sn("fixedWidth",i),d=sn("speed",i),p=sn("edgePadding",i),v=sn("autoHeight",i),h=sn("gutter",i);x&&M&&sn("autoHeight",i)&&"speed"in a&&(r="#"+Ne+"-mw{"+hn(d)+"}"),("edgePadding"in a||"gutter"in a)&&(u="#"+Ne+"-iw{"+cn(p,h,f,d,v)+"}"),W&&F&&!Dt&&("fixedWidth"in a||"items"in a||kt&&"gutter"in a)&&(l="width:"+fn(f,h,c)+";"),x&&"speed"in a&&(l+=hn(d)),l=l&&"#"+Ne+"{"+l+"}",("fixedWidth"in a||kt&&"gutter"in a||!W&&"items"in a)&&(s+=dn(f,h,c)),"gutter"in a&&(s+=pn(h)),!W&&"speed"in a&&(x&&(s+=hn(d)),b&&(s+=mn(d))),(o=r+u+l+(s=s&&"#"+Ne+" > .tns-item{"+s+"}"))&&ie.insertRule("@media (min-width: "+i/16+"em) {"+o+"}",ie.cssRules.length)}}(),yn();var _e=Qt?W?function(){var t=ge,e=xe;t+=qt,e-=qt,Rt?(t+=1,--e):kt&&(Pt+It)%(kt+It)&&--e,ue&&(e=parseInt(i)&&t in P[i]&&(n=P[i][t]);return"slideBy"===t&&"page"===n&&(n=sn("items")),W||"slideBy"!==t&&"items"!==t||(n=Math.floor(n)),n}function cn(t,e,n,i,a){var o,r,u="";return void 0!==t?(o=t,e&&(o-=e),u=F?"margin: 0 "+o+"px 0 "+t+"px;":"margin: "+t+"px 0 "+o+"px 0;"):e&&!n&&(r="-"+e+"px",u="margin: 0 "+(F?r+" 0 0":"0 "+r+" 0")+";"),!W&&a&&x&&i&&(u+=hn(i)),u}function fn(t,e,n){return t?(t+e)*le+"px":y?y+"("+100*le+"% / "+n+")":100*le/n+"%"}function dn(t,e,n){var i,a;return a="width:"+(a=t?t+e+"px":(W||(n=Math.floor(n)),i=W?le:n,y?y+"(100% / "+i+")":100/i+"%")),"inner"!==z?a+";":a+" !important;"}function pn(t){return!1!==t?(F?"padding-":"margin-")+(F?"right":"bottom")+": "+t+"px;":""}function vn(t,e){var n=t.substring(0,t.length-e).toLowerCase();return n=n&&"-"+n+"-"}function hn(t){return vn(x,18)+"transition-duration:"+t/1e3+"s;"}function mn(t){return vn(b,17)+"animation-duration:"+t/1e3+"s;"}function yn(){var t;ln("autoHeight")||Dt||!F?(Ii(t=V.querySelectorAll("img"),function(t){var e=t.src;ae||(e&&e.indexOf("data:image")<0?(t.src="",Ui(t,Je),zi(t,"loading"),t.src=e):kn(t))}),Ai(function(){zn(Gi(t),function(){L=!0})}),ln("autoHeight")&&(t=In(me,Math.min(me+Wt-1,le-1))),ae?gn():Ai(function(){zn(Gi(t),gn)})):(W&&$n(),bn(),wn())}function gn(){var i;Dt&&1slide '+Hn()+" of "+Q+""),B=T.querySelector(".tns-liveregion .current"),Ve&&(t=Zt?"stop":"start",xt?ji(xt,{"data-action":t}):H.autoplayButtonOutput&&(T.insertAdjacentHTML(rn(H.autoplayPosition),'"),xt=T.querySelector("[data-action]")),xt&&Ui(xt,{click:di}),Zt&&(ci(),ee&&Ui(V,Re),ne&&Ui(V,Ie))),Fe){var e,n;if(ut)ji(ut,{"aria-label":"Carousel Pagination"}),Ii(st=ut.children,function(t,e){ji(t,{"data-nav":e,tabindex:"-1","aria-label":mt+(e+1),"aria-controls":Ne})});else{for(var i="",a=je?"":'style="display:none"',o=0;o';i='
'+i+"
",T.insertAdjacentHTML(rn(H.navPosition),i),ut=T.querySelector(".tns-nav"),st=ut.children}Ti(),x&&(e=x.substring(0,x.length-18).toLowerCase(),n="transition: all "+Vt/1e3+"s",e&&(n="-"+e+"-"+n),ki(ie,"[aria-controls^="+Ne+"-item]",n,Ri(ie))),ji(st[pt],{"aria-label":mt+(pt+1)+yt}),Vi(st[pt],"tabindex"),zi(st[pt],ht),Ui(ut,ke)}qe&&($||et&&nt||(T.insertAdjacentHTML(rn(H.controlsPosition),'
"),$=T.querySelector(".tns-controls")),et&&nt||(et=$.children[0],nt=$.children[1]),H.controlsContainer&&ji($,{"aria-label":"Carousel Navigation",tabindex:"0"}),(H.controlsContainer||H.prevButton&&H.nextButton)&&ji([et,nt],{"aria-controls":Ne,tabindex:"-1"}),(H.controlsContainer||H.prevButton&&H.nextButton)&&(ji(et,{"data-controls":"prev"}),ji(nt,{"data-controls":"next"})),ot=Qn(et),rt=Qn(nt),Kn(),$?Ui($,De):(Ui(et,De),Ui(nt,De))),An()}function wn(){var t;W&&s&&((t={})[s]=ai,Ui(V,t)),Ut&&Ui(V,ze,H.preventScrollOnTouch),_t&&Ui(V,We),jt&&Ui(O,Pe),"inner"===z?Ee.on("outerResized",function(){Mn(),Ee.emit("innerLoaded",Ei())}):(P||kt||Dt||Xt||!F)&&Ui(m,{resize:Cn}),Xt&&("outer"===z?Ee.on("innerLoaded",Pn):Le||Pn()),Dn(),Le?Bn():He&&Ln(),Ee.on("indexChanged",Wn),"inner"===z&&Ee.emit("innerLoaded",Ei()),"function"==typeof Te&&Te(Ei()),Y=!0}function Cn(t){Ai(function(){Mn(vi(t))})}function Mn(t){var e,n,i,a,o,r,u,l,s,c,f,d,p,v,h,m,y,g,x,b,w,C,M,T,E,A,N,L,B,S;Y&&("outer"===z&&Ee.emit("outerResized",Ei(t)),X=on(),n=q,i=!1,P&&(En(),(e=n!==q)&&Ee.emit("newBreakpointStart",Ei(t))),r=Wt,u=Le,l=He,s=jt,c=Yt,f=Jt,d=Ut,p=_t,v=Zt,h=ee,m=ne,y=me,e&&(g=kt,x=Xt,b=Kt,w=zt,C=te,D||(M=It,T=Rt)),jt=sn("arrowKeys"),Yt=sn("controls"),Jt=sn("nav"),Ut=sn("touch"),zt=sn("center"),_t=sn("mouseDrag"),Zt=sn("autoplay"),ee=sn("autoplayHoverPause"),ne=sn("autoplayResetOnVisibility"),e&&(Le=sn("disable"),kt=sn("fixedWidth"),Vt=sn("speed"),Xt=sn("autoHeight"),Kt=sn("controlsText"),te=sn("autoplayText"),$t=sn("autoplayTimeout"),D||(Rt=sn("edgePadding"),It=sn("gutter"))),$e(Le),Pt=un(),F&&!Dt||Le||(jn(),F||(Ci(),i=!0)),(kt||Dt)&&(ce=_n(),xe=he()),(e||kt)&&(Wt=sn("items"),qt=sn("slideBy"),(o=Wt!==r)&&(kt||Dt||(xe=he()),_e())),e&&Le!==u&&(Le?Bn:function(){if(!Be)return;if(ie.disabled=!1,V.className+=Ae,$n(),Qt)for(var t=ue;t--;)W&&Xi(G[t]),Xi(G[le-t-1]);if(!W)for(var e=me,n=me+Q;e .tns-item",L,Ri(ie)))),Xt&&Pn(),i&&($n(),ye=me)),e&&Ee.emit("newBreakpointEnd",Ei(t)))}function Tn(){if(!kt&&!Dt)return Q<=(zt?Wt-(Wt-1)/2:Wt);var t=kt?(kt+It)*Q:N[Q],e=Rt?Pt+2*Rt:Pt+It;return zt&&(e-=kt?(Pt-kt)/2:(Pt-(N[me+1]-N[me]-It))/2),t<=e}function En(){for(var t in q=0,P)(t=parseInt(t))<=X&&(q=t)}function An(){!Zt&&xt&&Qi(xt),!Jt&&ut&&Qi(ut),Yt||($?Qi($):(et&&Qi(et),nt&&Qi(nt)))}function Nn(){Zt&&xt&&Xi(xt),Jt&&ut&&Xi(ut),Yt&&($?Xi($):(et&&Xi(et),nt&&Xi(nt)))}function Ln(){if(!Oe){if(Rt&&(j.style.margin="0px"),ue)for(var t="tns-transparent",e=ue;e--;)W&&zi(G[e],t),zi(G[le-e-1],t);An(),Oe=!0}}function Bn(){if(!Be){if(ie.disabled=!0,V.className=V.className.replace(Ae.substring(1),""),Vi(V,["style"]),Qt)for(var t=ue;t--;)W&&Qi(G[t]),Qi(G[le-t-1]);if(F&&W||Vi(j,["style"]),!W)for(var e=me,n=me+Q;e=N[le-1])me=xe;else for(var n=0;n=N[n];)e>N[me=n]&&a<0&&(me+=1),n++}ni(i,a),Ee.emit(mi(i)?"touchEnd":"dragEnd",Ei(i))}):Ce&&ri(i,0