!function(t){var e={};function n(i){if(e[i])return e[i].exports;var s=e[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)n.d(i,s,function(e){return t[e]}.bind(null,s));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,n){"use strict";var i=window,s=i.requestAnimationFrame||i.webkitRequestAnimationFrame||i.mozRequestAnimationFrame||i.msRequestAnimationFrame||function(t){return setTimeout(t,16)},a=window,o=a.cancelAnimationFrame||a.mozCancelAnimationFrame||function(t){clearTimeout(t)};function r(){for(var t,e,n,i=arguments[0]||{},s=1,a=arguments.length;s<a;s++)if(null!==(t=arguments[s]))for(e in t)i!==(n=t[e])&&void 0!==n&&(i[e]=n);return i}function l(t){return["true","false"].indexOf(t)>=0?JSON.parse(t):t}function c(t,e,n,i){if(i)try{t.setItem(e,n)}catch(t){}return n}function h(){var t=document,e=t.body;return e||((e=t.createElement("body")).fake=!0),e}var u=document.documentElement;function d(t){var e="";return t.fake&&(e=u.style.overflow,t.style.background="",t.style.overflow=u.style.overflow="hidden",u.appendChild(t)),e}function f(t,e){t.fake&&(t.remove(),u.style.overflow=e,u.offsetHeight)}function m(t,e,n,i){"insertRule"in t?t.insertRule(e+"{"+n+"}",i):t.addRule(e,n,i)}function p(t){return("insertRule"in t?t.cssRules:t.rules).length}function g(t,e,n){for(var i=0,s=t.length;i<s;i++)e.call(n,t[i],i)}var v="classList"in document.createElement("_"),b=v?function(t,e){return t.classList.contains(e)}:function(t,e){return t.className.indexOf(e)>=0},y=v?function(t,e){b(t,e)||t.classList.add(e)}:function(t,e){b(t,e)||(t.className+=" "+e)},w=v?function(t,e){b(t,e)&&t.classList.remove(e)}:function(t,e){b(t,e)&&(t.className=t.className.replace(e,""))};function x(t,e){return t.hasAttribute(e)}function C(t,e){return t.getAttribute(e)}function _(t){return void 0!==t.item}function S(t,e){if(t=_(t)||t instanceof Array?t:[t],"[object Object]"===Object.prototype.toString.call(e))for(var n=t.length;n--;)for(var i in e)t[n].setAttribute(i,e[i])}function E(t,e){t=_(t)||t instanceof Array?t:[t];for(var n=(e=e instanceof Array?e:[e]).length,i=t.length;i--;)for(var s=n;s--;)t[i].removeAttribute(e[s])}function A(t){for(var e=[],n=0,i=t.length;n<i;n++)e.push(t[n]);return e}function T(t,e){"none"!==t.style.display&&(t.style.display="none")}function P(t,e){"none"===t.style.display&&(t.style.display="")}function L(t){return"none"!==window.getComputedStyle(t).display}function O(t){if("string"==typeof t){var e=[t],n=t.charAt(0).toUpperCase()+t.substr(1);["Webkit","Moz","ms","O"].forEach(function(i){"ms"===i&&"transform"!==t||e.push(i+n)}),t=e}for(var i=document.createElement("fakeelement"),s=(t.length,0);s<t.length;s++){var a=t[s];if(void 0!==i.style[a])return a}return!1}function M(t,e){var n=!1;return/^Webkit/.test(t)?n="webkit"+e+"End":/^O/.test(t)?n="o"+e+"End":t&&(n=e.toLowerCase()+"end"),n}var k=!1;try{var D=Object.defineProperty({},"passive",{get:function(){k=!0}});window.addEventListener("test",null,D)}catch(t){}var N=!!k&&{passive:!0};function I(t,e,n){for(var i in e){var s=["touchstart","touchmove"].indexOf(i)>=0&&!n&&N;t.addEventListener(i,e[i],s)}}function R(t,e){for(var n in e){var i=["touchstart","touchmove"].indexOf(n)>=0&&N;t.removeEventListener(n,e[n],i)}}function B(){return{topics:{},on:function(t,e){this.topics[t]=this.topics[t]||[],this.topics[t].push(e)},off:function(t,e){if(this.topics[t])for(var n=0;n<this.topics[t].length;n++)if(this.topics[t][n]===e){this.topics[t].splice(n,1);break}},emit:function(t,e){e.type=t,this.topics[t]&&this.topics[t].forEach(function(n){n(e,t)})}}}n.d(e,"a",function(){return F}),Object.keys||(Object.keys=function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}),"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});var F=function(t){t=r({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},t||{});var e=document,n=window,i={ENTER:13,SPACE:32,LEFT:37,RIGHT:39},a={},u=t.useLocalStorage;if(u){var v=navigator.userAgent,_=new Date;try{(a=n.localStorage)?(a.setItem(_,_),u=a.getItem(_)==_,a.removeItem(_)):u=!1,u||(a={})}catch(t){u=!1}u&&(a.tnsApp&&a.tnsApp!==v&&["tC","tPL","tMQ","tTf","t3D","tTDu","tTDe","tADu","tADe","tTE","tAE"].forEach(function(t){a.removeItem(t)}),localStorage.tnsApp=v)}var k=a.tC?l(a.tC):c(a,"tC",function(){var t=document,e=h(),n=d(e),i=t.createElement("div"),s=!1;e.appendChild(i);try{for(var a,o="(10px * 10)",r=["calc"+o,"-moz-calc"+o,"-webkit-calc"+o],l=0;l<3;l++)if(a=r[l],i.style.width=a,100===i.offsetWidth){s=a.replace(o,"");break}}catch(t){}return e.fake?f(e,n):i.remove(),s}(),u),D=a.tPL?l(a.tPL):c(a,"tPL",function(){var t,e=document,n=h(),i=d(n),s=e.createElement("div"),a=e.createElement("div"),o="";s.className="tns-t-subp2",a.className="tns-t-ct";for(var r=0;r<70;r++)o+="<div></div>";return a.innerHTML=o,s.appendChild(a),n.appendChild(s),t=Math.abs(s.getBoundingClientRect().left-a.children[67].getBoundingClientRect().left)<2,n.fake?f(n,i):s.remove(),t}(),u),N=a.tMQ?l(a.tMQ):c(a,"tMQ",function(){if(window.matchMedia||window.msMatchMedia)return!0;var t,e=document,n=h(),i=d(n),s=e.createElement("div"),a=e.createElement("style"),o="@media all and (min-width:1px){.tns-mq-test{position:absolute}}";return a.type="text/css",s.className="tns-mq-test",n.appendChild(a),n.appendChild(s),a.styleSheet?a.styleSheet.cssText=o:a.appendChild(e.createTextNode(o)),t=window.getComputedStyle?window.getComputedStyle(s).position:s.currentStyle.position,n.fake?f(n,i):s.remove(),"absolute"===t}(),u),H=a.tTf?l(a.tTf):c(a,"tTf",O("transform"),u),j=a.t3D?l(a.t3D):c(a,"t3D",function(t){if(!t)return!1;if(!window.getComputedStyle)return!1;var e,n=document,i=h(),s=d(i),a=n.createElement("p"),o=t.length>9?"-"+t.slice(0,-9).toLowerCase()+"-":"";return o+="transform",i.insertBefore(a,null),a.style[t]="translate3d(1px,1px,1px)",e=window.getComputedStyle(a).getPropertyValue(o),i.fake?f(i,s):a.remove(),void 0!==e&&e.length>0&&"none"!==e}(H),u),q=a.tTDu?l(a.tTDu):c(a,"tTDu",O("transitionDuration"),u),U=a.tTDe?l(a.tTDe):c(a,"tTDe",O("transitionDelay"),u),z=a.tADu?l(a.tADu):c(a,"tADu",O("animationDuration"),u),$=a.tADe?l(a.tADe):c(a,"tADe",O("animationDelay"),u),W=a.tTE?l(a.tTE):c(a,"tTE",M(q,"Transition"),u),V=a.tAE?l(a.tAE):c(a,"tAE",M(z,"Animation"),u),G=n.console&&"function"==typeof n.console.warn,Y=["container","controlsContainer","prevButton","nextButton","navContainer","autoplayButton"],X={};if(Y.forEach(function(n){if("string"==typeof t[n]){var i=t[n],s=e.querySelector(i);if(X[n]=i,!s||!s.nodeName)return void(G&&console.warn("Can't find",t[n]));t[n]=s}}),!(t.container.children.length<1)){var K=t.responsive,Q=t.nested,Z="carousel"===t.mode;if(K){0 in K&&(t=r(t,K[0]),delete K[0]);var J={};for(var tt in K){var et=K[tt];et="number"==typeof et?{items:et}:et,J[tt]=et}K=J,J=null}if(Z||function t(e){for(var n in e)Z||("slideBy"===n&&(e[n]="page"),"edgePadding"===n&&(e[n]=!1),"autoHeight"===n&&(e[n]=!1)),"responsive"===n&&t(e[n])}(t),!Z){t.axis="horizontal",t.slideBy="page",t.edgePadding=!1;var nt=t.animateIn,it=t.animateOut,st=t.animateDelay,at=t.animateNormal}var ot,rt,lt="horizontal"===t.axis,ct=e.createElement("div"),ht=e.createElement("div"),ut=t.container,dt=ut.parentNode,ft=ut.outerHTML,mt=ut.children,pt=mt.length,gt=Dn(),vt=!1;K&&Jn(),Z&&(ut.className+=" tns-vpfix");var bt,yt,wt,xt,Ct,_t,St,Et,At,Tt=t.autoWidth,Pt=Bn("fixedWidth"),Lt=Bn("edgePadding"),Ot=Bn("gutter"),Mt=In(),kt=Bn("center"),Dt=Tt?1:Math.floor(Bn("items")),Nt=Bn("slideBy"),It=t.viewportMax||t.fixedWidthViewportWidth,Rt=Bn("arrowKeys"),Bt=Bn("speed"),Ft=t.rewind,Ht=!Ft&&t.loop,jt=Bn("autoHeight"),qt=Bn("controls"),Ut=Bn("controlsText"),zt=Bn("nav"),$t=Bn("touch"),Wt=Bn("mouseDrag"),Vt=Bn("autoplay"),Gt=Bn("autoplayTimeout"),Yt=Bn("autoplayText"),Xt=Bn("autoplayHoverPause"),Kt=Bn("autoplayResetOnVisibility"),Qt=(St=null,Et=Bn("nonce"),At=document.createElement("style"),St&&At.setAttribute("media",St),Et&&At.setAttribute("nonce",Et),document.querySelector("head").appendChild(At),At.sheet?At.sheet:At.styleSheet),Zt=t.lazyload,Jt=t.lazyloadSelector,te=[],ee=Ht?(Ct=function(){if(Tt||Pt&&!It)return pt-1;var e=Pt?"fixedWidth":"items",n=[];if((Pt||t[e]<pt)&&n.push(t[e]),K)for(var i in K){var s=K[i][e];s&&(Pt||s<pt)&&n.push(s)}return n.length||n.push(0),Math.ceil(Pt?It/Math.min.apply(null,n):Math.max.apply(null,n))}(),_t=Z?Math.ceil((5*Ct-pt)/2):4*Ct-pt,_t=Math.max(Ct,_t),Rn("edgePadding")?_t+1:_t):0,ne=Z?pt+2*ee:pt+ee,ie=!(!Pt&&!Tt||Ht),se=Pt?Ei():null,ae=!Z||!Ht,oe=lt?"left":"top",re="",le="",ce=Pt?function(){return kt&&!Ht?pt-1:Math.ceil(-se/(Pt+Ot))}:Tt?function(){for(var t=0;t<ne;t++)if(bt[t]>=-se)return t}:function(){return kt&&Z&&!Ht?pt-1:Ht||Z?Math.max(0,ne-Math.ceil(Dt)):ne-1},he=On(Bn("startIndex")),ue=he,de=(Ln(),0),fe=Tt?null:ce(),me=t.preventActionWhenRunning,pe=t.swipeAngle,ge=!pe||"?",ve=!1,be=t.onInit,ye=new B,we=" tns-slider tns-"+t.mode,xe=ut.id||(xt=window.tnsId,window.tnsId=xt?xt+1:1,"tns"+window.tnsId),Ce=Bn("disable"),_e=!1,Se=t.freezable,Ee=!(!Se||Tt)&&Zn(),Ae=!1,Te={click:Ni,keydown:function(t){t=Ui(t);var e=[i.LEFT,i.RIGHT].indexOf(t.keyCode);e>=0&&(0===e?Xe.disabled||Ni(t,-1):Ke.disabled||Ni(t,1))}},Pe={click:function(t){if(ve){if(me)return;ki()}var e=zi(t=Ui(t));for(;e!==tn&&!x(e,"data-nav");)e=e.parentNode;if(x(e,"data-nav")){var n=an=Number(C(e,"data-nav")),i=Pt||Tt?n*pt/nn:n*Dt,s=Re?n:Math.min(Math.ceil(i),pt-1);Di(s,t),on===n&&(dn&&Hi(),an=-1)}},keydown:function(t){t=Ui(t);var n=e.activeElement;if(!x(n,"data-nav"))return;var s=[i.LEFT,i.RIGHT,i.ENTER,i.SPACE].indexOf(t.keyCode),a=Number(C(n,"data-nav"));s>=0&&(0===s?a>0&&qi(Je[a-1]):1===s?a<nn-1&&qi(Je[a+1]):(an=a,Di(a,t)))}},Le={mouseover:function(){dn&&(Ri(),fn=!0)},mouseout:function(){fn&&(Ii(),fn=!1)}},Oe={visibilitychange:function(){e.hidden?dn&&(Ri(),pn=!0):pn&&(Ii(),pn=!1)}},Me={keydown:function(t){t=Ui(t);var e=[i.LEFT,i.RIGHT].indexOf(t.keyCode);e>=0&&Ni(t,0===e?-1:1)}},ke={touchstart:Gi,touchmove:Yi,touchend:Xi,touchcancel:Xi},De={mousedown:Gi,mousemove:Yi,mouseup:Xi,mouseleave:Xi},Ne=Rn("controls"),Ie=Rn("nav"),Re=!!Tt||t.navAsThumbnails,Be=Rn("autoplay"),Fe=Rn("touch"),He=Rn("mouseDrag"),je="tns-slide-active",qe="tns-slide-cloned",Ue="tns-complete",ze={load:function(t){li(zi(t))},error:function(t){e=zi(t),y(e,"failed"),ci(e);var e}},$e="force"===t.preventScrollOnTouch;if(Ne)var We,Ve,Ge=t.controlsContainer,Ye=t.controlsContainer?t.controlsContainer.outerHTML:"",Xe=t.prevButton,Ke=t.nextButton,Qe=t.prevButton?t.prevButton.outerHTML:"",Ze=t.nextButton?t.nextButton.outerHTML:"";if(Ie)var Je,tn=t.navContainer,en=t.navContainer?t.navContainer.outerHTML:"",nn=Tt?pt:Qi(),sn=0,an=-1,on=kn(),rn=on,ln="tns-nav-active",cn="Carousel Page ",hn=" (Current Slide)";if(Be)var un,dn,fn,mn,pn,gn="forward"===t.autoplayDirection?1:-1,vn=t.autoplayButton,bn=t.autoplayButton?t.autoplayButton.outerHTML:"",yn=["<span class='tns-visually-hidden'>"," animation</span>"];if(Fe||He)var wn,xn,Cn={},_n={},Sn=!1,En=lt?function(t,e){return t.x-e.x}:function(t,e){return t.y-e.y};Tt||Pn(Ce||Ee),H&&(oe=H,re="translate",j?(re+=lt?"3d(":"3d(0px, ",le=lt?", 0px, 0px)":", 0px)"):(re+=lt?"X(":"Y(",le=")")),Z&&(ut.className=ut.className.replace("tns-vpfix","")),function(){Rn("gutter");ct.className="tns-outer",ht.className="tns-inner",ct.id=xe+"-ow",ht.id=xe+"-iw",""===ut.id&&(ut.id=xe);we+=D||Tt?" tns-subpixel":" tns-no-subpixel",we+=k?" tns-calc":" tns-no-calc",Tt&&(we+=" tns-autowidth");we+=" tns-"+t.axis,ut.className+=we,Z?((ot=e.createElement("div")).id=xe+"-mw",ot.className="tns-ovh",ct.appendChild(ot),ot.appendChild(ht)):ct.appendChild(ht);if(jt){var n=ot||ht;n.className+=" tns-ah"}if(dt.insertBefore(ct,ut),ht.appendChild(ut),g(mt,function(t,e){y(t,"tns-item"),t.id||(t.id=xe+"-item"+e),!Z&&at&&y(t,at),S(t,{"aria-hidden":"true",tabindex:"-1"})}),ee){for(var i=e.createDocumentFragment(),s=e.createDocumentFragment(),a=ee;a--;){var o=a%pt,r=mt[o].cloneNode(!0);if(y(r,qe),E(r,"id"),s.insertBefore(r,s.firstChild),Z){var l=mt[pt-1-o].cloneNode(!0);y(l,qe),E(l,"id"),i.appendChild(l)}}ut.insertBefore(i,ut.firstChild),ut.appendChild(s),mt=ut.children}}(),function(){if(!Z)for(var e=he,i=he+Math.min(pt,Dt);e<i;e++){var s=mt[e];s.style.left=100*(e-he)/Dt+"%",y(s,nt),w(s,at)}lt&&(D||Tt?(m(Qt,"#"+xe+" > .tns-item","font-size:"+n.getComputedStyle(mt[0]).fontSize+";",p(Qt)),m(Qt,"#"+xe,"font-size:0;",p(Qt))):Z&&g(mt,function(t,e){t.style.marginLeft=function(t){return k?k+"("+100*t+"% / "+ne+")":100*t/ne+"%"}(e)}));if(N){if(q){var a=ot&&t.autoHeight?zn(t.speed):"";m(Qt,"#"+xe+"-mw",a,p(Qt))}a=Fn(t.edgePadding,t.gutter,t.fixedWidth,t.speed,t.autoHeight),m(Qt,"#"+xe+"-iw",a,p(Qt)),Z&&(a=lt&&!Tt?"width:"+Hn(t.fixedWidth,t.gutter,t.items)+";":"",q&&(a+=zn(Bt)),m(Qt,"#"+xe,a,p(Qt))),a=lt&&!Tt?jn(t.fixedWidth,t.gutter,t.items):"",t.gutter&&(a+=qn(t.gutter)),Z||(q&&(a+=zn(Bt)),z&&(a+=$n(Bt))),a&&m(Qt,"#"+xe+" > .tns-item",a,p(Qt))}else{Z&&jt&&(ot.style[q]=Bt/1e3+"s"),ht.style.cssText=Fn(Lt,Ot,Pt,jt),Z&&lt&&!Tt&&(ut.style.width=Hn(Pt,Ot,Dt));var a=lt&&!Tt?jn(Pt,Ot,Dt):"";Ot&&(a+=qn(Ot)),a&&m(Qt,"#"+xe+" > .tns-item",a,p(Qt))}if(K&&N)for(var o in K){o=parseInt(o);var r=K[o],a="",l="",c="",h="",u="",d=Tt?null:Bn("items",o),f=Bn("fixedWidth",o),v=Bn("speed",o),b=Bn("edgePadding",o),x=Bn("autoHeight",o),C=Bn("gutter",o);q&&ot&&Bn("autoHeight",o)&&"speed"in r&&(l="#"+xe+"-mw{"+zn(v)+"}"),("edgePadding"in r||"gutter"in r)&&(c="#"+xe+"-iw{"+Fn(b,C,f,v,x)+"}"),Z&&lt&&!Tt&&("fixedWidth"in r||"items"in r||Pt&&"gutter"in r)&&(h="width:"+Hn(f,C,d)+";"),q&&"speed"in r&&(h+=zn(v)),h&&(h="#"+xe+"{"+h+"}"),("fixedWidth"in r||Pt&&"gutter"in r||!Z&&"items"in r)&&(u+=jn(f,C,d)),"gutter"in r&&(u+=qn(C)),!Z&&"speed"in r&&(q&&(u+=zn(v)),z&&(u+=$n(v))),u&&(u="#"+xe+" > .tns-item{"+u+"}"),(a=l+c+h+u)&&Qt.insertRule("@media (min-width: "+o/16+"em) {"+a+"}",Qt.cssRules.length)}}(),Wn();var An=Ht?Z?function(){var t=de,e=fe;t+=Nt,e-=Nt,Lt?(t+=1,e-=1):Pt&&(Mt+Ot)%(Pt+Ot)&&(e-=1),ee&&(he>e?he-=pt:he<t&&(he+=pt))}:function(){if(he>fe)for(;he>=de+pt;)he-=pt;else if(he<de)for(;he<=fe-pt;)he+=pt}:function(){he=Math.max(de,Math.min(fe,he))},Tn=Z?function(){var t,e,n,i,s,a,o,r,l,c,h;_i(ut,""),q||!Bt?(Pi(),Bt&&L(ut)||ki()):(t=ut,e=oe,n=re,i=le,s=Ai(),a=Bt,o=ki,r=Math.min(a,10),l=s.indexOf("%")>=0?"%":"px",s=s.replace(l,""),c=Number(t.style[e].replace(n,"").replace(i,"").replace(l,"")),h=(s-c)/a*r,setTimeout(function s(){a-=r,c+=h,t.style[e]=n+c+l+i,a>0?setTimeout(s,r):o()},r)),lt||Ki()}:function(){te=[];var t={};t[W]=t[V]=ki,R(mt[ue],t),I(mt[he],t),Li(ue,nt,it,!0),Li(he,at,nt),W&&V&&Bt&&L(ut)||ki()};return{version:"2.9.3",getInfo:Ji,events:ye,goTo:Di,play:function(){Vt&&!dn&&(Fi(),mn=!1)},pause:function(){dn&&(Hi(),mn=!0)},isOn:vt,updateSliderHeight:pi,refresh:Wn,destroy:function(){if(Qt.disabled=!0,Qt.ownerNode&&Qt.ownerNode.remove(),R(n,{resize:Kn}),Rt&&R(e,Me),Ge&&R(Ge,Te),tn&&R(tn,Pe),R(ut,Le),R(ut,Oe),vn&&R(vn,{click:ji}),Vt&&clearInterval(un),Z&&W){var i={};i[W]=ki,R(ut,i)}$t&&R(ut,ke),Wt&&R(ut,De);var s=[ft,Ye,Qe,Ze,en,bn];for(var a in Y.forEach(function(e,n){var i="container"===e?ct:t[e];if("object"==typeof i&&i){var a=!!i.previousElementSibling&&i.previousElementSibling,o=i.parentNode;i.outerHTML=s[n],t[e]=a?a.nextElementSibling:o.firstElementChild}}),Y=nt=it=st=at=lt=ct=ht=ut=dt=ft=mt=pt=rt=gt=Tt=Pt=Lt=Ot=Mt=Dt=Nt=It=Rt=Bt=Ft=Ht=jt=Qt=Zt=bt=te=ee=ne=ie=se=ae=oe=re=le=ce=he=ue=de=fe=pe=ge=ve=be=ye=we=xe=Ce=_e=Se=Ee=Ae=Te=Pe=Le=Oe=Me=ke=De=Ne=Ie=Re=Be=Fe=He=je=Ue=ze=yt=qt=Ut=Ge=Ye=Xe=Ke=We=Ve=zt=tn=en=Je=nn=sn=an=on=rn=ln=cn=hn=Vt=Gt=gn=Yt=Xt=vn=bn=Kt=yn=un=dn=fn=mn=pn=Cn=_n=wn=Sn=xn=En=$t=Wt=null,this)"rebuild"!==a&&(this[a]=null);vt=!1},rebuild:function(){return F(r(t,X))}}}function Pn(t){t&&(qt=zt=$t=Wt=Rt=Vt=Xt=Kt=!1)}function Ln(){for(var t=Z?he-ee:he;t<0;)t+=pt;return t%pt+1}function On(t){return t=t?Math.max(0,Math.min(Ht?pt-1:pt-Dt,t)):0,Z?t+ee:t}function Mn(t){for(null==t&&(t=he),Z&&(t-=ee);t<0;)t+=pt;return Math.floor(t%pt)}function kn(){var t,e=Mn();return t=Re?e:Pt||Tt?Math.ceil((e+1)*nn/pt-1):Math.floor(e/Dt),!Ht&&Z&&he===fe&&(t=nn-1),t}function Dn(){return n.innerWidth||e.documentElement.clientWidth||e.body.clientWidth}function Nn(t){return"top"===t?"afterbegin":"beforeend"}function In(){var t=Lt?2*Lt-Ot:0;return function t(n){if(null!=n){var i,s,a=e.createElement("div");return n.appendChild(a),s=(i=a.getBoundingClientRect()).right-i.left,a.remove(),s||t(n.parentNode)}}(dt)-t}function Rn(e){if(t[e])return!0;if(K)for(var n in K)if(K[n][e])return!0;return!1}function Bn(e,n){if(null==n&&(n=gt),"items"===e&&Pt)return Math.floor((Mt+Ot)/(Pt+Ot))||1;var i=t[e];if(K)for(var s in K)n>=parseInt(s)&&e in K[s]&&(i=K[s][e]);return"slideBy"===e&&"page"===i&&(i=Bn("items")),Z||"slideBy"!==e&&"items"!==e||(i=Math.floor(i)),i}function Fn(t,e,n,i,s){var a="";if(void 0!==t){var o=t;e&&(o-=e),a=lt?"margin: 0 "+o+"px 0 "+t+"px;":"margin: "+t+"px 0 "+o+"px 0;"}else if(e&&!n){var r="-"+e+"px";a="margin: 0 "+(lt?r+" 0 0":"0 "+r+" 0")+";"}return!Z&&s&&q&&i&&(a+=zn(i)),a}function Hn(t,e,n){return t?(t+e)*ne+"px":k?k+"("+100*ne+"% / "+n+")":100*ne/n+"%"}function jn(t,e,n){var i;if(t)i=t+e+"px";else{Z||(n=Math.floor(n));var s=Z?ne:n;i=k?k+"(100% / "+s+")":100/s+"%"}return i="width:"+i,"inner"!==Q?i+";":i+" !important;"}function qn(t){var e="";!1!==t&&(e=(lt?"padding-":"margin-")+(lt?"right":"bottom")+": "+t+"px;");return e}function Un(t,e){var n=t.substring(0,t.length-e).toLowerCase();return n&&(n="-"+n+"-"),n}function zn(t){return Un(q,18)+"transition-duration:"+t/1e3+"s;"}function $n(t){return Un(z,17)+"animation-duration:"+t/1e3+"s;"}function Wn(){if(Rn("autoHeight")||Tt||!lt){var t=ut.querySelectorAll("img");g(t,function(t){var e=t.src;Zt||(e&&e.indexOf("data:image")<0?(t.src="",I(t,ze),y(t,"loading"),t.src=e):li(t))}),s(function(){di(A(t),function(){yt=!0})}),Rn("autoHeight")&&(t=hi(he,Math.min(he+Dt-1,ne-1))),Zt?Vn():s(function(){di(A(t),Vn)})}else Z&&Ti(),Yn(),Xn()}function Vn(){if(Tt&&pt>1){var t=Ht?he:pt-1;!function e(){var n=mt[t].getBoundingClientRect().left,i=mt[t-1].getBoundingClientRect().right;Math.abs(n-i)<=1?Gn():setTimeout(function(){e()},16)}()}else Gn()}function Gn(){lt&&!Tt||(gi(),Tt?(se=Ei(),Se&&(Ee=Zn()),fe=ce(),Pn(Ce||Ee)):Ki()),Z&&Ti(),Yn(),Xn()}function Yn(){if(vi(),ct.insertAdjacentHTML("afterbegin",'<div class="tns-liveregion tns-visually-hidden" aria-live="polite" aria-atomic="true">slide <span class="current">'+ai()+"</span>  of "+pt+"</div>"),wt=ct.querySelector(".tns-liveregion .current"),Be){var e=Vt?"stop":"start";vn?S(vn,{"data-action":e}):t.autoplayButtonOutput&&(ct.insertAdjacentHTML(Nn(t.autoplayPosition),'<button type="button" data-action="'+e+'">'+yn[0]+e+yn[1]+Yt[0]+"</button>"),vn=ct.querySelector("[data-action]")),vn&&I(vn,{click:ji}),Vt&&(Fi(),Xt&&I(ut,Le),Kt&&I(ut,Oe))}if(Ie){if(tn)S(tn,{"aria-label":"Carousel Pagination"}),g(Je=tn.children,function(t,e){S(t,{"data-nav":e,tabindex:"-1","aria-label":cn+(e+1),"aria-controls":xe})});else{for(var n="",i=Re?"":'style="display:none"',s=0;s<pt;s++)n+='<button type="button" data-nav="'+s+'" tabindex="-1" aria-controls="'+xe+'" '+i+' aria-label="'+cn+(s+1)+'"></button>';n='<div class="tns-nav" aria-label="Carousel Pagination">'+n+"</div>",ct.insertAdjacentHTML(Nn(t.navPosition),n),tn=ct.querySelector(".tns-nav"),Je=tn.children}if(Zi(),q){var a=q.substring(0,q.length-18).toLowerCase(),o="transition: all "+Bt/1e3+"s";a&&(o="-"+a+"-"+o),m(Qt,"[aria-controls^="+xe+"-item]",o,p(Qt))}S(Je[on],{"aria-label":cn+(on+1)+hn}),E(Je[on],"tabindex"),y(Je[on],ln),I(tn,Pe)}Ne&&(Ge||Xe&&Ke||(ct.insertAdjacentHTML(Nn(t.controlsPosition),'<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button type="button" data-controls="prev" tabindex="-1" aria-controls="'+xe+'">'+Ut[0]+'</button><button type="button" data-controls="next" tabindex="-1" aria-controls="'+xe+'">'+Ut[1]+"</button></div>"),Ge=ct.querySelector(".tns-controls")),Xe&&Ke||(Xe=Ge.children[0],Ke=Ge.children[1]),t.controlsContainer&&S(Ge,{"aria-label":"Carousel Navigation",tabindex:"0"}),(t.controlsContainer||t.prevButton&&t.nextButton)&&S([Xe,Ke],{"aria-controls":xe,tabindex:"-1"}),(t.controlsContainer||t.prevButton&&t.nextButton)&&(S(Xe,{"data-controls":"prev"}),S(Ke,{"data-controls":"next"})),We=yi(Xe),Ve=yi(Ke),Ci(),Ge?I(Ge,Te):(I(Xe,Te),I(Ke,Te))),ti()}function Xn(){if(Z&&W){var i={};i[W]=ki,I(ut,i)}$t&&I(ut,ke,t.preventScrollOnTouch),Wt&&I(ut,De),Rt&&I(e,Me),"inner"===Q?ye.on("outerResized",function(){Qn(),ye.emit("innerLoaded",Ji())}):(K||Pt||Tt||jt||!lt)&&I(n,{resize:Kn}),jt&&("outer"===Q?ye.on("innerLoaded",ui):Ce||ui()),ri(),Ce?ii():Ee&&ni(),ye.on("indexChanged",fi),"inner"===Q&&ye.emit("innerLoaded",Ji()),"function"==typeof be&&be(Ji()),vt=!0}function Kn(t){s(function(){Qn(Ui(t))})}function Qn(n){if(vt){"outer"===Q&&ye.emit("outerResized",Ji(n)),gt=Dn();var i,s=rt,a=!1;K&&(Jn(),(i=s!==rt)&&ye.emit("newBreakpointStart",Ji(n)));var o,r,l=Dt,c=Ce,h=Ee,u=Rt,d=qt,f=zt,v=$t,b=Wt,x=Vt,C=Xt,_=Kt,S=he;if(i){var E=Pt,A=jt,L=Ut,O=kt,M=Yt;if(!N)var k=Ot,D=Lt}if(Rt=Bn("arrowKeys"),qt=Bn("controls"),zt=Bn("nav"),$t=Bn("touch"),kt=Bn("center"),Wt=Bn("mouseDrag"),Vt=Bn("autoplay"),Xt=Bn("autoplayHoverPause"),Kt=Bn("autoplayResetOnVisibility"),i&&(Ce=Bn("disable"),Pt=Bn("fixedWidth"),Bt=Bn("speed"),jt=Bn("autoHeight"),Ut=Bn("controlsText"),Yt=Bn("autoplayText"),Gt=Bn("autoplayTimeout"),N||(Lt=Bn("edgePadding"),Ot=Bn("gutter"))),Pn(Ce),Mt=In(),lt&&!Tt||Ce||(gi(),lt||(Ki(),a=!0)),(Pt||Tt)&&(se=Ei(),fe=ce()),(i||Pt)&&(Dt=Bn("items"),Nt=Bn("slideBy"),(r=Dt!==l)&&(Pt||Tt||(fe=ce()),An())),i&&Ce!==c&&(Ce?ii():function(){if(!_e)return;if(Qt.disabled=!1,ut.className+=we,Ti(),Ht)for(var t=ee;t--;)Z&&P(mt[t]),P(mt[ne-t-1]);if(!Z)for(var e=he,n=he+pt;e<n;e++){var i=mt[e],s=e<he+Dt?nt:at;i.style.left=100*(e-he)/Dt+"%",y(i,s)}ei(),_e=!1}()),Se&&(i||Pt||Tt)&&(Ee=Zn())!==h&&(Ee?(Pi(Ai(On(0))),ni()):(!function(){if(!Ae)return;Lt&&N&&(ht.style.margin="");if(ee)for(var t="tns-transparent",e=ee;e--;)Z&&w(mt[e],t),w(mt[ne-e-1],t);ei(),Ae=!1}(),a=!0)),Pn(Ce||Ee),Vt||(Xt=Kt=!1),Rt!==u&&(Rt?I(e,Me):R(e,Me)),qt!==d&&(qt?Ge?P(Ge):(Xe&&P(Xe),Ke&&P(Ke)):Ge?T(Ge):(Xe&&T(Xe),Ke&&T(Ke))),zt!==f&&(zt?(P(tn),Zi()):T(tn)),$t!==v&&($t?I(ut,ke,t.preventScrollOnTouch):R(ut,ke)),Wt!==b&&(Wt?I(ut,De):R(ut,De)),Vt!==x&&(Vt?(vn&&P(vn),dn||mn||Fi()):(vn&&T(vn),dn&&Hi())),Xt!==C&&(Xt?I(ut,Le):R(ut,Le)),Kt!==_&&(Kt?I(e,Oe):R(e,Oe)),i){if(Pt===E&&kt===O||(a=!0),jt!==A&&(jt||(ht.style.height="")),qt&&Ut!==L&&(Xe.innerHTML=Ut[0],Ke.innerHTML=Ut[1]),vn&&Yt!==M){var B=Vt?1:0,F=vn.innerHTML,H=F.length-M[B].length;F.substring(H)===M[B]&&(vn.innerHTML=F.substring(0,H)+Yt[B])}}else kt&&(Pt||Tt)&&(a=!0);if((r||Pt&&!Tt)&&(nn=Qi(),Zi()),(o=he!==S)?(ye.emit("indexChanged",Ji()),a=!0):r?o||fi():(Pt||Tt)&&(ri(),vi(),si()),r&&!Z&&function(){for(var t=he+Math.min(pt,Dt),e=ne;e--;){var n=mt[e];e>=he&&e<t?(y(n,"tns-moving"),n.style.left=100*(e-he)/Dt+"%",y(n,nt),w(n,at)):n.style.left&&(n.style.left="",y(n,at),w(n,nt)),w(n,it)}setTimeout(function(){g(mt,function(t){w(t,"tns-moving")})},300)}(),!Ce&&!Ee){if(i&&!N&&(Lt===D&&Ot===k||(ht.style.cssText=Fn(Lt,Ot,Pt,Bt,jt)),lt)){Z&&(ut.style.width=Hn(Pt,Ot,Dt));var j=jn(Pt,Ot,Dt)+qn(Ot);!function(t,e){"deleteRule"in t?t.deleteRule(e):t.removeRule(e)}(Qt,p(Qt)-1),m(Qt,"#"+xe+" > .tns-item",j,p(Qt))}jt&&ui(),a&&(Ti(),ue=he)}i&&ye.emit("newBreakpointEnd",Ji(n))}}function Zn(){if(!Pt&&!Tt)return pt<=(kt?Dt-(Dt-1)/2:Dt);var t=Pt?(Pt+Ot)*pt:bt[pt],e=Lt?Mt+2*Lt:Mt+Ot;return kt&&(e-=Pt?(Mt-Pt)/2:(Mt-(bt[he+1]-bt[he]-Ot))/2),t<=e}function Jn(){for(var t in rt=0,K)t=parseInt(t),gt>=t&&(rt=t)}function ti(){!Vt&&vn&&T(vn),!zt&&tn&&T(tn),qt||(Ge?T(Ge):(Xe&&T(Xe),Ke&&T(Ke)))}function ei(){Vt&&vn&&P(vn),zt&&tn&&P(tn),qt&&(Ge?P(Ge):(Xe&&P(Xe),Ke&&P(Ke)))}function ni(){if(!Ae){if(Lt&&(ht.style.margin="0px"),ee)for(var t="tns-transparent",e=ee;e--;)Z&&y(mt[e],t),y(mt[ne-e-1],t);ti(),Ae=!0}}function ii(){if(!_e){if(Qt.disabled=!0,ut.className=ut.className.replace(we.substring(1),""),E(ut,["style"]),Ht)for(var t=ee;t--;)Z&&T(mt[t]),T(mt[ne-t-1]);if(lt&&Z||E(ht,["style"]),!Z)for(var e=he,n=he+pt;e<n;e++){var i=mt[e];E(i,["style"]),w(i,nt),w(i,at)}ti(),_e=!0}}function si(){var t=ai();wt.innerHTML!==t&&(wt.innerHTML=t)}function ai(){var t=oi(),e=t[0]+1,n=t[1]+1;return e===n?e+"":e+" to "+n}function oi(t){null==t&&(t=Ai());var e,n,i,s=he;if(kt||Lt?(Tt||Pt)&&(n=-(parseFloat(t)+Lt),i=n+Mt+2*Lt):Tt&&(n=bt[he],i=n+Mt),Tt)bt.forEach(function(t,a){a<ne&&((kt||Lt)&&t<=n+.5&&(s=a),i-t>=.5&&(e=a))});else{if(Pt){var a=Pt+Ot;kt||Lt?(s=Math.floor(n/a),e=Math.ceil(i/a-1)):e=s+Math.ceil(Mt/a)-1}else if(kt||Lt){var o=Dt-1;if(kt?(s-=o/2,e=he+o/2):e=he+o,Lt){var r=Lt*Dt/Mt;s-=r,e+=r}s=Math.floor(s),e=Math.ceil(e)}else e=s+Dt-1;s=Math.max(s,0),e=Math.min(e,ne-1)}return[s,e]}function ri(){if(Zt&&!Ce){var t=oi();t.push(Jt),hi.apply(null,t).forEach(function(t){if(!b(t,Ue)){var e={};e[W]=function(t){t.stopPropagation()},I(t,e),I(t,ze),t.src=C(t,"data-src");var n=C(t,"data-srcset");n&&(t.srcset=n),y(t,"loading")}})}}function li(t){y(t,"loaded"),ci(t)}function ci(t){y(t,Ue),w(t,"loading"),R(t,ze)}function hi(t,e,n){var i=[];for(n||(n="img");t<=e;)g(mt[t].querySelectorAll(n),function(t){i.push(t)}),t++;return i}function ui(){var t=hi.apply(null,oi());s(function(){di(t,pi)})}function di(t,e){return yt?e():(t.forEach(function(e,n){!Zt&&e.complete&&ci(e),b(e,Ue)&&t.splice(n,1)}),t.length?void s(function(){di(t,e)}):e())}function fi(){ri(),vi(),si(),Ci(),function(){if(zt&&(on=an>=0?an:kn(),an=-1,on!==rn)){var t=Je[rn],e=Je[on];S(t,{tabindex:"-1","aria-label":cn+(rn+1)}),w(t,ln),S(e,{"aria-label":cn+(on+1)+hn}),E(e,"tabindex"),y(e,ln),rn=on}}()}function mi(t,e){for(var n=[],i=t,s=Math.min(t+e,ne);i<s;i++)n.push(mt[i].offsetHeight);return Math.max.apply(null,n)}function pi(){var t=jt?mi(he,Dt):mi(ee,pt),e=ot||ht;e.style.height!==t&&(e.style.height=t+"px")}function gi(){bt=[0];var t=lt?"left":"top",e=lt?"right":"bottom",n=mt[0].getBoundingClientRect()[t];g(mt,function(i,s){s&&bt.push(i.getBoundingClientRect()[t]-n),s===ne-1&&bt.push(i.getBoundingClientRect()[e]-n)})}function vi(){var t=oi(),e=t[0],n=t[1];g(mt,function(t,i){i>=e&&i<=n?x(t,"aria-hidden")&&(E(t,["aria-hidden","tabindex"]),y(t,je)):x(t,"aria-hidden")||(S(t,{"aria-hidden":"true",tabindex:"-1"}),w(t,je))})}function bi(t){return t.nodeName.toLowerCase()}function yi(t){return"button"===bi(t)}function wi(t){return"true"===t.getAttribute("aria-disabled")}function xi(t,e,n){t?e.disabled=n:e.setAttribute("aria-disabled",n.toString())}function Ci(){if(qt&&!Ft&&!Ht){var t=We?Xe.disabled:wi(Xe),e=Ve?Ke.disabled:wi(Ke),n=he<=de,i=!Ft&&he>=fe;n&&!t&&xi(We,Xe,!0),!n&&t&&xi(We,Xe,!1),i&&!e&&xi(Ve,Ke,!0),!i&&e&&xi(Ve,Ke,!1)}}function _i(t,e){q&&(t.style[q]=e)}function Si(t){return null==t&&(t=he),Tt?(Mt-(Lt?Ot:0)-(bt[t+1]-bt[t]-Ot))/2:Pt?(Mt-Pt)/2:(Dt-1)/2}function Ei(){var t=Mt+(Lt?Ot:0)-(Pt?(Pt+Ot)*ne:bt[ne]);return kt&&!Ht&&(t=Pt?-(Pt+Ot)*(ne-1)-Si():Si(ne-1)-bt[ne-1]),t>0&&(t=0),t}function Ai(t){var e;if(null==t&&(t=he),lt&&!Tt)if(Pt)e=-(Pt+Ot)*t,kt&&(e+=Si());else{var n=H?ne:Dt;kt&&(t-=Si()),e=100*-t/n}else e=-bt[t],kt&&Tt&&(e+=Si());return ie&&(e=Math.max(e,se)),e+=!lt||Tt||Pt?"px":"%"}function Ti(t){_i(ut,"0s"),Pi(t)}function Pi(t){null==t&&(t=Ai()),ut.style[oe]=re+t+le}function Li(t,e,n,i){var s=t+Dt;Ht||(s=Math.min(s,ne));for(var a=t;a<s;a++){var o=mt[a];i||(o.style.left=100*(a-he)/Dt+"%"),st&&U&&(o.style[U]=o.style[$]=st*(a-t)/1e3+"s"),w(o,e),y(o,n),i&&te.push(o)}}function Oi(t,e){ae&&An(),(he!==ue||e)&&(ye.emit("indexChanged",Ji()),ye.emit("transitionStart",Ji()),jt&&ui(),dn&&t&&["click","keydown"].indexOf(t.type)>=0&&Hi(),ve=!0,Tn())}function Mi(t){return t.toLowerCase().replace(/-/g,"")}function ki(t){if(Z||ve){if(ye.emit("transitionEnd",Ji(t)),!Z&&te.length>0)for(var e=0;e<te.length;e++){var n=te[e];n.style.left="",$&&U&&(n.style[$]="",n.style[U]=""),w(n,it),y(n,at)}if(!t||!Z&&t.target.parentNode===ut||t.target===ut&&Mi(t.propertyName)===Mi(oe)){if(!ae){var i=he;An(),he!==i&&(ye.emit("indexChanged",Ji()),Ti())}"inner"===Q&&ye.emit("innerLoaded",Ji()),ve=!1,ue=he}}}function Di(t,e){if(!Ee)if("prev"===t)Ni(e,-1);else if("next"===t)Ni(e,1);else{if(ve){if(me)return;ki()}var n=Mn(),i=0;if("first"===t?i=-n:"last"===t?i=Z?pt-Dt-n:pt-1-n:("number"!=typeof t&&(t=parseInt(t)),isNaN(t)||(e||(t=Math.max(0,Math.min(pt-1,t))),i=t-n)),!Z&&i&&Math.abs(i)<Dt){var s=i>0?1:-1;i+=he+i-pt>=de?pt*s:2*pt*s*-1}he+=i,Z&&Ht&&(he<de&&(he+=pt),he>fe&&(he-=pt)),Mn(he)!==Mn(ue)&&Oi(e)}}function Ni(t,e){if(ve){if(me)return;ki()}var n;if(!e){for(var i=zi(t=Ui(t));i!==Ge&&[Xe,Ke].indexOf(i)<0;)i=i.parentNode;var s=[Xe,Ke].indexOf(i);s>=0&&(n=!0,e=0===s?-1:1)}if(Ft){if(he===de&&-1===e)return void Di("last",t);if(he===fe&&1===e)return void Di("first",t)}e&&(he+=Nt*e,Tt&&(he=Math.floor(he)),Oi(n||t&&"keydown"===t.type?t:null))}function Ii(){un=setInterval(function(){Ni(null,gn)},Gt),dn=!0}function Ri(){clearInterval(un),dn=!1}function Bi(t,e){S(vn,{"data-action":t}),vn.innerHTML=yn[0]+t+yn[1]+e}function Fi(){Ii(),vn&&Bi("stop",Yt[1])}function Hi(){Ri(),vn&&Bi("start",Yt[0])}function ji(){dn?(Hi(),mn=!0):(Fi(),mn=!1)}function qi(t){t.focus()}function Ui(t){return $i(t=t||n.event)?t.changedTouches[0]:t}function zi(t){return t.target||n.event.srcElement}function $i(t){return t.type.indexOf("touch")>=0}function Wi(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Vi(){return a=_n.y-Cn.y,o=_n.x-Cn.x,e=Math.atan2(a,o)*(180/Math.PI),n=pe,i=!1,(s=Math.abs(90-Math.abs(e)))>=90-n?i="horizontal":s<=n&&(i="vertical"),i===t.axis;var e,n,i,s,a,o}function Gi(t){if(ve){if(me)return;ki()}Vt&&dn&&Ri(),Sn=!0,xn&&(o(xn),xn=null);var e=Ui(t);ye.emit($i(t)?"touchStart":"dragStart",Ji(t)),!$i(t)&&["img","a"].indexOf(bi(zi(t)))>=0&&Wi(t),_n.x=Cn.x=e.clientX,_n.y=Cn.y=e.clientY,Z&&(wn=parseFloat(ut.style[oe].replace(re,"")),_i(ut,"0s"))}function Yi(t){if(Sn){var e=Ui(t);_n.x=e.clientX,_n.y=e.clientY,Z?xn||(xn=s(function(){!function t(e){if(!ge)return void(Sn=!1);o(xn);Sn&&(xn=s(function(){t(e)}));"?"===ge&&(ge=Vi());if(ge){!$e&&$i(e)&&($e=!0);try{e.type&&ye.emit($i(e)?"touchMove":"dragMove",Ji(e))}catch(t){}var n=wn,i=En(_n,Cn);if(!lt||Pt||Tt)n+=i,n+="px";else{var a=H?i*Dt*100/((Mt+Ot)*ne):100*i/(Mt+Ot);n+=a,n+="%"}ut.style[oe]=re+n+le}}(t)})):("?"===ge&&(ge=Vi()),ge&&($e=!0)),("boolean"!=typeof t.cancelable||t.cancelable)&&$e&&t.preventDefault()}}function Xi(e){if(Sn){xn&&(o(xn),xn=null),Z&&_i(ut,""),Sn=!1;var n=Ui(e);_n.x=n.clientX,_n.y=n.clientY;var i=En(_n,Cn);if(Math.abs(i)){if(!$i(e)){var a=zi(e);I(a,{click:function t(e){Wi(e),R(a,{click:t})}})}Z?xn=s(function(){if(lt&&!Tt){var t=-i*Dt/(Mt+Ot);t=i>0?Math.floor(t):Math.ceil(t),he+=t}else{var n=-(wn+i);if(n<=0)he=de;else if(n>=bt[ne-1])he=fe;else for(var s=0;s<ne&&n>=bt[s];)he=s,n>bt[s]&&i<0&&(he+=1),s++}Oi(e,i),ye.emit($i(e)?"touchEnd":"dragEnd",Ji(e))}):ge&&Ni(e,i>0?-1:1)}}"auto"===t.preventScrollOnTouch&&($e=!1),pe&&(ge="?"),Vt&&!dn&&Ii()}function Ki(){(ot||ht).style.height=bt[he+Dt]-bt[he]+"px"}function Qi(){var t=Pt?(Pt+Ot)*pt/Mt:pt/Dt;return Math.min(Math.ceil(t),pt)}function Zi(){if(zt&&!Re&&nn!==sn){var t=sn,e=nn,n=P;for(sn>nn&&(t=nn,e=sn,n=T);t<e;)n(Je[t]),t++;sn=nn}}function Ji(t){return{container:ut,slideItems:mt,navContainer:tn,navItems:Je,controlsContainer:Ge,hasControls:Ne,prevButton:Xe,nextButton:Ke,items:Dt,slideBy:Nt,cloneCount:ee,slideCount:pt,slideCountNew:ne,index:he,indexCached:ue,displayIndex:Ln(),navCurrentIndex:on,navCurrentIndexCached:rn,pages:nn,pagesCached:sn,sheet:Qt,isOn:vt,event:t||{}}}G&&console.warn("No slides found in",t.container)}},function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var o,r,l,c,h,u=(o=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'],r=function(){function t(e){var n=e.targetModal,i=e.triggers,a=void 0===i?[]:i,o=e.onShow,r=void 0===o?function(){}:o,l=e.onClose,c=void 0===l?function(){}:l,h=e.openTrigger,u=void 0===h?"data-micromodal-trigger":h,d=e.closeTrigger,f=void 0===d?"data-micromodal-close":d,m=e.openClass,p=void 0===m?"is-open":m,g=e.disableScroll,v=void 0!==g&&g,b=e.disableFocus,y=void 0!==b&&b,w=e.awaitCloseAnimation,x=void 0!==w&&w,C=e.awaitOpenAnimation,_=void 0!==C&&C,S=e.debugMode,E=void 0!==S&&S;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.modal=document.getElementById(n),this.config={debugMode:E,disableScroll:v,openTrigger:u,closeTrigger:f,openClass:p,onShow:r,onClose:c,awaitCloseAnimation:x,awaitOpenAnimation:_,disableFocus:y},a.length>0&&this.registerTriggers.apply(this,s(a)),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}var e,n,a;return e=t,(n=[{key:"registerTriggers",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];n.filter(Boolean).forEach(function(e){e.addEventListener("click",function(e){return t.showModal(e)})})}},{key:"showModal",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.activeElement=document.activeElement,this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add(this.config.openClass),this.scrollBehaviour("disable"),this.addEventListeners(),this.config.awaitOpenAnimation){this.modal.addEventListener("animationend",function e(){t.modal.removeEventListener("animationend",e,!1),t.setFocusToFirstNode()},!1)}else this.setFocusToFirstNode();this.config.onShow(this.modal,this.activeElement,e)}},{key:"closeModal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.modal;if(this.modal.setAttribute("aria-hidden","true"),this.removeEventListeners(),this.scrollBehaviour("enable"),this.activeElement&&this.activeElement.focus&&this.activeElement.focus(),this.config.onClose(this.modal,this.activeElement,t),this.config.awaitCloseAnimation){var n=this.config.openClass;this.modal.addEventListener("animationend",function t(){e.classList.remove(n),e.removeEventListener("animationend",t,!1)},!1)}else e.classList.remove(this.config.openClass)}},{key:"closeModalById",value:function(t){this.modal=document.getElementById(t),this.modal&&this.closeModal()}},{key:"scrollBehaviour",value:function(t){if(this.config.disableScroll){var e=document.querySelector("body");switch(t){case"enable":Object.assign(e.style,{overflow:""});break;case"disable":Object.assign(e.style,{overflow:"hidden"})}}}},{key:"addEventListeners",value:function(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),document.addEventListener("keydown",this.onKeydown)}},{key:"removeEventListeners",value:function(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),document.removeEventListener("keydown",this.onKeydown)}},{key:"onClick",value:function(t){t.target.hasAttribute(this.config.closeTrigger)&&this.closeModal(t)}},{key:"onKeydown",value:function(t){27===t.keyCode&&this.closeModal(t),9===t.keyCode&&this.retainFocus(t)}},{key:"getFocusableNodes",value:function(){var t=this.modal.querySelectorAll(o);return Array.apply(void 0,s(t))}},{key:"setFocusToFirstNode",value:function(){var t=this;if(!this.config.disableFocus){var e=this.getFocusableNodes();if(0!==e.length){var n=e.filter(function(e){return!e.hasAttribute(t.config.closeTrigger)});n.length>0&&n[0].focus(),0===n.length&&e[0].focus()}}}},{key:"retainFocus",value:function(t){var e=this.getFocusableNodes();if(0!==e.length)if(e=e.filter(function(t){return null!==t.offsetParent}),this.modal.contains(document.activeElement)){var n=e.indexOf(document.activeElement);t.shiftKey&&0===n&&(e[e.length-1].focus(),t.preventDefault()),!t.shiftKey&&e.length>0&&n===e.length-1&&(e[0].focus(),t.preventDefault())}else e[0].focus()}}])&&i(e.prototype,n),a&&i(e,a),t}(),l=null,c=function(t){if(!document.getElementById(t))return console.warn("MicroModal: ❗Seems like you have missed %c'".concat(t,"'"),"background-color: #f8f9fa;color: #50596c;font-weight: bold;","ID somewhere in your code. Refer example below to resolve it."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<div class="modal" id="'.concat(t,'"></div>')),!1},h=function(t,e){if(function(t){if(t.length<=0)console.warn("MicroModal: ❗Please specify at least one %c'micromodal-trigger'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","data attribute."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<a href="#" data-micromodal-trigger="my-modal"></a>')}(t),!e)return!0;for(var n in e)c(n);return!0},{init:function(t){var e=Object.assign({},{openTrigger:"data-micromodal-trigger"},t),n=s(document.querySelectorAll("[".concat(e.openTrigger,"]"))),i=function(t,e){var n=[];return t.forEach(function(t){var i=t.attributes[e].value;void 0===n[i]&&(n[i]=[]),n[i].push(t)}),n}(n,e.openTrigger);if(!0!==e.debugMode||!1!==h(n,i))for(var a in i){var o=i[a];e.targetModal=a,e.triggers=s(o),l=new r(e)}},show:function(t,e){var n=e||{};n.targetModal=t,!0===n.debugMode&&!1===c(t)||(l&&l.removeEventListeners(),(l=new r(n)).showModal())},close:function(t){t?l.closeModalById(t):l.closeModal()}});window.MicroModal=u,e.a=u},function(t,e,n){"use strict";n.r(e),function(t){n(5);var e=n(1),i=n(0);n(6),n(4);window.$=$,window.jQuery=$,window.mixitup=t,function(n){window.surfrider={};var s=window.surfrider,a=n(window);s.init=function(){s.setElements(),s.mobileMenu(),s.smoothScroll(),s.embeddedSignupForms(),s.newsletterSignup(),s.srGallery(),s.photoGallery(),s.blogSlider(),s.modals(),s.newsTicker(),s.tableSorting(),s.filtering(),s.stickyPagination(),s.search(),s.tabs(),s.standardSlider("video"),s.standardSlider("blog"),s.selectBehavior(),s.emphasizedText(),s.imageScale(),s.locator(),s.supportSurfrider(),s.sfDonate()},s.selectBehavior=function(){document.querySelectorAll(".surf-select").forEach(t=>{let e=t.querySelector("select");e.addEventListener("change",function(e){""!==e.target.value&&t.classList.add("floating"),""==e.target.value&&t.classList.remove("floating")}),e.addEventListener("blur",function(e){e.target.required&&""==e.target.value&&t.classList.add("invalid"),e.target.required&&""===e.target.value||t.classList.remove("invalid")})})},s.locator=function(){var t,e=n(".sf-img-txt-panel__search");e&&(t=e.find("select"))&&t.on("change",function(){e.submit()})},s.standardSlider=function(t){let e=`.${t}-paginator`;document.querySelectorAll(`${e}__items`).length&&document.querySelectorAll(`${e}__items`).forEach(t=>{let n,s,a=t.parentElement.querySelector(`${e}__nav-arrows`);console.log(a),Object(i.a)({container:t,loop:!0,items:1,slideBy:1,gutter:0,navSpeed:250,pagination:!1,touchDrag:!1,nav:!1,controls:!0,controlsContainer:a,onInit:t=>{console.log(t),n=t.controlsContainer.previousElementSibling.querySelector(`${e}__nav-total`),s=t.controlsContainer.previousElementSibling.querySelector(`${e}__nav-current`),n.innerText=Math.ceil(t.slideCount/t.slideBy)}}).events.on("indexChanged",function(t,e){console.log(t),s.innerText=Math.ceil(t.displayIndex/t.slideBy)})})},s.srGallery=function(){document.querySelectorAll(".sf-gallery").length&&document.querySelectorAll(".sf-gallery").forEach(function(t){var e;t.querySelector(".sf-gallery__nav-arrows");var n='<svg width="30" height="20" viewBox="0 0 30 20" xmlns="http://www.w3.org/2000/svg"><path d="M30 9.212l-26.483.001 7.866-7.867L10.072.034l-10.1 10.1 9.834 9.835 1.346-1.347-7.891-7.891H30V9.211z" fill="#26272A" fill-rule="nonzero"/></svg>',s='<svg width="30" height="20" viewBox="0 0 30 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 9.212l26.483.001-7.866-7.867L19.928.034l10.1 10.1-9.834 9.835-1.346-1.347 7.891-7.891H0V9.211z" fill="#26272A" fill-rule="nonzero"/></svg>';let a=Object(i.a)({container:".sf-gallery__items",mode:"gallery",loop:!0,gutter:0,navSpeed:250,items:1,autoHeight:!0,pagination:!1,navigation:!0,touchDrag:!1,controls:!1,nav:!1,onInit:function(e){document.querySelector(".sf-gallery").classList.add("sf-gallery--initialized"),t.querySelectorAll(".sf-gallery__nav-total").forEach(t=>t.innerText=e.slideCount),console.log(e)}});e=t.querySelectorAll(".sf-gallery__nav-current"),t.querySelectorAll(".sf-gallery-prev").forEach(t=>{t.innerHTML=n,t.addEventListener("click",function(){a.goTo("prev")})}),t.querySelectorAll(".sf-gallery-next").forEach(t=>{t.innerHTML=s,t.addEventListener("click",function(){a.goTo("next")})}),a.events.on("indexChanged",function(t,n){console.log(t),e.forEach(e=>e.innerText=t.displayIndex)})})},s.imageScale=function(){var t=n("[data-image-scale]");t.length&&n(window).scroll(function(){var e=n(window).scrollTop();e<=t.height()&&t.css({transform:"scale("+(100+e/50)/100+")"})})},s.emphasizedText=function(){var t=n(".sf-text--emphasize");a.on("scroll resize",function(){var e=a.height(),i=a.scrollTop(),s=i+e;n.each(t,function(){var t=n(this),e=t.outerHeight(),a=t.offset().top;a+e>=i&&a<=s?t.addClass("animate"):t.removeClass("animate")})}),a.trigger("scroll")},s.setElements=function(){s.elems={},s.elems.href=window.location.pathname,s.elems.previousUrl=document.referrer},s.sorting=function(){if(!n(".sorting-items").length)return;t(".sorting-items",{animation:{effects:"fade scale",duration:300}})},s.filtering=function(){if(n(".filtering-items").length){var e=n(".mixitup-filter"),i=n(".mixitup-no-result"),s=t(".filtering-items",{animation:{effects:"fade scale",duration:300},selectors:{target:".filtering-item"},callbacks:{onMixEnd:function(t){!0===t.fail?i.addClass("active"):i.removeClass("active")}}});e.on("change",function(){s.filter(this.value)})}},s.stickyPagination=function(){if(n(".pagination").length){var t=n(".pagination");n('<div class="pagination-placeholder"></div>').insertAfter(t);var e=n(".pagination-placeholder"),i=t.offset().top;e.height(t.innerHeight()),window.onresize=function(){e.height(t.innerHeight()),i=t.offset().top},window.onscroll=function(){window.pageYOffset>i?(t.addClass("sticky"),e.addClass("sticky")):(t.removeClass("sticky"),e.removeClass("sticky"))}}},s.tableSorting=function(){if(n(".responsive-table").length){var t=n(".responsive-table").stupidtable().find("th[data-sort-default]");t.length&&t.stupidsort()}},s.mobileMenu=function(){if(n("#mobile-nav").length){var t,e=n("#mobile-nav"),i=n(".mobile-header");t=!!i.hasClass("white-header"),n(".mobile-header-trigger").on("click",function(){n(this).toggleClass("nav-is-open"),e.toggleClass("nav-is-open"),!0===t?i.toggleClass("nav-is-open white-header"):i.toggleClass("nav-is-open")}),new Mmenu("#mobile-nav",{offCanvas:!1,navbars:[{content:["prev"]}]})}},s.modals=function(){e.a.init()},s.smoothScroll=function(){(function(t,e){t.click(function(){return n("html, body").animate({scrollTop:n(n(this).attr("href")).offset().top-66+"px"},{duration:e,easing:"swing"}),!1})})(n(".scroll-trigger"),750)},s.search=function(){var t=document.getElementById("search-field"),e=n(".search-dropdown .search");e.click(function(){n(e).parent().addClass("active"),t.focus()}),n(t).focusout(function(){n(e).parent().removeClass("active")})},s.blogSlider=function(){let t=".coastal-blog-pager";document.querySelectorAll(t).length&&document.querySelectorAll(`${t}__items`).forEach(e=>{let n,s,a=e.parentElement.querySelector(`${t}__nav-arrows`);Object(i.a)({container:e,loop:!0,gutter:40,navSpeed:250,pagination:!1,touchDrag:!1,nav:!1,controls:!0,controlsContainer:a,responsive:{0:{items:1,slideBy:1},768:{items:3,slideBy:3}},onInit:e=>{console.log(e),n=e.controlsContainer.previousElementSibling.querySelector(`${t}__nav-total`),s=e.controlsContainer.previousElementSibling.querySelector(`${t}__nav-current`),n.innerText=Math.ceil(e.slideCount/e.slideBy)}}).events.on("indexChanged",function(t,e){s.innerText=Math.ceil(t.displayIndex/t.slideBy)})})},s.photoGallery=function(){document.querySelectorAll(".sf-photo-gallery").length&&document.querySelectorAll(".sf-photo-gallery__items").forEach(t=>{let e,n,s=t.parentElement.querySelector(".sf-photo-gallery__nav-arrows");Object(i.a)({container:t,loop:!0,gutter:40,navSpeed:250,pagination:!1,touchDrag:!1,nav:!1,controls:!0,controlsContainer:s,responsive:{0:{items:1,slideBy:1},768:{items:3,slideBy:3}},onInit:t=>{e=t.controlsContainer.previousElementSibling.querySelector(".sf-photo-gallery__nav-total"),n=t.controlsContainer.previousElementSibling.querySelector(".sf-photo-gallery__nav-current"),t.controlsContainer.parentElement.parentElement.classList.add("sf-photo-gallery--initialized"),e.innerText=Math.ceil(t.slideCount/t.slideBy)}}).events.on("indexChanged",function(t,e){n.innerText=Math.ceil(t.displayIndex/t.slideBy)})})},s.getParameter=function(t){var e=window.location.href;t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},s.embeddedSignupForms=function(){if(!document.querySelector(".embedded-form"))return;let t=document.querySelector(".embedded-form__form"),e=document.querySelector('.embedded-form__form surf-input[name="email"]'),n=t.parentElement;t.addEventListener("submit",async function(i){i.preventDefault();try{if(!e.valid)return!1;n.classList.add("processing"),n.classList.remove("error");let i=await fetch(t.action,{method:"POST",credentials:"same-origin",headers:{Accept:"*/*","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","X-Requested-With":"XMLHttpRequest"},body:new URLSearchParams(new FormData(t))});return i=await i.json(),n.classList.remove("processing"),"success"==i.status?n.classList.add("completed"):"error"==i.status&&(console.log(i),n.classList.add("error"),n.querySelector(".message").innerText=`The following errors occured: ${i.errors}`),i}catch(t){throw n.classList.add("error"),n.querySelector(".message").innerText="Oops. There was a problem processing your submission.",t}})},s.newsletterSignup=function(){if(!document.querySelector(".sf-footer__newsletter"))return;let t=document.querySelector(".sf-footer__newsletter"),e=document.querySelector(".sf-footer__newsletter surf-input"),n=t.parentElement;t.addEventListener("submit",async function(i){i.preventDefault();try{if(!e.valid)return!1;n.classList.add("processing"),n.classList.remove("error");let i=await fetch(t.action,{method:"POST",credentials:"same-origin",headers:{Accept:"*/*","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","X-Requested-With":"XMLHttpRequest"},body:new URLSearchParams(new FormData(t))});return i=await i.json(),n.classList.remove("processing"),"success"==i.status?n.classList.add("completed"):"error"==i.status&&(console.log(i),n.classList.add("error"),n.querySelector(".message").innerText=`The following errors occured: ${i.errors}`),i}catch(t){throw n.classList.add("error"),n.querySelector(".message").innerText="Oops. There was a problem processing your submission.",t}})},s.newsTicker=function(){let t=document.querySelectorAll(".news-ticker__item"),e="news-ticker__item--active",n=0;if(t.length<=1)return;setInterval(function(){t[n].classList.toggle(e),++n==t.length&&(n=0),t[n].classList.toggle(e)},5e3)},s.sfDonate=function(){var t=n(".sf-donate");if(t)t.find(".sf-donate__option"),t.find(".sf-donate__cta .btn")},s.supportSurfrider=function(){if(n(".support-surfrider").length){var t={$main:n("#main"),$supportSurfrider:n(".support-surfrider"),$step1forms:n(".support-surfrider__form"),$step1Tabs:n(".support-surfrider__tabs"),$step1ControlRadio:n('.support-surfrider__form-control input[type="radio"]'),$step1ControlNumber:n('.support-surfrider__form-control input[type="number"]'),$otherAmountControl:n("#amountOtherControl"),noGift:'input[name="noGift"]',$errMessage:n(".support-surfrider__message"),$packagesContainer:n(".support-surfrider__packages"),$packages:n(".support-surfrider__package-content"),$noGiftTrigger:n('input[name="noGift-trigger"]'),$iframeContainer:n(".support-surfrider__iframe-wrap"),$steps:n(".support-surfrider__step"),$progressBar:n(".support-surfrider__progress"),$progress:n(".support-surfrider__progress-item")};n(document).ready(function(){!function(){var e=new URLSearchParams(window.location.search).get("amount"),a=t.$step1forms.find(t.$step1forms.find("#amount"+e+"Monthly"));if(e&&a&&-1!==["5","10","25","50"].indexOf(e))t.$step1forms.each(function(t,e){var i=n(e);i.parent().not(".invisible")&&(a.prop("checked",!0),a.trigger("change"),i.submit())});else{var o=n("#amount10Monthly");o.prop("checked",!0),o.trigger("change")}i(1),s(1),setTimeout(function(){t.$supportSurfrider.addClass("ready"),t.$progressBar.addClass("ready")},500)}()}),t.$progressBar.on("click",function(e){var a=n(e.target).data("progress").toString();"2a"===a&&(t.$iframeContainer.find("iframe")[0].contentWindow.postMessage("goTo:step-1","*"),a="2"),"2b"===a&&(t.$iframeContainer.find("iframe")[0].contentWindow.postMessage("goTo:step-2","*"),a="2"),i(a),s(a)}),t.$step1forms.on("submit",o),n(".chapter-donation").on("submit",o),n(".chapter-donation").on("submit",function(t){e.a.close("chapter-donation-form")}),document.querySelector(".chapter-donation__other input").addEventListener("change",function(t){t.target;document.querySelector(".chapter-donation__form-controls").querySelectorAll('input[name="amount"][type="radio"]').forEach(t=>t.checked=!1)}),t.$step1forms.on("change",".support-surfrider__form-control--radio input",r),t.$otherAmountControl.on("keyup mouseup focus",r),t.$noGiftTrigger.on("change",function(e){var i=n(t.noGift);n(this).is(":checked")?i.val(!0):i.val(!1)}),t.$step1Tabs.on("click",function(e){var i=n(e.target);if(!i.hasClass("support-surfrider__tabs")){var s=n("#"+e.target.dataset.reference),a=n(s.find("input:visible")[2]);"Monthly"===i[0].text&&(a=n(s.find("input:visible")[1])),t.$step1ControlNumber.val(""),t.$step1ControlRadio.prop("checked",!1),t.$packages.addClass("hide"),a.prop("checked",!0),a.trigger("change")}}),a.on("message onmessage",function(t){switch(t.originalEvent.data){case"personalInfoCollected":s("2b");break;case"addressCollected":s("3");break;case"success":i(3),s();break;default:return}})}function i(e){t.$steps.addClass("hide"),n('[data-step="'+e+'"]').removeClass("hide"),3===e&&a.width()>=768&&t.$main.css("margin","0")}function s(e){e?(t.$progress.removeClass("hide active").attr("disabled",!0),n('[data-progress="'+e+'"]').addClass("active").attr("disabled",!0),n('[data-progress="'+e+'"]').prevAll().attr("disabled",!1)):t.$progressBar.addClass("hide")}function o(e){e.preventDefault();var a,o,r,l,c,h=(a={error:!1,message:""},o=n(".support-surfrider__tab-panel").not(".invisible").find(".support-surfrider__form"),r=o.find(".support-surfrider__form-control--radio input:checked").length,l=o.find(".support-surfrider__form-control--number input")[0].value,r||l?l&&parseInt(l)<5?{error:!0,message:"$5 minimum for other amount."}:a:{error:!0,message:"Please select a donation amount or enter another amount ($5 minimum)."});if(h.error)return c=h.message,void t.$errMessage.text(c);var u=n(this),d=u.attr("action")+"?"+u.serialize(),f=n("<iframe>",{referrerpolicy:"origin-when-cross-origin",frameborder:0,src:d});t.$iframeContainer.empty().append(f),i("2"),s("2a")}function r(e){t.$errMessage.text("");var i=n(e.target),s=n('[data-package="'+i.attr("id")+'"]');t.$step1ControlRadio.removeClass("active"),t.$packages.addClass("hide"),t.$step1ControlRadio.prop("checked",!1),t.$step1ControlRadio.parent().removeClass("active"),"change"===e.type&&(t.$step1ControlNumber.val(""),i.parent().addClass("active"),i.addClass("active").prop("checked",!0)),"keyup"!==e.type&&"mouseup"!==e.type||t.$step1ControlNumber.val(e.target.value),s.removeClass("hide")}},s.tabs=function(){n("a.tab").click(function(t){t.preventDefault(),n(".tab-panel").addClass("invisible"),n("a.tab").removeClass("active");var e="#"+n(this).attr("data-target");n(t.target).addClass("active"),n(e).removeClass("invisible")})},n(document).ready(function(){s.init(),document.domain="surfrider.org"})}(window.jQuery)}.call(this,n(3))},function(t,e,n){
/**!
 * MixItUp v3.3.1
 * A high-performance, dependency-free library for animated filtering, sorting and more
 * Build 94e0fbf6-cd0b-4987-b3c0-14b59b67b8a0
 *
 * @copyright Copyright 2014-2018 KunkaLabs Limited.
 * @author    KunkaLabs Limited.
 * @link      https://www.kunkalabs.com/mixitup/
 *
 * @license   Commercial use requires a commercial license.
 *            https://www.kunkalabs.com/mixitup/licenses/
 *
 *            Non-commercial use permitted under same terms as CC BY-NC 3.0 license.
 *            http://creativecommons.org/licenses/by-nc/3.0/
 */
!function(e){"use strict";var n=null,i=null;!function(){var t,n,i,s,a,o,r=["webkit","moz","o","ms"],l=e.document.createElement("div"),c=-1;for(c=0;c<r.length&&!e.requestAnimationFrame;c++)e.requestAnimationFrame=e[r[c]+"RequestAnimationFrame"];void 0===l.nextElementSibling&&Object.defineProperty(e.Element.prototype,"nextElementSibling",{get:function(){for(var t=this.nextSibling;t;){if(1===t.nodeType)return t;t=t.nextSibling}return null}}),(t=e.Element.prototype).matches=t.matches||t.machesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||function(t){return Array.prototype.indexOf.call(this.parentElement.querySelectorAll(t),this)>-1},Object.keys||(Object.keys=(a=Object.prototype.hasOwnProperty,n=!{toString:null}.propertyIsEnumerable("toString"),s=(i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(t){var e=[],o="",r=-1;if("object"!=typeof t&&("function"!=typeof t||null===t))throw new TypeError("Object.keys called on non-object");for(o in t)a.call(t,o)&&e.push(o);if(n)for(r=0;r<s;r++)a.call(t,i[r])&&e.push(i[r]);return e})),Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),"function"!=typeof Object.create&&(Object.create=(o=function(){},function(t,e){if(t!==Object(t)&&null!==t)throw TypeError("Argument must be an object, or null");o.prototype=t||{};var n=new o;return o.prototype=null,void 0!==e&&Object.defineProperties(n,e),null===t&&(n.__proto__=null),n})),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t){var e,n,i,s;if(null===this)throw new TypeError;if(0===(s=(i=Object(this)).length>>>0))return-1;if(e=0,arguments.length>1&&((e=Number(arguments[1]))!=e?e=0:0!==e&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e)))),e>=s)return-1;for(n=e>=0?e:Math.max(s-Math.abs(e),0);n<s;n++)if(n in i&&i[n]===t)return n;return-1}),Function.prototype.bind||(Function.prototype.bind=function(t){var e,n,i,s;if("function"!=typeof this)throw new TypeError;return e=Array.prototype.slice.call(arguments,1),n=this,i=function(){},s=function(){return n.apply(this instanceof i?this:t,e.concat(Array.prototype.slice.call(arguments)))},this.prototype&&(i.prototype=this.prototype),s.prototype=new i,s}),e.Element.prototype.dispatchEvent||(e.Element.prototype.dispatchEvent=function(t){try{return this.fireEvent("on"+t.type,t)}catch(t){}})}(),(n=function(t,s,a){var o=null,r=!1,l=null,c=null,h=null,u=[],d="",f=[],m=-1;if(h=a||e.document,(r=arguments[3])&&(r="boolean"==typeof r),"string"==typeof t)f=h.querySelectorAll(t);else if(t&&"object"==typeof t&&i.isElement(t,h))f=[t];else{if(!t||"object"!=typeof t||!t.length)throw new Error(n.messages.errorFactoryInvalidContainer());f=t}if(f.length<1)throw new Error(n.messages.errorFactoryContainerNotFound());for(m=0;(o=f[m])&&(!(m>0)||r);m++)o.id?d=o.id:(d="MixItUp"+i.randomHex(),o.id=d),n.instances[d]instanceof n.Mixer?(l=n.instances[d],(!s||s&&s.debug&&!1!==s.debug.showWarnings)&&console.warn(n.messages.warningFactoryPreexistingInstance())):((l=new n.Mixer).attach(o,h,d,s),n.instances[d]=l),c=new n.Facade(l),s&&s.debug&&s.debug.enable?u.push(l):u.push(c);return r?new n.Collection(u):u[0]}).use=function(t){n.Base.prototype.callActions.call(n,"beforeUse",arguments),"function"==typeof t&&"mixitup-extension"===t.TYPE?void 0===n.extensions[t.NAME]&&(t(n),n.extensions[t.NAME]=t):t.fn&&t.fn.jquery&&(n.libraries.$=t),n.Base.prototype.callActions.call(n,"afterUse",arguments)},n.instances={},n.extensions={},n.libraries={},i={hasClass:function(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},addClass:function(t,e){this.hasClass(t,e)||(t.className+=t.className?" "+e:e)},removeClass:function(t,e){if(this.hasClass(t,e)){var n=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(n," ").trim()}},extend:function(t,e,n,i){var s=[],a="",o=-1;n=n||!1,i=i||!1;try{if(Array.isArray(e))for(o=0;o<e.length;o++)s.push(o);else e&&(s=Object.keys(e));for(o=0;o<s.length;o++)a=s[o],!n||"object"!=typeof e[a]||this.isElement(e[a])?t[a]=e[a]:Array.isArray(e[a])?(t[a]||(t[a]=[]),this.extend(t[a],e[a],n,i)):(t[a]||(t[a]={}),this.extend(t[a],e[a],n,i))}catch(e){if(!i)throw e;this.handleExtendError(e,t)}return t},handleExtendError:function(t,e){var i=null,s="",a="",o="",r="",l="",c=-1,h=-1;if(t instanceof TypeError&&(i=/property "?(\w*)"?[,:] object/i.exec(t.message))){for(l in s=i[1],e){for(h=0;h<s.length&&s.charAt(h)===l.charAt(h);)h++;h>c&&(c=h,r=l)}throw c>1&&(o=n.messages.errorConfigInvalidPropertySuggestion({probableMatch:r})),a=n.messages.errorConfigInvalidProperty({erroneous:s,suggestion:o}),new TypeError(a)}throw t},template:function(t){for(var e=/\${([\w]*)}/g,n={},i=null;i=e.exec(t);)n[i[1]]=new RegExp("\\${"+i[1]+"}","g");return function(e){var i="",s=t;for(i in e=e||{},n)s=s.replace(n[i],void 0!==e[i]?e[i]:"");return s}},on:function(t,n,i,s){t&&(t.addEventListener?t.addEventListener(n,i,s):t.attachEvent&&(t["e"+n+i]=i,t[n+i]=function(){t["e"+n+i](e.event)},t.attachEvent("on"+n,t[n+i])))},off:function(t,e,n){t&&(t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent&&(t.detachEvent("on"+e,t[e+n]),t[e+n]=null))},getCustomEvent:function(t,n,i){var s=null;return i=i||e.document,"function"==typeof e.CustomEvent?s=new e.CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):"function"==typeof i.createEvent?(s=i.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n):((s=i.createEventObject()).type=t,s.returnValue=!1,s.cancelBubble=!1,s.detail=n),s},getOriginalEvent:function(t){return t.touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t},index:function(t,e){for(var n=0;null!==(t=t.previousElementSibling);)e&&!t.matches(e)||++n;return n},camelCase:function(t){return t.toLowerCase().replace(/([_-][a-z])/g,function(t){return t.toUpperCase().replace(/[_-]/,"")})},pascalCase:function(t){return(t=this.camelCase(t)).charAt(0).toUpperCase()+t.slice(1)},dashCase:function(t){return t.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()},isElement:function(t,n){return n=n||e.document,!!(e.HTMLElement&&t instanceof e.HTMLElement)||(!!(n.defaultView&&n.defaultView.HTMLElement&&t instanceof n.defaultView.HTMLElement)||null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)},createElement:function(t,n){var i=null,s=null;for(i=(n=n||e.document).createDocumentFragment(),(s=n.createElement("div")).innerHTML=t.trim();s.firstChild;)i.appendChild(s.firstChild);return i},removeWhitespace:function(t){for(var e;t&&"#text"===t.nodeName;)e=t,t=t.previousSibling,e.parentElement&&e.parentElement.removeChild(e)},isEqualArray:function(t,e){var n=t.length;if(n!==e.length)return!1;for(;n--;)if(t[n]!==e[n])return!1;return!0},deepEquals:function(t,e){var n;if("object"==typeof t&&t&&"object"==typeof e&&e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(n in t)if(!e.hasOwnProperty(n)||!this.deepEquals(t[n],e[n]))return!1}else if(t!==e)return!1;return!0},arrayShuffle:function(t){for(var e=t.slice(),n=e.length,i=n,s=-1,a=[];i--;)s=~~(Math.random()*n),a=e[i],e[i]=e[s],e[s]=a;return e},arrayFromList:function(t){var e,n;try{return Array.prototype.slice.call(t)}catch(i){for(e=[],n=0;n<t.length;n++)e.push(t[n]);return e}},debounce:function(t,e,n){var i;return function(){var s,a=this,o=arguments,r=n&&!i;s=function(){i=null,n||t.apply(a,o)},clearTimeout(i),i=setTimeout(s,e),r&&t.apply(a,o)}},position:function(t){for(var e=0,n=0,i=t;t;)e-=t.scrollLeft,n-=t.scrollTop,t===i&&(e+=t.offsetLeft,n+=t.offsetTop,i=t.offsetParent),t=t.parentElement;return{x:e,y:n}},getHypotenuse:function(t,e){var n=t.x-e.x,i=t.y-e.y;return n=n<0?-1*n:n,i=i<0?-1*i:i,Math.sqrt(Math.pow(n,2)+Math.pow(i,2))},getIntersectionRatio:function(t,e){var n,i=t.width*t.height;return n=Math.max(0,Math.min(t.left+t.width,e.left+e.width)-Math.max(t.left,e.left)),Math.max(0,Math.min(t.top+t.height,e.top+e.height)-Math.max(t.top,e.top))*n/i},closestParent:function(t,n,i,s){var a=t.parentNode;if(s=s||e.document,i&&t.matches(n))return t;for(;a&&a!=s.body;){if(a.matches&&a.matches(n))return a;if(!a.parentNode)return null;a=a.parentNode}return null},children:function(t,n,i){var s=[],a="";return i=i||e.doc,t&&(t.id||(a="Temp"+this.randomHexKey(),t.id=a),s=i.querySelectorAll("#"+t.id+" > "+n),a&&t.removeAttribute("id")),s},clean:function(t){var e=[],n=-1;for(n=0;n<t.length;n++)""!==t[n]&&e.push(t[n]);return e},defer:function(t){var i=null,s=null,a=null;return s=new this.Deferred,n.features.has.promises?s.promise=new Promise(function(t,e){s.resolve=t,s.reject=e}):(a=e.jQuery||t.$)&&"function"==typeof a.Deferred?(i=a.Deferred(),s.promise=i.promise(),s.resolve=i.resolve,s.reject=i.reject):e.console&&console.warn(n.messages.warningNoPromiseImplementation()),s},all:function(t,i){var s=null;return n.features.has.promises?Promise.all(t):(s=e.jQuery||i.$)&&"function"==typeof s.when?s.when.apply(s,t).done(function(){return arguments}):(e.console&&console.warn(n.messages.warningNoPromiseImplementation()),[])},getPrefix:function(t,e,n){var s=-1,a="";if(i.dashCase(e)in t.style)return"";for(s=0;a=n[s];s++)if(a+e in t.style)return a.toLowerCase();return"unsupported"},randomHex:function(){return("00000"+(16777216*Math.random()<<0).toString(16)).substr(-6).toUpperCase()},getDocumentState:function(t){return t="object"==typeof t.body?t:e.document,{scrollTop:e.pageYOffset,scrollLeft:e.pageXOffset,docHeight:t.documentElement.scrollHeight,docWidth:t.documentElement.scrollWidth,viewportHeight:t.documentElement.clientHeight,viewportWidth:t.documentElement.clientWidth}},bind:function(t,e){return function(){return e.apply(t,arguments)}},isVisible:function(t){var n;return!!t.offsetParent||"fixed"===(n=e.getComputedStyle(t)).position&&"hidden"!==n.visibility&&"0"!==n.opacity},seal:function(t){"function"==typeof Object.seal&&Object.seal(t)},freeze:function(t){"function"==typeof Object.freeze&&Object.freeze(t)},compareVersions:function(t,e){var n=t.split("."),i=e.split("."),s=-1,a=-1,o=-1;for(o=0;o<n.length;o++){if(s=parseInt(n[o].replace(/[^\d.]/g,"")),(a=parseInt(i[o].replace(/[^\d.]/g,"")||0))<s)return!1;if(a>s)return!0}return!0},Deferred:function(){this.promise=null,this.resolve=null,this.reject=null,this.id=i.randomHex()},isEmptyObject:function(t){var e="";if("function"==typeof Object.keys)return 0===Object.keys(t).length;for(e in t)if(t.hasOwnProperty(e))return!1;return!0},getClassname:function(t,e,n){var i="";return(i+=t.block).length&&(i+=t.delineatorElement),i+=t["element"+this.pascalCase(e)],n?(i.length&&(i+=t.delineatorModifier),i+=n):i},getProperty:function(t,e){var n,i=e.split("."),s="",a=0;if(!e)return t;for(n=function(t){return t?t[s]:null};a<i.length;)s=i[a],t=n(t),a++;return void 0!==t?t:null}},n.h=i,n.Base=function(){},n.Base.prototype={constructor:n.Base,callActions:function(t,e){var n=this.constructor.actions[t],s="";if(n&&!i.isEmptyObject(n))for(s in n)n[s].apply(this,e)},callFilters:function(t,e,n){var s=this.constructor.filters[t],a=e,o="";if(!s||i.isEmptyObject(s))return a;for(o in n=n||[],s)(n=i.arrayFromList(n)).unshift(a),a=s[o].apply(this,n);return a}},n.BaseStatic=function(){this.actions={},this.filters={},this.extend=function(t){i.extend(this.prototype,t)},this.registerAction=function(t,e,n){(this.actions[t]=this.actions[t]||{})[e]=n},this.registerFilter=function(t,e,n){(this.filters[t]=this.filters[t]||{})[e]=n}},n.Features=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.boxSizingPrefix="",this.transformPrefix="",this.transitionPrefix="",this.boxSizingPrefix="",this.transformProp="",this.transformRule="",this.transitionProp="",this.perspectiveProp="",this.perspectiveOriginProp="",this.has=new n.Has,this.canary=null,this.BOX_SIZING_PROP="boxSizing",this.TRANSITION_PROP="transition",this.TRANSFORM_PROP="transform",this.PERSPECTIVE_PROP="perspective",this.PERSPECTIVE_ORIGIN_PROP="perspectiveOrigin",this.VENDORS=["Webkit","moz","O","ms"],this.TWEENABLE=["opacity","width","height","marginRight","marginBottom","x","y","scale","translateX","translateY","translateZ","rotateX","rotateY","rotateZ"],this.callActions("afterConstruct")},n.BaseStatic.call(n.Features),n.Features.prototype=Object.create(n.Base.prototype),i.extend(n.Features.prototype,{constructor:n.Features,init:function(){this.callActions("beforeInit",arguments),this.canary=document.createElement("div"),this.setPrefixes(),this.runTests(),this.callActions("beforeInit",arguments)},runTests:function(){this.callActions("beforeRunTests",arguments),this.has.promises="function"==typeof e.Promise,this.has.transitions="unsupported"!==this.transitionPrefix,this.callActions("afterRunTests",arguments),i.freeze(this.has)},setPrefixes:function(){this.callActions("beforeSetPrefixes",arguments),this.transitionPrefix=i.getPrefix(this.canary,"Transition",this.VENDORS),this.transformPrefix=i.getPrefix(this.canary,"Transform",this.VENDORS),this.boxSizingPrefix=i.getPrefix(this.canary,"BoxSizing",this.VENDORS),this.boxSizingProp=this.boxSizingPrefix?this.boxSizingPrefix+i.pascalCase(this.BOX_SIZING_PROP):this.BOX_SIZING_PROP,this.transitionProp=this.transitionPrefix?this.transitionPrefix+i.pascalCase(this.TRANSITION_PROP):this.TRANSITION_PROP,this.transformProp=this.transformPrefix?this.transformPrefix+i.pascalCase(this.TRANSFORM_PROP):this.TRANSFORM_PROP,this.transformRule=this.transformPrefix?"-"+this.transformPrefix+"-"+this.TRANSFORM_PROP:this.TRANSFORM_PROP,this.perspectiveProp=this.transformPrefix?this.transformPrefix+i.pascalCase(this.PERSPECTIVE_PROP):this.PERSPECTIVE_PROP,this.perspectiveOriginProp=this.transformPrefix?this.transformPrefix+i.pascalCase(this.PERSPECTIVE_ORIGIN_PROP):this.PERSPECTIVE_ORIGIN_PROP,this.callActions("afterSetPrefixes",arguments)}}),n.Has=function(){this.transitions=!1,this.promises=!1,i.seal(this)},n.features=new n.Features,n.features.init(),n.ConfigAnimation=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.enable=!0,this.effects="fade scale",this.effectsIn="",this.effectsOut="",this.duration=600,this.easing="ease",this.applyPerspective=!0,this.perspectiveDistance="3000px",this.perspectiveOrigin="50% 50%",this.queue=!0,this.queueLimit=3,this.animateResizeContainer=!0,this.animateResizeTargets=!1,this.staggerSequence=null,this.reverseOut=!1,this.nudge=!0,this.clampHeight=!0,this.clampWidth=!0,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.ConfigAnimation),n.ConfigAnimation.prototype=Object.create(n.Base.prototype),n.ConfigAnimation.prototype.constructor=n.ConfigAnimation,n.ConfigBehavior=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.liveSort=!1,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.ConfigBehavior),n.ConfigBehavior.prototype=Object.create(n.Base.prototype),n.ConfigBehavior.prototype.constructor=n.ConfigBehavior,n.ConfigCallbacks=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.onMixStart=null,this.onMixBusy=null,this.onMixEnd=null,this.onMixFail=null,this.onMixClick=null,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.ConfigCallbacks),n.ConfigCallbacks.prototype=Object.create(n.Base.prototype),n.ConfigCallbacks.prototype.constructor=n.ConfigCallbacks,n.ConfigControls=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.enable=!0,this.live=!1,this.scope="global",this.toggleLogic="or",this.toggleDefault="all",this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.ConfigControls),n.ConfigControls.prototype=Object.create(n.Base.prototype),n.ConfigControls.prototype.constructor=n.ConfigControls,n.ConfigClassNames=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.block="mixitup",this.elementContainer="container",this.elementFilter="control",this.elementSort="control",this.elementMultimix="control",this.elementToggle="control",this.modifierActive="active",this.modifierDisabled="disabled",this.modifierFailed="failed",this.delineatorElement="-",this.delineatorModifier="-",this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.ConfigClassNames),n.ConfigClassNames.prototype=Object.create(n.Base.prototype),n.ConfigClassNames.prototype.constructor=n.ConfigClassNames,n.ConfigData=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.uidKey="",this.dirtyCheck=!1,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.ConfigData),n.ConfigData.prototype=Object.create(n.Base.prototype),n.ConfigData.prototype.constructor=n.ConfigData,n.ConfigDebug=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.enable=!1,this.showWarnings=!0,this.fauxAsync=!1,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.ConfigDebug),n.ConfigDebug.prototype=Object.create(n.Base.prototype),n.ConfigDebug.prototype.constructor=n.ConfigDebug,n.ConfigLayout=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.allowNestedTargets=!0,this.containerClassName="",this.siblingBefore=null,this.siblingAfter=null,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.ConfigLayout),n.ConfigLayout.prototype=Object.create(n.Base.prototype),n.ConfigLayout.prototype.constructor=n.ConfigLayout,n.ConfigLoad=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.filter="all",this.sort="default:asc",this.dataset=null,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.ConfigLoad),n.ConfigLoad.prototype=Object.create(n.Base.prototype),n.ConfigLoad.prototype.constructor=n.ConfigLoad,n.ConfigSelectors=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.target=".mix",this.control="",this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.ConfigSelectors),n.ConfigSelectors.prototype=Object.create(n.Base.prototype),n.ConfigSelectors.prototype.constructor=n.ConfigSelectors,n.ConfigRender=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.target=null,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.ConfigRender),n.ConfigRender.prototype=Object.create(n.Base.prototype),n.ConfigRender.prototype.constructor=n.ConfigRender,n.ConfigTemplates=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.ConfigTemplates),n.ConfigTemplates.prototype=Object.create(n.Base.prototype),n.ConfigTemplates.prototype.constructor=n.ConfigTemplates,n.Config=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.animation=new n.ConfigAnimation,this.behavior=new n.ConfigBehavior,this.callbacks=new n.ConfigCallbacks,this.controls=new n.ConfigControls,this.classNames=new n.ConfigClassNames,this.data=new n.ConfigData,this.debug=new n.ConfigDebug,this.layout=new n.ConfigLayout,this.load=new n.ConfigLoad,this.selectors=new n.ConfigSelectors,this.render=new n.ConfigRender,this.templates=new n.ConfigTemplates,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.Config),n.Config.prototype=Object.create(n.Base.prototype),n.Config.prototype.constructor=n.Config,n.MixerDom=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.document=null,this.body=null,this.container=null,this.parent=null,this.targets=[],this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.MixerDom),n.MixerDom.prototype=Object.create(n.Base.prototype),n.MixerDom.prototype.constructor=n.MixerDom,n.UiClassNames=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.base="",this.active="",this.disabled="",this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.UiClassNames),n.UiClassNames.prototype=Object.create(n.Base.prototype),n.UiClassNames.prototype.constructor=n.UiClassNames,n.CommandDataset=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.dataset=null,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.CommandDataset),n.CommandDataset.prototype=Object.create(n.Base.prototype),n.CommandDataset.prototype.constructor=n.CommandDataset,n.CommandMultimix=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.filter=null,this.sort=null,this.insert=null,this.remove=null,this.changeLayout=null,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.CommandMultimix),n.CommandMultimix.prototype=Object.create(n.Base.prototype),n.CommandMultimix.prototype.constructor=n.CommandMultimix,n.CommandFilter=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.selector="",this.collection=null,this.action="show",this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.CommandFilter),n.CommandFilter.prototype=Object.create(n.Base.prototype),n.CommandFilter.prototype.constructor=n.CommandFilter,n.CommandSort=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.sortString="",this.attribute="",this.order="asc",this.collection=null,this.next=null,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.CommandSort),n.CommandSort.prototype=Object.create(n.Base.prototype),n.CommandSort.prototype.constructor=n.CommandSort,n.CommandInsert=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.index=0,this.collection=[],this.position="before",this.sibling=null,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.CommandInsert),n.CommandInsert.prototype=Object.create(n.Base.prototype),n.CommandInsert.prototype.constructor=n.CommandInsert,n.CommandRemove=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.targets=[],this.collection=[],this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.CommandRemove),n.CommandRemove.prototype=Object.create(n.Base.prototype),n.CommandRemove.prototype.constructor=n.CommandRemove,n.CommandChangeLayout=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.containerClassName="",this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.CommandChangeLayout),n.CommandChangeLayout.prototype=Object.create(n.Base.prototype),n.CommandChangeLayout.prototype.constructor=n.CommandChangeLayout,n.ControlDefinition=function(t,e,s,a){n.Base.call(this),this.callActions("beforeConstruct"),this.type=t,this.selector=e,this.live=s||!1,this.parent=a||"",this.callActions("afterConstruct"),i.freeze(this),i.seal(this)},n.BaseStatic.call(n.ControlDefinition),n.ControlDefinition.prototype=Object.create(n.Base.prototype),n.ControlDefinition.prototype.constructor=n.ControlDefinition,n.controlDefinitions=[],n.controlDefinitions.push(new n.ControlDefinition("multimix","[data-filter][data-sort]")),n.controlDefinitions.push(new n.ControlDefinition("filter","[data-filter]")),n.controlDefinitions.push(new n.ControlDefinition("sort","[data-sort]")),n.controlDefinitions.push(new n.ControlDefinition("toggle","[data-toggle]")),n.Control=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.el=null,this.selector="",this.bound=[],this.pending=-1,this.type="",this.status="inactive",this.filter="",this.sort="",this.canDisable=!1,this.handler=null,this.classNames=new n.UiClassNames,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.Control),n.Control.prototype=Object.create(n.Base.prototype),i.extend(n.Control.prototype,{constructor:n.Control,init:function(t,e,i){if(this.callActions("beforeInit",arguments),this.el=t,this.type=e,this.selector=i,this.selector)this.status="live";else switch(this.canDisable="boolean"==typeof this.el.disable,this.type){case"filter":this.filter=this.el.getAttribute("data-filter");break;case"toggle":this.filter=this.el.getAttribute("data-toggle");break;case"sort":this.sort=this.el.getAttribute("data-sort");break;case"multimix":this.filter=this.el.getAttribute("data-filter"),this.sort=this.el.getAttribute("data-sort")}this.bindClick(),n.controls.push(this),this.callActions("afterInit",arguments)},isBound:function(t){var e;return this.callActions("beforeIsBound",arguments),e=this.bound.indexOf(t)>-1,this.callFilters("afterIsBound",e,arguments)},addBinding:function(t){this.callActions("beforeAddBinding",arguments),this.isBound()||this.bound.push(t),this.callActions("afterAddBinding",arguments)},removeBinding:function(t){var e=-1;this.callActions("beforeRemoveBinding",arguments),(e=this.bound.indexOf(t))>-1&&this.bound.splice(e,1),this.bound.length<1&&(this.unbindClick(),e=n.controls.indexOf(this),n.controls.splice(e,1),"active"===this.status&&this.renderStatus(this.el,"inactive")),this.callActions("afterRemoveBinding",arguments)},bindClick:function(){var t=this;this.callActions("beforeBindClick",arguments),t.handler=function(e){t.handleClick(e)},i.on(t.el,"click",t.handler),this.callActions("afterBindClick",arguments)},unbindClick:function(){this.callActions("beforeUnbindClick",arguments),i.off(this.el,"click",this.handler),this.handler=null,this.callActions("afterUnbindClick",arguments)},handleClick:function(t){var e=null,s=null,a=!1,o={},r=null,l=[],c=-1;if(this.callActions("beforeHandleClick",arguments),this.pending=0,s=this.bound[0],e=this.selector?i.closestParent(t.target,s.config.selectors.control+this.selector,!0,s.dom.document):this.el){switch(this.type){case"filter":o.filter=this.filter||e.getAttribute("data-filter");break;case"sort":o.sort=this.sort||e.getAttribute("data-sort");break;case"multimix":o.filter=this.filter||e.getAttribute("data-filter"),o.sort=this.sort||e.getAttribute("data-sort");break;case"toggle":o.filter=this.filter||e.getAttribute("data-toggle"),a="live"===this.status?i.hasClass(e,this.classNames.active):"active"===this.status}for(c=0;c<this.bound.length;c++)r=new n.CommandMultimix,i.extend(r,o),l.push(r);for(l=this.callFilters("commandsHandleClick",l,arguments),this.pending=this.bound.length,c=0;s=this.bound[c];c++)(o=l[c])&&(s.lastClicked||(s.lastClicked=e),n.events.fire("mixClick",s.dom.container,{state:s.state,instance:s,originalEvent:t,control:s.lastClicked},s.dom.document),"function"==typeof s.config.callbacks.onMixClick&&!1===s.config.callbacks.onMixClick.call(s.lastClicked,s.state,t,s)||("toggle"===this.type?a?s.toggleOff(o.filter):s.toggleOn(o.filter):s.multimix(o)));this.callActions("afterHandleClick",arguments)}else this.callActions("afterHandleClick",arguments)},update:function(t,e){var i=new n.CommandMultimix;this.callActions("beforeUpdate",arguments),this.pending--,this.pending=Math.max(0,this.pending),this.pending>0||("live"===this.status?this.updateLive(t,e):(i.sort=this.sort,i.filter=this.filter,this.callFilters("actionsUpdate",i,arguments),this.parseStatusChange(this.el,t,i,e)),this.callActions("afterUpdate",arguments))},updateLive:function(t,e){var i,s=null,a=null,o=-1;if(this.callActions("beforeUpdateLive",arguments),this.el){for(i=this.el.querySelectorAll(this.selector),o=0;a=i[o];o++){switch(s=new n.CommandMultimix,this.type){case"filter":s.filter=a.getAttribute("data-filter");break;case"sort":s.sort=a.getAttribute("data-sort");break;case"multimix":s.filter=a.getAttribute("data-filter"),s.sort=a.getAttribute("data-sort");break;case"toggle":s.filter=a.getAttribute("data-toggle")}s=this.callFilters("actionsUpdateLive",s,arguments),this.parseStatusChange(a,t,s,e)}this.callActions("afterUpdateLive",arguments)}},parseStatusChange:function(t,e,n,i){var s="",a=-1;switch(this.callActions("beforeParseStatusChange",arguments),this.type){case"filter":e.filter===n.filter?this.renderStatus(t,"active"):this.renderStatus(t,"inactive");break;case"multimix":e.sort===n.sort&&e.filter===n.filter?this.renderStatus(t,"active"):this.renderStatus(t,"inactive");break;case"sort":e.sort.match(/:asc/g)&&(s=e.sort.replace(/:asc/g,"")),e.sort===n.sort||s===n.sort?this.renderStatus(t,"active"):this.renderStatus(t,"inactive");break;case"toggle":for(i.length<1&&this.renderStatus(t,"inactive"),e.filter===n.filter&&this.renderStatus(t,"active"),a=0;a<i.length;a++){if(i[a]===n.filter){this.renderStatus(t,"active");break}this.renderStatus(t,"inactive")}}this.callActions("afterParseStatusChange",arguments)},renderStatus:function(t,e){switch(this.callActions("beforeRenderStatus",arguments),e){case"active":i.addClass(t,this.classNames.active),i.removeClass(t,this.classNames.disabled),this.canDisable&&(this.el.disabled=!1);break;case"inactive":i.removeClass(t,this.classNames.active),i.removeClass(t,this.classNames.disabled),this.canDisable&&(this.el.disabled=!1);break;case"disabled":this.canDisable&&(this.el.disabled=!0),i.addClass(t,this.classNames.disabled),i.removeClass(t,this.classNames.active)}"live"!==this.status&&(this.status=e),this.callActions("afterRenderStatus",arguments)}}),n.controls=[],n.StyleData=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.x=0,this.y=0,this.top=0,this.right=0,this.bottom=0,this.left=0,this.width=0,this.height=0,this.marginRight=0,this.marginBottom=0,this.opacity=0,this.scale=new n.TransformData,this.translateX=new n.TransformData,this.translateY=new n.TransformData,this.translateZ=new n.TransformData,this.rotateX=new n.TransformData,this.rotateY=new n.TransformData,this.rotateZ=new n.TransformData,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.StyleData),n.StyleData.prototype=Object.create(n.Base.prototype),n.StyleData.prototype.constructor=n.StyleData,n.TransformData=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.value=0,this.unit="",this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.TransformData),n.TransformData.prototype=Object.create(n.Base.prototype),n.TransformData.prototype.constructor=n.TransformData,n.TransformDefaults=function(){n.StyleData.apply(this),this.callActions("beforeConstruct"),this.scale.value=.01,this.scale.unit="",this.translateX.value=20,this.translateX.unit="px",this.translateY.value=20,this.translateY.unit="px",this.translateZ.value=20,this.translateZ.unit="px",this.rotateX.value=90,this.rotateX.unit="deg",this.rotateY.value=90,this.rotateY.unit="deg",this.rotateX.value=90,this.rotateX.unit="deg",this.rotateZ.value=180,this.rotateZ.unit="deg",this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.TransformDefaults),n.TransformDefaults.prototype=Object.create(n.StyleData.prototype),n.TransformDefaults.prototype.constructor=n.TransformDefaults,n.transformDefaults=new n.TransformDefaults,n.EventDetail=function(){this.state=null,this.futureState=null,this.instance=null,this.originalEvent=null},n.Events=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.mixStart=null,this.mixBusy=null,this.mixEnd=null,this.mixFail=null,this.mixClick=null,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.Events),n.Events.prototype=Object.create(n.Base.prototype),n.Events.prototype.constructor=n.Events,n.Events.prototype.fire=function(t,e,s,a){var o,r=new n.EventDetail;if(this.callActions("beforeFire",arguments),void 0===this[t])throw new Error('Event type "'+t+'" not found.');r.state=new n.State,i.extend(r.state,s.state),s.futureState&&(r.futureState=new n.State,i.extend(r.futureState,s.futureState)),r.instance=s.instance,s.originalEvent&&(r.originalEvent=s.originalEvent),o=i.getCustomEvent(t,r,a),this.callFilters("eventFire",o,arguments),e.dispatchEvent(o)},n.events=new n.Events,n.QueueItem=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.args=[],this.instruction=null,this.triggerElement=null,this.deferred=null,this.isToggling=!1,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.QueueItem),n.QueueItem.prototype=Object.create(n.Base.prototype),n.QueueItem.prototype.constructor=n.QueueItem,n.Mixer=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.config=new n.Config,this.id="",this.isBusy=!1,this.isToggling=!1,this.incPadding=!0,this.controls=[],this.targets=[],this.origOrder=[],this.cache={},this.toggleArray=[],this.targetsMoved=0,this.targetsImmovable=0,this.targetsBound=0,this.targetsDone=0,this.staggerDuration=0,this.effectsIn=null,this.effectsOut=null,this.transformIn=[],this.transformOut=[],this.queue=[],this.state=null,this.lastOperation=null,this.lastClicked=null,this.userCallback=null,this.userDeferred=null,this.dom=new n.MixerDom,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.Mixer),n.Mixer.prototype=Object.create(n.Base.prototype),i.extend(n.Mixer.prototype,{constructor:n.Mixer,attach:function(t,s,a,o){var r=null,l=-1;for(this.callActions("beforeAttach",arguments),this.id=a,o&&i.extend(this.config,o,!0,!0),this.sanitizeConfig(),this.cacheDom(t,s),this.config.layout.containerClassName&&i.addClass(this.dom.container,this.config.layout.containerClassName),n.features.has.transitions||(this.config.animation.enable=!1),void 0===e.console&&(this.config.debug.showWarnings=!1),this.config.data.uidKey&&(this.config.controls.enable=!1),this.indexTargets(),this.state=this.getInitialState(),l=0;r=this.lastOperation.toHide[l];l++)r.hide();this.config.controls.enable&&(this.initControls(),this.buildToggleArray(null,this.state),this.updateControls({filter:this.state.activeFilter,sort:this.state.activeSort})),this.parseEffects(),this.callActions("afterAttach",arguments)},sanitizeConfig:function(){this.callActions("beforeSanitizeConfig",arguments),this.config.controls.scope=this.config.controls.scope.toLowerCase().trim(),this.config.controls.toggleLogic=this.config.controls.toggleLogic.toLowerCase().trim(),this.config.controls.toggleDefault=this.config.controls.toggleDefault.toLowerCase().trim(),this.config.animation.effects=this.config.animation.effects.trim(),this.callActions("afterSanitizeConfig",arguments)},getInitialState:function(){var t=new n.State,e=new n.Operation;if(this.callActions("beforeGetInitialState",arguments),t.activeContainerClassName=this.config.layout.containerClassName,this.config.load.dataset){if(!this.config.data.uidKey||"string"!=typeof this.config.data.uidKey)throw new TypeError(n.messages.errorConfigDataUidKeyNotSet());e.startDataset=e.newDataset=t.activeDataset=this.config.load.dataset.slice(),e.startContainerClassName=e.newContainerClassName=t.activeContainerClassName,e.show=this.targets.slice(),t=this.callFilters("stateGetInitialState",t,arguments)}else t.activeFilter=this.parseFilterArgs([this.config.load.filter]).command,t.activeSort=this.parseSortArgs([this.config.load.sort]).command,t.totalTargets=this.targets.length,(t=this.callFilters("stateGetInitialState",t,arguments)).activeSort.collection||t.activeSort.attribute||"random"===t.activeSort.order||"desc"===t.activeSort.order?(e.newSort=t.activeSort,this.sortOperation(e),this.printSort(!1,e),this.targets=e.newOrder):e.startOrder=e.newOrder=this.targets,e.startFilter=e.newFilter=t.activeFilter,e.startSort=e.newSort=t.activeSort,e.startContainerClassName=e.newContainerClassName=t.activeContainerClassName,"all"===e.newFilter.selector?e.newFilter.selector=this.config.selectors.target:"none"===e.newFilter.selector&&(e.newFilter.selector="");return e=this.callFilters("operationGetInitialState",e,[t]),this.lastOperation=e,e.newFilter&&this.filterOperation(e),t=this.buildState(e)},cacheDom:function(t,e){this.callActions("beforeCacheDom",arguments),this.dom.document=e,this.dom.body=this.dom.document.querySelector("body"),this.dom.container=t,this.dom.parent=t,this.callActions("afterCacheDom",arguments)},indexTargets:function(){var t,e=null,s=null,a=-1;if(this.callActions("beforeIndexTargets",arguments),this.dom.targets=this.config.layout.allowNestedTargets?this.dom.container.querySelectorAll(this.config.selectors.target):i.children(this.dom.container,this.config.selectors.target,this.dom.document),this.dom.targets=i.arrayFromList(this.dom.targets),this.targets=[],(t=this.config.load.dataset)&&t.length!==this.dom.targets.length)throw new Error(n.messages.errorDatasetPrerenderedMismatch());if(this.dom.targets.length){for(a=0;s=this.dom.targets[a];a++)(e=new n.Target).init(s,this,t?t[a]:void 0),e.isInDom=!0,this.targets.push(e);this.dom.parent=this.dom.targets[0].parentElement===this.dom.container?this.dom.container:this.dom.targets[0].parentElement}this.origOrder=this.targets,this.callActions("afterIndexTargets",arguments)},initControls:function(){var t="",e=null,i=null,s=null,a=null,o=null,r=-1,l=-1;switch(this.callActions("beforeInitControls",arguments),this.config.controls.scope){case"local":s=this.dom.container;break;case"global":s=this.dom.document;break;default:throw new Error(n.messages.errorConfigInvalidControlsScope())}for(r=0;t=n.controlDefinitions[r];r++)if(this.config.controls.live||t.live){if(t.parent){if(!(a=this.dom[t.parent])||a.length<0)continue;"number"!=typeof a.length&&(a=[a])}else a=[s];for(l=0;i=a[l];l++)o=this.getControl(i,t.type,t.selector),this.controls.push(o)}else for(e=s.querySelectorAll(this.config.selectors.control+t.selector),l=0;i=e[l];l++)(o=this.getControl(i,t.type,""))&&this.controls.push(o);this.callActions("afterInitControls",arguments)},getControl:function(t,e,s){var a=null,o=-1;if(this.callActions("beforeGetControl",arguments),!s)for(o=0;a=n.controls[o];o++){if(a.el===t&&a.isBound(this))return this.callFilters("controlGetControl",null,arguments);if(a.el===t&&a.type===e&&a.selector===s)return a.addBinding(this),this.callFilters("controlGetControl",a,arguments)}return(a=new n.Control).init(t,e,s),a.classNames.base=i.getClassname(this.config.classNames,e),a.classNames.active=i.getClassname(this.config.classNames,e,this.config.classNames.modifierActive),a.classNames.disabled=i.getClassname(this.config.classNames,e,this.config.classNames.modifierDisabled),a.addBinding(this),this.callFilters("controlGetControl",a,arguments)},getToggleSelector:function(){var t="or"===this.config.controls.toggleLogic?", ":"",e="";return this.callActions("beforeGetToggleSelector",arguments),this.toggleArray=i.clean(this.toggleArray),""===(e=this.toggleArray.join(t))&&(e=this.config.controls.toggleDefault),this.callFilters("selectorGetToggleSelector",e,arguments)},buildToggleArray:function(t,e){var n="";if(this.callActions("beforeBuildToggleArray",arguments),t&&t.filter)n=t.filter.selector.replace(/\s/g,"");else{if(!e)return;n=e.activeFilter.selector.replace(/\s/g,"")}n!==this.config.selectors.target&&"all"!==n||(n=""),"or"===this.config.controls.toggleLogic?this.toggleArray=n.split(","):this.toggleArray=this.splitCompoundSelector(n),this.toggleArray=i.clean(this.toggleArray),this.callActions("afterBuildToggleArray",arguments)},splitCompoundSelector:function(t){var e=t.split(/([\.\[])/g),n=[],i="",s=-1;for(""===e[0]&&e.shift(),s=0;s<e.length;s++)s%2==0&&(i=""),i+=e[s],s%2!=0&&n.push(i);return n},updateControls:function(t){var e=null,s=new n.CommandMultimix,a=-1;for(this.callActions("beforeUpdateControls",arguments),t.filter?s.filter=t.filter.selector:s.filter=this.state.activeFilter.selector,t.sort?s.sort=this.buildSortString(t.sort):s.sort=this.buildSortString(this.state.activeSort),s.filter===this.config.selectors.target&&(s.filter="all"),""===s.filter&&(s.filter="none"),i.freeze(s),a=0;e=this.controls[a];a++)e.update(s,this.toggleArray);this.callActions("afterUpdateControls",arguments)},buildSortString:function(t){var e="";return e+=t.sortString,t.next&&(e+=" "+this.buildSortString(t.next)),e},insertTargets:function(t,e){var s,a=-1,o=null,r=null,l=null,c=-1;if(this.callActions("beforeInsertTargets",arguments),void 0===t.index&&(t.index=0),s=this.getNextSibling(t.index,t.sibling,t.position),o=this.dom.document.createDocumentFragment(),a=s?i.index(s,this.config.selectors.target):this.targets.length,t.collection){for(c=0;l=t.collection[c];c++){if(this.dom.targets.indexOf(l)>-1)throw new Error(n.messages.errorInsertPreexistingElement());l.style.display="none",o.appendChild(l),o.appendChild(this.dom.document.createTextNode(" ")),i.isElement(l,this.dom.document)&&l.matches(this.config.selectors.target)&&((r=new n.Target).init(l,this),r.isInDom=!0,this.targets.splice(a,0,r),a++)}this.dom.parent.insertBefore(o,s)}e.startOrder=this.origOrder=this.targets,this.callActions("afterInsertTargets",arguments)},getNextSibling:function(t,e,n){var i=null;return t=Math.max(t,0),e&&"before"===n?i=e:e&&"after"===n?i=e.nextElementSibling||null:this.targets.length>0&&void 0!==t?i=t<this.targets.length||!this.targets.length?this.targets[t].dom.el:this.targets[this.targets.length-1].dom.el.nextElementSibling:0===this.targets.length&&this.dom.parent.children.length>0&&(this.config.layout.siblingAfter?i=this.config.layout.siblingAfter:this.config.layout.siblingBefore?i=this.config.layout.siblingBefore.nextElementSibling:this.dom.parent.children[0]),this.callFilters("elementGetNextSibling",i,arguments)},filterOperation:function(t){var e,n=!1,i=-1,s=null,a=-1;for(this.callActions("beforeFilterOperation",arguments),e=t.newFilter.action,a=0;s=t.newOrder[a];a++)n=t.newFilter.collection?t.newFilter.collection.indexOf(s.dom.el)>-1:""!==t.newFilter.selector&&s.dom.el.matches(t.newFilter.selector),this.evaluateHideShow(n,s,e,t);if(t.toRemove.length)for(a=0;s=t.show[a];a++)t.toRemove.indexOf(s)>-1&&(t.show.splice(a,1),(i=t.toShow.indexOf(s))>-1&&t.toShow.splice(i,1),t.toHide.push(s),t.hide.push(s),a--);t.matching=t.show.slice(),0===t.show.length&&""!==t.newFilter.selector&&0!==this.targets.length&&(t.hasFailed=!0),this.callActions("afterFilterOperation",arguments)},evaluateHideShow:function(t,e,n,i){var s,a=Array.prototype.slice.call(arguments,1);s=this.callFilters("testResultEvaluateHideShow",t,a),this.callActions("beforeEvaluateHideShow",arguments),!0===s&&"show"===n||!1===s&&"hide"===n?(i.show.push(e),!e.isShown&&i.toShow.push(e)):(i.hide.push(e),e.isShown&&i.toHide.push(e)),this.callActions("afterEvaluateHideShow",arguments)},sortOperation:function(t){var e=this,s=[],a=null,o=null,r=-1;if(e.callActions("beforeSortOperation",arguments),t.startOrder=e.targets,t.newSort.collection){for(s=[],r=0;o=t.newSort.collection[r];r++){if(e.dom.targets.indexOf(o)<0)throw new Error(n.messages.errorSortNonExistentElement());(a=new n.Target).init(o,e),a.isInDom=!0,s.push(a)}t.newOrder=s}else"random"===t.newSort.order?t.newOrder=i.arrayShuffle(t.startOrder):""===t.newSort.attribute?(t.newOrder=e.origOrder.slice(),"desc"===t.newSort.order&&t.newOrder.reverse()):(t.newOrder=t.startOrder.slice(),t.newOrder.sort(function(n,i){return e.compare(n,i,t.newSort)}));i.isEqualArray(t.newOrder,t.startOrder)&&(t.willSort=!1),e.callActions("afterSortOperation",arguments)},compare:function(t,e,n){var i=n.order,s=this.getAttributeValue(t,n.attribute),a=this.getAttributeValue(e,n.attribute);return isNaN(1*s)||isNaN(1*a)?(s=s.toLowerCase(),a=a.toLowerCase()):(s*=1,a*=1),s<a?"asc"===i?-1:1:s>a?"asc"===i?1:-1:s===a&&n.next?this.compare(t,e,n.next):0},getAttributeValue:function(t,e){var i;return null===(i=t.dom.el.getAttribute("data-"+e))&&this.config.debug.showWarnings&&console.warn(n.messages.warningInconsistentSortingAttributes({attribute:"data-"+e})),this.callFilters("valueGetAttributeValue",i||0,arguments)},printSort:function(t,n){var s,a=t?n.newOrder:n.startOrder,o=t?n.startOrder:n.newOrder,r=a.length?a[a.length-1].dom.el.nextElementSibling:null,l=e.document.createDocumentFragment(),c=null,h=null,u=-1;for(this.callActions("beforePrintSort",arguments),u=0;c=a[u];u++)"absolute"!==(h=c.dom.el).style.position&&(i.removeWhitespace(h.previousSibling),h.parentElement.removeChild(h));for((s=r?r.previousSibling:this.dom.parent.lastChild)&&"#text"===s.nodeName&&i.removeWhitespace(s),u=0;c=o[u];u++)h=c.dom.el,i.isElement(l.lastChild)&&l.appendChild(e.document.createTextNode(" ")),l.appendChild(h);this.dom.parent.firstChild&&this.dom.parent.firstChild!==r&&l.insertBefore(e.document.createTextNode(" "),l.childNodes[0]),r?(l.appendChild(e.document.createTextNode(" ")),this.dom.parent.insertBefore(l,r)):this.dom.parent.appendChild(l),this.callActions("afterPrintSort",arguments)},parseSortString:function(t,e){var s=t.split(" "),a=e,o=[],r=-1;for(r=0;r<s.length;r++){switch(o=s[r].split(":"),a.sortString=s[r],a.attribute=i.dashCase(o[0]),a.order=o[1]||"asc",a.attribute){case"default":a.attribute="";break;case"random":a.attribute="",a.order="random"}if(!a.attribute||"random"===a.order)break;r<s.length-1&&(a.next=new n.CommandSort,i.freeze(a),a=a.next)}return this.callFilters("commandsParseSort",e,arguments)},parseEffects:function(){var t="",e=this.config.animation.effectsIn||this.config.animation.effects,i=this.config.animation.effectsOut||this.config.animation.effects;for(t in this.callActions("beforeParseEffects",arguments),this.effectsIn=new n.StyleData,this.effectsOut=new n.StyleData,this.transformIn=[],this.transformOut=[],this.effectsIn.opacity=this.effectsOut.opacity=1,this.parseEffect("fade",e,this.effectsIn,this.transformIn),this.parseEffect("fade",i,this.effectsOut,this.transformOut,!0),n.transformDefaults)n.transformDefaults[t]instanceof n.TransformData&&(this.parseEffect(t,e,this.effectsIn,this.transformIn),this.parseEffect(t,i,this.effectsOut,this.transformOut,!0));this.parseEffect("stagger",e,this.effectsIn,this.transformIn),this.parseEffect("stagger",i,this.effectsOut,this.transformOut,!0),this.callActions("afterParseEffects",arguments)},parseEffect:function(t,e,i,s,a){var o,r="",l="",c=["%","px","em","rem","vh","vw","deg"],h="",u=-1;if(this.callActions("beforeParseEffect",arguments),"string"!=typeof e)throw new TypeError(n.messages.errorConfigInvalidAnimationEffects());if(e.indexOf(t)<0)"stagger"===t&&(this.staggerDuration=0);else{switch((o=e.indexOf(t+"("))>-1&&(r=e.substring(o),l=/\(([^)]+)\)/.exec(r)[1]),t){case"fade":i.opacity=l?parseFloat(l):0;break;case"stagger":this.staggerDuration=l?parseFloat(l):100;break;default:if(a&&this.config.animation.reverseOut&&"scale"!==t?i[t].value=-1*(l?parseFloat(l):n.transformDefaults[t].value):i[t].value=l?parseFloat(l):n.transformDefaults[t].value,l){for(u=0;h=c[u];u++)if(l.indexOf(h)>-1){i[t].unit=h;break}}else i[t].unit=n.transformDefaults[t].unit;s.push(t+"("+i[t].value+i[t].unit+")")}this.callActions("afterParseEffect",arguments)}},buildState:function(t){var e=new n.State,i=null,s=-1;for(this.callActions("beforeBuildState",arguments),s=0;i=this.targets[s];s++)(!t.toRemove.length||t.toRemove.indexOf(i)<0)&&e.targets.push(i.dom.el);for(s=0;i=t.matching[s];s++)e.matching.push(i.dom.el);for(s=0;i=t.show[s];s++)e.show.push(i.dom.el);for(s=0;i=t.hide[s];s++)(!t.toRemove.length||t.toRemove.indexOf(i)<0)&&e.hide.push(i.dom.el);return e.id=this.id,e.container=this.dom.container,e.activeFilter=t.newFilter,e.activeSort=t.newSort,e.activeDataset=t.newDataset,e.activeContainerClassName=t.newContainerClassName,e.hasFailed=t.hasFailed,e.totalTargets=this.targets.length,e.totalShow=t.show.length,e.totalHide=t.hide.length,e.totalMatching=t.matching.length,e.triggerElement=t.triggerElement,this.callFilters("stateBuildState",e,arguments)},goMix:function(t,s){var a=this,o=null;return a.callActions("beforeGoMix",arguments),a.config.animation.duration&&a.config.animation.effects&&i.isVisible(a.dom.container)||(t=!1),s.toShow.length||s.toHide.length||s.willSort||s.willChangeLayout||(t=!1),s.startState.show.length||s.show.length||(t=!1),n.events.fire("mixStart",a.dom.container,{state:s.startState,futureState:s.newState,instance:a},a.dom.document),"function"==typeof a.config.callbacks.onMixStart&&a.config.callbacks.onMixStart.call(a.dom.container,s.startState,s.newState,a),i.removeClass(a.dom.container,i.getClassname(a.config.classNames,"container",a.config.classNames.modifierFailed)),o=a.userDeferred?a.userDeferred:a.userDeferred=i.defer(n.libraries),a.isBusy=!0,t&&n.features.has.transitions?(e.pageYOffset!==s.docState.scrollTop&&e.scrollTo(s.docState.scrollLeft,s.docState.scrollTop),a.config.animation.applyPerspective&&(a.dom.parent.style[n.features.perspectiveProp]=a.config.animation.perspectiveDistance,a.dom.parent.style[n.features.perspectiveOriginProp]=a.config.animation.perspectiveOrigin),a.config.animation.animateResizeContainer&&s.startHeight!==s.newHeight&&s.viewportDeltaY!==s.startHeight-s.newHeight&&(a.dom.parent.style.height=s.startHeight+"px"),a.config.animation.animateResizeContainer&&s.startWidth!==s.newWidth&&s.viewportDeltaX!==s.startWidth-s.newWidth&&(a.dom.parent.style.width=s.startWidth+"px"),s.startHeight===s.newHeight&&(a.dom.parent.style.height=s.startHeight+"px"),s.startWidth===s.newWidth&&(a.dom.parent.style.width=s.startWidth+"px"),s.startHeight===s.newHeight&&s.startWidth===s.newWidth&&(a.dom.parent.style.overflow="hidden"),requestAnimationFrame(function(){a.moveTargets(s)}),a.callFilters("promiseGoMix",o.promise,arguments)):(a.config.debug.fauxAsync?setTimeout(function(){a.cleanUp(s)},a.config.animation.duration):a.cleanUp(s),a.callFilters("promiseGoMix",o.promise,arguments))},getStartMixData:function(t){var i=e.getComputedStyle(this.dom.parent),s=this.dom.parent.getBoundingClientRect(),a=null,o={},r=-1,l=i[n.features.boxSizingProp];for(this.incPadding="border-box"===l,this.callActions("beforeGetStartMixData",arguments),r=0;a=t.show[r];r++)o=a.getPosData(),t.showPosData[r]={startPosData:o};for(r=0;a=t.toHide[r];r++)o=a.getPosData(),t.toHidePosData[r]={startPosData:o};t.startX=s.left,t.startY=s.top,t.startHeight=this.incPadding?s.height:s.height-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)-parseFloat(i.borderTop)-parseFloat(i.borderBottom),t.startWidth=this.incPadding?s.width:s.width-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight)-parseFloat(i.borderLeft)-parseFloat(i.borderRight),this.callActions("afterGetStartMixData",arguments)},setInter:function(t){var e=null,n=-1;for(this.callActions("beforeSetInter",arguments),this.config.animation.clampHeight&&(this.dom.parent.style.height=t.startHeight+"px",this.dom.parent.style.overflow="hidden"),this.config.animation.clampWidth&&(this.dom.parent.style.width=t.startWidth+"px",this.dom.parent.style.overflow="hidden"),n=0;e=t.toShow[n];n++)e.show();t.willChangeLayout&&(i.removeClass(this.dom.container,t.startContainerClassName),i.addClass(this.dom.container,t.newContainerClassName)),this.callActions("afterSetInter",arguments)},getInterMixData:function(t){var e=null,n=-1;for(this.callActions("beforeGetInterMixData",arguments),n=0;e=t.show[n];n++)t.showPosData[n].interPosData=e.getPosData();for(n=0;e=t.toHide[n];n++)t.toHidePosData[n].interPosData=e.getPosData();this.callActions("afterGetInterMixData",arguments)},setFinal:function(t){var e=null,n=-1;for(this.callActions("beforeSetFinal",arguments),t.willSort&&this.printSort(!1,t),n=0;e=t.toHide[n];n++)e.hide();this.callActions("afterSetFinal",arguments)},getFinalMixData:function(t){var n,s=null,a=null,o=-1;for(this.callActions("beforeGetFinalMixData",arguments),o=0;a=t.show[o];o++)t.showPosData[o].finalPosData=a.getPosData();for(o=0;a=t.toHide[o];o++)t.toHidePosData[o].finalPosData=a.getPosData();for((this.config.animation.clampHeight||this.config.animation.clampWidth)&&(this.dom.parent.style.height=this.dom.parent.style.width=this.dom.parent.style.overflow=""),this.incPadding||(s=e.getComputedStyle(this.dom.parent)),n=this.dom.parent.getBoundingClientRect(),t.newX=n.left,t.newY=n.top,t.newHeight=this.incPadding?n.height:n.height-parseFloat(s.paddingTop)-parseFloat(s.paddingBottom)-parseFloat(s.borderTop)-parseFloat(s.borderBottom),t.newWidth=this.incPadding?n.width:n.width-parseFloat(s.paddingLeft)-parseFloat(s.paddingRight)-parseFloat(s.borderLeft)-parseFloat(s.borderRight),t.viewportDeltaX=t.docState.viewportWidth-this.dom.document.documentElement.clientWidth,t.viewportDeltaY=t.docState.viewportHeight-this.dom.document.documentElement.clientHeight,t.willSort&&this.printSort(!0,t),o=0;a=t.toShow[o];o++)a.hide();for(o=0;a=t.toHide[o];o++)a.show();t.willChangeLayout&&(i.removeClass(this.dom.container,t.newContainerClassName),i.addClass(this.dom.container,this.config.layout.containerClassName)),this.callActions("afterGetFinalMixData",arguments)},getTweenData:function(t){var e=null,i=null,s=Object.getOwnPropertyNames(this.effectsIn),a="",o=null,r=-1,l=-1,c=-1,h=-1;for(this.callActions("beforeGetTweenData",arguments),c=0;e=t.show[c];c++)for((i=t.showPosData[c]).posIn=new n.StyleData,i.posOut=new n.StyleData,i.tweenData=new n.StyleData,e.isShown?(i.posIn.x=i.startPosData.x-i.interPosData.x,i.posIn.y=i.startPosData.y-i.interPosData.y):i.posIn.x=i.posIn.y=0,i.posOut.x=i.finalPosData.x-i.interPosData.x,i.posOut.y=i.finalPosData.y-i.interPosData.y,i.posIn.opacity=e.isShown?1:this.effectsIn.opacity,i.posOut.opacity=1,i.tweenData.opacity=i.posOut.opacity-i.posIn.opacity,e.isShown||this.config.animation.nudge||(i.posIn.x=i.posOut.x,i.posIn.y=i.posOut.y),i.tweenData.x=i.posOut.x-i.posIn.x,i.tweenData.y=i.posOut.y-i.posIn.y,this.config.animation.animateResizeTargets&&(i.posIn.width=i.startPosData.width,i.posIn.height=i.startPosData.height,r=(i.startPosData.width||i.finalPosData.width)-i.interPosData.width,i.posIn.marginRight=i.startPosData.marginRight-r,l=(i.startPosData.height||i.finalPosData.height)-i.interPosData.height,i.posIn.marginBottom=i.startPosData.marginBottom-l,i.posOut.width=i.finalPosData.width,i.posOut.height=i.finalPosData.height,r=(i.finalPosData.width||i.startPosData.width)-i.interPosData.width,i.posOut.marginRight=i.finalPosData.marginRight-r,l=(i.finalPosData.height||i.startPosData.height)-i.interPosData.height,i.posOut.marginBottom=i.finalPosData.marginBottom-l,i.tweenData.width=i.posOut.width-i.posIn.width,i.tweenData.height=i.posOut.height-i.posIn.height,i.tweenData.marginRight=i.posOut.marginRight-i.posIn.marginRight,i.tweenData.marginBottom=i.posOut.marginBottom-i.posIn.marginBottom),h=0;a=s[h];h++)(o=this.effectsIn[a])instanceof n.TransformData&&o.value&&(i.posIn[a].value=o.value,i.posOut[a].value=0,i.tweenData[a].value=i.posOut[a].value-i.posIn[a].value,i.posIn[a].unit=i.posOut[a].unit=i.tweenData[a].unit=o.unit);for(c=0;e=t.toHide[c];c++)for((i=t.toHidePosData[c]).posIn=new n.StyleData,i.posOut=new n.StyleData,i.tweenData=new n.StyleData,i.posIn.x=e.isShown?i.startPosData.x-i.interPosData.x:0,i.posIn.y=e.isShown?i.startPosData.y-i.interPosData.y:0,i.posOut.x=this.config.animation.nudge?0:i.posIn.x,i.posOut.y=this.config.animation.nudge?0:i.posIn.y,i.tweenData.x=i.posOut.x-i.posIn.x,i.tweenData.y=i.posOut.y-i.posIn.y,this.config.animation.animateResizeTargets&&(i.posIn.width=i.startPosData.width,i.posIn.height=i.startPosData.height,r=i.startPosData.width-i.interPosData.width,i.posIn.marginRight=i.startPosData.marginRight-r,l=i.startPosData.height-i.interPosData.height,i.posIn.marginBottom=i.startPosData.marginBottom-l),i.posIn.opacity=1,i.posOut.opacity=this.effectsOut.opacity,i.tweenData.opacity=i.posOut.opacity-i.posIn.opacity,h=0;a=s[h];h++)(o=this.effectsOut[a])instanceof n.TransformData&&o.value&&(i.posIn[a].value=0,i.posOut[a].value=o.value,i.tweenData[a].value=i.posOut[a].value-i.posIn[a].value,i.posIn[a].unit=i.posOut[a].unit=i.tweenData[a].unit=o.unit);this.callActions("afterGetTweenData",arguments)},moveTargets:function(t){var e=this,s=null,a=null,o=null,r="",l=!1,c=-1,h=-1,u=e.checkProgress.bind(e);for(e.callActions("beforeMoveTargets",arguments),h=0;s=t.show[h];h++)a=new n.IMoveData,o=t.showPosData[h],r=s.isShown?"none":"show",(l=e.willTransition(r,t.hasEffect,o.posIn,o.posOut))&&c++,s.show(),a.posIn=o.posIn,a.posOut=o.posOut,a.statusChange=r,a.staggerIndex=c,a.operation=t,a.callback=l?u:null,s.move(a);for(h=0;s=t.toHide[h];h++)o=t.toHidePosData[h],a=new n.IMoveData,r="hide",l=e.willTransition(r,o.posIn,o.posOut),a.posIn=o.posIn,a.posOut=o.posOut,a.statusChange=r,a.staggerIndex=h,a.operation=t,a.callback=l?u:null,s.move(a);e.config.animation.animateResizeContainer&&(e.dom.parent.style[n.features.transitionProp]="height "+e.config.animation.duration+"ms ease, width "+e.config.animation.duration+"ms ease ",requestAnimationFrame(function(){t.startHeight!==t.newHeight&&t.viewportDeltaY!==t.startHeight-t.newHeight&&(e.dom.parent.style.height=t.newHeight+"px"),t.startWidth!==t.newWidth&&t.viewportDeltaX!==t.startWidth-t.newWidth&&(e.dom.parent.style.width=t.newWidth+"px")})),t.willChangeLayout&&(i.removeClass(e.dom.container,e.config.layout.ContainerClassName),i.addClass(e.dom.container,t.newContainerClassName)),e.callActions("afterMoveTargets",arguments)},hasEffect:function(){var t=["scale","translateX","translateY","translateZ","rotateX","rotateY","rotateZ"],e="",n=null,i=!1,s=-1;if(1!==this.effectsIn.opacity)return this.callFilters("resultHasEffect",!0,arguments);for(s=0;e=t[s];s++)if(0!==("undefined"!==(n=this.effectsIn[e]).value?n.value:n)){i=!0;break}return this.callFilters("resultHasEffect",i,arguments)},willTransition:function(t,e,n,s){var a=!1;return a=!!i.isVisible(this.dom.container)&&(!!("none"!==t&&e||n.x!==s.x||n.y!==s.y)||!!this.config.animation.animateResizeTargets&&(n.width!==s.width||n.height!==s.height||n.marginRight!==s.marginRight||n.marginTop!==s.marginTop)),this.callFilters("resultWillTransition",a,arguments)},checkProgress:function(t){this.targetsDone++,this.targetsBound===this.targetsDone&&this.cleanUp(t)},cleanUp:function(t){var e=null,s=null,a=null,o=null,r=-1;for(this.callActions("beforeCleanUp",arguments),this.targetsMoved=this.targetsImmovable=this.targetsBound=this.targetsDone=0,r=0;e=t.show[r];r++)e.cleanUp(),e.show();for(r=0;e=t.toHide[r];r++)e.cleanUp(),e.hide();if(t.willSort&&this.printSort(!1,t),this.dom.parent.style[n.features.transitionProp]=this.dom.parent.style.height=this.dom.parent.style.width=this.dom.parent.style.overflow=this.dom.parent.style[n.features.perspectiveProp]=this.dom.parent.style[n.features.perspectiveOriginProp]="",t.willChangeLayout&&(i.removeClass(this.dom.container,t.startContainerClassName),i.addClass(this.dom.container,t.newContainerClassName)),t.toRemove.length){for(r=0;e=this.targets[r];r++)t.toRemove.indexOf(e)>-1&&((s=e.dom.el.previousSibling)&&"#text"===s.nodeName&&(a=e.dom.el.nextSibling)&&"#text"===a.nodeName&&i.removeWhitespace(s),t.willSort||this.dom.parent.removeChild(e.dom.el),this.targets.splice(r,1),e.isInDom=!1,r--);this.origOrder=this.targets}t.willSort&&(this.targets=t.newOrder),this.state=t.newState,this.lastOperation=t,this.dom.targets=this.state.targets,n.events.fire("mixEnd",this.dom.container,{state:this.state,instance:this},this.dom.document),"function"==typeof this.config.callbacks.onMixEnd&&this.config.callbacks.onMixEnd.call(this.dom.container,this.state,this),t.hasFailed&&(n.events.fire("mixFail",this.dom.container,{state:this.state,instance:this},this.dom.document),"function"==typeof this.config.callbacks.onMixFail&&this.config.callbacks.onMixFail.call(this.dom.container,this.state,this),i.addClass(this.dom.container,i.getClassname(this.config.classNames,"container",this.config.classNames.modifierFailed))),"function"==typeof this.userCallback&&this.userCallback.call(this.dom.container,this.state,this),"function"==typeof this.userDeferred.resolve&&this.userDeferred.resolve(this.state),this.userCallback=null,this.userDeferred=null,this.lastClicked=null,this.isToggling=!1,this.isBusy=!1,this.queue.length&&(this.callActions("beforeReadQueueCleanUp",arguments),o=this.queue.shift(),this.userDeferred=o.deferred,this.isToggling=o.isToggling,this.lastClicked=o.triggerElement,o.instruction.command instanceof n.CommandMultimix?this.multimix.apply(this,o.args):this.dataset.apply(this,o.args)),this.callActions("afterCleanUp",arguments)},parseMultimixArgs:function(t){var e=new n.UserInstruction,s=null,a=-1;for(e.animate=this.config.animation.enable,e.command=new n.CommandMultimix,a=0;a<t.length;a++)null!==(s=t[a])&&("object"==typeof s?i.extend(e.command,s):"boolean"==typeof s?e.animate=s:"function"==typeof s&&(e.callback=s));return!e.command.insert||e.command.insert instanceof n.CommandInsert||(e.command.insert=this.parseInsertArgs([e.command.insert]).command),!e.command.remove||e.command.remove instanceof n.CommandRemove||(e.command.remove=this.parseRemoveArgs([e.command.remove]).command),!e.command.filter||e.command.filter instanceof n.CommandFilter||(e.command.filter=this.parseFilterArgs([e.command.filter]).command),!e.command.sort||e.command.sort instanceof n.CommandSort||(e.command.sort=this.parseSortArgs([e.command.sort]).command),!e.command.changeLayout||e.command.changeLayout instanceof n.CommandChangeLayout||(e.command.changeLayout=this.parseChangeLayoutArgs([e.command.changeLayout]).command),e=this.callFilters("instructionParseMultimixArgs",e,arguments),i.freeze(e),e},parseFilterArgs:function(t){var e=new n.UserInstruction,s=null,a=-1;for(e.animate=this.config.animation.enable,e.command=new n.CommandFilter,a=0;a<t.length;a++)"string"==typeof(s=t[a])?e.command.selector=s:null===s?e.command.collection=[]:"object"==typeof s&&i.isElement(s,this.dom.document)?e.command.collection=[s]:"object"==typeof s&&void 0!==s.length?e.command.collection=i.arrayFromList(s):"object"==typeof s?i.extend(e.command,s):"boolean"==typeof s?e.animate=s:"function"==typeof s&&(e.callback=s);if(e.command.selector&&e.command.collection)throw new Error(n.messages.errorFilterInvalidArguments());return e=this.callFilters("instructionParseFilterArgs",e,arguments),i.freeze(e),e},parseSortArgs:function(t){var e=new n.UserInstruction,s=null,a="",o=-1;for(e.animate=this.config.animation.enable,e.command=new n.CommandSort,o=0;o<t.length;o++)if(null!==(s=t[o]))switch(typeof s){case"string":a=s;break;case"object":s.length&&(e.command.collection=i.arrayFromList(s));break;case"boolean":e.animate=s;break;case"function":e.callback=s}return a&&(e.command=this.parseSortString(a,e.command)),e=this.callFilters("instructionParseSortArgs",e,arguments),i.freeze(e),e},parseInsertArgs:function(t){var e=new n.UserInstruction,s=null,a=-1;for(e.animate=this.config.animation.enable,e.command=new n.CommandInsert,a=0;a<t.length;a++)null!==(s=t[a])&&("number"==typeof s?e.command.index=s:"string"==typeof s&&["before","after"].indexOf(s)>-1?e.command.position=s:"string"==typeof s?e.command.collection=i.arrayFromList(i.createElement(s).childNodes):"object"==typeof s&&i.isElement(s,this.dom.document)?e.command.collection.length?e.command.sibling=s:e.command.collection=[s]:"object"==typeof s&&s.length?e.command.collection.length?e.command.sibling=s[0]:e.command.collection=s:"object"==typeof s&&s.childNodes&&s.childNodes.length?e.command.collection.length?e.command.sibling=s.childNodes[0]:e.command.collection=i.arrayFromList(s.childNodes):"object"==typeof s?i.extend(e.command,s):"boolean"==typeof s?e.animate=s:"function"==typeof s&&(e.callback=s));if(e.command.index&&e.command.sibling)throw new Error(n.messages.errorInsertInvalidArguments());return!e.command.collection.length&&this.config.debug.showWarnings&&console.warn(n.messages.warningInsertNoElements()),e=this.callFilters("instructionParseInsertArgs",e,arguments),i.freeze(e),e},parseRemoveArgs:function(t){var e=new n.UserInstruction,s=null,a=null,o=-1;for(e.animate=this.config.animation.enable,e.command=new n.CommandRemove,o=0;o<t.length;o++)if(null!==(a=t[o]))switch(typeof a){case"number":this.targets[a]&&(e.command.targets[0]=this.targets[a]);break;case"string":e.command.collection=i.arrayFromList(this.dom.parent.querySelectorAll(a));break;case"object":a&&a.length?e.command.collection=a:i.isElement(a,this.dom.document)?e.command.collection=[a]:i.extend(e.command,a);break;case"boolean":e.animate=a;break;case"function":e.callback=a}if(e.command.collection.length)for(o=0;s=this.targets[o];o++)e.command.collection.indexOf(s.dom.el)>-1&&e.command.targets.push(s);return!e.command.targets.length&&this.config.debug.showWarnings&&console.warn(n.messages.warningRemoveNoElements()),i.freeze(e),e},parseDatasetArgs:function(t){var e=new n.UserInstruction,s=null,a=-1;for(e.animate=this.config.animation.enable,e.command=new n.CommandDataset,a=0;a<t.length;a++)if(null!==(s=t[a]))switch(typeof s){case"object":Array.isArray(s)||"number"==typeof s.length?e.command.dataset=s:i.extend(e.command,s);break;case"boolean":e.animate=s;break;case"function":e.callback=s}return i.freeze(e),e},parseChangeLayoutArgs:function(t){var e=new n.UserInstruction,s=null,a=-1;for(e.animate=this.config.animation.enable,e.command=new n.CommandChangeLayout,a=0;a<t.length;a++)if(null!==(s=t[a]))switch(typeof s){case"string":e.command.containerClassName=s;break;case"object":i.extend(e.command,s);break;case"boolean":e.animate=s;break;case"function":e.callback=s}return i.freeze(e),e},queueMix:function(t){var e=null,s="";return this.callActions("beforeQueueMix",arguments),e=i.defer(n.libraries),this.config.animation.queue&&this.queue.length<this.config.animation.queueLimit?(t.deferred=e,this.queue.push(t),this.config.controls.enable&&(this.isToggling?(this.buildToggleArray(t.instruction.command),s=this.getToggleSelector(),this.updateControls({filter:{selector:s}})):this.updateControls(t.instruction.command))):(this.config.debug.showWarnings&&console.warn(n.messages.warningMultimixInstanceQueueFull()),e.resolve(this.state),n.events.fire("mixBusy",this.dom.container,{state:this.state,instance:this},this.dom.document),"function"==typeof this.config.callbacks.onMixBusy&&this.config.callbacks.onMixBusy.call(this.dom.container,this.state,this)),this.callFilters("promiseQueueMix",e.promise,arguments)},getDataOperation:function(t){var e=new n.Operation,s=[];if(e=this.callFilters("operationUnmappedGetDataOperation",e,arguments),this.dom.targets.length&&!(s=this.state.activeDataset||[]).length)throw new Error(n.messages.errorDatasetNotSet());return e.id=i.randomHex(),e.startState=this.state,e.startDataset=s,e.newDataset=t.slice(),this.diffDatasets(e),e.startOrder=this.targets,e.newOrder=e.show,this.config.animation.enable&&(this.getStartMixData(e),this.setInter(e),e.docState=i.getDocumentState(this.dom.document),this.getInterMixData(e),this.setFinal(e),this.getFinalMixData(e),this.parseEffects(),e.hasEffect=this.hasEffect(),this.getTweenData(e)),this.targets=e.show.slice(),e.newState=this.buildState(e),Array.prototype.push.apply(this.targets,e.toRemove),e=this.callFilters("operationMappedGetDataOperation",e,arguments)},diffDatasets:function(t){var e=[],s=[],a=[],o=null,r=null,l=null,c=null,h=null,u={},d="",f=-1;for(this.callActions("beforeDiffDatasets",arguments),f=0;o=t.newDataset[f];f++){if(void 0===(d=o[this.config.data.uidKey])||d.toString().length<1)throw new TypeError(n.messages.errorDatasetInvalidUidKey({uidKey:this.config.data.uidKey}));if(u[d])throw new Error(n.messages.errorDatasetDuplicateUid({uid:d}));u[d]=!0,(r=this.cache[d])instanceof n.Target?(this.config.data.dirtyCheck&&!i.deepEquals(o,r.data)&&(l=r.render(o),r.data=o,l!==r.dom.el&&(r.isInDom&&(r.unbindEvents(),this.dom.parent.replaceChild(l,r.dom.el)),r.isShown||(l.style.display="none"),r.dom.el=l,r.isInDom&&r.bindEvents())),l=r.dom.el):((r=new n.Target).init(null,this,o),r.hide()),r.isInDom?(h=r.dom.el.nextElementSibling,s.push(d),c&&(c.lastElementChild&&c.appendChild(this.dom.document.createTextNode(" ")),this.insertDatasetFrag(c,r.dom.el,a),c=null)):(c||(c=this.dom.document.createDocumentFragment()),c.lastElementChild&&c.appendChild(this.dom.document.createTextNode(" ")),c.appendChild(r.dom.el),r.isInDom=!0,r.unbindEvents(),r.bindEvents(),r.hide(),t.toShow.push(r),a.push(r)),t.show.push(r)}for(c&&((h=h||this.config.layout.siblingAfter)&&c.appendChild(this.dom.document.createTextNode(" ")),this.insertDatasetFrag(c,h,a)),f=0;o=t.startDataset[f];f++)d=o[this.config.data.uidKey],r=this.cache[d],t.show.indexOf(r)<0?(t.hide.push(r),t.toHide.push(r),t.toRemove.push(r)):e.push(d);i.isEqualArray(e,s)||(t.willSort=!0),this.callActions("afterDiffDatasets",arguments)},insertDatasetFrag:function(t,e,n){var s=e?i.arrayFromList(this.dom.parent.children).indexOf(e):this.targets.length;for(this.dom.parent.insertBefore(t,e);n.length;)this.targets.splice(s,0,n.shift()),s++},willSort:function(t,e){var n=!1;return n=!!(this.config.behavior.liveSort||"random"===t.order||t.attribute!==e.attribute||t.order!==e.order||t.collection!==e.collection||null===t.next&&e.next||t.next&&null===e.next)||!(!t.next||!e.next)&&this.willSort(t.next,e.next),this.callFilters("resultWillSort",n,arguments)},show:function(){return this.filter("all")},hide:function(){return this.filter("none")},isMixing:function(){return this.isBusy},filter:function(){var t=this.parseFilterArgs(arguments);return this.multimix({filter:t.command},t.animate,t.callback)},toggleOn:function(){var t,e=this.parseFilterArgs(arguments),n=e.command.selector;return this.isToggling=!0,this.toggleArray.indexOf(n)<0&&this.toggleArray.push(n),t=this.getToggleSelector(),this.multimix({filter:t},e.animate,e.callback)},toggleOff:function(){var t,e=this.parseFilterArgs(arguments),n=e.command.selector,i=this.toggleArray.indexOf(n);return this.isToggling=!0,i>-1&&this.toggleArray.splice(i,1),t=this.getToggleSelector(),this.multimix({filter:t},e.animate,e.callback)},sort:function(){var t=this.parseSortArgs(arguments);return this.multimix({sort:t.command},t.animate,t.callback)},changeLayout:function(){var t=this.parseChangeLayoutArgs(arguments);return this.multimix({changeLayout:t.command},t.animate,t.callback)},dataset:function(){var t=this.parseDatasetArgs(arguments),e=null,i=null,s=!1;return this.callActions("beforeDataset",arguments),this.isBusy?((i=new n.QueueItem).args=arguments,i.instruction=t,this.queueMix(i)):(t.callback&&(this.userCallback=t.callback),s=t.animate^this.config.animation.enable?t.animate:this.config.animation.enable,e=this.getDataOperation(t.command.dataset),this.goMix(s,e))},multimix:function(){var t=null,e=!1,i=null,s=this.parseMultimixArgs(arguments);return this.callActions("beforeMultimix",arguments),this.isBusy?((i=new n.QueueItem).args=arguments,i.instruction=s,i.triggerElement=this.lastClicked,i.isToggling=this.isToggling,this.queueMix(i)):(t=this.getOperation(s.command),this.config.controls.enable&&(s.command.filter&&!this.isToggling&&(this.toggleArray.length=0,this.buildToggleArray(t.command)),this.queue.length<1&&this.updateControls(t.command)),s.callback&&(this.userCallback=s.callback),e=s.animate^this.config.animation.enable?s.animate:this.config.animation.enable,this.callFilters("operationMultimix",t,arguments),this.goMix(e,t))},getOperation:function(t){var e=t.sort,s=t.filter,a=t.changeLayout,o=t.remove,r=t.insert,l=new n.Operation;return(l=this.callFilters("operationUnmappedGetOperation",l,arguments)).id=i.randomHex(),l.command=t,l.startState=this.state,l.triggerElement=this.lastClicked,this.isBusy?(this.config.debug.showWarnings&&console.warn(n.messages.warningGetOperationInstanceBusy()),null):(r&&this.insertTargets(r,l),o&&(l.toRemove=o.targets),l.startSort=l.newSort=l.startState.activeSort,l.startOrder=l.newOrder=this.targets,e&&(l.startSort=l.startState.activeSort,l.newSort=e,l.willSort=this.willSort(e,l.startState.activeSort),l.willSort&&this.sortOperation(l)),l.startFilter=l.startState.activeFilter,l.newFilter=s||i.extend(new n.CommandFilter,l.startFilter),"all"===l.newFilter.selector?l.newFilter.selector=this.config.selectors.target:"none"===l.newFilter.selector&&(l.newFilter.selector=""),this.filterOperation(l),l.startContainerClassName=l.startState.activeContainerClassName,a?(l.newContainerClassName=a.containerClassName,l.newContainerClassName!==l.startContainerClassName&&(l.willChangeLayout=!0)):l.newContainerClassName=l.startContainerClassName,this.config.animation.enable&&(this.getStartMixData(l),this.setInter(l),l.docState=i.getDocumentState(this.dom.document),this.getInterMixData(l),this.setFinal(l),this.getFinalMixData(l),this.parseEffects(),l.hasEffect=this.hasEffect(),this.getTweenData(l)),l.willSort&&(this.targets=l.newOrder),l.newState=this.buildState(l),this.callFilters("operationMappedGetOperation",l,arguments))},tween:function(t,e){var n=null,i=null,s=-1,a=-1;for(e=Math.min(e,1),e=Math.max(e,0),a=0;n=t.show[a];a++)i=t.showPosData[a],n.applyTween(i,e);for(a=0;n=t.hide[a];a++)n.isShown&&n.hide(),(s=t.toHide.indexOf(n))>-1&&(i=t.toHidePosData[s],n.isShown||n.show(),n.applyTween(i,e))},insert:function(){var t=this.parseInsertArgs(arguments);return this.multimix({insert:t.command},t.animate,t.callback)},insertBefore:function(){var t=this.parseInsertArgs(arguments);return this.insert(t.command.collection,"before",t.command.sibling,t.animate,t.callback)},insertAfter:function(){var t=this.parseInsertArgs(arguments);return this.insert(t.command.collection,"after",t.command.sibling,t.animate,t.callback)},prepend:function(){var t=this.parseInsertArgs(arguments);return this.insert(0,t.command.collection,t.animate,t.callback)},append:function(){var t=this.parseInsertArgs(arguments);return this.insert(this.state.totalTargets,t.command.collection,t.animate,t.callback)},remove:function(){var t=this.parseRemoveArgs(arguments);return this.multimix({remove:t.command},t.animate,t.callback)},getConfig:function(t){var e=null;return e=t?i.getProperty(this.config,t):this.config,this.callFilters("valueGetConfig",e,arguments)},configure:function(t){this.callActions("beforeConfigure",arguments),i.extend(this.config,t,!0,!0),this.callActions("afterConfigure",arguments)},getState:function(){var t;return t=new n.State,i.extend(t,this.state),i.freeze(t),this.callFilters("stateGetState",t,arguments)},forceRefresh:function(){this.indexTargets()},forceRender:function(){var t=null,e=null,n="";for(n in this.cache)(e=(t=this.cache[n]).render(t.data))!==t.dom.el&&(t.isInDom&&(t.unbindEvents(),this.dom.parent.replaceChild(e,t.dom.el)),t.isShown||(e.style.display="none"),t.dom.el=e,t.isInDom&&t.bindEvents());this.state=this.buildState(this.lastOperation)},destroy:function(t){var e=null,i=null,s=0;for(this.callActions("beforeDestroy",arguments),s=0;e=this.controls[s];s++)e.removeBinding(this);for(s=0;i=this.targets[s];s++)t&&i.show(),i.unbindEvents();this.dom.container.id.match(/^MixItUp/)&&this.dom.container.removeAttribute("id"),delete n.instances[this.id],this.callActions("afterDestroy",arguments)}}),n.IMoveData=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.posIn=null,this.posOut=null,this.operation=null,this.callback=null,this.statusChange="",this.duration=-1,this.staggerIndex=-1,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.IMoveData),n.IMoveData.prototype=Object.create(n.Base.prototype),n.IMoveData.prototype.constructor=n.IMoveData,n.TargetDom=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.el=null,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.TargetDom),n.TargetDom.prototype=Object.create(n.Base.prototype),n.TargetDom.prototype.constructor=n.TargetDom,n.Target=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.id="",this.sortString="",this.mixer=null,this.callback=null,this.isShown=!1,this.isBound=!1,this.isExcluded=!1,this.isInDom=!1,this.handler=null,this.operation=null,this.data=null,this.dom=new n.TargetDom,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.Target),n.Target.prototype=Object.create(n.Base.prototype),i.extend(n.Target.prototype,{constructor:n.Target,init:function(t,e,i){var s="";if(this.callActions("beforeInit",arguments),this.mixer=e,t||(t=this.render(i)),this.cacheDom(t),this.bindEvents(),"none"!==this.dom.el.style.display&&(this.isShown=!0),i&&e.config.data.uidKey){if(void 0===(s=i[e.config.data.uidKey])||s.toString().length<1)throw new TypeError(n.messages.errorDatasetInvalidUidKey({uidKey:e.config.data.uidKey}));this.id=s,this.data=i,e.cache[s]=this}this.callActions("afterInit",arguments)},render:function(t){var e,s=null,a=null,o=null;if(this.callActions("beforeRender",arguments),"function"!=typeof(s=this.callFilters("renderRender",this.mixer.config.render.target,arguments)))throw new TypeError(n.messages.errorDatasetRendererNotSet());return(e=s(t))&&"object"==typeof e&&i.isElement(e)?a=e:"string"==typeof e&&((o=document.createElement("div")).innerHTML=e,a=o.firstElementChild),this.callFilters("elRender",a,arguments)},cacheDom:function(t){this.callActions("beforeCacheDom",arguments),this.dom.el=t,this.callActions("afterCacheDom",arguments)},getSortString:function(t){var e=this.dom.el.getAttribute("data-"+t)||"";this.callActions("beforeGetSortString",arguments),e=isNaN(1*e)?e.toLowerCase():1*e,this.sortString=e,this.callActions("afterGetSortString",arguments)},show:function(){this.callActions("beforeShow",arguments),this.isShown||(this.dom.el.style.display="",this.isShown=!0),this.callActions("afterShow",arguments)},hide:function(){this.callActions("beforeHide",arguments),this.isShown&&(this.dom.el.style.display="none",this.isShown=!1),this.callActions("afterHide",arguments)},move:function(t){var e=this;e.callActions("beforeMove",arguments),e.isExcluded||e.mixer.targetsMoved++,e.applyStylesIn(t),requestAnimationFrame(function(){e.applyStylesOut(t)}),e.callActions("afterMove",arguments)},applyTween:function(t,e){var i="",s=null,a=t.posIn,o=[],r=new n.StyleData,l=-1;for(this.callActions("beforeApplyTween",arguments),r.x=a.x,r.y=a.y,0===e?this.hide():this.isShown||this.show(),l=0;i=n.features.TWEENABLE[l];l++)if(s=t.tweenData[i],"x"===i){if(!s)continue;r.x=a.x+s*e}else if("y"===i){if(!s)continue;r.y=a.y+s*e}else if(s instanceof n.TransformData){if(!s.value)continue;r[i].value=a[i].value+s.value*e,r[i].unit=s.unit,o.push(i+"("+r[i].value+s.unit+")")}else{if(!s)continue;r[i]=a[i]+s*e,this.dom.el.style[i]=r[i]}(r.x||r.y)&&o.unshift("translate("+r.x+"px, "+r.y+"px)"),o.length&&(this.dom.el.style[n.features.transformProp]=o.join(" ")),this.callActions("afterApplyTween",arguments)},applyStylesIn:function(t){var e=t.posIn,i=1!==this.mixer.effectsIn.opacity,s=[];this.callActions("beforeApplyStylesIn",arguments),s.push("translate("+e.x+"px, "+e.y+"px)"),this.mixer.config.animation.animateResizeTargets&&("show"!==t.statusChange&&(this.dom.el.style.width=e.width+"px",this.dom.el.style.height=e.height+"px"),this.dom.el.style.marginRight=e.marginRight+"px",this.dom.el.style.marginBottom=e.marginBottom+"px"),i&&(this.dom.el.style.opacity=e.opacity),"show"===t.statusChange&&(s=s.concat(this.mixer.transformIn)),this.dom.el.style[n.features.transformProp]=s.join(" "),this.callActions("afterApplyStylesIn",arguments)},applyStylesOut:function(t){var e=[],i=[],s=this.mixer.config.animation.animateResizeTargets,a=void 0!==this.mixer.effectsIn.opacity;if(this.callActions("beforeApplyStylesOut",arguments),e.push(this.writeTransitionRule(n.features.transformRule,t.staggerIndex)),"none"!==t.statusChange&&e.push(this.writeTransitionRule("opacity",t.staggerIndex,t.duration)),s&&(e.push(this.writeTransitionRule("width",t.staggerIndex,t.duration)),e.push(this.writeTransitionRule("height",t.staggerIndex,t.duration)),e.push(this.writeTransitionRule("margin",t.staggerIndex,t.duration))),!t.callback)return this.mixer.targetsImmovable++,void(this.mixer.targetsMoved===this.mixer.targetsImmovable&&this.mixer.cleanUp(t.operation));switch(this.operation=t.operation,this.callback=t.callback,!this.isExcluded&&this.mixer.targetsBound++,this.isBound=!0,this.applyTransition(e),s&&t.posOut.width>0&&t.posOut.height>0&&(this.dom.el.style.width=t.posOut.width+"px",this.dom.el.style.height=t.posOut.height+"px",this.dom.el.style.marginRight=t.posOut.marginRight+"px",this.dom.el.style.marginBottom=t.posOut.marginBottom+"px"),this.mixer.config.animation.nudge||"hide"!==t.statusChange||i.push("translate("+t.posOut.x+"px, "+t.posOut.y+"px)"),t.statusChange){case"hide":a&&(this.dom.el.style.opacity=this.mixer.effectsOut.opacity),i=i.concat(this.mixer.transformOut);break;case"show":a&&(this.dom.el.style.opacity=1)}(this.mixer.config.animation.nudge||!this.mixer.config.animation.nudge&&"hide"!==t.statusChange)&&i.push("translate("+t.posOut.x+"px, "+t.posOut.y+"px)"),this.dom.el.style[n.features.transformProp]=i.join(" "),this.callActions("afterApplyStylesOut",arguments)},writeTransitionRule:function(t,e,n){var i,s=this.getDelay(e);return i=t+" "+(n>0?n:this.mixer.config.animation.duration)+"ms "+s+"ms "+("opacity"===t?"linear":this.mixer.config.animation.easing),this.callFilters("ruleWriteTransitionRule",i,arguments)},getDelay:function(t){var e;return"function"==typeof this.mixer.config.animation.staggerSequence&&(t=this.mixer.config.animation.staggerSequence.call(this,t,this.state)),e=this.mixer.staggerDuration?t*this.mixer.staggerDuration:0,this.callFilters("delayGetDelay",e,arguments)},applyTransition:function(t){var e=t.join(", ");this.callActions("beforeApplyTransition",arguments),this.dom.el.style[n.features.transitionProp]=e,this.callActions("afterApplyTransition",arguments)},handleTransitionEnd:function(t){var e=t.propertyName,n=this.mixer.config.animation.animateResizeTargets;this.callActions("beforeHandleTransitionEnd",arguments),this.isBound&&t.target.matches(this.mixer.config.selectors.target)&&(e.indexOf("transform")>-1||e.indexOf("opacity")>-1||n&&e.indexOf("height")>-1||n&&e.indexOf("width")>-1||n&&e.indexOf("margin")>-1)&&(this.callback.call(this,this.operation),this.isBound=!1,this.callback=null,this.operation=null),this.callActions("afterHandleTransitionEnd",arguments)},eventBus:function(t){switch(this.callActions("beforeEventBus",arguments),t.type){case"webkitTransitionEnd":case"transitionend":this.handleTransitionEnd(t)}this.callActions("afterEventBus",arguments)},unbindEvents:function(){this.callActions("beforeUnbindEvents",arguments),i.off(this.dom.el,"webkitTransitionEnd",this.handler),i.off(this.dom.el,"transitionend",this.handler),this.callActions("afterUnbindEvents",arguments)},bindEvents:function(){var t,e=this;e.callActions("beforeBindEvents",arguments),t="webkit"===n.features.transitionPrefix?"webkitTransitionEnd":"transitionend",e.handler=function(t){return e.eventBus(t)},i.on(e.dom.el,t,e.handler),e.callActions("afterBindEvents",arguments)},getPosData:function(t){var i={},s=null,a=new n.StyleData;return this.callActions("beforeGetPosData",arguments),a.x=this.dom.el.offsetLeft,a.y=this.dom.el.offsetTop,(this.mixer.config.animation.animateResizeTargets||t)&&(s=this.dom.el.getBoundingClientRect(),a.top=s.top,a.right=s.right,a.bottom=s.bottom,a.left=s.left,a.width=s.width,a.height=s.height),this.mixer.config.animation.animateResizeTargets&&(i=e.getComputedStyle(this.dom.el),a.marginBottom=parseFloat(i.marginBottom),a.marginRight=parseFloat(i.marginRight)),this.callFilters("posDataGetPosData",a,arguments)},cleanUp:function(){this.callActions("beforeCleanUp",arguments),this.dom.el.style[n.features.transformProp]="",this.dom.el.style[n.features.transitionProp]="",this.dom.el.style.opacity="",this.mixer.config.animation.animateResizeTargets&&(this.dom.el.style.width="",this.dom.el.style.height="",this.dom.el.style.marginRight="",this.dom.el.style.marginBottom=""),this.callActions("afterCleanUp",arguments)}}),n.Collection=function(t){var e=null,n=-1;for(this.callActions("beforeConstruct"),n=0;e=t[n];n++)this[n]=e;this.length=t.length,this.callActions("afterConstruct"),i.freeze(this)},n.BaseStatic.call(n.Collection),n.Collection.prototype=Object.create(n.Base.prototype),i.extend(n.Collection.prototype,{constructor:n.Collection,mixitup:function(t){var e=null,s=Array.prototype.slice.call(arguments),a=[],o=-1;for(this.callActions("beforeMixitup"),s.shift(),o=0;e=this[o];o++)a.push(e[t].apply(e,s));return this.callFilters("promiseMixitup",i.all(a,n.libraries),arguments)}}),n.Operation=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.id="",this.args=[],this.command=null,this.showPosData=[],this.toHidePosData=[],this.startState=null,this.newState=null,this.docState=null,this.willSort=!1,this.willChangeLayout=!1,this.hasEffect=!1,this.hasFailed=!1,this.triggerElement=null,this.show=[],this.hide=[],this.matching=[],this.toShow=[],this.toHide=[],this.toMove=[],this.toRemove=[],this.startOrder=[],this.newOrder=[],this.startSort=null,this.newSort=null,this.startFilter=null,this.newFilter=null,this.startDataset=null,this.newDataset=null,this.viewportDeltaX=0,this.viewportDeltaY=0,this.startX=0,this.startY=0,this.startHeight=0,this.startWidth=0,this.newX=0,this.newY=0,this.newHeight=0,this.newWidth=0,this.startContainerClassName="",this.startDisplay="",this.newContainerClassName="",this.newDisplay="",this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.Operation),n.Operation.prototype=Object.create(n.Base.prototype),n.Operation.prototype.constructor=n.Operation,n.State=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.id="",this.activeFilter=null,this.activeSort=null,this.activeContainerClassName="",this.container=null,this.targets=[],this.hide=[],this.show=[],this.matching=[],this.totalTargets=-1,this.totalShow=-1,this.totalHide=-1,this.totalMatching=-1,this.hasFailed=!1,this.triggerElement=null,this.activeDataset=null,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.State),n.State.prototype=Object.create(n.Base.prototype),n.State.prototype.constructor=n.State,n.UserInstruction=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.command={},this.animate=!1,this.callback=null,this.callActions("afterConstruct"),i.seal(this)},n.BaseStatic.call(n.UserInstruction),n.UserInstruction.prototype=Object.create(n.Base.prototype),n.UserInstruction.prototype.constructor=n.UserInstruction,n.Messages=function(){n.Base.call(this),this.callActions("beforeConstruct"),this.ERROR_FACTORY_INVALID_CONTAINER="[MixItUp] An invalid selector or element reference was passed to the mixitup factory function",this.ERROR_FACTORY_CONTAINER_NOT_FOUND="[MixItUp] The provided selector yielded no container element",this.ERROR_CONFIG_INVALID_ANIMATION_EFFECTS="[MixItUp] Invalid value for `animation.effects`",this.ERROR_CONFIG_INVALID_CONTROLS_SCOPE="[MixItUp] Invalid value for `controls.scope`",this.ERROR_CONFIG_INVALID_PROPERTY='[MixitUp] Invalid configuration object property "${erroneous}"${suggestion}',this.ERROR_CONFIG_INVALID_PROPERTY_SUGGESTION='. Did you mean "${probableMatch}"?',this.ERROR_CONFIG_DATA_UID_KEY_NOT_SET="[MixItUp] To use the dataset API, a UID key must be specified using `data.uidKey`",this.ERROR_DATASET_INVALID_UID_KEY='[MixItUp] The specified UID key "${uidKey}" is not present on one or more dataset items',this.ERROR_DATASET_DUPLICATE_UID='[MixItUp] The UID "${uid}" was found on two or more dataset items. UIDs must be unique.',this.ERROR_INSERT_INVALID_ARGUMENTS="[MixItUp] Please provider either an index or a sibling and position to insert, not both",this.ERROR_INSERT_PREEXISTING_ELEMENT="[MixItUp] An element to be inserted already exists in the container",this.ERROR_FILTER_INVALID_ARGUMENTS="[MixItUp] Please provide either a selector or collection `.filter()`, not both",this.ERROR_DATASET_NOT_SET="[MixItUp] To use the dataset API with pre-rendered targets, a starting dataset must be set using `load.dataset`",this.ERROR_DATASET_PRERENDERED_MISMATCH="[MixItUp] `load.dataset` does not match pre-rendered targets",this.ERROR_DATASET_RENDERER_NOT_SET="[MixItUp] To insert an element via the dataset API, a target renderer function must be provided to `render.target`",this.ERROR_SORT_NON_EXISTENT_ELEMENT="[MixItUp] An element to be sorted does not already exist in the container",this.WARNING_FACTORY_PREEXISTING_INSTANCE="[MixItUp] WARNING: This element already has an active MixItUp instance. The provided configuration object will be ignored. If you wish to perform additional methods on this instance, please create a reference.",this.WARNING_INSERT_NO_ELEMENTS="[MixItUp] WARNING: No valid elements were passed to `.insert()`",this.WARNING_REMOVE_NO_ELEMENTS="[MixItUp] WARNING: No valid elements were passed to `.remove()`",this.WARNING_MULTIMIX_INSTANCE_QUEUE_FULL="[MixItUp] WARNING: An operation was requested but the MixItUp instance was busy. The operation was rejected because the queue is full or queuing is disabled.",this.WARNING_GET_OPERATION_INSTANCE_BUSY="[MixItUp] WARNING: Operations can be be created while the MixItUp instance is busy.",this.WARNING_NO_PROMISE_IMPLEMENTATION="[MixItUp] WARNING: No Promise implementations could be found. If you wish to use promises with MixItUp please install an ES6 Promise polyfill.",this.WARNING_INCONSISTENT_SORTING_ATTRIBUTES='[MixItUp] WARNING: The requested sorting data attribute "${attribute}" was not present on one or more target elements which may product unexpected sort output',this.callActions("afterConstruct"),this.compileTemplates(),i.seal(this)},n.BaseStatic.call(n.Messages),n.Messages.prototype=Object.create(n.Base.prototype),n.Messages.prototype.constructor=n.Messages,n.Messages.prototype.compileTemplates=function(){var t="",e="";for(t in this)"string"==typeof(e=this[t])&&(this[i.camelCase(t)]=i.template(e))},n.messages=new n.Messages,n.Facade=function(t){n.Base.call(this),this.callActions("beforeConstruct",arguments),this.configure=t.configure.bind(t),this.show=t.show.bind(t),this.hide=t.hide.bind(t),this.filter=t.filter.bind(t),this.toggleOn=t.toggleOn.bind(t),this.toggleOff=t.toggleOff.bind(t),this.sort=t.sort.bind(t),this.changeLayout=t.changeLayout.bind(t),this.multimix=t.multimix.bind(t),this.dataset=t.dataset.bind(t),this.tween=t.tween.bind(t),this.insert=t.insert.bind(t),this.insertBefore=t.insertBefore.bind(t),this.insertAfter=t.insertAfter.bind(t),this.prepend=t.prepend.bind(t),this.append=t.append.bind(t),this.remove=t.remove.bind(t),this.destroy=t.destroy.bind(t),this.forceRefresh=t.forceRefresh.bind(t),this.forceRender=t.forceRender.bind(t),this.isMixing=t.isMixing.bind(t),this.getOperation=t.getOperation.bind(t),this.getConfig=t.getConfig.bind(t),this.getState=t.getState.bind(t),this.callActions("afterConstruct",arguments),i.freeze(this),i.seal(this)},n.BaseStatic.call(n.Facade),n.Facade.prototype=Object.create(n.Base.prototype),n.Facade.prototype.constructor=n.Facade,t.exports=n,n.BaseStatic.call(n.constructor),n.NAME="mixitup",n.CORE_VERSION="3.3.1"}(window)},function(t,e){!function(t){t.fn.stupidtable=function(e){return this.each(function(){var n=t(this);e=e||{},e=t.extend({},t.fn.stupidtable.default_sort_fns,e),n.data("sortFns",e),n.stupidtable_build(),n.on("click.stupidtable","thead th",function(){t(this).stupidsort()}),n.find("th[data-sort-onload=yes]").eq(0).stupidsort()})},t.fn.stupidtable.default_settings={should_redraw:function(t){return!0},will_manually_build_table:!1},t.fn.stupidtable.dir={ASC:"asc",DESC:"desc"},t.fn.stupidtable.default_sort_fns={int:function(t,e){return parseInt(t,10)-parseInt(e,10)},float:function(t,e){return parseFloat(t)-parseFloat(e)},string:function(t,e){return t.toString().localeCompare(e.toString())},"string-ins":function(t,e){return t=t.toString().toLocaleLowerCase(),e=e.toString().toLocaleLowerCase(),t.localeCompare(e)}},t.fn.stupidtable_settings=function(e){return this.each(function(){var n=t(this),i=t.extend({},t.fn.stupidtable.default_settings,e);n.stupidtable.settings=i})},t.fn.stupidsort=function(n){var r=t(this),l=r.data("sort")||null;if(null!==l){t.fn.stupidtable.dir;var c=r.closest("table"),h={$th:r,$table:c,datatype:l};return c.stupidtable.settings||(c.stupidtable.settings=t.extend({},t.fn.stupidtable.default_settings)),h.compare_fn=c.data("sortFns")[l],h.th_index=o(h),h.sort_dir=a(n,h),r.data("sort-dir",h.sort_dir),c.trigger("beforetablesort",{column:h.th_index,direction:h.sort_dir,$th:r}),c.css("display"),setTimeout(function(){c.stupidtable.settings.will_manually_build_table||c.stupidtable_build();var t=e(h),n=i(t,h);c.stupidtable.settings.should_redraw(h)&&(c.children("tbody").append(n),s(h),c.trigger("aftertablesort",{column:h.th_index,direction:h.sort_dir,$th:r}),c.css("display"))},10),r}},t.fn.updateSortVal=function(e){var n=t(this);return n.is("[data-sort-value]")&&n.attr("data-sort-value",e),n.data("sort-value",e),n},t.fn.stupidtable_build=function(){return this.each(function(){var e=t(this),n=[];e.children("tbody").children("tr").each(function(e,i){var s={$tr:t(i),columns:[],index:e};t(i).children("td").each(function(e,n){var i=t(n).data("sort-value");if(void 0===i){var a=t(n).text();t(n).data("sort-value",a),i=a}s.columns.push(i)}),n.push(s)}),e.data("stupidsort_internaltable",n)})};var e=function(e){var i,s=e.$table.data("stupidsort_internaltable"),a=e.th_index,o=e.$th.data("sort-multicolumn");i=o?o.split(","):[];var r=t.map(i,function(t,i){return n(e.$table,t)});return s.sort(function(t,n){for(var i=r.slice(0),s=e.compare_fn(t.columns[a],n.columns[a]);0===s&&i.length;){var o=i[0],l=o.$e.data("sort");s=(0,e.$table.data("sortFns")[l])(t.columns[o.index],n.columns[o.index]),i.shift()}return 0===s?t.index-n.index:s}),e.sort_dir!=t.fn.stupidtable.dir.ASC&&s.reverse(),s},n=function(t,e){var n,i=t.find("th"),s=parseInt(e,10);return s||0===s?n=i.eq(s):(n=i.siblings("#"+e),s=i.index(n)),{index:s,$e:n}},i=function(e,n){var i=t.map(e,function(t,e){return[[t.columns[n.th_index],t.$tr,e]]});return n.column=i,t.map(e,function(t){return t.$tr})},s=function(t){var e=t.$table,n=t.$th,i=n.data("sort-dir");t.th_index;e.find("th").data("sort-dir",null).removeClass("sorting-desc sorting-asc"),n.data("sort-dir",i).addClass("sorting-"+i)},a=function(e,n){var i,s=n.$th,a=t.fn.stupidtable.dir;return e?i=e:(i=e||s.data("sort-default")||a.ASC,s.data("sort-dir")&&(i=s.data("sort-dir")===a.ASC?a.DESC:a.ASC)),i},o=function(e){var n=0,i=e.$th.index();return e.$th.parents("tr").find("th").slice(0,i).each(function(){var e=t(this).attr("colspan")||1;n+=parseInt(e,10)}),n}}(jQuery)},function(t,e,n){"use strict";var i={hooks:{},extensions:[],wrappers:[],navbar:{add:!0,sticky:!0,title:"Menu",titleLink:"parent"},onClick:{close:null,preventDefault:null,setSelected:!0},slidingSubmenus:!0},s={classNames:{inset:"Inset",nolistview:"NoListview",nopanel:"NoPanel",panel:"Panel",selected:"Selected",vertical:"Vertical"},language:null,openingInterval:25,panelNodetype:["ul","ol","div"],transitionDuration:400};function a(t,e){for(var n in"object"!=o(t)&&(t={}),"object"!=o(e)&&(e={}),e)e.hasOwnProperty(n)&&(void 0===t[n]?t[n]=e[n]:"object"==o(t[n])&&a(t[n],e[n]));return t}function o(t){return{}.toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function r(t,e,n){if("function"==typeof e){var i=e.call(t);if(void 0!==i)return i}return null!==e&&"function"!=typeof e&&void 0!==e||void 0===n?e:n}function l(t,e,n){var i=!1,s=function(n){void 0!==n&&n.target!==t||(i||(t.removeEventListener("transitionend",s),t.removeEventListener("webkitTransitionEnd",s),e.call(t)),i=!0)};t.addEventListener("transitionend",s),t.addEventListener("webkitTransitionEnd",s),setTimeout(s,1.1*n)}function c(){return"mm-"+h++}var h=0;function u(t){return"mm-"==t.slice(0,3)?t.slice(3):t}var d={};function f(t,e){void 0===d[e]&&(d[e]={}),a(d[e],t)}var m={Menu:"منو"},p={Menu:"Menü"},g={Menu:"Меню"};function v(t){var e=t.split("."),n=document.createElement(e.shift());return e.forEach(function(t){n.classList.add(t)}),n}function b(t,e){return Array.prototype.slice.call(t.querySelectorAll(e))}function y(t,e){var n=Array.prototype.slice.call(t.children);return e?n.filter(function(t){return t.matches(e)}):n}function w(t,e){for(var n=[],i=t.parentElement;i;)n.push(i),i=i.parentElement;return e?n.filter(function(t){return t.matches(e)}):n}function x(t){return t.filter(function(t){return!t.matches(".mm-hidden")})}function C(t){var e=[];return x(t).forEach(function(t){e.push.apply(e,y(t,"a.mm-listitem__text"))}),e.filter(function(t){return!t.matches(".mm-btn_next")})}function _(t,e,n){t.matches("."+e)&&(t.classList.remove(e),t.classList.add(n))}var S={};function E(t,e,n){"number"==typeof t&&(t="(min-width: "+t+"px)"),S[t]=S[t]||[],S[t].push({yes:e,no:n})}function A(t,e){for(var n=e.matches?"yes":"no",i=0;i<S[t].length;i++)S[t][i][n]()}f({Menu:"Menu"},"nl"),f(m,"fa"),f(p,"de"),f(g,"ru");var T=function(){function t(e,n,i){return this.opts=a(n,t.options),this.conf=a(i,t.configs),this._api=["bind","initPanel","initListview","openPanel","closePanel","closeAllPanels","setSelected"],this.node={},this.vars={},this.hook={},this.clck=[],this.node.menu="string"==typeof e?document.querySelector(e):e,"function"==typeof this._deprecatedWarnings&&this._deprecatedWarnings(),this._initWrappers(),this._initAddons(),this._initExtensions(),this._initHooks(),this._initAPI(),this._initMenu(),this._initPanels(),this._initOpened(),this._initAnchors(),function(){var t=function(t){var e=window.matchMedia(t);A(t,e),e.onchange=function(n){A(t,e)}};for(var e in S)t(e)}(),this}return t.prototype.openPanel=function(t,e){var n=this;if(this.trigger("openPanel:before",[t]),t&&(t.matches(".mm-panel")||(t=t.closest(".mm-panel")),t)){if("boolean"!=typeof e&&(e=!0),t.parentElement.matches(".mm-listitem_vertical")){w(t,".mm-listitem_vertical").forEach(function(t){t.classList.add("mm-listitem_opened"),y(t,".mm-panel").forEach(function(t){t.classList.remove("mm-hidden")})});var i=w(t,".mm-panel").filter(function(t){return!t.parentElement.matches(".mm-listitem_vertical")});this.trigger("openPanel:start",[t]),i.length&&this.openPanel(i[0]),this.trigger("openPanel:finish",[t])}else{if(t.matches(".mm-panel_opened"))return;var s=y(this.node.pnls,".mm-panel"),a=y(this.node.pnls,".mm-panel_opened")[0];s.filter(function(e){return e!==t}).forEach(function(t){t.classList.remove("mm-panel_opened-parent")});for(var o=t.mmParent;o;)(o=o.closest(".mm-panel"))&&(o.parentElement.matches(".mm-listitem_vertical")||o.classList.add("mm-panel_opened-parent"),o=o.mmParent);s.forEach(function(t){t.classList.remove("mm-panel_highest")}),s.filter(function(t){return t!==a}).filter(function(e){return e!==t}).forEach(function(t){t.classList.add("mm-hidden")}),t.classList.remove("mm-hidden");var r=function(){a&&a.classList.remove("mm-panel_opened"),t.classList.add("mm-panel_opened"),t.matches(".mm-panel_opened-parent")?(a&&a.classList.add("mm-panel_highest"),t.classList.remove("mm-panel_opened-parent")):(a&&a.classList.add("mm-panel_opened-parent"),t.classList.add("mm-panel_highest")),n.trigger("openPanel:start",[t])},c=function(){a&&(a.classList.remove("mm-panel_highest"),a.classList.add("mm-hidden")),t.classList.remove("mm-panel_highest"),n.trigger("openPanel:finish",[t])};e&&!t.matches(".mm-panel_noanimation")?setTimeout(function(){l(t,function(){c()},n.conf.transitionDuration),r()},this.conf.openingInterval):(r(),c())}this.trigger("openPanel:after",[t])}},t.prototype.closePanel=function(t){this.trigger("closePanel:before",[t]);var e=t.parentElement;e.matches(".mm-listitem_vertical")&&(e.classList.remove("mm-listitem_opened"),t.classList.add("mm-hidden"),this.trigger("closePanel",[t])),this.trigger("closePanel:after",[t])},t.prototype.closeAllPanels=function(t){this.trigger("closeAllPanels:before"),this.node.pnls.querySelectorAll(".mm-listitem").forEach(function(t){t.classList.remove("mm-listitem_selected"),t.classList.remove("mm-listitem_opened")});var e=y(this.node.pnls,".mm-panel"),n=t||e[0];y(this.node.pnls,".mm-panel").forEach(function(t){t!==n&&(t.classList.remove("mm-panel_opened"),t.classList.remove("mm-panel_opened-parent"),t.classList.remove("mm-panel_highest"),t.classList.add("mm-hidden"))}),this.openPanel(n,!1),this.trigger("closeAllPanels:after")},t.prototype.togglePanel=function(t){var e=t.parentElement;e.matches(".mm-listitem_vertical")&&this[e.matches(".mm-listitem_opened")?"closePanel":"openPanel"](t)},t.prototype.setSelected=function(t){this.trigger("setSelected:before",[t]),b(this.node.menu,".mm-listitem_selected").forEach(function(t){t.classList.remove("mm-listitem_selected")}),t.classList.add("mm-listitem_selected"),this.trigger("setSelected:after",[t])},t.prototype.bind=function(t,e){this.hook[t]=this.hook[t]||[],this.hook[t].push(e)},t.prototype.trigger=function(t,e){if(this.hook[t])for(var n=0,i=this.hook[t].length;n<i;n++)this.hook[t][n].apply(this,e)},t.prototype._initAPI=function(){var t=this,e=this;this.API={},this._api.forEach(function(n){t.API[n]=function(){var t=e[n].apply(e,arguments);return void 0===t?e.API:t}}),this.node.menu.mmApi=this.API},t.prototype._initHooks=function(){for(var t in this.opts.hooks)this.bind(t,this.opts.hooks[t])},t.prototype._initWrappers=function(){this.trigger("initWrappers:before");for(var e=0;e<this.opts.wrappers.length;e++){var n=t.wrappers[this.opts.wrappers[e]];"function"==typeof n&&n.call(this)}this.trigger("initWrappers:after")},t.prototype._initAddons=function(){for(var e in this.trigger("initAddons:before"),t.addons)t.addons[e].call(this);this.trigger("initAddons:after")},t.prototype._initExtensions=function(){var t=this;this.trigger("initExtensions:before"),"array"==o(this.opts.extensions)&&(this.opts.extensions={all:this.opts.extensions}),Object.keys(this.opts.extensions).forEach(function(e){var n=t.opts.extensions[e].map(function(t){return"mm-menu_"+t});n.length&&E(e,function(){n.forEach(function(e){t.node.menu.classList.add(e)})},function(){n.forEach(function(e){t.node.menu.classList.remove(e)})})}),this.trigger("initExtensions:after")},t.prototype._initMenu=function(){var t=this;this.trigger("initMenu:before"),this.node.wrpr=this.node.wrpr||this.node.menu.parentElement,this.node.wrpr.classList.add("mm-wrapper"),this.node.menu.id=this.node.menu.id||c();var e=v("div.mm-panels");y(this.node.menu).forEach(function(n){t.conf.panelNodetype.indexOf(n.nodeName.toLowerCase())>-1&&e.append(n)}),this.node.menu.append(e),this.node.pnls=e,this.node.menu.classList.add("mm-menu"),this.trigger("initMenu:after")},t.prototype._initPanels=function(){var t=this;this.trigger("initPanels:before"),this.clck.push(function(e,n){if(n.inMenu){var i=e.getAttribute("href");if(i&&i.length>1&&"#"==i.slice(0,1))try{var s=b(t.node.menu,i)[0];if(s&&s.matches(".mm-panel"))return e.parentElement.matches(".mm-listitem_vertical")?t.togglePanel(s):t.openPanel(s),!0}catch(t){}}}),y(this.node.pnls).forEach(function(e){t.initPanel(e)}),this.trigger("initPanels:after")},t.prototype.initPanel=function(t){var e=this,n=this.conf.panelNodetype.join(", ");if(t.matches(n)&&(t.matches(".mm-panel")||(t=this._initPanel(t)),t)){var i=[];i.push.apply(i,y(t,"."+this.conf.classNames.panel)),y(t,".mm-listview").forEach(function(t){y(t,".mm-listitem").forEach(function(t){i.push.apply(i,y(t,n))})}),i.forEach(function(t){e.initPanel(t)})}},t.prototype._initPanel=function(t){var e=this;if(this.trigger("initPanel:before",[t]),_(t,this.conf.classNames.panel,"mm-panel"),_(t,this.conf.classNames.nopanel,"mm-nopanel"),_(t,this.conf.classNames.inset,"mm-listview_inset"),t.matches(".mm-listview_inset")&&t.classList.add("mm-nopanel"),t.matches(".mm-nopanel"))return null;var n=t.id||c(),i=t.matches("."+this.conf.classNames.vertical)||!this.opts.slidingSubmenus;if(t.classList.remove(this.conf.classNames.vertical),t.matches("ul, ol")){t.removeAttribute("id");var s=v("div");t.before(s),s.append(t),t=s}t.id=n,t.classList.add("mm-panel"),t.classList.add("mm-hidden");var a=[t.parentElement].filter(function(t){return t.matches("li")})[0];if(i?a&&a.classList.add("mm-listitem_vertical"):this.node.pnls.append(t),a&&(a.mmChild=t,t.mmParent=a,a&&a.matches(".mm-listitem")&&!y(a,".mm-btn").length)){var o=y(a,".mm-listitem__text")[0];if(o){var r=v("a.mm-btn.mm-btn_next.mm-listitem__btn");r.setAttribute("href","#"+t.id),o.matches("span")?(r.classList.add("mm-listitem__text"),r.innerHTML=o.innerHTML,a.insertBefore(r,o.nextElementSibling),o.remove()):a.insertBefore(r,y(a,".mm-panel")[0])}}return this._initNavbar(t),y(t,"ul, ol").forEach(function(t){e.initListview(t)}),this.trigger("initPanel:after",[t]),t},t.prototype._initNavbar=function(t){if(this.trigger("initNavbar:before",[t]),!y(t,".mm-navbar").length){var e=null,n=null;if(t.dataset.mmParent?n=b(this.node.pnls,t.dataset.mmParent)[0]:(e=t.mmParent)&&(n=e.closest(".mm-panel")),!e||!e.matches(".mm-listitem_vertical")){var i=v("div.mm-navbar");if(this.opts.navbar.add?this.opts.navbar.sticky&&i.classList.add("mm-navbar_sticky"):i.classList.add("mm-hidden"),n){var s=v("a.mm-btn.mm-btn_prev.mm-navbar__btn");s.setAttribute("href","#"+n.id),i.append(s)}var a=null;e?a=y(e,".mm-listitem__text")[0]:n&&(a=b(n,'a[href="#'+t.id+'"]')[0]);var o=v("a.mm-navbar__title");switch(o.innerHTML=t.dataset.mmTitle||(a?a.textContent:"")||this.i18n(this.opts.navbar.title)||this.i18n("Menu"),this.opts.navbar.titleLink){case"anchor":a&&o.setAttribute("href",a.getAttribute("href"));break;case"parent":n&&o.setAttribute("href","#"+n.id)}i.append(o),t.prepend(i),this.trigger("initNavbar:after",[t])}}},t.prototype.initListview=function(t){var e=this;this.trigger("initListview:before",[t]),_(t,this.conf.classNames.nolistview,"mm-nolistview"),t.matches(".mm-nolistview")||(t.classList.add("mm-listview"),y(t).forEach(function(t){t.classList.add("mm-listitem"),_(t,e.conf.classNames.selected,"mm-listitem_selected"),y(t,"a, span").forEach(function(t){t.matches(".mm-btn")||t.classList.add("mm-listitem__text")})})),this.trigger("initListview:after",[t])},t.prototype._initOpened=function(){this.trigger("initOpened:before");var t=this.node.pnls.querySelectorAll(".mm-listitem_selected"),e=null;t.forEach(function(t){e=t,t.classList.remove("mm-listitem_selected")}),e&&e.classList.add("mm-listitem_selected");var n=e?e.closest(".mm-panel"):y(this.node.pnls,".mm-panel")[0];this.openPanel(n,!1),this.trigger("initOpened:after")},t.prototype._initAnchors=function(){var t=this;this.trigger("initAnchors:before"),document.addEventListener("click",function(e){var n=e.target.closest("a[href]");if(n){for(var i={inMenu:n.closest(".mm-menu")===t.node.menu,inListview:n.matches(".mm-listitem > a"),toExternal:n.matches('[rel="external"]')||n.matches('[target="_blank"]')},s={close:null,setSelected:null,preventDefault:"#"==n.getAttribute("href").slice(0,1)},l=0;l<t.clck.length;l++){var c=t.clck[l].call(t,n,i);if(c){if("boolean"==typeof c)return void e.preventDefault();"object"==o(c)&&(s=a(c,s))}}i.inMenu&&i.inListview&&!i.toExternal&&(r(n,t.opts.onClick.setSelected,s.setSelected)&&t.setSelected(n.parentElement),r(n,t.opts.onClick.preventDefault,s.preventDefault)&&e.preventDefault(),r(n,t.opts.onClick.close,s.close)&&t.opts.offCanvas&&"function"==typeof t.close&&t.close())}},!0),this.trigger("initAnchors:after")},t.prototype.i18n=function(t){return function(t,e){return"string"==typeof e&&void 0!==d[e]&&d[e][t]||t}(t,this.conf.language)},t.version="8.4.0",t.options=i,t.configs=s,t.addons={},t.wrappers={},t.node={},t.vars={},t}(),P={blockUI:!0,moveBackground:!0};var L={clone:!1,menu:{insertMethod:"prepend",insertSelector:"body"},page:{nodetype:"div",selector:null,noSelector:[]}};function O(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""}function M(t,e,n){var i=e.split(".");t[e="mmEvent"+O(i[0])+O(i[1])]=t[e]||[],t[e].push(n),t.addEventListener(i[0],n)}function k(t,e){var n=e.split(".");e="mmEvent"+O(n[0])+O(n[1]),(t[e]||[]).forEach(function(e){t.removeEventListener(n[0],e)})}T.options.offCanvas=P,T.configs.offCanvas=L;T.prototype.open=function(){var t=this;this.trigger("open:before"),this.vars.opened||(this._openSetup(),setTimeout(function(){t._openStart()},this.conf.openingInterval),this.trigger("open:after"))},T.prototype._openSetup=function(){var t=this,e=this.opts.offCanvas;this.closeAllOthers(),T.node.page.mmStyle=T.node.page.getAttribute("style")||"",function(t,e,n){var i=e.split(".");(t[e="mmEvent"+O(i[0])+O(i[1])]||[]).forEach(function(t){t(n||{})})}(window,"resize.page",{force:!0});var n=["mm-wrapper_opened"];e.blockUI&&n.push("mm-wrapper_blocking"),"modal"==e.blockUI&&n.push("mm-wrapper_modal"),e.moveBackground&&n.push("mm-wrapper_background"),n.forEach(function(e){t.node.wrpr.classList.add(e)}),setTimeout(function(){t.vars.opened=!0},this.conf.openingInterval),this.node.menu.classList.add("mm-menu_opened")},T.prototype._openStart=function(){var t=this;l(T.node.page,function(){t.trigger("open:finish")},this.conf.transitionDuration),this.trigger("open:start"),this.node.wrpr.classList.add("mm-wrapper_opening")},T.prototype.close=function(){var t=this;this.trigger("close:before"),this.vars.opened&&(l(T.node.page,function(){t.node.menu.classList.remove("mm-menu_opened");["mm-wrapper_opened","mm-wrapper_blocking","mm-wrapper_modal","mm-wrapper_background"].forEach(function(e){t.node.wrpr.classList.remove(e)}),T.node.page.setAttribute("style",T.node.page.mmStyle),t.vars.opened=!1,t.trigger("close:finish")},this.conf.transitionDuration),this.trigger("close:start"),this.node.wrpr.classList.remove("mm-wrapper_opening"),this.trigger("close:after"))},T.prototype.closeAllOthers=function(){var t=this;b(document.body,".mm-menu_offcanvas").forEach(function(e){if(e!==t.node.menu){var n=e.mmApi;n&&n.close&&n.close()}})},T.prototype.setPage=function(t){this.trigger("setPage:before",[t]);var e=this.conf.offCanvas;if(!t){var n="string"==typeof e.page.selector?b(document.body,e.page.selector):y(document.body,e.page.nodetype);if(n=n.filter(function(t){return!t.matches(".mm-menu, .mm-wrapper__blocker")}),e.page.noSelector.length&&(n=n.filter(function(t){return!t.matches(e.page.noSelector.join(", "))})),n.length>1){var i=v("div");n[0].before(i),n.forEach(function(t){i.append(t)}),n=[i]}t=n[0]}t.classList.add("mm-page"),t.classList.add("mm-slideout"),t.id=t.id||c(),T.node.page=t,this.trigger("setPage:after",[t])};var D=function(){var t=this;k(document.body,"keydown.tabguard"),M(document.body,"keydown.tabguard",function(e){9==e.keyCode&&t.node.wrpr.matches(".mm-wrapper_opened")&&e.preventDefault()})},N=function(){var t=this;this.trigger("initBlocker:before");var e=this.opts.offCanvas,n=this.conf.offCanvas;if(e.blockUI){if(!T.node.blck){var i=v("div.mm-wrapper__blocker.mm-slideout");i.innerHTML="<a></a>",document.querySelector(n.menu.insertSelector).append(i),T.node.blck=i}var s=function(e){e.preventDefault(),e.stopPropagation(),t.node.wrpr.matches(".mm-wrapper_modal")||t.close()};T.node.blck.addEventListener("mousedown",s),T.node.blck.addEventListener("touchstart",s),T.node.blck.addEventListener("touchmove",s),this.trigger("initBlocker:after")}},I={aria:!0,text:!0};var R={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}},B={"Close menu":"بستن منو","Close submenu":"بستن زیرمنو","Open submenu":"بازکردن زیرمنو","Toggle submenu":"سوییچ زیرمنو"},F={"Close menu":"Menü schließen","Close submenu":"Untermenü schließen","Open submenu":"Untermenü öffnen","Toggle submenu":"Untermenü wechseln"},H={"Close menu":"Закрыть меню","Close submenu":"Закрыть подменю","Open submenu":"Открыть подменю","Toggle submenu":"Переключить подменю"};f({"Close menu":"Menu sluiten","Close submenu":"Submenu sluiten","Open submenu":"Submenu openen","Toggle submenu":"Submenu wisselen"},"nl"),f(B,"fa"),f(F,"de"),f(H,"ru"),T.options.screenReader=I,T.configs.screenReader=R;var j;j=function(t,e,n){t[e]=n,n?t.setAttribute(e,n.toString()):t.removeAttribute(e)},T.sr_aria=function(t,e,n){j(t,"aria-"+e,n)},T.sr_role=function(t,e){j(t,"role",e)},T.sr_text=function(t){return'<span class="mm-sronly">'+t+"</span>"};var q={fix:!0};var U="ontouchstart"in window||!!navigator.msMaxTouchPoints||!1;T.options.scrollBugFix=q;var z={height:"default"};T.options.autoHeight=z;var $={close:!1,open:!1};T.options.backButton=$;var W={add:!1,visible:{min:1,max:3}};T.options.columns=W;var V={add:!1,addTo:"panels",count:!1};T.options.counters=V,T.configs.classNames.counters={counter:"Counter"};var G={add:!1,addTo:"panels"};T.options.dividers=G,T.configs.classNames.divider="Divider";var Y={open:!1,node:null};var X="ontouchstart"in window||!!navigator.msMaxTouchPoints||!1,K={top:0,right:0,bottom:0,left:0},Q={start:15,swipe:15},Z={x:["Right","Left"],y:["Down","Up"]},J=0,tt=1,et=2,nt=function(t,e){return"string"==typeof t&&"%"==t.slice(-1)&&(t=e*((t=parseInt(t.slice(0,-1),10))/100)),t},it=function(){function t(t,e,n){this.surface=t,this.area=a(e,K),this.treshold=a(n,Q),this.surface.mmHasDragEvents||(this.surface.addEventListener(X?"touchstart":"mousedown",this.start.bind(this)),this.surface.addEventListener(X?"touchend":"mouseup",this.stop.bind(this)),this.surface.addEventListener(X?"touchleave":"mouseleave",this.stop.bind(this)),this.surface.addEventListener(X?"touchmove":"mousemove",this.move.bind(this))),this.surface.mmHasDragEvents=!0}return t.prototype.start=function(t){var e=this.surface.clientWidth,n=this.surface.clientHeight,i=nt(this.area.top,n);if(!("number"==typeof i&&t.pageY<i)){var s=nt(this.area.right,e);if(!("number"==typeof s&&(s=e-s,t.pageX>s))){var a=nt(this.area.bottom,n);if(!("number"==typeof a&&(a=n-a,t.pageY>a))){var o=nt(this.area.left,e);"number"==typeof o&&t.pageX<o||(this.startPosition={x:t.pageX,y:t.pageY},this.state=tt)}}}},t.prototype.stop=function(t){if(this.state==et){var e=this._dragDirection(),n=this._eventDetail(e);if(this._dispatchEvents("drag*End",n),Math.abs(this.movement[this.axis])>this.treshold.swipe){var i=this._swipeDirection();n.direction=i,this._dispatchEvents("swipe*",n)}}this.state=J},t.prototype.move=function(t){switch(this.state){case tt:case et:this.movement={x:t.movementX,y:t.movementY},this.distance={x:t.pageX-this.startPosition.x,y:t.pageY-this.startPosition.y},this.axis=Math.abs(this.distance.x)>Math.abs(this.distance.y)?"x":"y";var e=this._dragDirection(),n=this._eventDetail(e);this.state==tt&&Math.abs(this.distance[this.axis])>this.treshold.start&&(this._dispatchEvents("drag*Start",n),this.state=et),this.state==et&&this._dispatchEvents("drag*Move",n)}},t.prototype._eventDetail=function(t){var e=this.distance.x,n=this.distance.y;return"x"==this.axis&&(e-=e>0?this.treshold.start:0-this.treshold.start),"y"==this.axis&&(n-=n>0?this.treshold.start:0-this.treshold.start),{axis:this.axis,direction:t,movementX:this.movement.x,movementY:this.movement.y,distanceX:e,distanceY:n}},t.prototype._dispatchEvents=function(t,e){var n=new CustomEvent(t.replace("*",""),{detail:e});this.surface.dispatchEvent(n);var i=new CustomEvent(t.replace("*",this.axis.toUpperCase()),{detail:e});this.surface.dispatchEvent(i);var s=new CustomEvent(t.replace("*",e.direction),{detail:e});this.surface.dispatchEvent(s)},t.prototype._dragDirection=function(){return Z[this.axis][this.distance[this.axis]>0?0:1]},t.prototype._swipeDirection=function(){return Z[this.axis][this.movement[this.axis]>0?0:1]},t}(),st=null,at=null,ot=0,rt=function(t,e,n){switch(t.position="left",t.zposition="back",["right","top","bottom"].forEach(function(n){e.indexOf("position-"+n)>-1&&(t.position=n)}),["front","top","bottom"].forEach(function(n){e.indexOf("position-"+n)>-1&&(t.zposition="front")}),st.area={top:"bottom"==t.position?"75%":0,right:"left"==t.position?"75%":0,bottom:"top"==t.position?"75%":0,left:"right"==t.position?"75%":0},t.position){case"top":case"bottom":t.axis="y";break;default:t.axis="x"}switch(t.position){case"top":t.direction="Down";break;case"right":t.direction="Left";break;case"bottom":t.direction="Up";break;default:t.direction="Right"}switch(t.zposition){case"front":t.slideOutNodes=[n];break;default:t.slideOutNodes=b(document.body,".mm-slideout")}return t};T.options.drag=Y;var lt={drop:!1,fitViewport:!0,event:"click",position:{},tip:!0};var ct={offset:{button:{x:-5,y:5},viewport:{x:20,y:20}},height:{max:880},width:{max:440}};T.options.dropdown=lt,T.configs.dropdown=ct;var ht={insertMethod:"append",insertSelector:"body"};T.configs.fixedElements=ht,T.configs.classNames.fixedElements={fixed:"Fixed"};var ut={use:!1,top:[],bottom:[],position:"left",type:"default"};T.options.iconbar=ut;var dt={add:!1,blockPanel:!0,hideDivider:!1,hideNavbar:!0,visible:3};T.options.iconPanels=dt;var ft={enable:!1,enhance:!1};T.options.keyboardNavigation=ft;var mt=function(t){var e=this;k(document.body,"keydown.tabguard"),k(document.body,"focusin.tabguard"),M(document.body,"focusin.tabguard",function(t){if(e.node.wrpr.matches(".mm-wrapper_opened")){var n=t.target;if(n.matches(".mm-tabend")){var i=void 0;n.parentElement.matches(".mm-menu")&&T.node.blck&&(i=T.node.blck),n.parentElement.matches(".mm-wrapper__blocker")&&(i=b(document.body,".mm-menu_offcanvas.mm-menu_opened")[0]),i||(i=n.parentElement),i&&y(i,".mm-tabstart")[0].focus()}}}),k(document.body,"keydown.navigate"),M(document.body,"keydown.navigate",function(e){var n=e.target,i=n.closest(".mm-menu");if(i){i.mmApi;if(!n.matches("input, textarea"))switch(e.keyCode){case 13:(n.matches(".mm-toggle")||n.matches(".mm-check"))&&n.dispatchEvent(new Event("click"));break;case 32:case 37:case 38:case 39:case 40:e.preventDefault()}if(t)if(n.matches("input"))switch(e.keyCode){case 27:n.value=""}else{var s=i.mmApi;switch(e.keyCode){case 8:var a=b(i,".mm-panel_opened")[0].mmParent;a&&s.openPanel(a.closest(".mm-panel"));break;case 27:i.matches(".mm-menu_offcanvas")&&s.close()}}}})},pt={load:!1};T.options.lazySubmenus=pt;var gt=[];var vt={breadcrumbs:{separator:"/",removeFirst:!1}};function bt(){var t=this,e=this.opts.navbars;if(void 0!==e){e instanceof Array||(e=[e]);var n={};e.length&&(e.forEach(function(e){if(!(e=function(t){return"boolean"==typeof t&&t&&(t={}),"object"!=typeof t&&(t={}),void 0===t.content&&(t.content=["prev","title"]),t.content instanceof Array||(t.content=[t.content]),void 0===t.use&&(t.use=!0),"boolean"==typeof t.use&&t.use&&(t.use=!0),t}(e)).use)return!1;var i=v("div.mm-navbar"),s=e.position;"bottom"!==s&&(s="top"),n[s]||(n[s]=v("div.mm-navbars_"+s)),n[s].append(i);for(var a=0,o=e.content.length;a<o;a++){var r,l=e.content[a];if("string"==typeof l)if("function"==typeof(r=bt.navbarContents[l]))r.call(t,i);else{var c=v("span");c.innerHTML=l;var h=y(c);1==h.length&&(c=h[0]),i.append(c)}else i.append(l)}"string"==typeof e.type&&("function"==typeof(r=bt.navbarTypes[e.type])&&r.call(t,i));"boolean"!=typeof e.use&&E(e.use,function(){i.classList.remove("mm-hidden"),T.sr_aria(i,"hidden",!1)},function(){i.classList.add("mm-hidden"),T.sr_aria(i,"hidden",!0)})}),this.bind("initMenu:after",function(){for(var e in n)t.node.menu["bottom"==e?"append":"prepend"](n[e])}))}}T.options.navbars=gt,T.configs.navbars=vt,T.configs.classNames.navbars={panelNext:"Next",panelPrev:"Prev",panelTitle:"Title"},bt.navbarContents={breadcrumbs:function(t){var e=this,n=v("div.mm-navbar__breadcrumbs");t.append(n),this.bind("initNavbar:after",function(t){if(!t.querySelector(".mm-navbar__breadcrumbs")){y(t,".mm-navbar")[0].classList.add("mm-hidden");for(var n=[],i=v("span.mm-navbar__breadcrumbs"),s=t,a=!0;s;){if(!(s=s.closest(".mm-panel")).parentElement.matches(".mm-listitem_vertical")){var o=b(s,".mm-navbar__title")[0];if(o){var r=o.textContent;r.length&&n.unshift(a?"<span>"+r+"</span>":'<a href="#'+s.id+'">'+r+"</a>")}a=!1}s=s.mmParent}e.conf.navbars.breadcrumbs.removeFirst&&n.shift(),i.innerHTML=n.join('<span class="mm-separator">'+e.conf.navbars.breadcrumbs.separator+"</span>"),y(t,".mm-navbar")[0].append(i)}}),this.bind("openPanel:start",function(t){var e=t.querySelector(".mm-navbar__breadcrumbs");n.innerHTML=e?e.innerHTML:""}),this.bind("initNavbar:after:sr-aria",function(t){b(t,".mm-breadcrumbs a").forEach(function(t){T.sr_aria(t,"owns",t.getAttribute("href").slice(1))})})},close:function(t){var e=this,n=v("a.mm-btn.mm-btn_close.mm-navbar__btn");t.append(n),this.bind("setPage:after",function(t){n.setAttribute("href","#"+t.id)}),this.bind("setPage:after:sr-text",function(){n.innerHTML=T.sr_text(e.i18n(e.conf.screenReader.text.closeMenu)),T.sr_aria(n,"owns",n.getAttribute("href").slice(1))})},next:function(t){var e,n,i,s=this,a=v("a.mm-btn.mm-btn_next.mm-navbar__btn");t.append(a),this.bind("openPanel:start",function(t){e=t.querySelector("."+s.conf.classNames.navbars.panelNext),n=e?e.getAttribute("href"):"",i=e?e.innerHTML:"",n?a.setAttribute("href",n):a.removeAttribute("href"),a.classList[n||i?"remove":"add"]("mm-hidden"),a.innerHTML=i}),this.bind("openPanel:start:sr-aria",function(t){T.sr_aria(a,"hidden",a.matches("mm-hidden")),T.sr_aria(a,"owns",(a.getAttribute("href")||"").slice(1))})},prev:function(t){var e,n,i,s=this,a=v("a.mm-btn.mm-btn_prev.mm-navbar__btn");t.append(a),this.bind("initNavbar:after",function(t){y(t,".mm-navbar")[0].classList.add("mm-hidden")}),this.bind("openPanel:start",function(t){t.parentElement.matches(".mm-listitem_vertical")||((e=t.querySelector("."+s.conf.classNames.navbars.panelPrev))||(e=t.querySelector(".mm-navbar__btn.mm-btn_prev")),n=e?e.getAttribute("href"):"",i=e?e.innerHTML:"",n?a.setAttribute("href",n):a.removeAttribute("href"),a.classList[n||i?"remove":"add"]("mm-hidden"),a.innerHTML=i)}),this.bind("initNavbar:after:sr-aria",function(t){T.sr_aria(t.querySelector(".mm-navbar"),"hidden",!0)}),this.bind("openPanel:start:sr-aria",function(t){T.sr_aria(a,"hidden",a.matches(".mm-hidden")),T.sr_aria(a,"owns",(a.getAttribute("href")||"").slice(1))})},searchfield:function(t){"object"!=o(this.opts.searchfield)&&(this.opts.searchfield={});var e=v("div.mm-navbar__searchfield");t.append(e),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=[e]},title:function(t){var e,n,i,s,a=this,o=v("a.mm-navbar__title");t.append(o),this.bind("openPanel:start",function(t){t.parentElement.matches(".mm-listitem_vertical")||((i=t.querySelector("."+a.conf.classNames.navbars.panelTitle))||(i=t.querySelector(".mm-navbar__title")),(e=i?i.getAttribute("href"):"")?o.setAttribute("href",e):o.removeAttribute("href"),n=i?i.innerHTML:"",o.innerHTML=n)}),this.bind("openPanel:start:sr-aria",function(t){if(a.opts.screenReader.text&&(s||y(a.node.menu,".mm-navbars_top, .mm-navbars_bottom").forEach(function(t){var e=t.querySelector(".mm-btn_prev");e&&(s=e)}),s)){var e=!0;"parent"==a.opts.navbar.titleLink&&(e=!s.matches(".mm-hidden")),T.sr_aria(o,"hidden",e)}})}},bt.navbarTypes={tabs:function(t){var e=this;t.classList.add("mm-navbar_tabs"),t.parentElement.classList.add("mm-navbars_has-tabs");var n=y(t,"a");t.addEventListener("click",function(t){var n=t.target;if(n.matches("a"))if(n.matches(".mm-navbar__tab_selected"))t.stopImmediatePropagation();else try{e.openPanel(e.node.menu.querySelector(n.getAttribute("href")),!1),t.stopImmediatePropagation()}catch(t){}}),this.bind("openPanel:start",function t(e){n.forEach(function(t){t.classList.remove("mm-navbar__tab_selected")});var i=n.filter(function(t){return t.matches('[href="#'+e.id+'"]')})[0];if(i)i.classList.add("mm-navbar__tab_selected");else{var s=e.mmParent;s&&t.call(this,s.closest(".mm-panel"))}})}};var yt={scroll:!1,update:!1};var wt={scrollOffset:0,updateOffset:50};T.options.pageScroll=yt,T.configs.pageScroll=wt;var xt={add:!1,addTo:"panels",cancel:!1,noResults:"No results found.",placeholder:"Search",panel:{add:!1,dividers:!0,fx:"none",id:null,splash:null,title:"Search"},search:!0,showTextItems:!1,showSubPanels:!0};var Ct={clear:!1,form:!1,input:!1,submit:!1},_t={Search:"جستجو","No results found.":"نتیجه‌ای یافت نشد.",cancel:"انصراف"},St={Search:"Suche","No results found.":"Keine Ergebnisse gefunden.",cancel:"beenden"},Et={Search:"Найти","No results found.":"Ничего не найдено.",cancel:"отменить"};f({Search:"Zoeken","No results found.":"Geen resultaten gevonden.",cancel:"annuleren"},"nl"),f(_t,"fa"),f(St,"de"),f(Et,"ru"),T.options.searchfield=xt,T.configs.searchfield=Ct;var At=function(){var t=this.opts.searchfield,e=(this.conf.searchfield,y(this.node.pnls,".mm-panel_search")[0]);if(e)return e;e=v("div.mm-panel.mm-panel_search.mm-hidden"),t.panel.id&&(e.id=t.panel.id),t.panel.title&&(e.dataset.mmTitle=t.panel.title);var n=v("ul");switch(e.append(n),this.node.pnls.append(e),this.initListview(n),this._initNavbar(e),t.panel.fx){case!1:break;case"none":e.classList.add("mm-panel_noanimation");break;default:e.classList.add("mm-panel_fx-"+t.panel.fx)}if(t.panel.splash){var i=v("div.mm-panel__content");i.innerHTML=t.panel.splash,e.append(i)}return e.classList.add("mm-panel"),e.classList.add("mm-hidden"),this.node.pnls.append(e),e},Tt=function(t){var e=this.opts.searchfield,n=this.conf.searchfield;if(t.parentElement.matches(".mm-listitem_vertical"))return null;if(a=b(t,".mm-searchfield")[0])return a;function i(t,e){if(e)for(var n in e)t.setAttribute(n,e[n])}var s,a=v((n.form?"form":"div")+".mm-searchfield"),o=v("div.mm-searchfield__input"),r=v("input");(r.type="text",r.autocomplete="off",r.placeholder=this.i18n(e.placeholder),o.append(r),a.append(o),t.prepend(a),i(r,n.input),n.clear)&&((s=v("a.mm-btn.mm-btn_close.mm-searchfield__btn")).setAttribute("href","#"),o.append(s));(i(a,n.form),n.form&&n.submit&&!n.clear)&&((s=v("a.mm-btn.mm-btn_next.mm-searchfield__btn")).setAttribute("href","#"),o.append(s));e.cancel&&((s=v("a.mm-searchfield__cancel")).setAttribute("href","#"),s.textContent=this.i18n("cancel"),a.append(s));return a},Pt=function(t){var e=this,n=this.opts.searchfield,i=(this.conf.searchfield,{});t.closest(".mm-panel_search")?(i.panels=b(this.node.pnls,".mm-panel"),i.noresults=[t.closest(".mm-panel")]):t.closest(".mm-panel")?(i.panels=[t.closest(".mm-panel")],i.noresults=i.panels):(i.panels=b(this.node.pnls,".mm-panel"),i.noresults=[this.node.menu]),i.panels=i.panels.filter(function(t){return!t.parentElement.matches(".mm-listitem_vertical")}),i.panels=i.panels.filter(function(t){return!t.matches(".mm-panel_search")}),i.listitems=[],i.dividers=[],i.panels.forEach(function(t){var e,n;(e=i.listitems).push.apply(e,b(t,".mm-listitem")),(n=i.dividers).push.apply(n,b(t,".mm-divider"))});var s=y(this.node.pnls,".mm-panel_search")[0],a=b(t,"input")[0],o=b(t,".mm-searchfield__cancel")[0];a.mmSearchfield=i,n.panel.add&&n.panel.splash&&(k(a,"focus.splash"),M(a,"focus.splash",function(t){e.openPanel(s)})),n.cancel&&(k(a,"focus.cancel"),M(a,"focus.cancel",function(t){o.classList.add("mm-searchfield__cancel-active")}),k(o,"click.splash"),M(o,"click.splash",function(t){if(t.preventDefault(),o.classList.remove("mm-searchfield__cancel-active"),s.matches(".mm-panel_opened")){var n=y(e.node.pnls,".mm-panel_opened-parent");n.length&&e.openPanel(n[n.length-1])}})),n.panel.add&&"panel"==n.addTo&&this.bind("openPanel:finish",function(t){t===s&&a.focus()}),k(a,"input.search"),M(a,"input.search",function(t){switch(t.keyCode){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:break;default:e.search(a)}}),this.search(a)},Lt=function(t){if(t){var e=this.opts.searchfield;this.conf.searchfield;if(t.closest(".mm-panel")||(t=y(this.node.pnls,".mm-panel")[0]),!y(t,".mm-panel__noresultsmsg").length){var n=v("div.mm-panel__noresultsmsg.mm-hidden");n.innerHTML=this.i18n(e.noResults),t.append(n)}}};T.prototype.search=function(t,e){var n,i=this,s=this.opts.searchfield;this.conf.searchfield;e=(e=e||""+t.value).toLowerCase().trim();var a=t.mmSearchfield,o=b(t.closest(".mm-searchfield"),".mm-btn"),r=y(this.node.pnls,".mm-panel_search")[0],l=a.panels,c=a.noresults,h=a.listitems,u=a.dividers;if(h.forEach(function(t){t.classList.remove("mm-listitem_nosubitems"),t.classList.remove("mm-listitem_onlysubitems"),t.classList.remove("mm-hidden")}),r&&(y(r,".mm-listview")[0].innerHTML=""),l.forEach(function(t){t.scrollTop=0}),e.length){u.forEach(function(t){t.classList.add("mm-hidden")}),h.forEach(function(t){var n,i=y(t,".mm-listitem__text")[0],a=!1;i&&(n=i,Array.prototype.slice.call(n.childNodes).filter(function(t){return 3==t.nodeType}).map(function(t){return t.textContent}).join(" ")).toLowerCase().indexOf(e)>-1&&(i.matches(".mm-listitem__btn")?s.showSubPanels&&(a=!0):i.matches("a")?a=!0:s.showTextItems&&(a=!0)),a||t.classList.add("mm-hidden")});var d=h.filter(function(t){return!t.matches(".mm-hidden")}).length;if(s.panel.add){var f=[];l.forEach(function(t){var e=x(b(t,".mm-listitem"));if((e=e.filter(function(t){return!t.matches(".mm-hidden")})).length){if(s.panel.dividers){var n=v("li.mm-divider"),i=b(t,".mm-navbar__title")[0];i&&(n.innerHTML=i.innerHTML,f.push(n))}e.forEach(function(t){f.push(t.cloneNode(!0))})}}),f.forEach(function(t){t.querySelectorAll(".mm-toggle, .mm-check").forEach(function(t){t.remove()})}),(n=y(r,".mm-listview")[0]).append.apply(n,f),this.openPanel(r)}else s.showSubPanels&&l.forEach(function(t){x(b(t,".mm-listitem")).forEach(function(t){var e=t.mmChild;e&&b(e,".mm-listitem").forEach(function(t){t.classList.remove("mm-hidden")})})}),l.slice().reverse().forEach(function(e,n){var s=e.mmParent;s&&(x(b(e,".mm-listitem")).length?(s.matches(".mm-hidden")&&s.classList.remove("mm-hidden"),s.classList.add("mm-listitem_onlysubitems")):t.closest(".mm-panel")||((e.matches(".mm-panel_opened")||e.matches(".mm-panel_opened-parent"))&&setTimeout(function(){i.openPanel(s.closest(".mm-panel"))},(n+1)*(1.5*i.conf.openingInterval)),s.classList.add("mm-listitem_nosubitems")))}),l.forEach(function(t){x(b(t,".mm-listitem")).forEach(function(t){var e=function(t,e){for(var n=[],i=t.previousElementSibling;i;)e&&!i.matches(e)||n.push(i),i=i.previousElementSibling;return n}(t,".mm-divider")[0];e&&e.classList.remove("mm-hidden")})});o.forEach(function(t){return t.classList.remove("mm-hidden")}),c.forEach(function(t){b(t,".mm-panel__noresultsmsg").forEach(function(t){return t.classList[d?"add":"remove"]("mm-hidden")})}),s.panel.add&&(s.panel.splash&&b(r,".mm-panel__content").forEach(function(t){return t.classList.add("mm-hidden")}),h.forEach(function(t){return t.classList.remove("mm-hidden")}),u.forEach(function(t){return t.classList.remove("mm-hidden")}))}else if(h.forEach(function(t){return t.classList.remove("mm-hidden")}),u.forEach(function(t){return t.classList.remove("mm-hidden")}),o.forEach(function(t){return t.classList.add("mm-hidden")}),c.forEach(function(t){b(t,".mm-panel__noresultsmsg").forEach(function(t){return t.classList.add("mm-hidden")})}),s.panel.add)if(s.panel.splash)b(r,".mm-panel__content").forEach(function(t){return t.classList.remove("mm-hidden")});else if(!t.closest(".mm-panel_search")){var m=y(this.node.pnls,".mm-panel_opened-parent");this.openPanel(m.slice(-1)[0])}this.trigger("updateListview")};var Ot={add:!1,addTo:"panels"};T.options.sectionIndexer=Ot;var Mt={current:!0,hover:!1,parent:!1};T.options.setSelected=Mt;var kt={collapsed:{use:!1,blockMenu:!0,hideDivider:!1,hideNavbar:!0},expanded:{use:!1,initial:"open"}};T.options.sidebar=kt;T.configs.classNames.toggles={toggle:"Toggle",check:"Check"};
/*!
 * mmenu.js
 * mmenujs.com
 *
 * Copyright (c) Fred Heusschen
 * frebsite.nl
 *
 * License: CC-BY-NC-4.0
 * http://creativecommons.org/licenses/by-nc/4.0/
 */
T.addons={offcanvas:function(){var t=this;if(this.opts.offCanvas){var e=function(t){return"object"!=typeof t&&(t={}),t}(this.opts.offCanvas);this.opts.offCanvas=a(e,T.options.offCanvas);var n=this.conf.offCanvas;this._api.push("open","close","setPage"),this.vars.opened=!1,this.bind("initMenu:before",function(){n.clone&&(t.node.menu=t.node.menu.cloneNode(!0),t.node.menu.id&&(t.node.menu.id="mm-"+t.node.menu.id),b(t.node.menu,"[id]").forEach(function(t){t.id="mm-"+t.id})),t.node.wrpr=document.body,document.querySelector(n.menu.insertSelector)[n.menu.insertMethod](t.node.menu)}),this.bind("initMenu:after",function(){N.call(t),t.setPage(T.node.page),D.call(t),t.node.menu.classList.add("mm-menu_offcanvas");var e=window.location.hash;if(e){var n=u(t.node.menu.id);n&&n==e.slice(1)&&setTimeout(function(){t.open()},1e3)}}),this.bind("setPage:after",function(t){T.node.blck&&y(T.node.blck,"a").forEach(function(e){e.setAttribute("href","#"+t.id)})}),this.bind("open:start:sr-aria",function(){T.sr_aria(t.node.menu,"hidden",!1)}),this.bind("close:finish:sr-aria",function(){T.sr_aria(t.node.menu,"hidden",!0)}),this.bind("initMenu:after:sr-aria",function(){T.sr_aria(t.node.menu,"hidden",!0)}),this.bind("initBlocker:after:sr-text",function(){y(T.node.blck,"a").forEach(function(e){e.innerHTML=T.sr_text(t.i18n(t.conf.screenReader.text.closeMenu))})}),this.clck.push(function(e,n){var i=u(t.node.menu.id);if(i&&e.matches('[href="#'+i+'"]')){if(n.inMenu)return t.open(),!0;var s=e.closest(".mm-menu");if(s){var a=s.mmApi;if(a&&a.close)return a.close(),l(s,function(){t.open()},t.conf.transitionDuration),!0}return t.open(),!0}if((i=T.node.page.id)&&e.matches('[href="#'+i+'"]'))return t.close(),!0})}},screenReader:function(){var t=this,e=function(t){return"boolean"==typeof t&&(t={aria:t,text:t}),"object"!=typeof t&&(t={}),t}(this.opts.screenReader);this.opts.screenReader=a(e,T.options.screenReader);var n=this.conf.screenReader;e.aria&&(this.bind("initAddons:after",function(){t.bind("initMenu:after",function(){this.trigger("initMenu:after:sr-aria",[].slice.call(arguments))}),t.bind("initNavbar:after",function(){this.trigger("initNavbar:after:sr-aria",[].slice.call(arguments))}),t.bind("openPanel:start",function(){this.trigger("openPanel:start:sr-aria",[].slice.call(arguments))}),t.bind("close:start",function(){this.trigger("close:start:sr-aria",[].slice.call(arguments))}),t.bind("close:finish",function(){this.trigger("close:finish:sr-aria",[].slice.call(arguments))}),t.bind("open:start",function(){this.trigger("open:start:sr-aria",[].slice.call(arguments))}),t.bind("initOpened:after",function(){this.trigger("initOpened:after:sr-aria",[].slice.call(arguments))})}),this.bind("updateListview",function(){t.node.pnls.querySelectorAll(".mm-listitem").forEach(function(t){T.sr_aria(t,"hidden",t.matches(".mm-hidden"))})}),this.bind("openPanel:start",function(e){var n=b(t.node.pnls,".mm-panel").filter(function(t){return t!==e}).filter(function(t){return!t.parentElement.matches(".mm-panel")}),i=[e];b(e,".mm-listitem_vertical .mm-listitem_opened").forEach(function(t){i.push.apply(i,y(t,".mm-panel"))}),n.forEach(function(t){T.sr_aria(t,"hidden",!0)}),i.forEach(function(t){T.sr_aria(t,"hidden",!1)})}),this.bind("closePanel",function(t){T.sr_aria(t,"hidden",!0)}),this.bind("initPanel:after",function(t){b(t,".mm-btn").forEach(function(t){T.sr_aria(t,"haspopup",!0);var e=t.getAttribute("href");e&&T.sr_aria(t,"owns",e.replace("#",""))})}),this.bind("initNavbar:after",function(t){var e=y(t,".mm-navbar")[0],n=e.matches(".mm-hidden");T.sr_aria(e,"hidden",n)}),e.text&&"parent"==this.opts.navbar.titleLink&&this.bind("initNavbar:after",function(t){var e=y(t,".mm-navbar")[0],n=!!e.querySelector(".mm-btn_prev");T.sr_aria(b(e,".mm-navbar__title")[0],"hidden",n)})),e.text&&(this.bind("initAddons:after",function(){t.bind("setPage:after",function(){this.trigger("setPage:after:sr-text",[].slice.call(arguments))}),t.bind("initBlocker:after",function(){this.trigger("initBlocker:after:sr-text",[].slice.call(arguments))})}),this.bind("initNavbar:after",function(e){var i=y(e,".mm-navbar")[0];if(i){var s=y(i,".mm-btn_prev")[0];s&&(s.innerHTML=T.sr_text(t.i18n(n.text.closeSubmenu)))}}),this.bind("initListview:after",function(e){var i=e.closest(".mm-panel").mmParent;if(i){var s=y(i,".mm-btn_next")[0];if(s){var a=t.i18n(n.text[s.parentElement.matches(".mm-listitem_vertical")?"toggleSubmenu":"openSubmenu"]);s.innerHTML+=T.sr_text(a)}}}))},scrollBugFix:function(){var t=this;if(U&&this.opts.offCanvas&&this.opts.offCanvas.blockUI){var e=function(t){return"boolean"==typeof t&&(t={fix:t}),"object"!=typeof t&&(t={}),t}(this.opts.scrollBugFix);if(this.opts.scrollBugFix=a(e,T.options.scrollBugFix),e.fix){var n,i,s=(n=this.node.menu,i="",n.addEventListener("touchmove",function(t){t.movementY>0?i="down":t.movementY<0&&(i="up"),i=null}),{get:function(){return i}});this.node.menu.addEventListener("scroll",o,{passive:!1}),this.node.menu.addEventListener("touchmove",function(t){var e=t.target.closest(".mm-panel");e?e.scrollHeight===e.offsetHeight?o(t):(0==e.scrollTop&&"down"==s.get()||e.scrollHeight==e.scrollTop+e.offsetHeight&&"up"==s.get())&&o(t):o(t)},{passive:!1}),this.bind("open:start",function(){y(t.node.pnls,".mm-panel_opened")[0].scrollTop=0}),window.addEventListener("orientationchange",function(e){var n=y(t.node.pnls,".mm-panel_opened")[0];n.scrollTop=0,n.style["-webkit-overflow-scrolling"]="auto",n.style["-webkit-overflow-scrolling"]="touch"})}}function o(t){t.preventDefault(),t.stopPropagation()}},autoHeight:function(){var t=this,e=function(t){return"boolean"==typeof t&&t&&(t={height:"auto"}),"string"==typeof t&&(t={height:t}),"object"!=typeof t&&(t={}),t}(this.opts.autoHeight);if(this.opts.autoHeight=a(e,T.options.autoHeight),"auto"==e.height||"highest"==e.height){var n,i=(n=function(t){return t.parentElement.matches(".mm-listitem_vertical")&&(t=w(t,".mm-panel").filter(function(t){return!t.parentElement.matches(".mm-listitem_vertical")})[0]),t},function(){if(!t.opts.offCanvas||t.vars.opened){var i,s,a=0,o=t.node.menu.offsetHeight-t.node.pnls.offsetHeight;t.node.menu.classList.add("mm-menu_autoheight-measuring"),"auto"==e.height?((s=y(t.node.pnls,".mm-panel_opened")[0])&&(s=n(s)),s||(s=y(t.node.pnls,".mm-panel")[0]),a=s.scrollHeight):"highest"==e.height&&(i=0,y(t.node.pnls,".mm-panel").forEach(function(t){t=n(t),i=Math.max(i,t.scrollHeight)}),a=i),t.node.menu.style.height=a+o+"px",t.node.menu.classList.remove("mm-menu_autoheight-measuring")}});this.bind("initMenu:after",function(){t.node.menu.classList.add("mm-menu_autoheight")}),this.opts.offCanvas&&this.bind("open:start",i),"highest"==e.height&&this.bind("initPanels:after",i),"auto"==e.height&&(this.bind("updateListview",i),this.bind("openPanel:start",i))}},backButton:function(){var t=this;if(this.opts.offCanvas){var e=function(t){return"boolean"==typeof t&&(t={close:t}),"object"!=typeof t&&(t={}),t}(this.opts.backButton);this.opts.backButton=a(e,T.options.backButton);var n="#"+this.node.menu.id;if(e.close){var i=[],s=function(){i=[n],y(t.node.pnls,".mm-panel_opened, .mm-panel_opened-parent").forEach(function(t){i.push("#"+t.id)})};this.bind("open:finish",function(){history.pushState(null,document.title,n)}),this.bind("open:finish",s),this.bind("openPanel:finish",s),this.bind("close:finish",function(){i=[],history.back(),history.pushState(null,document.title,location.pathname+location.search)}),window.addEventListener("popstate",function(e){if(t.vars.opened&&i.length){var s=(i=i.slice(0,-1))[i.length-1];s==n?t.close():(t.openPanel(t.node.menu.querySelector(s)),history.pushState(null,document.title,n))}})}e.open&&window.addEventListener("popstate",function(e){t.vars.opened||location.hash!=n||t.open()})}},columns:function(){var t=this,e=function(t){return"boolean"==typeof t&&(t={add:t}),"number"==typeof t&&(t={add:!0,visible:t}),"object"!=typeof t&&(t={}),"number"==typeof t.visible&&(t.visible={min:t.visible,max:t.visible}),t}(this.opts.columns);if(this.opts.columns=a(e,T.options.columns),e.add){e.visible.min=Math.max(1,Math.min(6,e.visible.min)),e.visible.max=Math.max(e.visible.min,Math.min(6,e.visible.max));for(var n=[],i=[],s=["mm-panel_opened","mm-panel_opened-parent","mm-panel_highest"],o=0;o<=e.visible.max;o++)n.push("mm-menu_columns-"+o),i.push("mm-panel_columns-"+o);s.push.apply(s,i),this.bind("openPanel:before",function(e){var n;if(e&&(n=e.mmParent),n&&(n=n.closest(".mm-panel"))){var i=n.className;if(i.length&&(i=i.split("mm-panel_columns-")[1]))for(var a=parseInt(i.split(" ")[0],10)+1;a>0;){if(!(e=y(t.node.pnls,".mm-panel_columns-"+a)[0])){a=-1;break}a++,e.classList.add("mm-hidden"),s.forEach(function(t){e.classList.remove(t)})}}}),this.bind("openPanel:start",function(s){var a=y(t.node.pnls,".mm-panel_opened-parent").length;s.matches(".mm-panel_opened-parent")||a++,a=Math.min(e.visible.max,Math.max(e.visible.min,a)),n.forEach(function(e){t.node.menu.classList.remove(e)}),t.node.menu.classList.add("mm-menu_columns-"+a);var o=[];y(t.node.pnls,".mm-panel").forEach(function(t){i.forEach(function(e){t.classList.remove(e)}),t.matches(".mm-panel_opened-parent")&&o.push(t)}),o.push(s),o.slice(-e.visible.max).forEach(function(t,e){t.classList.add("mm-panel_columns-"+e)})})}},counters:function(){var t=this,e=function(t){return"boolean"==typeof t&&(t={add:t,addTo:"panels",count:t}),"object"!=typeof t&&(t={}),"panels"==t.addTo&&(t.addTo=".mm-listview"),t}(this.opts.counters);if(this.opts.counters=a(e,T.options.counters),this.bind("initListview:after",function(e){var n=t.conf.classNames.counters.counter;b(e,"."+n).forEach(function(t){_(t,n,"mm-counter")})}),e.add&&this.bind("initListview:after",function(t){if(t.matches(e.addTo)){var n=t.closest(".mm-panel").mmParent;if(n&&!b(n,".mm-counter").length){var i=y(n,".mm-btn")[0];i&&i.prepend(v("span.mm-counter"))}}}),e.count){var n=function(e){(e?[e.closest(".mm-panel")]:y(t.node.pnls,".mm-panel")).forEach(function(t){var e=t.mmParent;if(e){var n=b(e,".mm-counter")[0];if(n){var i=[];y(t,".mm-listview").forEach(function(t){i.push.apply(i,y(t))}),n.innerHTML=x(i).length.toString()}}})};this.bind("initListview:after",n),this.bind("updateListview",n)}},dividers:function(){var t=this,e=function(t){return"boolean"==typeof t&&(t={add:t}),"object"!=typeof t&&(t={}),"panels"==t.addTo&&(t.addTo=".mm-listview"),t}(this.opts.dividers);this.opts.dividers=a(e,T.options.dividers),this.bind("initListview:after",function(e){y(e).forEach(function(e){_(e,t.conf.classNames.divider,"mm-divider"),e.matches(".mm-divider")&&e.classList.remove("mm-listitem")})}),e.add&&this.bind("initListview:after",function(t){if(t.matches(e.addTo)){b(t,".mm-divider").forEach(function(t){t.remove()});var n="";x(y(t)).forEach(function(e){var i=y(e,".mm-listitem__text")[0].textContent.trim().toLowerCase()[0];if(i.length&&i!=n){n=i;var s=v("li.mm-divider");s.textContent=i,t.insertBefore(s,e)}})}})},drag:function(){var t=this;if(this.opts.offCanvas){var e=function(t){return"boolean"==typeof t&&(t={open:t}),"object"!=typeof t&&(t={}),t}(this.opts.drag);this.opts.drag=a(e,T.options.drag),e.open&&this.bind("setPage:after",function(n){(function(t){var e=this,n={},i=!1,s=function(){var t=Object.keys(e.opts.extensions);t.length?(E(t.join(", "),function(){},function(){n=rt(n,[],e.node.menu)}),t.forEach(function(t){E(t,function(){n=rt(n,e.opts.extensions[t],e.node.menu)},function(){})})):n=rt(n,[],e.node.menu)};at&&(k(at,"dragStart"),k(at,"dragMove"),k(at,"dragEnd")),st=new it(at=t),s(),s=function(){},at&&(M(at,"dragStart",function(t){t.detail.direction==n.direction&&(i=!0,e.node.wrpr.classList.add("mm-wrapper_dragging"),e._openSetup(),e.trigger("open:start"),ot=e.node.menu["x"==n.axis?"clientWidth":"clientHeight"])}),M(at,"dragMove",function(t){if(t.detail.axis==n.axis&&i){var e=t.detail["distance"+n.axis.toUpperCase()];switch(n.position){case"right":case"bottom":e=Math.min(Math.max(e,-ot),0);break;default:e=Math.max(Math.min(e,ot),0)}if("front"==n.zposition)switch(n.position){case"right":case"bottom":e+=ot;break;default:e-=ot}n.slideOutNodes.forEach(function(t){t.style.transform="translate"+n.axis.toUpperCase()+"("+e+"px)"})}}),M(at,"dragEnd",function(t){if(t.detail.axis==n.axis&&i){i=!1,e.node.wrpr.classList.remove("mm-wrapper_dragging"),n.slideOutNodes.forEach(function(t){t.style.transform=""});var s=Math.abs(t.detail["distance"+n.axis.toUpperCase()])>=.75*ot;if(!s){var a=t.detail["movement"+n.axis.toUpperCase()];switch(n.position){case"right":case"bottom":s=a<=0;break;default:s=a>=0}}s?e._openStart():e.close()}}))}).call(t,e.node||n)})}},dropdown:function(){var t=this;if(this.opts.offCanvas){var e=function(t){return"boolean"==typeof t&&t&&(t={drop:t}),"object"!=typeof t&&(t={}),"string"==typeof t.position&&(t.position={of:t.position}),t}(this.opts.dropdown);this.opts.dropdown=a(e,T.options.dropdown);var n=this.conf.dropdown;if(e.drop){var i;this.bind("initMenu:after",function(){if(t.node.menu.classList.add("mm-menu_dropdown"),"string"!=typeof e.position.of){var n=u(t.node.menu.id);n&&(e.position.of='[href="#'+n+'"]')}if("string"==typeof e.position.of){i=b(document.body,e.position.of)[0];var s=e.event.split(" ");1==s.length&&(s[1]=s[0]),"hover"==s[0]&&i.addEventListener("mouseenter",function(){t.open()},{passive:!0}),"hover"==s[1]&&t.node.menu.addEventListener("mouseleave",function(){t.close()},{passive:!0})}}),this.bind("open:start",function(){t.node.menu.mmStyle=t.node.menu.getAttribute("style"),t.node.wrpr.classList.add("mm-wrapper_dropdown")}),this.bind("close:finish",function(){t.node.menu.setAttribute("style",t.node.menu.mmStyle),t.node.wrpr.classList.remove("mm-wrapper_dropdown")});var s=function(t,s){var a,o,r,l=s[0],c=s[1],h="x"==t?"offsetWidth":"offsetHeight",u="x"==t?"left":"top",d="x"==t?"right":"bottom",f="x"==t?"width":"height",m="x"==t?"innerWidth":"innerHeight",p="x"==t?"maxWidth":"maxHeight",g=null,v=(a=u,i.getBoundingClientRect()[a]+document.body["left"===a?"scrollLeft":"scrollTop"]),b=v+i[h],y=window[m],w=n.offset.button[t]+n.offset.viewport[t];if(e.position[t])switch(e.position[t]){case"left":case"bottom":g="after";break;case"right":case"top":g="before"}return null===g&&(g=v+(b-v)/2<y/2?"after":"before"),"after"==g?(r=y-((o="x"==t?v:b)+w),l[u]=o+n.offset.button[t]+"px",l[d]="auto",e.tip&&c.push("mm-menu_tip-"+("x"==t?"left":"top"))):(r=(o="x"==t?b:v)-w,l[d]="calc( 100% - "+(o-n.offset.button[t])+"px )",l[u]="auto",e.tip&&c.push("mm-menu_tip-"+("x"==t?"right":"bottom"))),e.fitViewport&&(l[p]=Math.min(n[f].max,r)+"px"),[l,c]};this.bind("open:start",o),window.addEventListener("resize",function(e){o.call(t)},{passive:!0}),this.opts.offCanvas.blockUI||window.addEventListener("scroll",function(e){o.call(t)},{passive:!0})}}function o(){var t=this;if(this.vars.opened){this.node.menu.setAttribute("style",this.node.menu.mmStyle);var n=[{},[]];for(var i in n=s.call(this,"y",n),(n=s.call(this,"x",n))[0])this.node.menu.style[i]=n[0][i];e.tip&&(["mm-menu_tip-left","mm-menu_tip-right","mm-menu_tip-top","mm-menu_tip-bottom"].forEach(function(e){t.node.menu.classList.remove(e)}),n[1].forEach(function(e){t.node.menu.classList.add(e)}))}}},fixedElements:function(){var t=this;if(this.opts.offCanvas){var e,n,i=this.conf.fixedElements;this.bind("setPage:after",function(s){e=t.conf.classNames.fixedElements.fixed,n=b(document,i.insertSelector)[0],b(s,"."+e).forEach(function(t){_(t,e,"mm-slideout"),n[i.insertMethod](t)})})}},iconbar:function(){var t,e=this,n=function(t){return"array"==o(t)&&(t={use:!0,top:t}),"object"!=o(t)&&(t={}),void 0===t.use&&(t.use=!0),"boolean"==typeof t.use&&t.use&&(t.use=!0),t}(this.opts.iconbar);if(this.opts.iconbar=a(n,T.options.iconbar),n.use&&(["top","bottom"].forEach(function(e,i){var s=n[e];"array"!=o(s)&&(s=[s]);for(var a=v("div.mm-iconbar__"+e),r=0,l=s.length;r<l;r++)"string"==typeof s[r]?a.innerHTML+=s[r]:a.append(s[r]);a.children.length&&(t||(t=v("div.mm-iconbar")),t.append(a))}),t)){this.bind("initMenu:after",function(){e.node.menu.prepend(t)});var i="mm-menu_iconbar-"+n.position,s=function(){e.node.menu.classList.add(i),T.sr_aria(t,"hidden",!1)};if("boolean"==typeof n.use?this.bind("initMenu:after",s):E(n.use,s,function(){e.node.menu.classList.remove(i),T.sr_aria(t,"hidden",!0)}),"tabs"==n.type){t.classList.add("mm-iconbar_tabs"),t.addEventListener("click",function(t){var n=t.target;if(n.matches("a"))if(n.matches(".mm-iconbar__tab_selected"))t.stopImmediatePropagation();else try{var i=e.node.menu.querySelector(n.getAttribute("href"))[0];i&&i.matches(".mm-panel")&&(t.preventDefault(),t.stopImmediatePropagation(),e.openPanel(i,!1))}catch(t){}});var r=function(e){b(t,"a").forEach(function(t){t.classList.remove("mm-iconbar__tab_selected")});var n=b(t,'[href="#'+e.id+'"]')[0];if(n)n.classList.add("mm-iconbar__tab_selected");else{var i=e.mmParent;i&&r(i.closest(".mm-panel"))}};this.bind("openPanel:start",r)}}},iconPanels:function(){var t=this,e=function(t){return"boolean"==typeof t&&(t={add:t}),"number"!=typeof t&&"string"!=typeof t||(t={add:!0,visible:t}),"object"!=typeof t&&(t={}),t}(this.opts.iconPanels);this.opts.iconPanels=a(e,T.options.iconPanels);var n=!1;if("first"==e.visible&&(n=!0,e.visible=1),e.visible=Math.min(3,Math.max(1,e.visible)),e.visible++,e.add){this.bind("initMenu:after",function(){var n=["mm-menu_iconpanel"];e.hideNavbar&&n.push("mm-menu_hidenavbar"),e.hideDivider&&n.push("mm-menu_hidedivider"),n.forEach(function(e){t.node.menu.classList.add(e)})});var i=[];if(!n)for(var s=0;s<=e.visible;s++)i.push("mm-panel_iconpanel-"+s);this.bind("openPanel:start",function(s){var a=y(t.node.pnls,".mm-panel");if(!(s=s||a[0]).parentElement.matches(".mm-listitem_vertical"))if(n)a.forEach(function(t,e){t.classList[0==e?"add":"remove"]("mm-panel_iconpanel-first")});else{a.forEach(function(t){i.forEach(function(e){t.classList.remove(e)})}),a=a.filter(function(t){return t.matches(".mm-panel_opened-parent")});var o=!1;a.forEach(function(t){s===t&&(o=!0)}),o||a.push(s),a.forEach(function(t){t.classList.remove("mm-hidden")}),(a=a.slice(-e.visible)).forEach(function(t,e){t.classList.add("mm-panel_iconpanel-"+e)})}}),this.bind("initPanel:after",function(t){if(e.blockPanel&&!t.parentElement.matches(".mm-listitem_vertical")&&!y(t,".mm-panel__blocker")[0]){var n=v("a.mm-panel__blocker");n.setAttribute("href","#"+t.closest(".mm-panel").id),t.prepend(n)}})}},keyboardNavigation:function(){var t=this;if(!U){var e=function(t){return"boolean"!=typeof t&&"string"!=typeof t||(t={enable:t}),"object"!=typeof t&&(t={}),t}(this.opts.keyboardNavigation);if(this.opts.keyboardNavigation=a(e,T.options.keyboardNavigation),e.enable){var n=v("button.mm-tabstart.mm-sronly"),i=v("button.mm-tabend.mm-sronly"),s=v("button.mm-tabend.mm-sronly");this.bind("initMenu:after",function(){e.enhance&&t.node.menu.classList.add("mm-menu_keyboardfocus"),mt.call(t,e.enhance)}),this.bind("initOpened:before",function(){t.node.menu.prepend(n),t.node.menu.append(i),y(t.node.menu,".mm-navbars-top, .mm-navbars-bottom").forEach(function(t){t.querySelectorAll(".mm-navbar__title").forEach(function(t){t.setAttribute("tabindex","-1")})})}),this.bind("initBlocker:after",function(){T.node.blck.append(s),y(T.node.blck,"a")[0].classList.add("mm-tabstart")});var o="input, select, textarea, button, label, a[href]",r=function(n){n=n||y(t.node.pnls,".mm-panel_opened")[0];var i=null,s=document.activeElement.closest(".mm-navbar");if(!s||s.closest(".mm-menu")!=t.node.menu){if("default"==e.enable&&((i=b(n,".mm-listview a[href]:not(.mm-hidden)")[0])||(i=b(n,o+":not(.mm-hidden)")[0]),!i)){var a=[];y(t.node.menu,".mm-navbars_top, .mm-navbars_bottom").forEach(function(t){a.push.apply(a,b(t,o+":not(.mm-hidden)"))}),i=a[0]}i||(i=y(t.node.menu,".mm-tabstart")[0]),i&&i.focus()}};this.bind("open:finish",r),this.bind("openPanel:finish",r),this.bind("initOpened:after:sr-aria",function(){[t.node.menu,T.node.blck].forEach(function(t){y(t,".mm-tabstart, .mm-tabend").forEach(function(t){T.sr_aria(t,"hidden",!0),T.sr_role(t,"presentation")})})})}}},lazySubmenus:function(){var t=this,e=function(t){return"boolean"==typeof t&&(t={load:t}),"object"!=typeof t&&(t={}),t}(this.opts.lazySubmenus);this.opts.lazySubmenus=a(e,T.options.lazySubmenus),e.load&&(this.bind("initMenu:after",function(){var e=[];b(t.node.pnls,"li").forEach(function(n){e.push.apply(e,y(n,t.conf.panelNodetype.join(", ")))}),e.filter(function(t){return!t.matches(".mm-listview_inset")}).filter(function(t){return!t.matches(".mm-nolistview")}).filter(function(t){return!t.matches(".mm-nopanel")}).forEach(function(t){["mm-panel_lazysubmenu","mm-nolistview","mm-nopanel"].forEach(function(e){t.classList.add(e)})})}),this.bind("initPanels:before",function(){y(t.node.pnls,t.conf.panelNodetype.join(", ")).forEach(function(t){var e=".mm-panel_lazysubmenu",n=b(t,e);t.matches(e)&&n.unshift(t),n.filter(function(t){return!t.matches(".mm-panel_lazysubmenu .mm-panel_lazysubmenu")}).forEach(function(t){["mm-panel_lazysubmenu","mm-nolistview","mm-nopanel"].forEach(function(e){t.classList.remove(e)})})})}),this.bind("initOpened:before",function(){var e=[];b(t.node.pnls,"."+t.conf.classNames.selected).forEach(function(t){e.push.apply(e,w(t,".mm-panel_lazysubmenu"))}),e.length&&(e.forEach(function(t){["mm-panel_lazysubmenu","mm-nolistview","mm-nopanel"].forEach(function(e){t.classList.remove(e)})}),t.initPanel(e[e.length-1]))}),this.bind("openPanel:before",function(e){var n=".mm-panel_lazysubmenu",i=b(e,n);e.matches(n)&&i.unshift(e),(i=i.filter(function(t){return!t.matches(".mm-panel_lazysubmenu .mm-panel_lazysubmenu")})).forEach(function(e){t.initPanel(e)})}))},navbars:bt,pageScroll:function(){var t=this,e=function(t){return"boolean"==typeof t&&(t={scroll:t}),"object"!=typeof t&&(t={}),t}(this.opts.pageScroll);this.opts.pageScroll=a(e,T.options.pageScroll);var n,i=this.conf.pageScroll;function s(){n&&window.scrollTo({top:n.getBoundingClientRect().top+document.scrollingElement.scrollTop-i.scrollOffset,behavior:"smooth"}),n=null}function o(t){try{return"#"!=t&&"#"==t.slice(0,1)?T.node.page.querySelector(t):null}catch(t){return null}}if(e.scroll&&this.bind("close:finish",function(){s()}),this.opts.offCanvas&&e.scroll&&this.clck.push(function(e,i){if(n=null,i.inMenu){var a=e.getAttribute("href");if(n=o(a))return t.node.menu.matches(".mm-menu_sidebar-expanded")&&t.node.wrpr.matches(".mm-wrapper_sidebar-expanded")?void s():{close:!0}}}),e.update){var r=[];this.bind("initListview:after",function(t){C(y(t,".mm-listitem")).forEach(function(t){var e=o(t.getAttribute("href"));e&&r.unshift(e)})});var l=-1;window.addEventListener("scroll",function(e){for(var n=window.scrollY,s=0;s<r.length;s++)if(r[s].offsetTop<n+i.updateOffset){if(l!==s){l=s;var a=C(b(y(t.node.pnls,".mm-panel_opened")[0],".mm-listitem"));(a=a.filter(function(t){return t.matches('[href="#'+r[s].id+'"]')})).length&&t.setSelected(a[0].parentElement)}break}})}},searchfield:function(){var t=this,e=function(t){return"boolean"==typeof t&&(t={add:t}),"object"!=typeof t&&(t={}),"boolean"==typeof t.panel&&(t.panel={add:t.panel}),"object"!=typeof t.panel&&(t.panel={}),"panel"==t.addTo&&(t.panel.add=!0),t.panel.add&&(t.showSubPanels=!1,t.panel.splash&&(t.cancel=!0)),t}(this.opts.searchfield);this.opts.searchfield=a(e,T.options.searchfield);this.conf.searchfield;e.add&&(this.bind("close:start",function(){b(t.node.menu,".mm-searchfield").forEach(function(t){t.blur()})}),this.bind("initPanel:after",function(n){var i=null;e.panel.add&&(i=At.call(t));var s=null;switch(e.addTo){case"panels":s=[n];break;case"panel":s=[i];break;default:"string"==typeof e.addTo?s=b(t.node.menu,e.addTo):"array"==o(e.addTo)&&(s=e.addTo)}s.forEach(function(n){n=Tt.call(t,n),e.search&&n&&Pt.call(t,n)}),e.noResults&&Lt.call(t,e.panel.add?i:n)}),this.clck.push(function(e,n){if(n.inMenu&&e.matches(".mm-searchfield__btn")){if(e.matches(".mm-btn_close")){var i=b(s=e.closest(".mm-searchfield"),"input")[0];return i.value="",t.search(i),!0}var s;if(e.matches(".mm-btn_next"))return(s=e.closest("form"))&&s.submit(),!0}}))},sectionIndexer:function(){var t=this,e=function(t){return"boolean"==typeof t&&(t={add:t}),"object"!=typeof t&&(t={}),t}(this.opts.sectionIndexer);this.opts.sectionIndexer=a(e,T.options.sectionIndexer),e.add&&this.bind("initPanels:after",function(){if(!t.node.indx){var e="";"abcdefghijklmnopqrstuvwxyz".split("").forEach(function(t){e+='<a href="#">'+t+"</a>"});var n=v("div.mm-sectionindexer");n.innerHTML=e,t.node.pnls.prepend(n),t.node.indx=n,t.node.indx.addEventListener("click",function(t){t.target.matches("a")&&t.preventDefault()});var i=function(e){if(e.target.matches("a")){var n=e.target.textContent,i=y(t.node.pnls,".mm-panel_opened")[0],s=-1,a=i.scrollTop;i.scrollTop=0,b(i,".mm-divider").filter(function(t){return!t.matches(".mm-hidden")}).forEach(function(t){s<0&&n==t.textContent.trim().slice(0,1).toLowerCase()&&(s=t.offsetTop)}),i.scrollTop=s>-1?s:a}};U?(t.node.indx.addEventListener("touchstart",i),t.node.indx.addEventListener("touchmove",i)):t.node.indx.addEventListener("mouseover",i)}t.bind("openPanel:start",function(e){var n=b(e,".mm-divider").filter(function(t){return!t.matches(".mm-hidden")}).length;t.node.indx.classList[n?"add":"remove"]("mm-sectionindexer_active")})})},setSelected:function(){var t=this,e=function(t){return"boolean"==typeof t&&(t={hover:t,parent:t}),"object"!=typeof t&&(t={}),t}(this.opts.setSelected);if(this.opts.setSelected=a(e,T.options.setSelected),"detect"==e.current){var n=function(e){e=e.split("?")[0].split("#")[0];var i=t.node.menu.querySelector('a[href="'+e+'"], a[href="'+e+'/"]');if(i)t.setSelected(i.parentElement);else{var s=e.split("/").slice(0,-1);s.length&&n(s.join("/"))}};this.bind("initMenu:after",function(){n.call(t,window.location.href)})}else e.current||this.bind("initListview:after",function(t){y(t,".mm-listitem_selected").forEach(function(t){t.classList.remove("mm-listitem_selected")})});e.hover&&this.bind("initMenu:after",function(){t.node.menu.classList.add("mm-menu_selected-hover")}),e.parent&&(this.bind("openPanel:finish",function(e){b(t.node.pnls,".mm-listitem_selected-parent").forEach(function(t){t.classList.remove("mm-listitem_selected-parent")});for(var n=e.mmParent;n;)n.matches(".mm-listitem_vertical")||n.classList.add("mm-listitem_selected-parent"),n=(n=n.closest(".mm-panel")).mmParent}),this.bind("initMenu:after",function(){t.node.menu.classList.add("mm-menu_selected-parent")}))},sidebar:function(){var t=this;if(this.opts.offCanvas){var e=function(t){return("string"==typeof t||"boolean"==typeof t&&t||"number"==typeof t)&&(t={expanded:t}),"object"!=typeof t&&(t={}),"boolean"==typeof t.collapsed&&t.collapsed&&(t.collapsed={use:!0}),"string"!=typeof t.collapsed&&"number"!=typeof t.collapsed||(t.collapsed={use:t.collapsed}),"object"!=typeof t.collapsed&&(t.collapsed={}),"boolean"==typeof t.expanded&&t.expanded&&(t.expanded={use:!0}),"string"!=typeof t.expanded&&"number"!=typeof t.expanded||(t.expanded={use:t.expanded}),"object"!=typeof t.expanded&&(t.expanded={}),t}(this.opts.sidebar);if(this.opts.sidebar=a(e,T.options.sidebar),e.collapsed.use){this.bind("initMenu:after",function(){if(t.node.menu.classList.add("mm-menu_sidebar-collapsed"),e.collapsed.blockMenu&&t.opts.offCanvas&&!y(t.node.menu,".mm-menu__blocker")[0]){var n=v("a.mm-menu__blocker");n.setAttribute("href","#"+t.node.menu.id),t.node.menu.prepend(n)}e.collapsed.hideNavbar&&t.node.menu.classList.add("mm-menu_hidenavbar"),e.collapsed.hideDivider&&t.node.menu.classList.add("mm-menu_hidedivider")});var n=function(){t.node.wrpr.classList.add("mm-wrapper_sidebar-collapsed")},i=function(){t.node.wrpr.classList.remove("mm-wrapper_sidebar-collapsed")};"boolean"==typeof e.collapsed.use?this.bind("initMenu:after",n):E(e.collapsed.use,n,i)}if(e.expanded.use){this.bind("initMenu:after",function(){t.node.menu.classList.add("mm-menu_sidebar-expanded")}),n=function(){t.node.wrpr.classList.add("mm-wrapper_sidebar-expanded"),t.node.wrpr.matches(".mm-wrapper_sidebar-closed")||t.open()},i=function(){t.node.wrpr.classList.remove("mm-wrapper_sidebar-expanded"),t.close()},"boolean"==typeof e.expanded.use?this.bind("initMenu:after",n):E(e.expanded.use,n,i),this.bind("close:start",function(){t.node.wrpr.matches(".mm-wrapper_sidebar-expanded")&&(t.node.wrpr.classList.add("mm-wrapper_sidebar-closed"),"remember"==e.expanded.initial&&window.localStorage.setItem("mmenuExpandedState","closed"))}),this.bind("open:start",function(){t.node.wrpr.matches(".mm-wrapper_sidebar-expanded")&&(t.node.wrpr.classList.remove("mm-wrapper_sidebar-closed"),"remember"==e.expanded.initial&&window.localStorage.setItem("mmenuExpandedState","open"))});var s=e.expanded.initial;if("remember"==e.expanded.initial){var o=window.localStorage.getItem("mmenuExpandedState");switch(o){case"open":case"closed":s=o}}"closed"==s&&this.bind("initMenu:after",function(){t.node.wrpr.classList.add("mm-wrapper_sidebar-closed")}),this.clck.push(function(n,i){if(i.inMenu&&i.inListview&&t.node.wrpr.matches(".mm-wrapper_sidebar-expanded"))return{close:"closed"==e.expanded.initial}})}}},toggles:function(){var t=this;this.bind("initPanel:after",function(e){b(e,"input").forEach(function(e){_(e,t.conf.classNames.toggles.toggle,"mm-toggle"),_(e,t.conf.classNames.toggles.check,"mm-check")})})}},T.wrappers={angular:function(){this.opts.onClick={close:!0,preventDefault:!1,setSelected:!0}},bootstrap:function(){var t=this;if(this.node.menu.matches(".navbar-collapse")){this.conf.offCanvas&&(this.conf.offCanvas.clone=!1);var e=v("nav"),n=v("div");e.append(n),y(this.node.menu).forEach(function(e){switch(!0){case e.matches(".navbar-nav"):n.append((i=e,s=v("ul"),b(i,".nav-item").forEach(function(t){var e=v("li");if(t.matches(".active")&&e.classList.add("Selected"),!t.matches(".nav-link")){var n=y(t,".dropdown-menu")[0];n&&e.append(o(n)),t=y(t,".nav-link")[0]}e.prepend(a(t)),s.append(e)}),s));break;case e.matches(".dropdown-menu"):n.append(o(e));break;case e.matches(".form-inline"):t.conf.searchfield.form={action:e.getAttribute("action")||null,method:e.getAttribute("method")||null},t.conf.searchfield.input={name:e.querySelector("input").getAttribute("name")||null},t.conf.searchfield.clear=!1,t.conf.searchfield.submit=!0;break;default:n.append(e.cloneNode(!0))}var i,s}),this.bind("initMenu:before",function(){document.body.prepend(e),t.node.menu=e});var i=this.node.menu.parentElement;if(i){var s=i.querySelector(".navbar-toggler");s&&(delete s.dataset.target,s.removeAttribute("aria-controls"),s.outerHTML=s.outerHTML,(s=i.querySelector(".navbar-toggler")).addEventListener("click",function(e){e.preventDefault(),e.stopImmediatePropagation(),t[t.vars.opened?"close":"open"]()}))}}function a(t){for(var e=v(t.matches("a")?"a":"span"),n=["href","title","target"],i=0;i<n.length;i++)void 0!==t.getAttribute(n[i])&&e.setAttribute(n[i],t.getAttribute(n[i]));return e.innerHTML=t.innerHTML,b(e,".sr-only").forEach(function(t){t.remove()}),e}function o(t){var e=v("ul");return y(t).forEach(function(t){var n=v("li");t.matches(".dropdown-divider")?n.classList.add("Divider"):t.matches(".dropdown-item")&&n.append(a(t)),e.append(n)}),e}},olark:function(){this.conf.offCanvas.page.noSelector.push("#olark")},turbolinks:function(){var t;document.addEventListener("turbolinks:before-visit",function(e){t=document.querySelector(".mm-wrapper").className.split(" ").filter(function(t){return/mm-/.test(t)})}),document.addEventListener("turbolinks:load",function(e){void 0!==t&&(document.querySelector(".mm-wrapper").className=t)})},wordpress:function(){this.conf.classNames.selected="current-menu-item";var t=document.getElementById("wpadminbar");t&&(t.style.position="fixed",t.classList.add("mm-slideout"))}};var Dt;window.Mmenu=T,(Dt=window.jQuery||window.Zepto||null)&&(Dt.fn.mmenu=function(t,e){var n=Dt();return this.each(function(i,s){if(s.mmApi)return;let a=new T(s,t,e),o=Dt(a.node.menu);o.data("mmenu",a.API),n=n.add(o)}),n})},function(t,e,n){"use strict";
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */const i=new WeakMap,s=t=>"function"==typeof t&&i.has(t),a=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,o=(t,e,n=null)=>{for(;e!==n;){const n=e.nextSibling;t.removeChild(e),e=n}},r={},l={},c=`{{lit-${String(Math.random()).slice(2)}}}`,h=`\x3c!--${c}--\x3e`,u=new RegExp(`${c}|${h}`),d="$lit$";class f{constructor(t,e){this.parts=[],this.element=e;const n=[],i=[],s=document.createTreeWalker(e.content,133,null,!1);let a=0,o=-1,r=0;const{strings:l,values:{length:h}}=t;for(;r<h;){const t=s.nextNode();if(null!==t){if(o++,1===t.nodeType){if(t.hasAttributes()){const e=t.attributes,{length:n}=e;let i=0;for(let t=0;t<n;t++)m(e[t].name,d)&&i++;for(;i-- >0;){const e=l[r],n=v.exec(e)[2],i=n.toLowerCase()+d,s=t.getAttribute(i);t.removeAttribute(i);const a=s.split(u);this.parts.push({type:"attribute",index:o,name:n,strings:a}),r+=a.length-1}}"TEMPLATE"===t.tagName&&(i.push(t),s.currentNode=t.content)}else if(3===t.nodeType){const e=t.data;if(e.indexOf(c)>=0){const i=t.parentNode,s=e.split(u),a=s.length-1;for(let e=0;e<a;e++){let n,a=s[e];if(""===a)n=g();else{const t=v.exec(a);null!==t&&m(t[2],d)&&(a=a.slice(0,t.index)+t[1]+t[2].slice(0,-d.length)+t[3]),n=document.createTextNode(a)}i.insertBefore(n,t),this.parts.push({type:"node",index:++o})}""===s[a]?(i.insertBefore(g(),t),n.push(t)):t.data=s[a],r+=a}}else if(8===t.nodeType)if(t.data===c){const e=t.parentNode;null!==t.previousSibling&&o!==a||(o++,e.insertBefore(g(),t)),a=o,this.parts.push({type:"node",index:o}),null===t.nextSibling?t.data="":(n.push(t),o--),r++}else{let e=-1;for(;-1!==(e=t.data.indexOf(c,e+1));)this.parts.push({type:"node",index:-1}),r++}}else s.currentNode=i.pop()}for(const t of n)t.parentNode.removeChild(t)}}const m=(t,e)=>{const n=t.length-e.length;return n>=0&&t.slice(n)===e},p=t=>-1!==t.index,g=()=>document.createComment(""),v=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=\/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
class b{constructor(t,e,n){this.__parts=[],this.template=t,this.processor=e,this.options=n}update(t){let e=0;for(const n of this.__parts)void 0!==n&&n.setValue(t[e]),e++;for(const t of this.__parts)void 0!==t&&t.commit()}_clone(){const t=a?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),e=[],n=this.template.parts,i=document.createTreeWalker(t,133,null,!1);let s,o=0,r=0,l=i.nextNode();for(;o<n.length;)if(s=n[o],p(s)){for(;r<s.index;)r++,"TEMPLATE"===l.nodeName&&(e.push(l),i.currentNode=l.content),null===(l=i.nextNode())&&(i.currentNode=e.pop(),l=i.nextNode());if("node"===s.type){const t=this.processor.handleTextExpression(this.options);t.insertAfterNode(l.previousSibling),this.__parts.push(t)}else this.__parts.push(...this.processor.handleAttributeExpressions(l,s.name,s.strings,this.options));o++}else this.__parts.push(void 0),o++;return a&&(document.adoptNode(t),customElements.upgrade(t)),t}}
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */const y=` ${c} `;class w{constructor(t,e,n,i){this.strings=t,this.values=e,this.type=n,this.processor=i}getHTML(){const t=this.strings.length-1;let e="",n=!1;for(let i=0;i<t;i++){const t=this.strings[i],s=t.lastIndexOf("\x3c!--");n=(s>-1||n)&&-1===t.indexOf("--\x3e",s+1);const a=v.exec(t);e+=null===a?t+(n?y:h):t.substr(0,a.index)+a[1]+a[2]+d+a[3]+c}return e+=this.strings[t]}getTemplateElement(){const t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
const x=t=>null===t||!("object"==typeof t||"function"==typeof t),C=t=>Array.isArray(t)||!(!t||!t[Symbol.iterator]);class _{constructor(t,e,n){this.dirty=!0,this.element=t,this.name=e,this.strings=n,this.parts=[];for(let t=0;t<n.length-1;t++)this.parts[t]=this._createPart()}_createPart(){return new S(this)}_getValue(){const t=this.strings,e=t.length-1;let n="";for(let i=0;i<e;i++){n+=t[i];const e=this.parts[i];if(void 0!==e){const t=e.value;if(x(t)||!C(t))n+="string"==typeof t?t:String(t);else for(const e of t)n+="string"==typeof e?e:String(e)}}return n+=t[e]}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class S{constructor(t){this.value=void 0,this.committer=t}setValue(t){t===r||x(t)&&t===this.value||(this.value=t,s(t)||(this.committer.dirty=!0))}commit(){for(;s(this.value);){const t=this.value;this.value=r,t(this)}this.value!==r&&this.committer.commit()}}class E{constructor(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild(g()),this.endNode=t.appendChild(g())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t.__insert(this.startNode=g()),t.__insert(this.endNode=g())}insertAfterPart(t){t.__insert(this.startNode=g()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this.__pendingValue=t}commit(){for(;s(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=r,t(this)}const t=this.__pendingValue;t!==r&&(x(t)?t!==this.value&&this.__commitText(t):t instanceof w?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):C(t)?this.__commitIterable(t):t===l?(this.value=l,this.clear()):this.__commitText(t))}__insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}__commitNode(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}__commitText(t){const e=this.startNode.nextSibling,n="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=n:this.__commitNode(document.createTextNode(n)),this.value=t}__commitTemplateResult(t){const e=this.options.templateFactory(t);if(this.value instanceof b&&this.value.template===e)this.value.update(t.values);else{const n=new b(e,t.processor,this.options),i=n._clone();n.update(t.values),this.__commitNode(i),this.value=n}}__commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());const e=this.value;let n,i=0;for(const s of t)void 0===(n=e[i])&&(n=new E(this.options),e.push(n),0===i?n.appendIntoPart(this):n.insertAfterPart(e[i-1])),n.setValue(s),n.commit(),i++;i<e.length&&(e.length=i,this.clear(n&&n.endNode))}clear(t=this.startNode){o(this.startNode.parentNode,t.nextSibling,this.endNode)}}class A{constructor(t,e,n){if(this.value=void 0,this.__pendingValue=void 0,2!==n.length||""!==n[0]||""!==n[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=n}setValue(t){this.__pendingValue=t}commit(){for(;s(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=r,t(this)}if(this.__pendingValue===r)return;const t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=r}}class T extends _{constructor(t,e,n){super(t,e,n),this.single=2===n.length&&""===n[0]&&""===n[1]}_createPart(){return new P(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class P extends S{}let L=!1;try{const t={get capture(){return L=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}class O{constructor(t,e,n){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=n,this.__boundHandleEvent=(t=>this.handleEvent(t))}setValue(t){this.__pendingValue=t}commit(){for(;s(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=r,t(this)}if(this.__pendingValue===r)return;const t=this.__pendingValue,e=this.value,n=null==t||null!=e&&(t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive),i=null!=t&&(null==e||n);n&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),i&&(this.__options=M(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=r}handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const M=t=>t&&(L?{capture:t.capture,passive:t.passive,once:t.once}:t.capture);
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */const k=new class{handleAttributeExpressions(t,e,n,i){const s=e[0];return"."===s?new T(t,e.slice(1),n).parts:"@"===s?[new O(t,e.slice(1),i.eventContext)]:"?"===s?[new A(t,e.slice(1),n)]:new _(t,e,n).parts}handleTextExpression(t){return new E(t)}};
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */function D(t){let e=N.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},N.set(t.type,e));let n=e.stringsArray.get(t.strings);if(void 0!==n)return n;const i=t.strings.join(c);return void 0===(n=e.keyString.get(i))&&(n=new f(t,t.getTemplateElement()),e.keyString.set(i,n)),e.stringsArray.set(t.strings,n),n}const N=new Map,I=new WeakMap;
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.1.2");const R=(t,...e)=>new w(t,e,"html",k),B=133;function F(t,e){const{element:{content:n},parts:i}=t,s=document.createTreeWalker(n,B,null,!1);let a=j(i),o=i[a],r=-1,l=0;const c=[];let h=null;for(;s.nextNode();){r++;const t=s.currentNode;for(t.previousSibling===h&&(h=null),e.has(t)&&(c.push(t),null===h&&(h=t)),null!==h&&l++;void 0!==o&&o.index===r;)o.index=null!==h?-1:o.index-l,o=i[a=j(i,a)]}c.forEach(t=>t.parentNode.removeChild(t))}const H=t=>{let e=11===t.nodeType?0:1;const n=document.createTreeWalker(t,B,null,!1);for(;n.nextNode();)e++;return e},j=(t,e=-1)=>{for(let n=e+1;n<t.length;n++){const e=t[n];if(p(e))return n}return-1};
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
const q=(t,e)=>`${t}--${e}`;let U=!0;void 0===window.ShadyCSS?U=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),U=!1);const z=t=>e=>{const n=q(e.type,t);let i=N.get(n);void 0===i&&(i={stringsArray:new WeakMap,keyString:new Map},N.set(n,i));let s=i.stringsArray.get(e.strings);if(void 0!==s)return s;const a=e.strings.join(c);if(void 0===(s=i.keyString.get(a))){const n=e.getTemplateElement();U&&window.ShadyCSS.prepareTemplateDom(n,t),s=new f(e,n),i.keyString.set(a,s)}return i.stringsArray.set(e.strings,s),s},$=["html","svg"],W=new Set,V=(t,e,n)=>{W.add(t);const i=n?n.element:document.createElement("template"),s=e.querySelectorAll("style"),{length:a}=s;if(0===a)return void window.ShadyCSS.prepareTemplateStyles(i,t);const o=document.createElement("style");for(let t=0;t<a;t++){const e=s[t];e.parentNode.removeChild(e),o.textContent+=e.textContent}(t=>{$.forEach(e=>{const n=N.get(q(e,t));void 0!==n&&n.keyString.forEach(t=>{const{element:{content:e}}=t,n=new Set;Array.from(e.querySelectorAll("style")).forEach(t=>{n.add(t)}),F(t,n)})})})(t);const r=i.content;n?function(t,e,n=null){const{element:{content:i},parts:s}=t;if(null==n)return void i.appendChild(e);const a=document.createTreeWalker(i,B,null,!1);let o=j(s),r=0,l=-1;for(;a.nextNode();)for(l++,a.currentNode===n&&(r=H(e),n.parentNode.insertBefore(e,n));-1!==o&&s[o].index===l;){if(r>0){for(;-1!==o;)s[o].index+=r,o=j(s,o);return}o=j(s,o)}}(n,o,r.firstChild):r.insertBefore(o,r.firstChild),window.ShadyCSS.prepareTemplateStyles(i,t);const l=r.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==l)e.insertBefore(l.cloneNode(!0),e.firstChild);else if(n){r.insertBefore(o,r.firstChild);const t=new Set;t.add(o),F(n,t)}};window.JSCompiler_renameProperty=((t,e)=>t);const G={toAttribute(t,e){switch(e){case Boolean:return t?"":null;case Object:case Array:return null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){switch(e){case Boolean:return null!==t;case Number:return null===t?null:Number(t);case Object:case Array:return JSON.parse(t)}return t}},Y=(t,e)=>e!==t&&(e==e||t==t),X={attribute:!0,type:String,converter:G,reflect:!1,hasChanged:Y},K=Promise.resolve(!0),Q=1,Z=4,J=8,tt=16,et=32,nt="finalized";class it extends HTMLElement{constructor(){super(),this._updateState=0,this._instanceProperties=void 0,this._updatePromise=K,this._hasConnectedResolver=void 0,this._changedProperties=new Map,this._reflectingProperties=void 0,this.initialize()}static get observedAttributes(){this.finalize();const t=[];return this._classProperties.forEach((e,n)=>{const i=this._attributeNameForProperty(n,e);void 0!==i&&(this._attributeToPropertyMap.set(i,n),t.push(i))}),t}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const t=Object.getPrototypeOf(this)._classProperties;void 0!==t&&t.forEach((t,e)=>this._classProperties.set(e,t))}}static createProperty(t,e=X){if(this._ensureClassProperties(),this._classProperties.set(t,e),e.noAccessor||this.prototype.hasOwnProperty(t))return;const n="symbol"==typeof t?Symbol():`__${t}`;Object.defineProperty(this.prototype,t,{get(){return this[n]},set(e){const i=this[t];this[n]=e,this._requestUpdate(t,i)},configurable:!0,enumerable:!0})}static finalize(){const t=Object.getPrototypeOf(this);if(t.hasOwnProperty(nt)||t.finalize(),this[nt]=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const t=this.properties,e=[...Object.getOwnPropertyNames(t),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]];for(const n of e)this.createProperty(n,t[n])}}static _attributeNameForProperty(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}static _valueHasChanged(t,e,n=Y){return n(t,e)}static _propertyValueFromAttribute(t,e){const n=e.type,i=e.converter||G,s="function"==typeof i?i:i.fromAttribute;return s?s(t,n):t}static _propertyValueToAttribute(t,e){if(void 0===e.reflect)return;const n=e.type,i=e.converter;return(i&&i.toAttribute||G.toAttribute)(t,n)}initialize(){this._saveInstanceProperties(),this._requestUpdate()}_saveInstanceProperties(){this.constructor._classProperties.forEach((t,e)=>{if(this.hasOwnProperty(e)){const t=this[e];delete this[e],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(e,t)}})}_applyInstanceProperties(){this._instanceProperties.forEach((t,e)=>this[e]=t),this._instanceProperties=void 0}connectedCallback(){this._updateState=this._updateState|et,this._hasConnectedResolver&&(this._hasConnectedResolver(),this._hasConnectedResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(t,e,n){e!==n&&this._attributeToProperty(t,n)}_propertyToAttribute(t,e,n=X){const i=this.constructor,s=i._attributeNameForProperty(t,n);if(void 0!==s){const t=i._propertyValueToAttribute(e,n);if(void 0===t)return;this._updateState=this._updateState|J,null==t?this.removeAttribute(s):this.setAttribute(s,t),this._updateState=this._updateState&~J}}_attributeToProperty(t,e){if(this._updateState&J)return;const n=this.constructor,i=n._attributeToPropertyMap.get(t);if(void 0!==i){const t=n._classProperties.get(i)||X;this._updateState=this._updateState|tt,this[i]=n._propertyValueFromAttribute(e,t),this._updateState=this._updateState&~tt}}_requestUpdate(t,e){let n=!0;if(void 0!==t){const i=this.constructor,s=i._classProperties.get(t)||X;i._valueHasChanged(this[t],e,s.hasChanged)?(this._changedProperties.has(t)||this._changedProperties.set(t,e),!0!==s.reflect||this._updateState&tt||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(t,s))):n=!1}!this._hasRequestedUpdate&&n&&this._enqueueUpdate()}requestUpdate(t,e){return this._requestUpdate(t,e),this.updateComplete}async _enqueueUpdate(){let t,e;this._updateState=this._updateState|Z;const n=this._updatePromise;this._updatePromise=new Promise((n,i)=>{t=n,e=i});try{await n}catch(t){}this._hasConnected||await new Promise(t=>this._hasConnectedResolver=t);try{const t=this.performUpdate();null!=t&&await t}catch(t){e(t)}t(!this._hasRequestedUpdate)}get _hasConnected(){return this._updateState&et}get _hasRequestedUpdate(){return this._updateState&Z}get hasUpdated(){return this._updateState&Q}performUpdate(){this._instanceProperties&&this._applyInstanceProperties();let t=!1;const e=this._changedProperties;try{(t=this.shouldUpdate(e))&&this.update(e)}catch(e){throw t=!1,e}finally{this._markUpdated()}t&&(this._updateState&Q||(this._updateState=this._updateState|Q,this.firstUpdated(e)),this.updated(e))}_markUpdated(){this._changedProperties=new Map,this._updateState=this._updateState&~Z}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(t){return!0}update(t){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((t,e)=>this._propertyToAttribute(e,this[e],t)),this._reflectingProperties=void 0)}updated(t){}firstUpdated(t){}}it[nt]=!0;const st="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,at=Symbol();class ot{constructor(t,e){if(e!==at)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){return void 0===this._styleSheet&&(st?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
(window.litElementVersions||(window.litElementVersions=[])).push("2.2.1");const rt=t=>t.flat?t.flat(1/0):function t(e,n=[]){for(let i=0,s=e.length;i<s;i++){const s=e[i];Array.isArray(s)?t(s,n):n.push(s)}return n}(t);class lt extends it{static finalize(){super.finalize.call(this),this._styles=this.hasOwnProperty(JSCompiler_renameProperty("styles",this))?this._getUniqueStyles():this._styles||[]}static _getUniqueStyles(){const t=this.styles,e=[];if(Array.isArray(t)){rt(t).reduceRight((t,e)=>(t.add(e),t),new Set).forEach(t=>e.unshift(t))}else t&&e.push(t);return e}initialize(){super.initialize(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?st?this.renderRoot.adoptedStyleSheets=t.map(t=>t.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map(t=>t.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){super.update(t);const e=this.render();e instanceof w&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(t=>{const e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)}))}render(){}}lt.finalized=!0,lt.render=((t,e,n)=>{if(!n||"object"!=typeof n||!n.scopeName)throw new Error("The `scopeName` option is required.");const i=n.scopeName,s=I.has(e),a=U&&11===e.nodeType&&!!e.host,r=a&&!W.has(i),l=r?document.createDocumentFragment():e;if(((t,e,n)=>{let i=I.get(e);void 0===i&&(o(e,e.firstChild),I.set(e,i=new E(Object.assign({templateFactory:D},n))),i.appendInto(e)),i.setValue(t),i.commit()})(t,l,Object.assign({templateFactory:z(i)},n)),r){const t=I.get(l);I.delete(l);const n=t.value instanceof b?t.value.template:void 0;V(i,l,n),o(e,e.firstChild),e.appendChild(l),I.set(e,t)}!s&&a&&window.ShadyCSS.styleElement(e.host)});
/**
 * @license
 * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
const ct=new WeakMap,ht=(t=>(...e)=>{const n=t(...e);return i.set(n,!0),n})(t=>e=>{if(!(e instanceof S)||e instanceof P||"class"!==e.committer.name||e.committer.parts.length>1)throw new Error("The `classMap` directive must be used in the `class` attribute and must be the only part in the attribute.");const{committer:n}=e,{element:i}=n;ct.has(e)||(i.className=n.strings.join(" "));const{classList:s}=i,a=ct.get(e);for(const e in a)e in t||s.remove(e);for(const e in t){const n=t[e];if(!a||n!==a[e]){s[n?"add":"remove"](e)}}ct.set(e,t)});((t,...e)=>{const n=e.reduce((e,n,i)=>e+(t=>{if(t instanceof ot)return t.cssText;if("number"==typeof t)return t;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${t}. Use 'unsafeCSS' to pass non-literal values, but\n            take care to ensure page security.`)})(n)+t[i+1],t[0]);return new ot(n,at)})`
:host {
   --width: calc(100%);
   font-size: 1rem;
}
[type="hidden"] {
  height: 1px;
}
/* form starting stylings ------------------------------- */
.group 			  {
  position:relative;
  margin: 2em 0 0 0;
  --width: calc(100%);
}
input 				{
  font-size: inherit;

  padding-left: 0;
  display:block;
  width: var(--width);
  border:none;
  border-bottom:1px solid var(--black);
  border-radius: 0;
  font-family: 'Roboto';
  line-height: 2;

  background-image: none;
  background-color: transparent;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}
input.focus 		{outline:none;}
input.invalid {
    border-bottom-color: var(--mdc-theme-warning);
}

/* LABEL ======================================= */
label 				 {
  color: rgba(0, 0, 0, 0.6);
  font-size: inherit;
  font-family: 'Roboto'
  font-weight:normal;
  position:absolute;
  pointer-events:none;
  left: 0;
  top: 0;
  transition:0.2s ease all;
  -moz-transition:0.2s ease all;
  -webkit-transition:0.2s ease all;
  line-height: 2;
}

/* active state */
input.invalid ~ label {
    color: var(--mdc-theme-warning);
}
input.focus ~ label, input.valid ~ label		{
  color: var(--app-primary-color);
}
label.floating		{
    top: -1.75em;
    font-size: .75em;
}

/* BOTTOM BARS ================================= */
.bar 	{
    position:relative; display:block; width: var(--width);
     --bar: var(--black);
}
.bar:before, .bar:after 	{
  content:'';
  height:2px;
  width:0;
  bottom:1px;
  position:absolute;
  background: var(--bar);
  transition:0.2s ease all;
  -moz-transition:0.2s ease all;
  -webkit-transition:0.2s ease all;
}
.bar:before {left:50%;}
.bar:after {right:50%;}

/* active state */
input.focus ~ .bar:before, input.focus ~ .bar:after {width:50%;}
/* invalid */
input.invalid ~ .bar {
    --bar: var(--mdc-theme-warning);
}


/* HIGHLIGHTER ================================== */
.highlight {
  position:absolute;
  height:60%;
  width:100px;
  top:25%;
  left:0;
  pointer-events:none;
  opacity:0.5;
}

/* active state */
input.focus ~ .highlight {
  -webkit-animation:inputHighlighter 0.3s ease;
  -moz-animation:inputHighlighter 0.3s ease;
  animation:inputHighlighter 0.3s ease;

}


/* ANIMATIONS ================ */
@-webkit-keyframes inputHighlighter {
    from {background:var(--highlighted);}
  to 	{ width:0; background:transparent; }
}
@-moz-keyframes inputHighlighter {
    from {background:var(--highlighted);}
  to 	{ width:0; background:transparent; }
}
@keyframes inputHighlighter {
    from {background:var(--highlighted);}
  to 	{ width:0; background:transparent; }
}
`;window.customElements.define("surf-input",class extends lt{static get formAssociated(){return!0}static get properties(){return{name:{type:String,attribute:!0},label:String,focused:{type:Boolean,attribute:!0},required:{type:Boolean,attribute:!0},type:{type:String,attribute:!0},value:{type:String,reflect:!0},maxlength:{type:String,attribute:!0},pattern:{type:String},step:{type:String,attribute:!0},inputmode:{type:String,attribute:!0},_input:Object,autocomplete:{type:String,attribute:!0}}}constructor(){super(),this.focused=!1,this.unchanged=!0,this.type="text",this.value="",this.maxlength="",this.step="",this.autocomplete=""}createRenderRoot(){return this}render(){const t={focus:this.focused,valid:this.valid&&!this.unchanged,invalid:!this.valid&&!this.unchanged},e={unchanged:this.unchanged,floating:this.focused||""!==this.value};return R`
       
        <div class="group">

            <input 
            id="${this.id}"
            type="${this.type}" 
            autocomplete=${this.autocomplete} 
            .value=${this.value} 
            ?required=${this.required} 
            step=${this.step}
            class="${ht(t)}"
            name="${this.name}"
            @input=${t=>{this.value=t.target.value}}
            @focus=${t=>{this.focused=!0}}
            @blur=${t=>{this.focused=!1}}
            >
        
            <span class="highlight"></span>
            <span class="bar"></span>
            <label class="${ht(e)}" for="${this.id}">${this.label}</label>
            <span class="helper"></span>
        </div>

        `}firstUpdated(){super.firstUpdated(),this._input=this.querySelector("input"),this._input.addEventListener("change",t=>{t.stopPropagation(),this.notifyChange()}),this.addEventListener("input",t=>{this.unchanged=!1}),this.pattern&&this._input.setAttribute("pattern",this.pattern),this.maxlength&&this._input.setAttribute("maxlength",this.maxlength),this.inputmode&&this._input.setAttribute("inputmode",this.inputmode)}notifyChange(){this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}))}updated(t){t.has("value")&&(this.notifyChange(),""!==this.value&&(this.unchanged=!1),this.unchanged||(this._valid=this._input.validity.valid)),t.has("focused")&&console.log("focus")}_cleanUp(t){return t.replace(/\b(\w)/g,function(t){return t.toUpperCase()}).trim()}validate(){return this.unchanged=!1,this.valid}get valid(){return this._input&&this._input.validity.valid}})}]);