var WOW;jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,t,i,n,o){return jQuery.easing[jQuery.easing.def](e,t,i,n,o)},easeInQuad:function(e,t,i,n,o){return n*(t/=o)*t+i},easeOutQuad:function(e,t,i,n,o){return-n*(t/=o)*(t-2)+i},easeInOutQuad:function(e,t,i,n,o){return(t/=o/2)<1?n/2*t*t+i:-n/2*(--t*(t-2)-1)+i},easeInCubic:function(e,t,i,n,o){return n*(t/=o)*t*t+i},easeOutCubic:function(e,t,i,n,o){return n*((t=t/o-1)*t*t+1)+i},easeInOutCubic:function(e,t,i,n,o){return(t/=o/2)<1?n/2*t*t*t+i:n/2*((t-=2)*t*t+2)+i},easeInQuart:function(e,t,i,n,o){return n*(t/=o)*t*t*t+i},easeOutQuart:function(e,t,i,n,o){return-n*((t=t/o-1)*t*t*t-1)+i},easeInOutQuart:function(e,t,i,n,o){return(t/=o/2)<1?n/2*t*t*t*t+i:-n/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(e,t,i,n,o){return n*(t/=o)*t*t*t*t+i},easeOutQuint:function(e,t,i,n,o){return n*((t=t/o-1)*t*t*t*t+1)+i},easeInOutQuint:function(e,t,i,n,o){return(t/=o/2)<1?n/2*t*t*t*t*t+i:n/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(e,t,i,n,o){return-n*Math.cos(t/o*(Math.PI/2))+n+i},easeOutSine:function(e,t,i,n,o){return n*Math.sin(t/o*(Math.PI/2))+i},easeInOutSine:function(e,t,i,n,o){return-n/2*(Math.cos(Math.PI*t/o)-1)+i},easeInExpo:function(e,t,i,n,o){return 0==t?i:n*Math.pow(2,10*(t/o-1))+i},easeOutExpo:function(e,t,i,n,o){return t==o?i+n:n*(1-Math.pow(2,-10*t/o))+i},easeInOutExpo:function(e,t,i,n,o){return 0==t?i:t==o?i+n:(t/=o/2)<1?n/2*Math.pow(2,10*(t-1))+i:n/2*(2-Math.pow(2,-10*--t))+i},easeInCirc:function(e,t,i,n,o){return-n*(Math.sqrt(1-(t/=o)*t)-1)+i},easeOutCirc:function(e,t,i,n,o){return n*Math.sqrt(1-(t=t/o-1)*t)+i},easeInOutCirc:function(e,t,i,n,o){return(t/=o/2)<1?-n/2*(Math.sqrt(1-t*t)-1)+i:n/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(e,t,i,n,o){var a=1.70158,r=0,s=n;if(0==t)return i;if(1==(t/=o))return i+n;if(r||(r=.3*o),s0&&t-1 in e))}if(!e.jQuery){var i=function(e,t){return new i.fn.init(e,t)};i.isWindow=function(e){return null!=e&&e==e.window},i.type=function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?o[r.call(e)]||"object":typeof e},i.isArray=Array.isArray||function(e){return"array"===i.type(e)},i.isPlainObject=function(e){var t;if(!e||"object"!==i.type(e)||e.nodeType||i.isWindow(e))return!1;try{if(e.constructor&&!a.call(e,"constructor")&&!a.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(t in e);return void 0===t||a.call(e,t)},i.each=function(e,i,n){var o=0,a=e.length,r=t(e);if(n){if(r)for(;a>o&&!1!==i.apply(e[o],n);o++);else for(o in e)if(!1===i.apply(e[o],n))break}else if(r)for(;a>o&&!1!==i.call(e[o],o,e[o]);o++);else for(o in e)if(!1===i.call(e[o],o,e[o]))break;return e},i.data=function(e,t,o){if(void 0===o){var a=(r=e[i.expando])&&n[r];if(void 0===t)return a;if(a&&t in a)return a[t]}else if(void 0!==t){var r=e[i.expando]||(e[i.expando]=++i.uuid);return n[r]=n[r]||{},n[r][t]=o,o}},i.removeData=function(e,t){var o=e[i.expando],a=o&&n[o];a&&i.each(t,function(e,t){delete a[t]})},i.extend=function(){var e,t,n,o,a,r,s=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[l]||{},l++),"object"!=typeof s&&"function"!==i.type(s)&&(s={}),l===c&&(s=this,l--);c>l;l++)if(null!=(a=arguments[l]))for(o in a)e=s[o],s!==(n=a[o])&&(u&&n&&(i.isPlainObject(n)||(t=i.isArray(n)))?(t?(t=!1,r=e&&i.isArray(e)?e:[]):r=e&&i.isPlainObject(e)?e:{},s[o]=i.extend(u,r,n)):void 0!==n&&(s[o]=n));return s},i.queue=function(e,n,o){if(e){n=(n||"fx")+"queue";var a=i.data(e,n);return o?(!a||i.isArray(o)?a=i.data(e,n,function(e,i){var n=i||[];return null!=e&&(t(Object(e))?function(e,t){for(var i=+t.length,n=0,o=e.length;i>n;)e[o++]=t[n++];if(i!=i)for(;void 0!==t[n];)e[o++]=t[n++];e.length=o}(n,"string"==typeof e?[e]:e):[].push.call(n,e)),n}(o)):a.push(o),a):a||[]}},i.dequeue=function(e,t){i.each(e.nodeType?[e]:e,function(e,n){t=t||"fx";var o=i.queue(n,t),a=o.shift();"inprogress"===a&&(a=o.shift()),a&&("fx"===t&&o.unshift("inprogress"),a.call(n,function(){i.dequeue(n,t)}))})},i.fn=i.prototype={init:function(e){if(e.nodeType)return this[0]=e,this;throw new Error("Not a DOM node.")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(e.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(e.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function e(){for(var e=this.offsetParent||document;e&&"html"===!e.nodeType.toLowerCase&&"static"===e.style.position;)e=e.offsetParent;return e||document}var t=this[0],e=e.apply(t),n=this.offset(),o=/^(?:body|html)$/i.test(e.nodeName)?{top:0,left:0}:i(e).offset();return n.top-=parseFloat(t.style.marginTop)||0,n.left-=parseFloat(t.style.marginLeft)||0,e.style&&(o.top+=parseFloat(e.style.borderTopWidth)||0,o.left+=parseFloat(e.style.borderLeftWidth)||0),{top:n.top-o.top,left:n.left-o.left}}};var n={};i.expando="velocity"+(new Date).getTime(),i.uuid=0;for(var o={},a=o.hasOwnProperty,r=o.toString,s="Boolean Number String Function Array Date RegExp Object Error".split(" "),l=0;lo;++o){var a=c(i,e,n);if(0===a)return i;i-=(l(i,e,n)-t)/a}return i}function d(t,i,o){var a,r,s=0;do{(a=l(r=i+(o-i)/2,e,n)-t)>0?o=r:i=r}while(Math.abs(a)>m&&++st;++t)x[t]=l(t*y,e,n)}()}var h=4,f=.001,m=1e-7,v=10,g=11,y=1/(g-1),b="Float32Array"in t;if(4!==arguments.length)return!1;for(var w=0;4>w;++w)if("number"!=typeof arguments[w]||isNaN(arguments[w])||!isFinite(arguments[w]))return!1;e=Math.min(e,1),n=Math.min(n,1),e=Math.max(e,0),n=Math.max(n,0);var x=b?new Float32Array(g):new Array(g),k=!1,S=function(t){return k||p(),e===i&&n===o?t:0===t?0:1===t?1:l(function(t){for(var i=0,o=1,a=g-1;o!=a&&x[o]<=t;++o)i+=y;var r=i+(t-x[--o])/(x[o+1]-x[o])*y,s=c(r,e,n);return s>=f?u(t,r):0==s?r:d(t,i,i+y)}(t),i,o)};S.getControlPoints=function(){return[{x:e,y:i},{x:n,y:o}]};var C="generateBezier("+[e,i,n,o]+")";return S.toString=function(){return C},S}function s(e,t){var i=e;return h.isString(e)?g.Easings[e]||(i=!1):i=h.isArray(e)&&1===e.length?function(e){return function(t){return Math.round(t*e)*(1/e)}}.apply(null,e):h.isArray(e)&&2===e.length?y.apply(null,e.concat([t])):!(!h.isArray(e)||4!==e.length)&&r.apply(null,e),!1===i&&(i=g.Easings[g.defaults.easing]?g.defaults.easing:v),i}function l(e){if(e){var t=(new Date).getTime(),i=g.State.calls.length;i>1e4&&(g.State.calls=function(e){for(var t=-1,i=e?e.length:0,n=[];++to;o++)if(g.State.calls[o]){var r=g.State.calls[o],s=r[0],d=r[2],p=r[3],f=!!p,m=null;p||(p=g.State.calls[o][3]=t-16);for(var v=Math.min((t-p)/d.duration,1),y=0,w=s.length;w>y;y++){var k=s[y],S=k.element;if(a(S)){var C=!1;if(d.display!==n&&null!==d.display&&"none"!==d.display){if("flex"===d.display){u.each(["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],function(e,t){b.setPropertyValue(S,"display",t)})}b.setPropertyValue(S,"display",d.display)}for(var T in d.visibility!==n&&"hidden"!==d.visibility&&b.setPropertyValue(S,"visibility",d.visibility),k)if("element"!==T){var $,O=k[T],I=h.isString(O.easing)?g.Easings[O.easing]:O.easing;if(1===v)$=O.endValue;else{var A=O.endValue-O.startValue;if($=O.startValue+A*I(v,d,A),!f&&$===O.currentValue)continue}if(O.currentValue=$,"tween"===T)m=$;else{if(b.Hooks.registered[T]){var E=b.Hooks.getRoot(T),P=a(S).rootPropertyValueCache[E];P&&(O.rootPropertyValue=P)}var M=b.setPropertyValue(S,T,O.currentValue+(0===parseFloat($)?"":O.unitType),O.rootPropertyValue,O.scrollData);b.Hooks.registered[T]&&(a(S).rootPropertyValueCache[E]=b.Normalizations.registered[E]?b.Normalizations.registered[E]("extract",null,M[1]):M[1]),"transform"===M[0]&&(C=!0)}}d.mobileHA&&a(S).transformCache.translate3d===n&&(a(S).transformCache.translate3d="(0px, 0px, 0px)",C=!0),C&&b.flushTransformCache(S)}}d.display!==n&&"none"!==d.display&&(g.State.calls[o][2].display=!1),d.visibility!==n&&"hidden"!==d.visibility&&(g.State.calls[o][2].visibility=!1),d.progress&&d.progress.call(r[1],r[1],v,Math.max(0,p+d.duration-t),p,m),1===v&&c(o)}}g.State.isTicking&&x(l)}function c(e,t){if(!g.State.calls[e])return!1;for(var i=g.State.calls[e][0],o=g.State.calls[e][1],r=g.State.calls[e][2],s=g.State.calls[e][4],l=!1,c=0,d=i.length;d>c;c++){var p=i[c].element;if(t||r.loop||("none"===r.display&&b.setPropertyValue(p,"display",r.display),"hidden"===r.visibility&&b.setPropertyValue(p,"visibility",r.visibility)),!0!==r.loop&&(u.queue(p)[1]===n||!/\.velocityQueueEntryFlag/i.test(u.queue(p)[1]))&&a(p)){a(p).isAnimating=!1,a(p).rootPropertyValueCache={};var h=!1;u.each(b.Lists.transforms3D,function(e,t){var i=/^scale/.test(t)?1:0,o=a(p).transformCache[t];a(p).transformCache[t]!==n&&new RegExp("^\\("+i+"[^.]").test(o)&&(h=!0,delete a(p).transformCache[t])}),r.mobileHA&&(h=!0,delete a(p).transformCache.translate3d),h&&b.flushTransformCache(p),b.Values.removeClass(p,"velocity-animating")}if(!t&&r.complete&&!r.loop&&c===d-1)try{r.complete.call(o,o)}catch(e){setTimeout(function(){throw e},1)}s&&!0!==r.loop&&s(o),a(p)&&!0===r.loop&&!t&&(u.each(a(p).tweensContainer,function(e,t){/^rotate/.test(e)&&360===parseFloat(t.endValue)&&(t.endValue=0,t.startValue=360),/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)}),g(p,"reverse",{loop:!0,delay:r.delay})),!1!==r.queue&&u.dequeue(p,r.queue)}g.State.calls[e]=!1;for(var f=0,m=g.State.calls.length;m>f;f++)if(!1!==g.State.calls[f]){l=!0;break}!1===l&&(g.State.isTicking=!1,delete g.State.calls,g.State.calls=[])}var u,d=function(){if(i.documentMode)return i.documentMode;for(var e=7;e>4;e--){var t=i.createElement("div");if(t.innerHTML="\x3c!--[if IE "+e+"]>0)},isWrapped:function(e){return e&&(e.jquery||t.Zepto&&t.Zepto.zepto.isZ(e))},isSVG:function(e){return t.SVGElement&&e instanceof t.SVGElement},isEmptyObject:function(e){for(var t in e)return!1;return!0}},f=!1;if(e.fn&&e.fn.jquery?(u=e,f=!0):u=t.Velocity.Utilities,8>=d&&!f)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(!(7>=d)){var m=400,v="swing",g={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:i.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:u,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:m,easing:v,begin:n,complete:n,progress:n,display:n,visibility:n,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(e){u.data(e,"velocity",{isSVG:h.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};t.pageYOffset!==n?(g.State.scrollAnchor=t,g.State.scrollPropertyLeft="pageXOffset",g.State.scrollPropertyTop="pageYOffset"):(g.State.scrollAnchor=i.documentElement||i.body.parentNode||i.body,g.State.scrollPropertyLeft="scrollLeft",g.State.scrollPropertyTop="scrollTop");var y=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,i,n){var o={x:t.x+n.dx*i,v:t.v+n.dv*i,tension:t.tension,friction:t.friction};return{dx:o.v,dv:e(o)}}function i(i,n){var o={dx:i.v,dv:e(i)},a=t(i,.5*n,o),r=t(i,.5*n,a),s=t(i,n,r),l=1/6*(o.dx+2*(a.dx+r.dx)+s.dx),c=1/6*(o.dv+2*(a.dv+r.dv)+s.dv);return i.x=i.x+l*n,i.v=i.v+c*n,i}return function e(t,n,o){var a,r,s,l={x:-1,v:0,tension:null,friction:null},c=[0],u=0;for(t=parseFloat(t)||500,n=parseFloat(n)||20,o=o||null,l.tension=t,l.friction=n,(a=null!==o)?r=(u=e(t,n))/o*.016:r=.016;s=i(s||l,r),c.push(1+s.x),u+=16,Math.abs(s.x)>1e-4&&Math.abs(s.v)>1e-4;);return a?function(e){return c[e*(c.length-1)|0]}:u}}();g.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},u.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(e,t){g.Easings[t[0]]=r.apply(null,t[1])});var b=g.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e=0;e=d)switch(e){case"name":return"filter";case"extract":var n=i.toString().match(/alpha\(opacity=(.*)\)/i);return n?n[1]/100:1;case"inject":return t.style.zoom=1,parseFloat(i)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(i),10)+")"}else switch(e){case"name":return"opacity";case"extract":case"inject":return i}}},register:function(){9>=d||g.State.isGingerbread||(b.Lists.transformsBase=b.Lists.transformsBase.concat(b.Lists.transforms3D));for(var e=0;eo&&(o=1),r=!/(\d)$/i.test(o);break;case"skew":r=!/(deg|\d)$/i.test(o);break;case"rotate":r=!/(deg|\d)$/i.test(o)}return r||(a(i).transformCache[t]="("+o+")"),a(i).transformCache[t]}}}();for(e=0;e=d||3!==a.split(" ").length||(a+=" 1"),a;case"inject":return 8>=d?4===o.split(" ").length&&(o=o.split(/\s+/).slice(0,3).join(" ")):3===o.split(" ").length&&(o+=" 1"),(8>=d?"rgb":"rgba")+"("+o.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})},SVGAttribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(d||g.State.isAndroid&&!g.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(e)},prefixCheck:function(e){if(g.State.prefixMatches[e])return[g.State.prefixMatches[e],!0];for(var t=["","Webkit","Moz","ms","O"],i=0,n=t.length;n>i;i++){var o;if(o=0===i?e:t[i]+e.replace(/^\w/,function(e){return e.toUpperCase()}),h.isString(g.State.prefixElement.style[o]))return g.State.prefixMatches[e]=o,[o,!0]}return[e,!1]}},Values:{hexToRgb:function(e){var t;return e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,i,n){return t+t+i+i+n+n}),(t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(e){return 0==e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var t=e&&e.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(e,t){e.classList?e.classList.add(t):e.className+=(e.className.length?" ":"")+t},removeClass:function(e,t){e.classList?e.classList.remove(t):e.className=e.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(e,i,o,r){function s(e,i){function o(){p&&b.setPropertyValue(e,"display","none")}var l=0;if(8>=d)l=u.css(e,i);else{var c,p=!1;if(/^(width|height)$/.test(i)&&0===b.getPropertyValue(e,"display")&&(p=!0,b.setPropertyValue(e,"display",b.Values.getDisplayType(e))),!r){if("height"===i&&"border-box"!==b.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var h=e.offsetHeight-(parseFloat(b.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(b.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(b.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(b.getPropertyValue(e,"paddingBottom"))||0);return o(),h}if("width"===i&&"border-box"!==b.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var f=e.offsetWidth-(parseFloat(b.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(b.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(b.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(b.getPropertyValue(e,"paddingRight"))||0);return o(),f}}c=a(e)===n?t.getComputedStyle(e,null):a(e).computedStyle?a(e).computedStyle:a(e).computedStyle=t.getComputedStyle(e,null),"borderColor"===i&&(i="borderTopColor"),(""===(l=9===d&&"filter"===i?c.getPropertyValue(i):c[i])||null===l)&&(l=e.style[i]),o()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(i)){var m=s(e,"position");("fixed"===m||"absolute"===m&&/top|left/i.test(i))&&(l=u(e).position()[i]+"px")}return l}var l;if(b.Hooks.registered[i]){var c=i,p=b.Hooks.getRoot(c);o===n&&(o=b.getPropertyValue(e,b.Names.prefixCheck(p)[0])),b.Normalizations.registered[p]&&(o=b.Normalizations.registered[p]("extract",e,o)),l=b.Hooks.extractValue(c,o)}else if(b.Normalizations.registered[i]){var h,f;"transform"!==(h=b.Normalizations.registered[i]("name",e))&&(f=s(e,b.Names.prefixCheck(h)[0]),b.Values.isCSSNullValue(f)&&b.Hooks.templates[i]&&(f=b.Hooks.templates[i][1])),l=b.Normalizations.registered[i]("extract",e,f)}if(!/^[\d-]/.test(l))if(a(e)&&a(e).isSVG&&b.Names.SVGAttribute(i))if(/^(height|width)$/i.test(i))try{l=e.getBBox()[i]}catch(e){l=0}else l=e.getAttribute(i);else l=s(e,b.Names.prefixCheck(i)[0]);return b.Values.isCSSNullValue(l)&&(l=0),g.debug>=2&&console.log("Get "+i+": "+l),l},setPropertyValue:function(e,i,n,o,r){var s=i;if("scroll"===i)r.container?r.container["scroll"+r.direction]=n:"Left"===r.direction?t.scrollTo(n,r.alternateValue):t.scrollTo(r.alternateValue,n);else if(b.Normalizations.registered[i]&&"transform"===b.Normalizations.registered[i]("name",e))b.Normalizations.registered[i]("inject",e,n),s="transform",n=a(e).transformCache[i];else{if(b.Hooks.registered[i]){var l=i,c=b.Hooks.getRoot(i);o=o||b.getPropertyValue(e,c),n=b.Hooks.injectValue(l,n,o),i=c}if(b.Normalizations.registered[i]&&(n=b.Normalizations.registered[i]("inject",e,n),i=b.Normalizations.registered[i]("name",e)),s=b.Names.prefixCheck(i)[0],8>=d)try{e.style[s]=n}catch(e){g.debug&&console.log("Browser does not support ["+n+"] for ["+s+"]")}else a(e)&&a(e).isSVG&&b.Names.SVGAttribute(i)?e.setAttribute(i,n):e.style[s]=n;g.debug>=2&&console.log("Set "+i+" ("+s+"): "+n)}return[s,n]},flushTransformCache:function(e){function t(t){return parseFloat(b.getPropertyValue(e,t))}var i="";if((d||g.State.isAndroid&&!g.State.isChrome)&&a(e).isSVG){var n={translate:[t("translateX"),t("translateY")],skewX:[t("skewX")],skewY:[t("skewY")],scale:1!==t("scale")?[t("scale"),t("scale")]:[t("scaleX"),t("scaleY")],rotate:[t("rotateZ"),0,0]};u.each(a(e).transformCache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),n[e]&&(i+=e+"("+n[e].join(" ")+") ",delete n[e])})}else{var o,r;u.each(a(e).transformCache,function(t){return o=a(e).transformCache[t],"transformPerspective"===t?(r=o,!0):(9===d&&"rotateZ"===t&&(t="rotate"),void(i+=t+o+" "))}),r&&(i="perspective"+r+" "+i)}b.setPropertyValue(e,"transform",i)}};b.Hooks.register(),b.Normalizations.register(),g.hook=function(e,t,i){var r=n;return e=o(e),u.each(e,function(e,o){if(a(o)===n&&g.init(o),i===n)r===n&&(r=g.CSS.getPropertyValue(o,t));else{var s=g.CSS.setPropertyValue(o,t,i);"transform"===s[0]&&g.CSS.flushTransformCache(o),r=s}}),r};var w=function(){function e(){return d?O.promise||null:p}function r(){function e(e){function p(e,t){var i=n,o=n,a=n;return h.isArray(e)?(i=e[0],!h.isArray(e[1])&&/^[\d-]/.test(e[1])||h.isFunction(e[1])||b.RegEx.isHex.test(e[1])?a=e[1]:(h.isString(e[1])&&!b.RegEx.isHex.test(e[1])||h.isArray(e[1]))&&(o=t?e[1]:s(e[1],c.duration),e[2]!==n&&(a=e[2]))):i=e,t||(o=o||c.easing),h.isFunction(i)&&(i=i.call(r,C,S)),h.isFunction(a)&&(a=a.call(r,C,S)),[i||0,o,a]}function f(e,t){var i,n;return n=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(e){return i=e,""}),i||(i=b.Values.getUnitType(e)),[n,i]}function m(){var e={myParent:r.parentNode||i.body,position:b.getPropertyValue(r,"position"),fontSize:b.getPropertyValue(r,"fontSize")},n=e.position===_.lastPosition&&e.myParent===_.lastParent,o=e.fontSize===_.lastFontSize;_.lastParent=e.myParent,_.lastPosition=e.position,_.lastFontSize=e.fontSize;var s=100,l={};if(o&&n)l.emToPx=_.lastEmToPx,l.percentToPxWidth=_.lastPercentToPxWidth,l.percentToPxHeight=_.lastPercentToPxHeight;else{var c=a(r).isSVG?i.createElementNS("http://www.w3.org/2000/svg","rect"):i.createElement("div");g.init(c),e.myParent.appendChild(c),u.each(["overflow","overflowX","overflowY"],function(e,t){g.CSS.setPropertyValue(c,t,"hidden")}),g.CSS.setPropertyValue(c,"position",e.position),g.CSS.setPropertyValue(c,"fontSize",e.fontSize),g.CSS.setPropertyValue(c,"boxSizing","content-box"),u.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(e,t){g.CSS.setPropertyValue(c,t,s+"%")}),g.CSS.setPropertyValue(c,"paddingLeft",s+"em"),l.percentToPxWidth=_.lastPercentToPxWidth=(parseFloat(b.getPropertyValue(c,"width",null,!0))||1)/s,l.percentToPxHeight=_.lastPercentToPxHeight=(parseFloat(b.getPropertyValue(c,"height",null,!0))||1)/s,l.emToPx=_.lastEmToPx=(parseFloat(b.getPropertyValue(c,"paddingLeft"))||1)/s,e.myParent.removeChild(c)}return null===_.remToPx&&(_.remToPx=parseFloat(b.getPropertyValue(i.body,"fontSize"))||16),null===_.vwToPx&&(_.vwToPx=parseFloat(t.innerWidth)/100,_.vhToPx=parseFloat(t.innerHeight)/100),l.remToPx=_.remToPx,l.vwToPx=_.vwToPx,l.vhToPx=_.vhToPx,g.debug>=1&&console.log("Unit ratios: "+JSON.stringify(l),r),l}if(c.begin&&0===C)try{c.begin.call(v,v)}catch(e){setTimeout(function(){throw e},1)}if("scroll"===$){var w,k,T,I=/^x$/i.test(c.axis)?"Left":"Top",A=parseFloat(c.offset)||0;c.container?h.isWrapped(c.container)||h.isNode(c.container)?(c.container=c.container[0]||c.container,T=(w=c.container["scroll"+I])+u(r).position()[I.toLowerCase()]+A):c.container=null:(w=g.State.scrollAnchor[g.State["scrollProperty"+I]],k=g.State.scrollAnchor[g.State["scrollProperty"+("Left"===I?"Top":"Left")]],T=u(r).offset()[I.toLowerCase()]+A),d={scroll:{rootPropertyValue:!1,startValue:w,currentValue:w,endValue:T,unitType:"",easing:c.easing,scrollData:{container:c.container,direction:I,alternateValue:k}},element:r},g.debug&&console.log("tweensContainer (scroll): ",d.scroll,r)}else if("reverse"===$){if(!a(r).tweensContainer)return void u.dequeue(r,c.queue);"none"===a(r).opts.display&&(a(r).opts.display="auto"),"hidden"===a(r).opts.visibility&&(a(r).opts.visibility="visible"),a(r).opts.loop=!1,a(r).opts.begin=null,a(r).opts.complete=null,x.easing||delete c.easing,x.duration||delete c.duration,c=u.extend({},a(r).opts,c);var E=u.extend(!0,{},a(r).tweensContainer);for(var P in E)if("element"!==P){var M=E[P].startValue;E[P].startValue=E[P].currentValue=E[P].endValue,E[P].endValue=M,h.isEmptyObject(x)||(E[P].easing=c.easing),g.debug&&console.log("reverse tweensContainer ("+P+"): "+JSON.stringify(E[P]),r)}d=E}else if("start"===$){for(var L in a(r).tweensContainer&&!0===a(r).isAnimating&&(E=a(r).tweensContainer),u.each(y,function(e,t){if(RegExp("^"+b.Lists.colors.join("$|^")+"$").test(e)){var i=p(t,!0),o=i[0],a=i[1],r=i[2];if(b.RegEx.isHex.test(o)){for(var s=["Red","Green","Blue"],l=b.Values.hexToRgb(o),c=r?b.Values.hexToRgb(r):n,u=0;uV;V++){var R={delay:L.delay,progress:L.progress};V===M-1&&(R.display=L.display,R.visibility=L.visibility,R.complete=L.complete),w(v,"reverse",R)}return e()}};(g=u.extend(w,g)).animate=w;var x=t.requestAnimationFrame||p;return g.State.isMobile||i.hidden===n||i.addEventListener("visibilitychange",function(){i.hidden?(x=function(e){return setTimeout(function(){e(!0)},16)},l()):x=t.requestAnimationFrame||p}),e.Velocity=g,e!==t&&(e.fn.velocity=w,e.fn.velocity.defaults=g.defaults),u.each(["Down","Up"],function(e,t){g.Redirects["slide"+t]=function(e,i,o,a,r,s){var l=u.extend({},i),c=l.begin,d=l.complete,p={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},h={};l.display===n&&(l.display="Down"===t?"inline"===g.CSS.Values.getDisplayType(e)?"inline-block":"block":"none"),l.begin=function(){for(var i in c&&c.call(r,r),p){h[i]=e.style[i];var n=g.CSS.getPropertyValue(e,i);p[i]="Down"===t?[n,0]:[0,n]}h.overflow=e.style.overflow,e.style.overflow="hidden"},l.complete=function(){for(var t in h)e.style[t]=h[t];d&&d.call(r,r),s&&s.resolver(r)},g(e,p,l)}}),u.each(["In","Out"],function(e,t){g.Redirects["fade"+t]=function(e,i,o,a,r,s){var l=u.extend({},i),c={opacity:"In"===t?1:0},d=l.complete;l.complete=o!==a-1?l.begin=null:function(){d&&d.call(r,r),s&&s.resolver(r)},l.display===n&&(l.display="In"===t?"auto":"none"),g(this,c,l)}}),g}jQuery.fn.velocity=jQuery.fn.animate}(window.jQuery||window.Zepto||window,window,document)})),function(e){WOW=function(){return{init:function(){var t=[],i=1;function n(){var i=window.innerHeight,n=window.scrollY;e(".wow").each(function(){if("visible"!=e(this).css("visibility")&&(i+n-100>o(this)&&no(this)+e(this).height()&&ne(document).height())){var a=e(this).index(".wow"),r=e(this).attr("data-wow-delay");if(r){r=e(this).attr("data-wow-delay").slice(0,-1);var s=this;parseFloat(r);e(s).addClass("animated"),e(s).css({visibility:"visible"}),e(s).css({"animation-delay":r}),e(s).css({"animation-name":t[a]});var l=1e3*e(this).css("animation-duration").slice(0,-1);e(this).attr("data-wow-delay")&&(l+=1e3*e(this).attr("data-wow-delay").slice(0,-1));s=this;setTimeout(function(){e(s).removeClass("animated")},l)}else{e(this).addClass("animated"),e(this).css({visibility:"visible"}),e(this).css({"animation-name":t[a]});l=1e3*e(this).css("animation-duration").slice(0,-1),s=this;setTimeout(function(){e(s).removeClass("animated")},l)}}})}function o(e){var t=e.getBoundingClientRect(),i=document.body,n=document.documentElement,o=window.pageYOffset||n.scrollTop||i.scrollTop,a=n.clientTop||i.clientTop||0,r=t.top+o-a;return Math.round(r)}e(".wow").each(function(){e(this).css({visibility:"hidden"}),t[e(this).index(".wow")]=e(this).css("animation-name"),e(this).css({"animation-name":"none"})}),e(window).scroll(function(){var t,a;i?(t=window.innerHeight,a=window.scrollY,e(".wow.animated").each(function(){if(t+a-100>o(this)&&a>o(this)+100||t+a-100e(document).height()-100)e(this).removeClass("animated"),e(this).css({"animation-name":"none"}),e(this).css({visibility:"hidden"});else{var i=1e3*e(this).css("animation-duration").slice(0,-1);e(this).attr("data-wow-delay")&&(i+=1e3*e(this).attr("data-wow-delay").slice(0,-1));var n=this;setTimeout(function(){e(n).removeClass("animated")},i)}}),n(),i--):n()}),e(".wow").each(function(){var i=e(this).index(".wow"),n=e(this).attr("data-wow-delay");n?(n=e(this).attr("data-wow-delay").slice(0,-1),parseFloat(n),e(this).addClass("animated"),e(this).css({visibility:"visible"}),e(this).css({"animation-delay":n+"s"}),e(this).css({"animation-name":t[i]})):(e(this).addClass("animated"),e(this).css({visibility:"visible"}),e(this).css({"animation-name":t[i]}))})}}}}(jQuery),function(e){e(window).on("scroll",function(){var t=e(".navbar");t.length&&(t.offset().top>50?e(".scrolling-navbar").addClass("top-nav-collapse"):e(".scrolling-navbar").removeClass("top-nav-collapse"))})}(jQuery),function(e,t){"use strict";"function"==typeof define&&define.amd?define([],function(){return e.Waves=t.call(e),e.Waves}):"object"==typeof exports?module.exports=t.call(e):e.Waves=t.call(e)}("object"==typeof window?window:this,function(){"use strict";var e=e||{},t=document.querySelectorAll.bind(document),i=Object.prototype.toString,n="ontouchstart"in window;function o(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function a(e){var n,a=i.call(e);return"[object String]"===a?t(e):o(e)&&/^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(a)&&e.hasOwnProperty("length")?e:o(n=e)&&n.nodeType>0?[e]:[]}function r(e){var t,i,n={top:0,left:0},o=e&&e.ownerDocument;return t=o.documentElement,void 0!==e.getBoundingClientRect&&(n=e.getBoundingClientRect()),i=function(e){return null!==(t=e)&&t===t.window?e:9===e.nodeType&&e.defaultView;var t}(o),{top:n.top+i.pageYOffset-t.clientTop,left:n.left+i.pageXOffset-t.clientLeft}}function s(e){var t="";for(var i in e)e.hasOwnProperty(i)&&(t+=i+":"+e[i]+";");return t}var l={duration:750,delay:200,show:function(e,t,i){if(2===e.button)return!1;t=t||this;var n=document.createElement("div");n.className="waves-ripple waves-rippling",t.appendChild(n);var o=r(t),a=0,c=0;"touches"in e&&e.touches.length?(a=e.touches[0].pageY-o.top,c=e.touches[0].pageX-o.left):(a=e.pageY-o.top,c=e.pageX-o.left),c=c>=0?c:0,a=a>=0?a:0;var u="scale("+t.clientWidth/100*3+")",d="translate(0,0)";i&&(d="translate("+i.x+"px, "+i.y+"px)"),n.setAttribute("data-hold",Date.now()),n.setAttribute("data-x",c),n.setAttribute("data-y",a),n.setAttribute("data-scale",u),n.setAttribute("data-translate",d);var p={top:a+"px",left:c+"px"};n.classList.add("waves-notransition"),n.setAttribute("style",s(p)),n.classList.remove("waves-notransition"),p["-webkit-transform"]=u+" "+d,p["-moz-transform"]=u+" "+d,p["-ms-transform"]=u+" "+d,p["-o-transform"]=u+" "+d,p.transform=u+" "+d,p.opacity="1";var h="mousemove"===e.type?2500:l.duration;p["-webkit-transition-duration"]=h+"ms",p["-moz-transition-duration"]=h+"ms",p["-o-transition-duration"]=h+"ms",p["transition-duration"]=h+"ms",n.setAttribute("style",s(p))},hide:function(e,t){for(var i=(t=t||this).getElementsByClassName("waves-rippling"),o=0,a=i.length;o=0&&null!==t.wait){setTimeout(p({type:"mouseup",button:1},n),t.wait)}},e.calm=function(e){for(var t={type:"mouseup",button:1},i=0,n=(e=a(e)).length;it.length)?e.removeClass("invalid").addClass("valid"):e.removeClass("valid").addClass("invalid")}}},r=function(){var t=e(_this);if(t.val().length){var i=e(".hiddendiv"),n=t.css("font-family"),o=t.css("font-size");o&&i.css("font-size",o),n&&i.css("font-family",n),"off"===t.attr("wrap")&&i.css("overflow-wrap","normal").css("white-space","pre"),i.text("".concat(t.val(),"\n"));var a=i.html().replace(/\n/g,"
");i.html(a),i.css("width",t.is(":visible")?t.width():e(window).width()/2),t.css("height",i.height())}};e(n).each(function(t,i){var n=e(i),a=n.siblings("label, i");o(n),i.validity.badInput&&a.addClass("active")}),e(document).on("focus",n,function(t){e(t.target).siblings("label, i").addClass("active")}),e(document).on("blur",n,function(t){var i=e(t.target),n=!i.val(),o=!t.target.validity.badInput,r=void 0===i.attr("placeholder");n&&o&&r&&i.siblings("label, i").removeClass("active"),a(i)}),e(document).on("change",n,function(t){var i=e(t.target);o(i),a(i)}),e("input[autofocus]").siblings("label, i").addClass("active"),e(document).on("reset",function(t){var i=e(t.target);i.is("form")&&(i.find(n).removeClass("valid").removeClass("invalid").each(function(t,i){var n=e(i),o=!n.val(),a=!n.attr("placeholder");o&&a&&n.siblings("label, i").removeClass("active")}),i.find("select.initialized").each(function(t,i){var n=e(i),o=n.siblings("input.select-dropdown"),a=n.children("[selected]").val();n.val(a),o.val(a)}))}),(i=e(".md-textarea-auto")).length&&(t=window.attachEvent?function(e,t,i){e.attachEvent("on".concat(t),i)}:function(e,t,i){e.addEventListener(t,i,!1)},i.each(function(){var e=this;function i(){e.style.height="auto",e.style.height="".concat(e.scrollHeight,"px")}function n(){window.setTimeout(i,0)}t(e,"change",i),t(e,"cut",n),t(e,"paste",n),t(e,"drop",n),t(e,"keydown",n),i()}));var s=e("body");if(!e(".hiddendiv").first().length){var l=e('
');s.append(l)}e(".materialize-textarea").each(r),s.on("keyup keydown",".materialize-textarea",r)}(jQuery),function(e){e(document).on("click.card",".card",function(t){if(e(this).find(".card-reveal").length){var i=e(t.target),n=i.is(".card-reveal .card-title"),o=i.is(".card-reveal .card-title i"),a=i.is(".card .activator"),r=i.is(".card .activator i");n||o?e(this).find(".card-reveal").velocity({translateY:0},{duration:225,queue:!1,easing:"easeInOutQuad",complete:function(){e(this).css({display:"none"})}}):(a||r)&&e(this).find(".card-reveal").css({display:"block"}).velocity("stop",!1).velocity({translateY:"-100%"},{duration:300,queue:!1,easing:"easeInOutQuad"})}}),e(".rotate-btn").on("click",function(){var t=e(this).attr("data-card");e("#".concat(t)).toggleClass("flipped")}),e(window).on("load",function(){var t=e(".front").outerHeight(),i=e(".back").outerHeight();t>i?e(".card-wrapper, .back").height(t):t>i?e(".card-wrapper, .front").height(i):e(".card-wrapper").height(i)}),e(".card-share > a").on("click",function(t){t.preventDefault(),e(this).toggleClass("share-expanded").parent().find("div").toggleClass("social-reveal-active")})}(jQuery),$(".map-card").click(function(){$(".card-body").toggleClass("closed")});var SMOOTH_SCROLL_DURATION=700;function _objectSpread(e){for(var t=1;th[0].clientHeight&&(p=h[0].scrollTop),r+n.innerWidth()>e(window).width()?l="right":r-n.innerWidth()+t.innerWidth()<0&&(l="left"),s+n.innerHeight()>o)if(s+a-n.innerHeight()<0){var f=o-s-d;n.css("max-height",f)}else d||(d+=a),d-=n.innerHeight();if("left"===l)c=i.gutter,u=t.position().left+c;else if("right"===l){u=t.position().left+t.outerWidth()-n.outerWidth()+(c=-i.gutter)}n.css({position:"absolute",top:t.position().top+d+p,left:u})}return this.each(function(){var t=e(this),o=!1,a=e("#".concat(t.attr("data-activates")));function r(){void 0!==t.data("induration")&&(i.inDuration=t.data("inDuration")),void 0!==t.data("outduration")&&(i.outDuration=t.data("outDuration")),void 0!==t.data("constrainwidth")&&(i.constrain_width=t.data("constrainwidth")),void 0!==t.data("hover")&&(i.hover=t.data("hover")),void 0!==t.data("gutter")&&(i.gutter=t.data("gutter")),void 0!==t.data("beloworigin")&&(i.belowOrigin=t.data("beloworigin")),void 0!==t.data("alignment")&&(i.alignment=t.data("alignment")),void 0!==t.data("maxheight")&&(i.maxHeight=t.data("maxheight")),void 0!==t.data("resetscroll")&&(i.resetScroll="true"===t.data("resetscroll"))}function s(s){"focus"===s&&(o=!0),r(),a.addClass("active"),t.addClass("active"),!0===i.constrain_width?a.css("width",t.outerWidth()):a.css("white-space","nowrap"),n(t,a),a.stop(!0,!0).css("opacity",0).slideDown({queue:!1,duration:i.inDuration,easing:"easeOutCubic",complete:function(){e(this).css("height","")}}).animate(_objectSpread({opacity:1},i.resetScroll&&{scrollTop:0}),{queue:!1,duration:i.inDuration,easing:"easeOutSine"})}function l(){o=!1,a.fadeOut(i.outDuration),a.removeClass("active"),t.removeClass("active"),setTimeout(function(){a.css("max-height",i.maxHeight)},i.outDuration)}if(r(),t.after(a),i.hover){var c=!1;t.unbind("click.".concat(t.attr("id"))),t.on("mouseenter",function(){!1===c&&(s(),c=!0)}),t.on("mouseleave",function(t){var i=t.toElement||t.relatedTarget;e(i).closest(".dropdown-content").is(a)||(a.stop(!0,!0),l(),c=!1)}),a.on("mouseleave",function(i){var n=i.toElement||i.relatedTarget;e(n).closest(".dropdown-button").is(t)||(a.stop(!0,!0),l(),c=!1)})}else t.unbind("click.".concat(t.attr("id"))),t.bind("click.".concat(t.attr("id")),function(i){o||(t[0]!==i.currentTarget||t.hasClass("active")||0!==e(i.target).closest(".dropdown-content").length?t.hasClass("active")&&(l(),e(document).unbind("click.".concat(a.attr("id")," touchstart.").concat(a.attr("id")))):(i.preventDefault(),s("click")),a.hasClass("active")&&e(document).bind("click.".concat(a.attr("id")," touchstart.").concat(a.attr("id")),function(i){a.is(i.target)||t.is(i.target)||t.find(i.target).length||(l(),e(document).unbind("click.".concat(a.attr("id")," touchstart.").concat(a.attr("id"))))}))});t.on("open",function(e,t){s(t)}),t.on("close",l)}),{updatePosition:n}},e.fn.dropdown.defaults={inDuration:300,outDuration:225,constrain_width:!0,hover:!1,gutter:0,belowOrigin:!1,alignment:"left",maxHeight:"",resetScroll:!0},e(".dropdown-button").dropdown(),e.fn.mdbDropSearch=function(t){var i=e(this).find("input");this.filter(function(t,n){e(n).on("keyup",function(){for(var e=i.closest("div[id]").find("a, li"),t=0;t-1?e.eq(t).css({display:""}):e.eq(t).css({display:"none"})})});var n=e.extend({color:"#000",backgroundColor:"",fontSize:".9rem",fontWeight:"400",borderRadius:"",borderColor:""},t);return this.css({color:n.color,backgroundColor:n.backgroundColor,fontSize:n.fontSize,fontWeight:n.fontWeight,borderRadius:n.borderRadius,border:n.border,margin:n.margin})}}(jQuery);var dropdownSelectors=$(".dropdown, .dropup");function dropdownEffectData(e){var t="fadeIn",i="fadeOut",n=$(e),o=$(".dropdown-menu",e),a=n.parents("ul.nav");return a.height>0&&(t=a.data("dropdown-in")||null,i=a.data("dropdown-out")||null),{target:e,dropdown:n,dropdownMenu:o,effectIn:o.data("dropdown-in")||t,effectOut:o.data("dropdown-out")||i}}function dropdownEffectStart(e,t){t&&(e.dropdown.addClass("dropdown-animating"),e.dropdownMenu.addClass(["animated",t].join(" ")))}function dropdownEffectEnd(e,t){e.dropdown.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){e.dropdown.removeClass("dropdown-animating"),e.dropdownMenu.removeClass(["animated",e.effectIn,e.effectOut].join(" ")),"function"==typeof t&&t()})}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i a").on("mouseenter",function(e){var t=$(this);$(".multi-level-dropdown .dropdown-submenu .dropdown-menu").removeClass("show"),t.next(".dropdown-menu").addClass("show"),e.stopPropagation()}),$(".multi-level-dropdown .dropdown").on("hidden.bs.dropdown",function(){$(".multi-level-dropdown .dropdown-menu.show").removeClass("show")}),function(e){var t=this;e(document).ready(function(){e(document).on("mouseenter",".fixed-action-btn",function(){var t=e(this);i(t)}),e(document).on("mouseleave",".fixed-action-btn",function(){var t=e(this);n(t)}),e(document).on("click",".fixed-action-btn > a",function(){var t=e(this).parent();t.hasClass("active")?i(t):n(t),t.hasClass("active")?n(t):i(t)})}),e.fn.extend({openFAB:function(){i(e(this))},closeFAB:function(){n(e(this))}});var i=function(e){var t=e;t.hasClass("active")||(t.addClass("active"),document.querySelectorAll("ul .btn-floating").forEach(function(e){e.classList.add("shown")}))},n=function(e){e.removeClass("active"),document.querySelectorAll("ul .btn-floating").forEach(function(e){e.classList.remove("shown")})};e(".fixed-action-btn:not(.smooth-scroll) > .btn-floating").on("click",function(o){if(!e(t).hasClass("smooth-scroll"))return o.preventDefault(),a=e(".fixed-action-btn"),(r=a).hasClass("active")?n(r):i(r),!1;var a,r})}(jQuery),function(e){e.fn.collapsible=function(t){var i={accordion:void 0};function n(t,i){$panelHeaders=t.find("> li > .collapsible-header"),i.hasClass("active")?i.parent().addClass("active"):i.parent().removeClass("active"),i.parent().hasClass("active")?i.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}}):i.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}}),$panelHeaders.not(i).removeClass("active").parent().removeClass("active"),$panelHeaders.not(i).parent().children(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}})}function o(t){t.hasClass("active")?t.parent().addClass("active"):t.parent().removeClass("active"),t.parent().hasClass("active")?t.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}}):t.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}})}function a(e){return r(e).length>0}function r(e){return e.closest("li > .collapsible-header")}return t=e.extend(i,t),this.each(function(){var i=e(this),s=e(this).find("> li > .collapsible-header"),l=i.data("collapsible");i.off("click.collapse",".collapsible-header"),s.off("click.collapse"),t.accordion||"accordion"===l||void 0===l?((s=i.find("> li > .collapsible-header")).on("click.collapse",function(t){var o=e(t.target);a(o)&&(o=r(o)),o.toggleClass("active"),n(i,o)}),n(i,s.filter(".active").first())):s.each(function(){e(this).on("click.collapse",function(t){var i=e(t.target);a(i)&&(i=r(i)),i.toggleClass("active"),o(i)}),e(this).hasClass("active")&&o(e(this))})})},e(".collapsible").collapsible()}(jQuery);var MaterialSelectViewRenderer=function(){function e(t){_classCallCheck(this,e),this.view=t}return _createClass(e,[{key:"destroy",value:function(){var e=this.view.$nativeSelect.data("select-id");this.view.$nativeSelect.data("select-id",null).removeClass("initialized"),this.view.$nativeSelect.parent().find("span.caret").remove(),this.view.$nativeSelect.parent().find("input").remove(),this.view.$nativeSelect.unwrap(),$("ul#select-options-".concat(e)).remove()}},{key:"render",value:function(){this.setWrapperClasses(),this.setMaterialSelectInitialValue(),this.view.$nativeSelect.data("select-id",this.view.properties.id),this.view.$nativeSelect.before(this.view.$selectWrapper),this.appendDropdownIcon(),this.appendMaterialSelect(),this.appendMaterialOptionsList(),this.appendNativeSelect(),this.appendSelectLabel(),this.appendCustomTemplateParts(),this.shouldValidate&&this.appendValidationFeedbackElements(),this.isRequired&&this.enableValidation(),this.isDisabled||(this.setMaterialOptionsListMaxHeight(),this.view.dropdown=this.view.$materialSelect.dropdown({hover:!1,closeOnClick:!1,resetScroll:!1})),this.shouldInheritTabindex&&this.view.$materialSelect.attr("tabindex",this.view.$nativeSelect.attr("tabindex")),this.isDefaultMaterialInput&&this.view.$mainLabel.css("top","-7px"),this.isCustomSelect&&this.view.$materialSelect.css({display:"inline-block",width:"100%",height:"calc(1.5em + .75rem + 2px)",padding:".375rem 1.75rem .375rem .75rem",fontSize:"1rem",lineHeight:"1.5",backgroundColor:"#fff",border:"1px solid #ced4da"}),this.addAccessibilityAttributes(),this.markInitialized()}},{key:"setWrapperClasses",value:function(){this.isDefaultMaterialInput?this.view.$selectWrapper.addClass(this.view.$nativeSelect.attr("class").split(" ").filter(function(e){return"md-form"!==e}).join(" ")).css({marginTop:"1.5rem",marginBottom:"1.5rem"}):this.view.$selectWrapper.addClass(this.view.$nativeSelect.attr("class"))}},{key:"setMaterialSelectInitialValue",value:function(){if(this.view.options.placeholder)this.view.$materialSelect.attr("placeholder",this.view.options.placeholder),this.view.$nativeSelect.find('option[value=""][selected][disabled][data-mdb-placeholder]').length||this.view.$nativeSelect.prepend('');else{var e=this.view.$materialSelectInitialOption.replace(/"/g,""").replace(/ +/g," ").trim();this.view.$materialSelect.val(e)}}},{key:"appendDropdownIcon",value:function(){this.isDisabled&&this.view.$dropdownIcon.addClass("disabled"),this.view.$selectWrapper.append(this.view.$dropdownIcon)}},{key:"appendMaterialSelect",value:function(){this.view.$selectWrapper.append(this.view.$materialSelect)}},{key:"appendMaterialOptionsList",value:function(){this.isSearchable&&this.appendSearchInputOption(),this.isEditable&&this.isSearchable&&this.appendAddOptionBtn(),this.buildMaterialOptions(),this.isMultiple&&this.appendToggleAllCheckbox(),this.view.$selectWrapper.append(this.view.$materialOptionsList)}},{key:"appendNativeSelect",value:function(){this.view.$nativeSelect.appendTo(this.view.$selectWrapper)}},{key:"appendSelectLabel",value:function(){(this.view.$materialSelect.val()||this.view.options.placeholder)&&this.view.$mainLabel.addClass("active"),this.view.$mainLabel[this.isDisabled?"addClass":"removeClass"]("disabled"),this.view.$mainLabel.appendTo(this.view.$selectWrapper)}},{key:"appendCustomTemplateParts",value:function(){var e=this;this.view.$customTemplateParts.each(function(t,i){$(i).appendTo(e.view.$materialOptionsList).wrap("
  • ")}),this.view.$btnSave.appendTo(this.view.$materialOptionsList)}},{key:"appendValidationFeedbackElements",value:function(){this.view.$validFeedback.insertAfter(this.view.$selectWrapper),this.view.$invalidFeedback.insertAfter(this.view.$selectWrapper)}},{key:"enableValidation",value:function(){this.view.$nativeSelect.css({position:"absolute",top:"1rem",left:"0",height:"0",width:"0",opacity:"0",padding:"0","pointer-events":"none"}),-1===this.view.$nativeSelect.attr("style").indexOf("inline!important")&&this.view.$nativeSelect.attr("style","".concat(this.view.$nativeSelect.attr("style")," display: inline!important;")),this.view.$nativeSelect.attr("tabindex",-1),this.view.$nativeSelect.data("inherit-tabindex",!1)}},{key:"setMaterialOptionsListMaxHeight",value:function(){var e=this.view.options.visibleOptions,t=0;this.view.$materialOptionsList.show();var i=this.view.$materialOptionsList.find("li").not(".disabled"),n=i.first().height(),o=i.length;if(this.isSearchable&&(t+=this.view.$searchInput.height()),this.isMultiple&&(t+=this.view.$toggleAll.height()),this.view.$materialOptionsList.hide(),e>=0&&e
    ')),this.view.$materialOptionsList.append(this.view.$searchInput),this.view.$searchInput.on("click",function(e){return e.stopPropagation()})}},{key:"appendAddOptionBtn",value:function(){this.view.$searchInput.append(this.view.$addOptionBtn),this.view.$addOptionBtn.on("click",this.addNewOption.bind(this))}},{key:"buildMaterialOptions",value:function(){var e=this;this.view.$nativeSelectChildren.each(function(t,i){var n=$(i);if(n.is("option"))e.buildSingleOption(n,e.isMultiple?"multiple":"");else if(n.is("optgroup")){var o=$('
  • '.concat(n.attr("label"),"
  • "));e.view.$materialOptionsList.append(o),n.children("option").each(function(t,i){e.buildSingleOption($(i),"optgroup-option")})}})}},{key:"appendToggleAllCheckbox",value:function(){var e=this.view.$materialOptionsList.find("li").first();e.hasClass("disabled")&&e.find("input").prop("disabled")?e.after(this.view.$toggleAll):this.view.$materialOptionsList.find("li").first().before(this.view.$toggleAll)}},{key:"addNewOption",value:function(){var e=this.view.$searchInput.find("input").val(),t=$('")).prop("selected",!0);this.isMultiple||this.view.$nativeSelectChildren.each(function(e,t){$(t).attr("selected",!1)}),this.view.$nativeSelect.append(t)}},{key:"buildSingleOption",value:function(e,t){var i=e.is(":disabled")?"disabled":"",n=e.is(":selected")?"active":"",o="optgroup-option"===t?"optgroup-option":"",a=e.data("icon"),r=e.data("fas")?' '):"",s=e.data("far")?' '):"",l=e.data("fab")?' '):"",c=e.attr("class"),u=a?''):"",d=this.isMultiple?'"):"";this.view.$materialOptionsList.append($('
  • ').concat(u,'').concat(d," ").concat(e.html()," ").concat(r," ").concat(s," ").concat(l,"
  • ")))}},{key:"shouldValidate",get:function(){return this.view.options.validate}},{key:"shouldInheritTabindex",get:function(){return!1!==this.view.$nativeSelect.data("inherit-tabindex")}},{key:"isMultiple",get:function(){return this.view.isMultiple}},{key:"isSearchable",get:function(){return this.view.isSearchable}},{key:"isRequired",get:function(){return this.view.isRequired}},{key:"isEditable",get:function(){return this.view.isEditable}},{key:"isDisabled",get:function(){return this.view.isDisabled}},{key:"isDefaultMaterialInput",get:function(){return this.view.options.defaultMaterialInput}},{key:"isCustomSelect",get:function(){return this.view.$materialSelect.hasClass("custom-select")&&this.view.$materialSelect.hasClass("select-dropdown")}}]),e}();function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i'),this.$materialOptionsList=$('')),this.$materialSelectInitialOption=t.find("option:selected").text()||t.find("option:first").text()||"",this.$nativeSelectChildren=this.$nativeSelect.children("option, optgroup"),this.$materialSelect=$('')),this.$dropdownIcon=this.options.defaultMaterialInput?"":$(''),this.$searchInput=null,this.$noSearchResultsInfo=$("
  • ".concat(this.options.labels.noSearchResults,"
  • ")),this.$toggleAll=$('
  • ")),this.$addOptionBtn=$(''),this.$mainLabel=this._jQueryFallback(this.$nativeSelect.next("label.mdb-main-label"),$("label[for='".concat(this.properties.id,"']"))),this.$customTemplateParts=this._jQueryFallback(this.$nativeSelect.nextUntil("select",".mdb-select-template-part"),$("[data-mdb-select-template-part-for='".concat(this.properties.id,"']"))),this.$btnSave=this.$nativeSelect.nextUntil("select",".btn-save"),this.$validFeedback=$('
    '.concat(this.options.labels.validFeedback,"
    ")),this.$invalidFeedback=$('
    '.concat(this.options.labels.invalidFeedback,"
    ")),this.keyCodes={tab:9,esc:27,enter:13,arrowUp:38,arrowDown:40},this.renderer=new MaterialSelectViewRenderer(this),this.dropdown=null}return _createClass(e,[{key:"destroy",value:function(){this.renderer.destroy()}},{key:"render",value:function(){this.renderer.render()}},{key:"selectPreselectedOptions",value:function(e){var t=this;if(this.isMultiple)this.$nativeSelect.find("option:selected:not(:disabled)").each(function(i,n){var o=n.index;t.$materialOptionsList.find("li:not(.optgroup):not(.select-toggle-all)").eq(o).addClass("selected active").find(":checkbox").prop("checked",!0),e(o)});else{var i=this.$nativeSelect.find("option:selected").first(),n=this.$nativeSelect.find("option").index(i.get(0));i.get(0)&&"disabled"!==i.attr("disabled")&&e(n)}}},{key:"bindMaterialSelectFocus",value:function(){var e=this;this.$materialSelect.on("focus",function(t){var i=$(t.target);if($("ul.select-dropdown").not(e.$materialOptionsList.get(0)).is(":visible")&&$("input.select-dropdown").trigger("close"),e.$mainLabel.addClass("active"),!e.$materialOptionsList.is(":visible")){i.trigger("open",["focus"]);var n=i.val(),o=e.$materialOptionsList.find("li").filter(function(){return $(this).text().toLowerCase()===n.toLowerCase()}).get(0);e._selectSingleOption(o),e._updateDropdownScrollTop()}e.isMultiple||e.$mainLabel.addClass("active")})}},{key:"bindMaterialSelectClick",value:function(){var e=this;this.$materialSelect.on("mousedown",function(e){3===e.which&&e.preventDefault()}),this.$materialSelect.on("click",function(t){e.$mainLabel.addClass("active"),t.stopPropagation()})}},{key:"bindMaterialSelectBlur",value:function(){var e=this;this.$materialSelect.on("blur",function(t){var i=$(t);e.isMultiple||e.isSearchable||i.trigger("close"),e.$materialOptionsList.find("li.selected").removeClass("selected")})}},{key:"bindMaterialSelectKeydown",value:function(){var e=this;this.$materialSelect.on("keydown",function(t){var i=$(t.target),n=t.which===e.keyCodes.tab,o=t.which===e.keyCodes.esc,a=t.which===e.keyCodes.enter,r=a&&t.shiftKey,s=t.which===e.keyCodes.arrowUp,l=t.which===e.keyCodes.arrowDown,c=e.$materialOptionsList.is(":visible");if(n)e._handleTabKey(i);else if(!l||c){if(!a||c)switch(t.preventDefault(),!0){case r:return e._handleEnterWithShiftKey(i);case a:return e._handleEnterKey(i);case l||s:return e._handleArrowUpDownKey(t.which);case o:return e._handleEscKey(i);default:return e._handleLetterKey(t)}}else i.trigger("open")})}},{key:"bindMaterialSelectDropdownToggle",value:function(){var e=this;this.$materialSelect.on("open",function(){return e.$materialSelect.attr("aria-expanded","true")}),this.$materialSelect.on("close",function(){return e.$materialSelect.attr("aria-expanded","false")})}},{key:"bindToggleAllClick",value:function(e){var t=this;this.$toggleAll.on("click",function(i){var n=$(t.$toggleAll).find('input[type="checkbox"]').first(),o=Boolean($(n).prop("checked")),a=!o;$(n).prop("checked",!o),t.$materialOptionsList.find("li:not(.optgroup):not(.select-toggle-all)").each(function(i,n){var o=$(n),r=o.find('input[type="checkbox"]');o.attr("aria-selected",a),a&&r.is(":checked")||!a&&!r.is(":checked")||$(n).is(":hidden")||$(n).is(".disabled")||(r.prop("checked",a),t.$nativeSelect.find("option").eq(i).prop("selected",a),o.toggleClass("active"),t._selectOption(n),e(i))}),t.$nativeSelect.data("stop-refresh",!0),t._triggerChangeOnNativeSelect(),t.$nativeSelect.removeData("stop-refresh"),i.stopPropagation()})}},{key:"bindMaterialOptionMousedown",value:function(){var e=this;this.$materialOptionsList.on("mousedown",function(t){var i=t.target;$(".modal-content").find(e.$materialOptionsList).length&&i.scrollHeight>i.offsetHeight&&t.preventDefault()})}},{key:"bindMaterialOptionClick",value:function(e){var t=this;this.$materialOptionsList.find("li:not(.optgroup)").not(this.$toggleAll).each(function(i,n){$(n).on("click",function(o){o.stopPropagation();var a=$(n);if(!a.hasClass("disabled")&&!a.hasClass("optgroup")){var r=!0;if(t.isMultiple){a.find('input[type="checkbox"]').prop("checked",function(e,t){return!t});var s=Boolean(t.$nativeSelect.find("optgroup").length),l=t._isToggleAllPresent()?a.index()-1:a.index();switch(!0){case t.isSearchable&&s:r=e(l-a.prevAll(".optgroup").length-1);break;case t.isSearchable:r=e(l-1);break;case s:r=e(l-a.prevAll(".optgroup").length);break;default:r=e(l)}t._isToggleAllPresent()&&t._updateToggleAllOption(),t.$materialSelect.trigger("focus")}else t.$materialOptionsList.find("li").removeClass("active").attr("aria-selected","false"),t.$materialSelect.val(a.text().replace(/ +/g," ").trim()),t.$materialSelect.trigger("close");a.toggleClass("active");var c=a.attr("aria-selected");a.attr("aria-selected","true"===c?"false":"true"),t._selectSingleOption(a),t.$nativeSelect.data("stop-refresh",!0),t.$nativeSelect.find("option").eq(i).prop("selected",r),t.$nativeSelect.removeData("stop-refresh"),t._triggerChangeOnNativeSelect(),t.$materialSelect.val()&&t.$mainLabel.addClass("active"),a.hasClass("li-added")&&t.renderer.buildSingleOption(a,"")}})})}},{key:"bindSingleMaterialOptionClick",value:function(){var e=this;this.$materialOptionsList.find("li").on("click",function(){e.$materialSelect.trigger("close")})}},{key:"bindSearchInputKeyup",value:function(){var e=this;this.$searchInput.find(".search").on("keyup",function(t){var i=$(t.target),n=t.which===e.keyCodes.tab,o=t.which===e.keyCodes.esc,a=t.which===e.keyCodes.enter,r=a&&t.shiftKey,s=t.which===e.keyCodes.arrowUp;if(t.which===e.keyCodes.arrowDown||n||o||s)return e.$materialSelect.focus(),void e._handleArrowUpDownKey(t.which);var l=i.closest("ul"),c=i.val(),u=l.find("li span.filtrable"),d=!1;if(u.each(function(){var e=$(this);if("string"==typeof this.outerHTML){var t=this.textContent.toLowerCase();t.includes(c.toLowerCase())?e.show().parent().show():e.hide().parent().hide(),t.trim()===c.toLowerCase()&&(d=!0)}}),a)return e.isEditable&&!d?void e.renderer.addNewOption():(r&&e._handleEnterWithShiftKey(i),void e.$materialSelect.trigger("open"));e.$addOptionBtn[c&&e.isEditable&&!d?"show":"hide"](),0!==u.filter(function(e,t){return $(t).is(":visible")&&!$(t).parent().hasClass("disabled")}).length?(e.$toggleAll.show(),e.$materialOptionsList.find(e.$noSearchResultsInfo).remove(),e._updateToggleAllOption()):(e.$toggleAll.hide(),e.$materialOptionsList.append(e.$noSearchResultsInfo)),e.dropdown.updatePosition(e.$materialSelect,e.$materialOptionsList)})}},{key:"bindHtmlClick",value:function(){var e=this;$("html").on("click",function(t){$(t.target).closest("#select-options-".concat(e.properties.id)).length||$(t.target).hasClass("mdb-select")||!$("#select-options-".concat(e.properties.id)).hasClass("active")||(e.$materialSelect.trigger("close"),e.$materialSelect.val()||e.options.placeholder||e.$mainLabel.removeClass("active")),e.isSearchable&&null!==e.$searchInput&&e.$materialOptionsList.hasClass("active")&&e.$materialOptionsList.find(".search-wrap input.search").focus()})}},{key:"bindMobileDevicesMousedown",value:function(){$("select").siblings("input.select-dropdown","input.multi-bs-select").on("mousedown",function(t){e.isMobileDevice&&(t.clientX>=t.target.clientWidth||t.clientY>=t.target.clientHeight)&&t.preventDefault()})}},{key:"bindSaveBtnClick",value:function(){var e=this;this.$btnSave.on("click",function(){e.$materialSelect.trigger("close")})}},{key:"_isToggleAllPresent",value:function(){return this.$materialOptionsList.find(this.$toggleAll).length}},{key:"_updateToggleAllOption",value:function(){var e=this.$materialOptionsList.find("li").not(".select-toggle-all, .disabled, :hidden").find("[type=checkbox]"),t=e.filter(":checked"),i=this.$toggleAll.find("[type=checkbox]").is(":checked");t.length!==e.length||i?t.length0,r=null,s=null;if(e===this.keyCodes.arrowUp){var l=a?this.$materialOptionsList.find("li.selected").first():o,c=l.prev("li:visible:not(.disabled, .select-toggle-all)");s=c,i.each(function(e,n){$(n).hasClass(t.options.keyboardActiveClass)&&(c=i.eq(e-1),s=i.eq(e))}),r=l.is(n)||!a?l:c}else{var u=a?this.$materialOptionsList.find("li.selected").first():n,d=u.next("li:visible:not(.disabled, .select-toggle-all)");s=d,i.each(function(e,n){$(n).hasClass(t.options.keyboardActiveClass)&&(d=i.eq(e+1),s=i.eq(e))}),r=u.is(o)||!a?u:d}this._selectSingleOption(r),this._removeKeyboardActiveClass(),r.find("input").is(":checked")||r.removeClass(this.options.keyboardActiveClass),s.hasClass("selected")||s.find("input").is(":checked")||!this.isMultiple||s.removeClass("active",this.options.keyboardActiveClass),r.addClass(this.options.keyboardActiveClass),r.position()&&this.$materialOptionsList.scrollTop(this.$materialOptionsList.scrollTop()+r.position().top)}},{key:"_handleEscKey",value:function(e){this._removeKeyboardActiveClass(),e.trigger("close")}},{key:"_handleLetterKey",value:function(e){var t=this;if(this._removeKeyboardActiveClass(),this.isSearchable){var i=e.which>46&&e.which<91,n=e.which>93&&e.which<106,o=8===e.which;(i||n)&&this.$searchInput.find("input").val(e.key).focus(),o&&this.$searchInput.find("input").val("").focus()}else{var a="",r=String.fromCharCode(e.which).toLowerCase(),s=Object.keys(this.keyCodes).map(function(e){return t.keyCodes[e]});if(r&&-1===s.indexOf(e.which)){a+=r;var l=this.$materialOptionsList.find("li").filter(function(e,t){return $(t).text().toLowerCase().includes(a)}).first();this.isMultiple||this.$materialOptionsList.find("li").removeClass("active"),l.addClass("active"),this._selectSingleOption(l)}}}},{key:"_removeKeyboardActiveClass",value:function(){this.$materialOptionsList.find("li").removeClass(this.options.keyboardActiveClass)}},{key:"_triggerChangeOnNativeSelect",value:function(){var e=new KeyboardEvent("change",{bubbles:!0,cancelable:!0});this.$nativeSelect.get(0).dispatchEvent(e)}},{key:"_selectSingleOption",value:function(e){this.$materialOptionsList.find("li.selected").removeClass("selected"),this._selectOption(e)}},{key:"_updateDropdownScrollTop",value:function(){var e=this.$materialOptionsList.find("li.active").first();e.length?this.$materialOptionsList.scrollTo(e):this.$materialOptionsList.scrollTop(0)}},{key:"_selectOption",value:function(e){$(e).addClass("selected")}},{key:"_copyOptions",value:function(e){return $.extend({},e)}},{key:"_jQueryFallback",value:function(){for(var e=null,t=0;t1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,t),this.options={destroy:this.fallback().or(i.destroy).or(!1).value(),validate:this.fallback().or(e.attr("data-validate")).or(i.validate).or(!1).value(),selectId:this.fallback().or(e.attr("data-native-id")).or(i.selectId).or(null).value(),defaultMaterialInput:this.fallback().or(e.attr("data-default-material-input")).or(i.defaultMaterialInput).or(!1).value(),fasClasses:this.fallback().or(e.attr("data-fas-classes")).or(i.fasClasses).or("").value(),farClasses:this.fallback().or(e.attr("data-far-classes")).or(i.farClasses).or("").value(),fabClasses:this.fallback().or(e.attr("data-fab-classes")).or(i.fabClasses).or("").value(),copyClassesOption:this.fallback().or(e.attr("data-copy-classes-option")).or(i.copyClassesOption).or(!1).value(),labels:{selectAll:this.fallback().or(e.attr("data-label-select-all")).or((i.labels||{}).selectAll).or("Select all").value(),optionsSelected:this.fallback().or(e.attr("data-label-options-selected")).or((i.labels||{}).optionsSelected).or("options selected").value(),validFeedback:this.fallback().or(e.attr("data-label-valid-feedback")).or((i.labels||{}).validFeedback).or("Ok").value(),invalidFeedback:this.fallback().or(e.attr("data-label-invalid-feedback")).or((i.labels||{}).invalidFeedback).or("Incorrect value").value(),noSearchResults:this.fallback().or(e.attr("data-label-no-search-results")).or((i.labels||{}).noSearchResults).or("No results").value()},keyboardActiveClass:this.fallback().or(e.attr("data-keyboard-active-class")).or(i.keyboardActiveClass).or("heavy-rain-gradient").value(),placeholder:this.fallback().or(e.attr("data-placeholder")).or(i.placeholder).or(null).value(),visibleOptions:this.fallback().or(e.attr("data-visible-options")).or(i.visibleOptions).or(5).value(),maxSelectedOptions:this.fallback().or(e.attr("data-max-selected-options")).or(i.maxSelectedOptions).or(5).value()},this.uuid=e.attr("id")||this.options.selectId||this._randomUUID(),this.view=new MaterialSelectView(e,{options:this.options,properties:{id:this.uuid}}),this.selectedOptionsIndexes=[],t.mutationObservers=[]}return _createClass(t,[{key:"init",value:function(){var e=this;this.options.destroy?this.view.destroy():(this.isInitialized&&this.view.destroy(),this.view.render(),this.view.selectPreselectedOptions(function(t){return e._toggleSelectedValue(t)}),this.bindEvents())}},{key:"bindEvents",value:function(){var e=this;this.bindMutationObserverChange(),this.view.bindMaterialSelectFocus(),this.view.bindMaterialSelectClick(),this.view.bindMaterialSelectBlur(),this.view.bindMaterialSelectKeydown(),this.view.bindMaterialSelectDropdownToggle(),this.view.bindToggleAllClick(function(t){return e._toggleSelectedValue(t)}),this.view.bindMaterialOptionMousedown(),this.view.bindMaterialOptionClick(function(t){return e._toggleSelectedValue(t)}),!this.view.isMultiple&&this.view.isSearchable&&this.view.bindSingleMaterialOptionClick(),this.view.isSearchable&&this.view.bindSearchInputKeyup(),this.view.bindHtmlClick(),this.view.bindMobileDevicesMousedown(),this.view.bindSaveBtnClick()}},{key:"bindMutationObserverChange",value:function(){var e=new MutationObserver(this._onMutationObserverChange.bind(this));e.observe(this.view.$nativeSelect.get(0),{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.customId=this.uuid,e.customStatus="observing",t.clearMutationObservers(),t.mutationObservers.push(e)}},{key:"_onMutationObserverChange",value:function(i){i.forEach(function(i){var n=e(i.target).closest("select");!0!==n.data("stop-refresh")&&("childList"===i.type||"attributes"===i.type&&e(i.target).is("option"))&&(t.clearMutationObservers(),n.materialSelect({destroy:!0}),n.materialSelect())})}},{key:"_toggleSelectedValue",value:function(e){var t=this.selectedOptionsIndexes.indexOf(e),i=-1!==t;return i?this.selectedOptionsIndexes.splice(t,1):this.selectedOptionsIndexes.push(e),this.view.$nativeSelect.find("option").eq(e).prop("selected",!i),this._setValueToMaterialSelect(),!i}},{key:"_setValueToMaterialSelect",value:function(){var e=this,t="",i=this.selectedOptionsIndexes.length;this.selectedOptionsIndexes.forEach(function(i){return t+=", ".concat(e.view.$nativeSelect.find("option").eq(i).text().replace(/ +/g," ").trim())}),0===(t=this.options.maxSelectedOptions>=0&&i>this.options.maxSelectedOptions?"".concat(i," ").concat(this.options.labels.optionsSelected):t.substring(2)).length&&(t=this.view.$nativeSelect.find("option:disabled").eq(0).text()),this.view.$nativeSelect.siblings("".concat(this.options.defaultMaterialInput?"input.multi-bs-select":"input.select-dropdown")).val(t)}},{key:"_randomUUID",value:function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var i=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?i:3&i|8).toString(16)})}},{key:"fallback",value:function(){return{_value:void 0,or:function(e){return void 0!==e&&void 0===this._value&&(this._value=e),this},value:function(){return this._value}}}},{key:"isInitialized",get:function(){return Boolean(this.view.$nativeSelect.data("select-id"))&&this.view.$nativeSelect.hasClass("initialized")}}],[{key:"clearMutationObservers",value:function(){t.mutationObservers.forEach(function(e){e.disconnect(),e.customStatus="stopped"})}}]),t}();e.fn.materialSelect=function(t){e(this).not(".browser-default").not(".custom-select").each(function(){new i(e(this),t).init()})},t=e.fn.val,e.fn.val=function(e){if(!arguments.length)return t.call(this);if(!0!==this.data("stop-refresh")&&this.hasClass("mdb-select")&&this.hasClass("initialized")){i.clearMutationObservers(),this.materialSelect({destroy:!0});var n=t.call(this,e);return this.materialSelect(),n}return t.call(this,e)}}),function(e){"function"==typeof define&&define.amd?define("picker",["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):this.Picker=e(jQuery)}(function(e){var t=e(window),i=e(document),n=e(document.documentElement),o=null!=document.documentElement.style.transition;function a(t,n,c,d){if(!t)return a;var p=!1,h={id:t.id||"P"+Math.abs(~~(Math.random()*new Date)),handlingOpen:!1},f=c?e.extend(!0,{},c.defaults,d):d||{},m=e.extend({},a.klasses(),f.klass),v=e(t),g=2,y=function(){return this.start()},b=y.prototype={constructor:y,$node:v,start:function(){return h&&h.start?b:(h.methods={},h.start=!0,h.open=!1,h.type=t.type,t.autofocus=t==u(),t.readOnly=!f.editable,t.id=t.id||h.id,"text"!=t.type&&(t.type="text"),b.component=new c(b,f),b.$root=e('
    '),l(b.$root[0],"hidden",!0),b.$holder=e(w()).appendTo(b.$root),x(),f.formatSubmit&&function(){var i;!0===f.hiddenName?(i=t.name,t.name=""):i=(i=["string"==typeof f.hiddenPrefix?f.hiddenPrefix:"","string"==typeof f.hiddenSuffix?f.hiddenSuffix:"_submit"])[0]+t.name+i[1];b._hidden=e('")[0],v.on("change."+h.id,function(){b._hidden.value=t.value?b.get("select",f.formatSubmit):""})}(),function(){v.data(n,b).addClass(m.input).val(v.data("value")?b.get("select",f.format):t.value).on("focus."+h.id+" click."+h.id,(i=function(e){e.preventDefault(),b.open()},o=100,function(){var e=this,t=arguments,n=a&&!r;clearTimeout(r),r=setTimeout(function(){r=null,a||i.apply(e,t)},o),n&&i.apply(e,t)})).on("mousedown",function(){h.handlingOpen=!0;var t=function(){setTimeout(function(){e(document).off("mouseup",t),h.handlingOpen=!1},0)};e(document).on("mouseup",t)}),f.editable||v.on("keydown."+h.id,S);var i,o,a,r;l(t,{haspopup:!0,expanded:!1,readonly:!1,owns:t.id+"_root"})}(),f.containerHidden?e(f.containerHidden).append(b._hidden):v.after(b._hidden),f.container?e(f.container).append(b.$root):v.after(b.$root),b.on({start:b.component.onStart,render:b.component.onRender,stop:b.component.onStop,open:b.component.onOpen,close:b.component.onClose,set:b.component.onSet}).on({start:f.onStart,render:f.onRender,stop:f.onStop,open:f.onOpen,close:f.onClose,set:f.onSet}),p=function(e){var t;e.currentStyle?t=e.currentStyle.position:window.getComputedStyle&&(t=getComputedStyle(e).position);return"fixed"==t}(b.$holder[0]),t.autofocus&&b.open(),b.trigger("start").trigger("render"))},render:function(t){return t?(b.$holder=e(w()),x(),b.$root.html(b.$holder)):b.$root.find("."+m.box).html(b.component.nodes(h.open)),b.trigger("render")},stop:function(){return h.start?(b.close(),b._hidden&&b._hidden.parentNode.removeChild(b._hidden),b.$root.remove(),v.removeClass(m.input).removeData(n),setTimeout(function(){v.off("."+h.id)},0),t.type=h.type,t.readOnly=!1,b.trigger("stop"),h.methods={},h.start=!1,b):b},open:function(n){return g++,h.open?b:g<4&&f.editable?b:(setTimeout(function(){b.$root.addClass(m.opened),l(b.$root[0],"hidden",!1)},0),!1!==n&&(h.open=!0,p&&e("body").css("overflow","hidden").css("padding-right","+="+r()),p&&o?b.$holder.find("."+m.frame).one("transitionend",function(){b.$holder.eq(0).focus()}):setTimeout(function(){b.$holder.eq(0).focus()},0),i.on("click."+h.id+" focusin."+h.id,function(e){if(!h.handlingOpen){var i=s(e,t);e.isSimulated||i==t||i==document||3==e.which||b.close(i===b.$holder[0])}}).on("keydown."+h.id,function(i){var n=i.keyCode,o=b.component.key[n],r=s(i,t);27==n?b.close(!0):r!=b.$holder[0]||!o&&13!=n?e.contains(b.$root[0],r)&&13==n&&(i.preventDefault(),r.click()):(i.preventDefault(),o?a._.trigger(b.component.key.go,b,[a._.trigger(o)]):b.$root.find("."+m.highlighted).hasClass(m.disabled)||(b.set("select",b.component.item.highlight),f.closeOnSelect&&b.close(!0)))})),b.trigger("open"))},close:function(n){return g=0,h.open?(n&&(f.editable?t.click():(b.$holder.off("focus.toOpen").focus(),setTimeout(function(){b.$holder.on("focus.toOpen",k)},0))),v.removeClass(m.active),l(t,"expanded",!1),setTimeout(function(){b.$root.removeClass(m.opened+" "+m.focused),l(b.$root[0],"hidden",!0)},0),p&&e("body").css("overflow","").css("padding-right","-="+r()),document.activeElement.blur(),i.off("."+h.id),h.open=!1,b.trigger("close")):b},clear:function(e){return document.activeElement.blur(),b.set("clear",null,e)},set:function(t,i,n){var o,a,r=e.isPlainObject(t),s=r?t:{};if(n=r&&e.isPlainObject(i)?i:n||{},t){for(o in r||(s[t]=i),s)a=s[o],o in b.component.item&&(void 0===a&&(a=null),b.component.set(o,a,n)),"select"!=o&&"clear"!=o||!f.updateInput||v.val("clear"==o?"":b.get(o,f.format)).trigger("change");b.render()}return n.muted?b:b.trigger("set",s)},get:function(e,i){if(null!=h[e=e||"value"])return h[e];if("valueSubmit"==e){if(b._hidden)return b._hidden.value;e="value"}if("value"==e)return t.value;if(e in b.component.item){if("string"==typeof i){var n=b.component.get(e);return n?a._.trigger(b.component.formats.toString,b.component,[i,n]):""}return b.component.get(e)}},on:function(t,i,n){var o,a,r=e.isPlainObject(t),s=r?t:{};if(t)for(o in r||(s[t]=i),s)a=s[o],n&&(o="_"+o),h.methods[o]=h.methods[o]||[],h.methods[o].push(a);return b},off:function(){var e,t,i=arguments;for(e=0,namesCount=i.length;e').appendTo("body"),o=i[0].offsetWidth;i.css("overflow","scroll");var a=e('
    ').appendTo(i)[0].offsetWidth;return i.remove(),o-a}function s(e,t){var i=[];return e.path&&(i=e.path),e.originalEvent&&e.originalEvent.path&&(i=e.originalEvent.path),i&&i.length>0?t&&i.indexOf(t)>=0?t:i[0]:e.target}function l(t,i,n){if(e.isPlainObject(i))for(var o in i)c(t,o,i[o]);else c(t,i,n)}function c(e,t,i){e.setAttribute(("role"==t?"":"aria-")+t,i)}function u(){try{return document.activeElement}catch(e){}}return a.klasses=function(e){return{picker:e=e||"picker",opened:e+"--opened",focused:e+"--focused",input:e+"__input",active:e+"__input--active",target:e+"__input--target",holder:e+"__holder",frame:e+"__frame",wrap:e+"__wrap",box:e+"__box"}},a._={group:function(e){for(var t,i="",n=a._.trigger(e.min,e);n<=a._.trigger(e.max,e,[n]);n+=e.i)t=a._.trigger(e.item,e,[n]),i+=a._.node(e.node,t[0],t[1],t[2]);return i},node:function(t,i,n,o){return i?"<"+t+(n=n?' class="'+n+'"':"")+(o=o?" "+o:"")+">"+(i=e.isArray(i)?i.join(""):i)+"":""},lead:function(e){return(e<10?"0":"")+e},trigger:function(e,t,i){return"function"==typeof e?e.apply(t,i||[]):e},digits:function(e){return/\d/.test(e[1])?2:1},isDate:function(e){return{}.toString.call(e).indexOf("Date")>-1&&this.isInteger(e.getDate())},isInteger:function(e){return{}.toString.call(e).indexOf("Number")>-1&&e%1==0},ariaAttr:function(t,i){e.isPlainObject(t)||(t={attribute:i});for(var n in i="",t){var o=("role"==n?"":"aria-")+n,a=t[n];i+=null==a?"":o+'="'+t[n]+'"'}return i}},a.extend=function(t,i){e.fn[t]=function(n,o){var r=this.data(t);return"picker"==n?r:r&&"string"==typeof n?a._.trigger(r[n],r,[o]):this.each(function(){e(this).data(t)||new a(this,t,i,n)})},e.fn[t].defaults=i.defaults},a}),function(e){"function"==typeof define&&define.amd?define(["picker","jquery"],e):"object"==typeof exports?module.exports=e(require("./picker.js"),require("jquery")):e(Picker,jQuery)}(function(e,t){var i,n=e._;function o(e,t){var i,n=this,o=e.$node[0],a=o.value,r=e.$node.data("value"),s=r||a,l=r?t.formatSubmit:t.format,c=function(){return o.currentStyle?"rtl"==o.currentStyle.direction:"rtl"==getComputedStyle(e.$root[0]).direction};n.settings=t,n.$node=e.$node,n.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},n.item={},n.item.clear=null,n.item.disable=(t.disable||[]).slice(0),n.item.enable=-(!0===(i=n.item.disable)[0]?i.shift():-1),n.set("min",t.min).set("max",t.max).set("now"),s?n.set("select",s,{format:l,defaultValue:!0}):n.set("select",null).set("highlight",n.item.now),n.key={40:7,38:-7,39:function(){return c()?-1:1},37:function(){return c()?1:-1},go:function(e){var t=n.item.highlight,i=new Date(t.year,t.month,t.date+e);n.set("highlight",i,{interval:e}),this.render()}},e.on("render",function(){e.$root.find("."+t.klass.selectMonth).on("change",function(){var i=this.value;i&&(e.set("highlight",[e.get("view").year,i,e.get("highlight").date]),e.$root.find("."+t.klass.selectMonth).trigger("focus"))}),e.$root.find("."+t.klass.selectYear).on("change",function(){var i=this.value;i&&(e.set("highlight",[i,e.get("view").month,e.get("highlight").date]),e.$root.find("."+t.klass.selectYear).trigger("focus"))})},1).on("open",function(){var i="";n.disabled(n.get("now"))&&(i=":not(."+t.klass.buttonToday+")"),e.$root.find("button"+i+", select").attr("disabled",!1)},1).on("close",function(){e.$root.find("button, select").attr("disabled",!0)},1)}o.prototype.set=function(e,t,i){var n=this,o=n.item;return null===t?("clear"==e&&(e="select"),o[e]=t,n):(o["enable"==e?"disable":"flip"==e?"enable":e]=n.queue[e].split(" ").map(function(o){return t=n[o](e,t,i)}).pop(),"select"==e?n.set("highlight",o.select,i):"highlight"==e?n.set("view",o.highlight,i):e.match(/^(flip|min|max|disable|enable)$/)&&(o.select&&n.disabled(o.select)&&n.set("select",o.select,i),o.highlight&&n.disabled(o.highlight)&&n.set("highlight",o.highlight,i)),n)},o.prototype.get=function(e){return this.item[e]},o.prototype.create=function(e,i,o){var a;return(i=void 0===i?e:i)==-1/0||i==1/0?a=i:t.isPlainObject(i)&&n.isInteger(i.pick)?i=i.obj:t.isArray(i)?(i=new Date(i[0],i[1],i[2]),i=n.isDate(i)?i:this.create().obj):i=n.isInteger(i)||n.isDate(i)?this.normalize(new Date(i),o):this.now(e,i,o),{year:a||i.getFullYear(),month:a||i.getMonth(),date:a||i.getDate(),day:a||i.getDay(),obj:a||i,pick:a||i.getTime()}},o.prototype.createRange=function(e,i){var o=this,a=function(e){return!0===e||t.isArray(e)||n.isDate(e)?o.create(e):e};return n.isInteger(e)||(e=a(e)),n.isInteger(i)||(i=a(i)),n.isInteger(e)&&t.isPlainObject(i)?e=[i.year,i.month,i.date+e]:n.isInteger(i)&&t.isPlainObject(e)&&(i=[e.year,e.month,e.date+i]),{from:a(e),to:a(i)}},o.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},o.prototype.overlapRanges=function(e,t){return e=this.createRange(e.from,e.to),t=this.createRange(t.from,t.to),this.withinRange(e,t.from)||this.withinRange(e,t.to)||this.withinRange(t,e.from)||this.withinRange(t,e.to)},o.prototype.now=function(e,t,i){return t=new Date,i&&i.rel&&t.setDate(t.getDate()+i.rel),this.normalize(t,i)},o.prototype.navigate=function(e,i,n){var o,a,r,s,l=t.isArray(i),c=t.isPlainObject(i),u=this.item.view;if(l||c){for(c?(a=i.year,r=i.month,s=i.date):(a=+i[0],r=+i[1],s=+i[2]),n&&n.nav&&u&&u.month!==r&&(a=u.year,r=u.month),a=(o=new Date(a,r+(n&&n.nav?n.nav:0),1)).getFullYear(),r=o.getMonth();new Date(a,r,s).getMonth()!==r;)s-=1;i=[a,r,s]}return i},o.prototype.normalize=function(e){return e.setHours(0,0,0,0),e},o.prototype.measure=function(e,t){return n.isInteger(t)?t=this.now(e,t,{rel:t}):t?"string"==typeof t&&(t=this.parse(e,t)):t="min"==e?-1/0:1/0,t},o.prototype.viewset=function(e,t){return this.create([t.year,t.month,1])},o.prototype.validate=function(e,i,o){var a,r,s,l,c=this,u=i,d=o&&o.interval?o.interval:1,p=-1===c.item.enable,h=c.item.min,f=c.item.max,m=p&&c.item.disable.filter(function(e){if(t.isArray(e)){var o=c.create(e).pick;oi.pick&&(r=!0)}return n.isInteger(e)}).length;if((!o||!o.nav&&!o.defaultValue)&&(!p&&c.disabled(i)||p&&c.disabled(i)&&(m||a||r)||!p&&(i.pick<=h.pick||i.pick>=f.pick)))for(p&&!m&&(!r&&d>0||!a&&d<0)&&(d*=-1);c.disabled(i)&&(Math.abs(d)>1&&(i.monthu.month)&&(i=u,d=d>0?1:-1),i.pick<=h.pick?(s=!0,d=1,i=c.create([h.year,h.month,h.date+(i.pick===h.pick?0:-1)])):i.pick>=f.pick&&(l=!0,d=-1,i=c.create([f.year,f.month,f.date+(i.pick===f.pick?0:1)])),!s||!l);)i=c.create([i.year,i.month,i.date+d]);return i},o.prototype.disabled=function(e){var i=this,o=i.item.disable.filter(function(o){return n.isInteger(o)?e.day===(i.settings.firstDay?o:o-1)%7:t.isArray(o)||n.isDate(o)?e.pick===i.create(o).pick:t.isPlainObject(o)?i.withinRange(o,e):void 0});return o=o.length&&!o.filter(function(e){return t.isArray(e)&&"inverted"==e[3]||t.isPlainObject(e)&&e.inverted}).length,-1===i.item.enable?!o:o||e.picki.item.max.pick},o.prototype.parse=function(e,t,i){var o=this,a={};return t&&"string"==typeof t?(i&&i.format||((i=i||{}).format=o.settings.format),o.formats.toArray(i.format).map(function(e){var i=o.formats[e],r=i?n.trigger(i,o,[t,a]):e.replace(/^!/,"").length;i&&(a[e]=t.substr(0,r)),t=t.substr(r)}),[a.yyyy||a.yy,+(a.mm||a.m)-1,a.dd||a.d]):t},o.prototype.formats=function(){function e(e,t,i){var n=e.match(/[^\x00-\x7F]+|\w+/)[0];return i.mm||i.m||(i.m=t.indexOf(n)+1),n.length}function t(e){return e.match(/\w+/)[0].length}return{d:function(e,t){return e?n.digits(e):t.date},dd:function(e,t){return e?2:n.lead(t.date)},ddd:function(e,i){return e?t(e):this.settings.weekdaysShort[i.day]},dddd:function(e,i){return e?t(e):this.settings.weekdaysFull[i.day]},m:function(e,t){return e?n.digits(e):t.month+1},mm:function(e,t){return e?2:n.lead(t.month+1)},mmm:function(t,i){var n=this.settings.monthsShort;return t?e(t,n,i):n[i.month]},mmmm:function(t,i){var n=this.settings.monthsFull;return t?e(t,n,i):n[i.month]},yy:function(e,t){return e?2:(""+t.year).slice(2)},yyyy:function(e,t){return e?4:t.year},toArray:function(e){return e.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(e,t){var i=this;return i.formats.toArray(e).map(function(e){return n.trigger(i.formats[e],i,[0,t])||e.replace(/^!/,"")}).join("")}}}(),o.prototype.isDateExact=function(e,i){return n.isInteger(e)&&n.isInteger(i)||"boolean"==typeof e&&"boolean"==typeof i?e===i:(n.isDate(e)||t.isArray(e))&&(n.isDate(i)||t.isArray(i))?this.create(e).pick===this.create(i).pick:!(!t.isPlainObject(e)||!t.isPlainObject(i))&&(this.isDateExact(e.from,i.from)&&this.isDateExact(e.to,i.to))},o.prototype.isDateOverlap=function(e,i){var o=this.settings.firstDay?1:0;return n.isInteger(e)&&(n.isDate(i)||t.isArray(i))?(e=e%7+o)===this.create(i).day+1:n.isInteger(i)&&(n.isDate(e)||t.isArray(e))?(i=i%7+o)===this.create(e).day+1:!(!t.isPlainObject(e)||!t.isPlainObject(i))&&this.overlapRanges(e,i)},o.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},o.prototype.deactivate=function(e,i){var o=this,a=o.item.disable.slice(0);return"flip"==i?o.flipEnable():!1===i?(o.flipEnable(1),a=[]):!0===i?(o.flipEnable(-1),a=[]):i.map(function(e){for(var i,r=0;r=h.year&&u.month>=h.month||!e&&u.year<=p.year&&u.month<=p.month?" "+a.klass.navDisabled:""),"data-nav="+(e||-1)+" "+n.ariaAttr({role:"button",controls:o.$node[0].id+"_table"})+' title="'+(e?a.labelMonthNext:a.labelMonthPrev)+'"')},v=function(){var t=a.showMonthsShort?a.monthsShort:a.monthsFull;return a.selectMonths?n.node("select",n.group({min:0,max:11,i:1,node:"option",item:function(e){return[t[e],0,"value="+e+(u.month==e?" selected":"")+(u.year==p.year&&eh.month?" disabled":"")]}}),a.klass.selectMonth,(e?"":"disabled")+" "+n.ariaAttr({controls:o.$node[0].id+"_table"})+' title="'+a.labelMonthSelect+'"'):n.node("div",t[u.month],a.klass.month)},g=function(){var t=u.year,i=!0===a.selectYears?5:~~(a.selectYears/2);if(i){var r=p.year,s=h.year,l=t-i,c=t+i;if(r>l&&(c+=r-l,l=r),sf?f:d,c=s}return n.node("select",n.group({min:l,max:c,i:1,node:"option",item:function(e){return[e,0,"value="+e+(t==e?" selected":"")]}}),a.klass.selectYear,(e?"":"disabled")+" "+n.ariaAttr({controls:o.$node[0].id+"_table"})+' title="'+a.labelYearSelect+'"')}return n.node("div",t,a.klass.year)};return n.node("div",(a.selectYears?g()+v():v()+g())+m()+m(1),a.klass.header)+n.node("table",f+n.node("tbody",n.group({min:0,max:5,i:1,node:"tr",item:function(e){var t=a.firstDay&&0===o.create([u.year,u.month,1]).day?-7:0;return[n.group({min:7*e-u.day+t+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(e){e=o.create([u.year,u.month,e+(a.firstDay?1:0)]);var t,i=l&&l.pick==e.pick,r=c&&c.pick==e.pick,f=d&&o.disabled(e)||e.pickh.pick,m=n.trigger(o.formats.toString,o,[a.format,e]);return[n.node("div",e.date,(t=[a.klass.day],t.push(u.month==e.month?a.klass.infocus:a.klass.outfocus),s.pick==e.pick&&t.push(a.klass.now),i&&t.push(a.klass.selected),r&&t.push(a.klass.highlighted),f&&t.push(a.klass.disabled),t.join(" ")),"data-pick="+e.pick+" "+n.ariaAttr({role:"gridcell",label:m,selected:!(!i||o.$node.val()!==m)||null,activedescendant:!!r||null,disabled:!!f||null})),"",n.ariaAttr({role:"presentation"})]}})]}})),a.klass.table,'id="'+o.$node[0].id+'_table" '+n.ariaAttr({role:"grid",controls:o.$node[0].id,readonly:!0}))+n.node("div",n.node("button",a.today,a.klass.buttonToday,"type=button data-pick="+s.pick+(e&&!o.disabled(s)?"":" disabled")+" "+n.ariaAttr({controls:o.$node[0].id}))+n.node("button",a.clear,a.klass.buttonClear,"type=button data-clear=1"+(e?"":" disabled")+" "+n.ariaAttr({controls:o.$node[0].id}))+n.node("button",a.close,a.klass.buttonClose,"type=button data-close=true "+(e?"":" disabled")+" "+n.ariaAttr({controls:o.$node[0].id})),a.klass.footer)},o.defaults={labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,updateInput:!0,format:"d mmmm, yyyy",klass:{table:(i=e.klasses().picker+"__")+"table",header:i+"header",navPrev:i+"nav--prev btn btn-flat",navNext:i+"nav--next btn btn-flat",navDisabled:i+"nav--disabled",month:i+"month",year:i+"year",selectMonth:i+"select--month",selectYear:i+"select--year",weekdays:i+"weekday",day:i+"day",disabled:i+"day--disabled",selected:i+"day--selected",highlighted:i+"day--highlighted",now:i+"day--today",infocus:i+"day--infocus",outfocus:i+"day--outfocus",footer:i+"footer",buttonClear:i+"button--clear",buttonToday:i+"button--today",buttonClose:i+"button--close"}},e.extend("pickadate",o)}),$.extend($.fn.pickadate.defaults,{selectMonths:!0,selectYears:15,onRender:function(){var e=this.$root,t=this.get("highlight","yyyy"),i=this.get("highlight","dd"),n=this.get("highlight","mmm"),o=this.get("highlight","dddd").slice(0,3),a=n.charAt(0).toUpperCase()+n.slice(1);e.find(".picker__header").prepend('
    '+o+',
    '+a+'
    '+i+'
    '+t+"
    ")}}),function(){var e,t,i,n=window.jQuery,o=n(window),a=n(document),r="http://www.w3.org/2000/svg",s="SVGAngle"in window&&((t=document.createElement("div")).innerHTML="",e=(t.firstChild&&t.firstChild.namespaceURI)==r,t.innerHTML="",e),l="transition"in(i=document.createElement("div").style)||"WebkitTransition"in i||"MozTransition"in i||"msTransition"in i||"OTransition"in i,c="ontouchstart"in window,u="mousedown"+(c?" touchstart":""),d="mousemove.clockpicker"+(c?" touchmove.clockpicker":""),p="mouseup.clockpicker"+(c?" touchend.clockpicker":""),h=navigator.vibrate?"vibrate":navigator.webkitVibrate?"webkitVibrate":null;function f(e){return document.createElementNS(r,e)}function m(e,t,i){var n;return function(){var o=this,a=arguments,r=i&&!n;clearTimeout(n),n=setTimeout(function(){n=null,i||e.apply(o,a)},t),r&&e.apply(o,a)}}function v(e){return(e<10?"0":"")+e}var g=0;var y=135,b=110,w=80,x=20,k=2*y,S=l?350:1,C=['
    ','
    ','
    ','
    ','
    ','
    ','
    ','
    ','',":",'',"
    ",'
    ','
    ',"
    ","
    ","
    ",'
    ','
    ','
    ','
    ','
    ',"
    ",'
    ',"
    ","
    ",'","
    ","
    ","
    ","
    ","
    "].join("");function T(e,t){var i,o,r=n(C),l=r.find(".clockpicker-plate"),c=r.find(".picker__holder"),h=r.find(".clockpicker-hours"),T=r.find(".clockpicker-minutes"),O=r.find(".clockpicker-am-pm-block"),I="INPUT"===e.prop("tagName"),A=I?e:e.find("input"),E=(A.prop("type"),n("label[for="+A.attr("id")+"]")),P=this;if(this.id=(o=++g+"",(i="cp")?i+o:o),this.element=e,this.holder=c,this.options=t,this.isAppended=!1,this.isShown=!1,this.currentView="hours",this.isInput=I,this.input=A,this.label=E,this.popover=r,this.plate=l,this.hoursView=h,this.minutesView=T,this.amPmBlock=O,this.spanHours=r.find(".clockpicker-span-hours"),this.spanMinutes=r.find(".clockpicker-span-minutes"),this.spanAmPm=r.find(".clockpicker-span-am-pm"),this.footer=r.find(".picker__footer"),this.amOrPm="",t.twelvehour){var M=['
    ','",'","
    "].join("");n(M);t.ampmclickable?(this.spanAmPm.empty(),n('
    AM
    ').on("click",function(){P.spanAmPm.children("#click-am").addClass("text-primary"),P.spanAmPm.children("#click-pm").removeClass("text-primary"),P.amOrPm="AM"}).appendTo(this.spanAmPm),n('
    PM
    ').on("click",function(){P.spanAmPm.children("#click-pm").addClass("text-primary"),P.spanAmPm.children("#click-am").removeClass("text-primary"),P.amOrPm="PM"}).appendTo(this.spanAmPm)):(n('').on("click",function(){P.amOrPm="AM",P.amPmBlock.children(".pm-button").removeClass("active"),P.amPmBlock.children(".am-button").addClass("active"),P.spanAmPm.empty().append("AM")}).appendTo(this.amPmBlock),n('').on("click",function(){P.amOrPm="PM",P.amPmBlock.children(".am-button").removeClass("active"),P.amPmBlock.children(".pm-button").addClass("active"),P.spanAmPm.empty().append("PM")}).appendTo(this.amPmBlock))}t.darktheme&&r.addClass("darktheme"),n('").click(n.proxy(this.done,this)).appendTo(this.footer),n('").click(n.proxy(this.clearInput,this)).appendTo(this.footer),this.spanHours.click(n.proxy(this.toggleView,this,"hours")),this.spanMinutes.click(n.proxy(this.toggleView,this,"minutes")),A.on("click.clockpicker",m(n.proxy(this.show,this),100));var L,_,D,V,R=n('
    ');if(t.twelvehour)for(L=0;L<12;L+=t.hourstep)_=R.clone(),D=L/6*Math.PI,V=b,_.css("font-size","140%"),_.css({left:y+Math.sin(D)*V-x,top:y-Math.cos(D)*V-x}),_.html(0===L?12:L),h.append(_),_.on(u,H);else for(L=0;L<24;L+=t.hourstep){_=R.clone(),D=L/6*Math.PI;var j=L>0&&L<13;V=j?w:b,_.css({left:y+Math.sin(D)*V-x,top:y-Math.cos(D)*V-x}),j&&_.css("font-size","120%"),_.html(0===L?"00":L),h.append(_),_.on(u,H)}var F=Math.max(t.minutestep,5);for(L=0;L<60;L+=F)for(L=0;L<60;L+=5)_=R.clone(),D=L/30*Math.PI,_.css({left:y+Math.sin(D)*b-x,top:y-Math.cos(D)*b-x}),_.css("font-size","140%"),_.html(v(L)),T.append(_),_.on(u,H);function H(e,i){var n=l.offset(),o=/^touch/.test(e.type),r=n.left+y,c=n.top+y,u=(o?e.originalEvent.touches[0]:e).pageX-r,h=(o?e.originalEvent.touches[0]:e).pageY-c,f=Math.sqrt(u*u+h*h),m=!1;if(!i||!(fb+x)){e.preventDefault();var v=setTimeout(function(){P.popover.addClass("clockpicker-moving")},200);s&&l.append(P.canvas),P.setHand(u,h,!i,!0),a.off(d).on(d,function(e){e.preventDefault();var t=/^touch/.test(e.type),i=(t?e.originalEvent.touches[0]:e).pageX-r,n=(t?e.originalEvent.touches[0]:e).pageY-c;(m||i!==u||n!==h)&&(m=!0,P.setHand(i,n,!1,!0))}),a.off(p).on(p,function(e){a.off(p),e.preventDefault();var n=/^touch/.test(e.type),o=(n?e.originalEvent.changedTouches[0]:e).pageX-r,s=(n?e.originalEvent.changedTouches[0]:e).pageY-c;(i||m)&&o===u&&s===h&&P.setHand(o,s),"hours"===P.currentView?P.toggleView("minutes",S/2):t.autoclose&&(P.minutesView.addClass("clockpicker-dial-out"),setTimeout(function(){P.done()},S/2)),l.prepend(W),clearTimeout(v),P.popover.removeClass("clockpicker-moving"),a.off(d)})}}if(l.on(u,function(e){0===n(e.target).closest(".clockpicker-tick").length&&H(e,!0)}),s){var W=r.find(".clockpicker-canvas"),Y=f("svg");Y.setAttribute("class","clockpicker-svg"),Y.setAttribute("width",k),Y.setAttribute("height",k);var N=f("g");N.setAttribute("transform","translate("+y+","+y+")");var z=f("circle");z.setAttribute("class","clockpicker-canvas-bearing"),z.setAttribute("cx",0),z.setAttribute("cy",0),z.setAttribute("r",2);var B=f("line");B.setAttribute("x1",0),B.setAttribute("y1",0);var X=f("circle");X.setAttribute("class","clockpicker-canvas-bg"),X.setAttribute("r",x);var q=f("circle");q.setAttribute("class","clockpicker-canvas-fg"),q.setAttribute("r",5),N.appendChild(B),N.appendChild(X),N.appendChild(q),N.appendChild(z),Y.appendChild(N),W.append(Y),this.hand=B,this.bg=X,this.fg=q,this.bearing=z,this.g=N,this.canvas=W}$(this.options.init)}function $(e){e&&"function"==typeof e&&e()}T.DEFAULTS={default:"",fromnow:0,donetext:"Done",cleartext:"Clear",autoclose:!1,ampmclickable:!1,darktheme:!1,twelvehour:!1,vibrate:!0,hourstep:1,minutestep:1,ampmSubmit:!1,container:"body"},T.prototype.toggle=function(){this[this.isShown?"hide":"show"]()},T.prototype.locate=function(){var e=this.element;n(this.options.container).append(this.popover),e.offset(),e.outerWidth(),e.outerHeight(),this.options.align;this.popover.show()},T.prototype.parseInputValue=function(){var e=this.input.prop("value")||this.options.default||"";if("now"===e&&(e=new Date(+new Date+this.options.fromnow)),e instanceof Date&&(e=e.getHours()+":"+e.getMinutes()),e=e.split(":"),this.hours=+e[0]||0,this.minutes=+(e[1]+"").replace(/\D/g,"")||0,this.hours=Math.round(this.hours/this.options.hourstep)*this.options.hourstep,this.minutes=Math.round(this.minutes/this.options.minutestep)*this.options.minutestep,this.options.twelvehour){var t=(e[1]+"").replace(/\d+/g,"").toLowerCase();this.amOrPm=this.hours>12||"pm"===t?"PM":"AM"}},T.prototype.show=function(e){if(!this.isShown){$(this.options.beforeShow),n(":input").each(function(){n(this).attr("tabindex",-1)});var t=this;this.input.blur(),this.popover.addClass("picker--opened"),this.input.addClass("picker__input picker__input--active"),n(document.body).css("overflow","hidden"),this.isAppended||(this.popover.insertAfter(this.input),this.options.twelvehour&&(this.amOrPm="PM",this.options.ampmclickable?(this.spanAmPm.children("#click-pm").addClass("text-primary"),this.spanAmPm.children("#click-am").removeClass("text-primary")):(this.amPmBlock.children(".am-button").removeClass("active"),this.amPmBlock.children(".pm-button").addClass("active"),this.spanAmPm.empty().append("PM"))),o.on("resize.clockpicker"+this.id,function(){t.isShown&&t.locate()}),this.isAppended=!0),this.parseInputValue(),this.spanHours.html(v(this.hours)),this.spanMinutes.html(v(this.minutes)),this.options.twelvehour&&this.spanAmPm.empty().append(this.amOrPm),this.toggleView("hours"),this.locate(),this.isShown=!0,a.on("click.clockpicker."+this.id+" focusin.clockpicker."+this.id,m(function(e){var i=n(e.target);0===i.closest(t.popover.find(".picker__wrap")).length&&0===i.closest(t.input).length&&t.hide()},100)),a.on("keyup.clockpicker."+this.id,m(function(e){27===e.keyCode&&t.hide()},100)),$(this.options.afterShow)}},T.prototype.hide=function(){$(this.options.beforeHide),this.input.removeClass("picker__input picker__input--active"),this.popover.removeClass("picker--opened"),n(document.body).css("overflow","visible"),this.isShown=!1,n(":input").each(function(e){n(this).attr("tabindex",e+1)}),a.off("click.clockpicker."+this.id+" focusin.clockpicker."+this.id),a.off("keyup.clockpicker."+this.id),this.popover.hide(),$(this.options.afterHide)},T.prototype.toggleView=function(e,t){var i=!1;"minutes"===e&&"visible"===n(this.hoursView).css("visibility")&&($(this.options.beforeHourSelect),i=!0);var o="hours"===e,a=o?this.hoursView:this.minutesView,r=o?this.minutesView:this.hoursView;this.currentView=e,this.spanHours.toggleClass("text-primary",o),this.spanMinutes.toggleClass("text-primary",!o),r.addClass("clockpicker-dial-out"),a.css("visibility","visible").removeClass("clockpicker-dial-out"),this.resetClock(t),clearTimeout(this.toggleViewTimer),this.toggleViewTimer=setTimeout(function(){r.css("visibility","hidden")},S),i&&$(this.options.afterHourSelect)},T.prototype.resetClock=function(e){var t=this.currentView,i=this[t],n="hours"===t,o=i*(Math.PI/(n?6:30)),a=n&&i>0&&i<13?w:b,r=Math.sin(o)*a,l=-Math.cos(o)*a,c=this;s&&e?(c.canvas.addClass("clockpicker-canvas-out"),setTimeout(function(){c.canvas.removeClass("clockpicker-canvas-out"),c.setHand(r,l)},e)):this.setHand(r,l)},T.prototype.setHand=function(e,t,i,o){var a,r,l=Math.atan2(e,-t),c="hours"===this.currentView,u=Math.sqrt(e*e+t*t),d=this.options,p=c&&u<(b+w)/2,f=p?w:b;if(a=c?d.hourstep/6*Math.PI:d.minutestep/30*Math.PI,d.twelvehour&&(f=b),l<0&&(l=2*Math.PI+l),l=(r=Math.round(l/a))*a,c?(r*=d.hourstep,d.twelvehour||!p!=r>0||(r+=12),d.twelvehour&&0===r&&(r=12),24===r&&(r=0)):60===(r*=d.minutestep)&&(r=0),c?this.fg.setAttribute("class","clockpicker-canvas-fg"):r%5==0?this.fg.setAttribute("class","clockpicker-canvas-fg"):this.fg.setAttribute("class","clockpicker-canvas-fg active"),this[this.currentView]!==r&&h&&this.options.vibrate&&(this.vibrateTimer||(navigator[h](10),this.vibrateTimer=setTimeout(n.proxy(function(){this.vibrateTimer=null},this),100))),this[this.currentView]=r,this[c?"spanHours":"spanMinutes"].html(v(r)),s){o||!c&&r%5?(this.g.insertBefore(this.hand,this.bearing),this.g.insertBefore(this.bg,this.fg),this.bg.setAttribute("class","clockpicker-canvas-bg clockpicker-canvas-bg-trans")):(this.g.insertBefore(this.hand,this.bg),this.g.insertBefore(this.fg,this.bg),this.bg.setAttribute("class","clockpicker-canvas-bg"));var m=Math.sin(l)*f,g=-Math.cos(l)*f;this.hand.setAttribute("x2",m),this.hand.setAttribute("y2",g),this.bg.setAttribute("cx",m),this.bg.setAttribute("cy",g),this.fg.setAttribute("cx",m),this.fg.setAttribute("cy",g)}else this[c?"hoursView":"minutesView"].find(".clockpicker-tick").each(function(){var e=n(this);e.toggleClass("active",r===+e.html())})},T.prototype.clearInput=function(){this.input.val(""),this.hide(),this.options.afterDone&&"function"==typeof this.options.afterDone&&this.options.afterDone(this.input,null)},T.prototype.getTime=function(e){this.parseInputValue();var t=this.hours;this.options.twelvehour&&t<12&&"PM"===this.amOrPm&&(t+=12);var i=new Date;return i.setMinutes(this.minutes),i.setHours(t),i.setSeconds(0),e&&e.apply(this.element,i)||i},T.prototype.done=function(){$(this.options.beforeDone),this.hide(),this.label.addClass("active");var e=this.input.prop("value"),t=this.hours,i=":"+v(this.minutes);this.isHTML5&&this.options.twelvehour&&(this.hours<12&&"PM"===this.amOrPm&&(t+=12),12===this.hours&&"AM"===this.amOrPm&&(t=0)),i=v(t)+i,!this.isHTML5&&this.options.twelvehour&&(i+=this.amOrPm),this.input.prop("value",i),i!==e&&(this.input.trigger("change"),this.isInput||this.element.trigger("change")),this.options.autoclose&&this.input.trigger("blur"),$(this.options.afterDone)},T.prototype.remove=function(){this.element.removeData("clockpicker"),this.input.off("focus.clockpicker click.clockpicker"),this.isShown&&this.hide(),this.isAppended&&(o.off("resize.clockpicker"+this.id),this.popover.remove())},n.fn.pickatime=function(e){var t=Array.prototype.slice.call(arguments,1);function i(){var i=n(this),o=i.data("clockpicker");if(o)"function"==typeof o[e]&&o[e].apply(o,t);else{var a=n.extend({},T.DEFAULTS,i.data(),"object"==typeof e&&e);i.data("clockpicker",new T(i,a))}}if(1==this.length){var o=i.apply(this[0]);return void 0!==o?o:this}return this.each(i)}}(),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipe=t()}(this,function(){"use strict";return function(e,t,i,n){var o={features:null,bind:function(e,t,i,n){var o=(n?"remove":"add")+"EventListener";t=t.split(" ");for(var a=0;a0&&(a=parseInt(a[1],10))>=1&&8>a&&(i.isOldIOSPhone=!0)}var r=n.match(/Android\s([0-9\.]*)/),s=r?r[1]:0;(s=parseFloat(s))>=1&&(4.4>s&&(i.isOldAndroid=!0),i.androidVersion=s),i.isMobileOpera=/opera mini|opera mobi/i.test(n)}for(var l,c,u=["transform","perspective","animationName"],d=["","webkit","Moz","ms","O"],p=0;4>p;p++){t=d[p];for(var h=0;3>h;h++)l=u[h],c=t+(t?l.charAt(0).toUpperCase()+l.slice(1):l),!i[l]&&c in e&&(i[l]=c);t&&!i.raf&&(t=t.toLowerCase(),i.raf=window[t+"RequestAnimationFrame"],i.raf&&(i.caf=window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"]))}if(!i.raf){var f=0;i.raf=function(e){var t=(new Date).getTime(),i=Math.max(0,16-(t-f)),n=window.setTimeout(function(){e(t+i)},i);return f=t+i,n},i.caf=function(e){clearTimeout(e)}}return i.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,o.features=i,i}};o.detectFeatures(),o.features.oldIE&&(o.bind=function(e,t,i,n){t=t.split(" ");for(var o,a=(n?"detach":"attach")+"Event",r=function(){i.handleEvent.call(i)},s=0;st-1?e-t:0>e?t+e:e},ke={},Se=function(e,t){return ke[e]||(ke[e]=[]),ke[e].push(t)},Ce=function(e){var t=ke[e];if(t){var i=Array.prototype.slice.call(arguments);i.shift();for(var n=0;na.currItem.fitRatio?be||(Kt(a.currItem,!1,!0),be=!0):be&&(Kt(a.currItem),be=!1)),Oe(ee,ue.x,ue.y,v))},Ae=function(e){e.container&&Oe(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},Ee=function(e,t){t[I]=y+e+"px, 0px"+b},Pe=function(e,t){if(!r.loop&&t){var i=u+(fe.x*pe-e)/fe.x,n=Math.round(e-ct.x);(0>i&&n>0||i>=Ht()-1&&0>n)&&(e=ct.x+n*r.mainScrollEndFriction)}ct.x=e,Ee(e,d)},Me=function(e,t){var i=ut[e]-he[e];return ce[e]+le[e]+i-i*(t/g)},Le=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},_e=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},De=null,Ve=function(){De&&(o.unbind(document,"mousemove",Ve),o.addClass(e,"pswp--has_mouse"),r.mouseUsed=!0,Ce("mouseUsed")),De=setTimeout(function(){De=null},100)},Re=function(e,t){var i=Bt(a.currItem,de,e);return t&&(J=i),i},je=function(e){return e||(e=a.currItem),e.initialZoomLevel},Fe=function(e){return e||(e=a.currItem),e.w>0?r.maxSpreadZoom:1},He=function(e,t,i,n){return n===a.currItem.initialZoomLevel?(i[e]=a.currItem.initialPosition[e],!0):(i[e]=Me(e,n),i[e]>t.min[e]?(i[e]=t.min[e],!0):i[e]=n)return Xe(e),a(i),void(r&&r());a((i-t)*o(s/n)+t),ze[e].raf=P(c)}};c()},Ze={shout:Ce,listen:Se,viewportSize:de,options:r,isMainScrollAnimating:function(){return te},getZoomLevel:function(){return v},getCurrentIndex:function(){return u},isDragging:function(){return z},isZooming:function(){return Q},setScrollOffset:function(e,t){he.x=e,V=he.y=t,Ce("updateScrollOffset",he)},applyZoomPan:function(e,t,i,n){ue.x=t,ue.y=i,v=e,Ie(n)},init:function(){if(!s&&!l){var i;a.framework=o,a.template=e,a.bg=o.getChildByClass(e,"pswp__bg"),L=e.className,s=!0,R=o.detectFeatures(),P=R.raf,M=R.caf,I=R.transform,D=R.oldIE,a.scrollWrap=o.getChildByClass(e,"pswp__scroll-wrap"),a.container=o.getChildByClass(a.scrollWrap,"pswp__container"),d=a.container.style,a.itemHolders=k=[{el:a.container.children[0],wrap:0,index:-1},{el:a.container.children[1],wrap:0,index:-1},{el:a.container.children[2],wrap:0,index:-1}],k[0].el.style.display=k[2].el.style.display="none",function(){if(I){var t=R.perspective&&!E;return y="translate"+(t?"3d(":"("),void(b=R.perspective?", 0px)":")")}I="left",o.addClass(e,"pswp--ie"),Ee=function(e,t){t.left=e+"px"},Ae=function(e){var t=e.fitRatio>1?1:e.fitRatio,i=e.container.style,n=t*e.w,o=t*e.h;i.width=n+"px",i.height=o+"px",i.left=e.initialPosition.x+"px",i.top=e.initialPosition.y+"px"},Ie=function(){if(ee){var e=ee,t=a.currItem,i=t.fitRatio>1?1:t.fitRatio,n=i*t.w,o=i*t.h;e.width=n+"px",e.height=o+"px",e.left=ue.x+"px",e.top=ue.y+"px"}}}(),m={resize:a.updateSize,scroll:Ne,keydown:We,click:Ye};var n=R.isOldIOSPhone||R.isOldAndroid||R.isMobileOpera;for(R.animationName&&R.transform&&!n||(r.showAnimationDuration=r.hideAnimationDuration=0),i=0;iu||u>=Ht())&&(u=0),a.currItem=Ft(u),(R.isOldIOSPhone||R.isOldAndroid)&&(ve=!1),e.setAttribute("aria-hidden","false"),r.modal&&(ve?e.style.position="fixed":(e.style.position="absolute",e.style.top=o.getScrollY()+"px")),void 0===V&&(Ce("initialLayout"),V=_=o.getScrollY());var c="pswp--open ";for(r.mainClass&&(c+=r.mainClass+" "),r.showHideOpacity&&(c+="pswp--animate_opacity "),c+=E?"pswp--touch":"pswp--notouch",c+=R.animationName?" pswp--css_animation":"",c+=R.svg?" pswp--svg":"",o.addClass(e,c),a.updateSize(),p=-1,me=null,i=0;3>i;i++)Ee((i+p)*fe.x,k[i].el.style);D||o.bind(a.scrollWrap,f,a),Se("initialZoomInEnd",function(){a.setContent(k[0],u-1),a.setContent(k[2],u+1),k[0].el.style.display=k[2].el.style.display="block",r.focus&&e.focus(),o.bind(document,"keydown",a),R.transform&&o.bind(a.scrollWrap,"click",a),r.mouseUsed||o.bind(document,"mousemove",Ve),o.bind(window,"resize scroll",a),Ce("bindEvents")}),a.setContent(k[1],u),a.updateCurrItem(),Ce("afterInit"),ve||(w=setInterval(function(){Be||z||Q||v!==a.currItem.initialZoomLevel||a.updateSize()},1e3)),o.addClass(e,"pswp--visible")}},close:function(){s&&(s=!1,l=!0,Ce("close"),o.unbind(window,"resize",a),o.unbind(window,"scroll",m.scroll),o.unbind(document,"keydown",a),o.unbind(document,"mousemove",Ve),R.transform&&o.unbind(a.scrollWrap,"click",a),z&&o.unbind(window,h,a),Ce("unbindEvents"),Wt(a.currItem,null,!0,a.destroy))},destroy:function(){Ce("destroy"),Dt&&clearTimeout(Dt),e.setAttribute("aria-hidden","true"),e.className=L,w&&clearInterval(w),o.unbind(a.scrollWrap,f,a),o.unbind(window,"scroll",a),ht(),Ue(),ke=null},panTo:function(e,t,i){i||(e>J.min.x?e=J.min.x:eJ.min.y?t=J.min.y:te;e++)k[e].item&&(k[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==me){var t,i=Math.abs(me);if(!(e&&2>i)){a.currItem=Ft(u),be=!1,Ce("beforeChange",me),i>=3&&(p+=me+(me>0?-3:3),i=3);for(var n=0;i>n;n++)me>0?(t=k.shift(),k[2]=t,Ee((++p+2)*fe.x,t.el.style),a.setContent(t,u-i+n+1+1)):(t=k.pop(),k.unshift(t),Ee(--p*fe.x,t.el.style),a.setContent(t,u+i-n-1-1));if(ee&&1===Math.abs(me)){var o=Ft(S);o.initialZoomLevel!==v&&(Bt(o,de),Kt(o),Ae(o))}me=0,a.updateCurrZoomItem(),S=u,Ce("afterChange")}}},updateSize:function(t){if(!ve&&r.modal){var i=o.getScrollY();if(V!==i&&(e.style.top=i+"px",V=i),!t&&ye.x===window.innerWidth&&ye.y===window.innerHeight)return;ye.x=window.innerWidth,ye.y=window.innerHeight,e.style.height=ye.y+"px"}if(de.x=a.scrollWrap.clientWidth,de.y=a.scrollWrap.clientHeight,Ne(),fe.x=de.x+Math.round(de.x*r.spacing),fe.y=de.y,Pe(fe.x*pe),Ce("beforeResize"),void 0!==p){for(var n,s,l,c=0;3>c;c++)n=k[c],Ee((c+p)*fe.x,n.el.style),l=u+c-1,r.loop&&Ht()>2&&(l=xe(l)),(s=Ft(l))&&(x||s.needsUpdate||!s.bounds)?(a.cleanSlide(s),a.setContent(n,l),1===c&&(a.currItem=s,a.updateCurrZoomItem(!0)),s.needsUpdate=!1):-1===n.index&&l>=0&&a.setContent(n,l),s&&s.container&&(Bt(s,de),Kt(s),Ae(s));x=!1}g=v=a.currItem.initialZoomLevel,(J=a.currItem.bounds)&&(ue.x=J.center.x,ue.y=J.center.y,Ie(!0)),Ce("resize")},zoomTo:function(e,t,i,n,a){t&&(g=v,ut.x=Math.abs(t.x)-ue.x,ut.y=Math.abs(t.y)-ue.y,Le(ce,ue));var r=Re(e,!1),s={};He("x",r,s,e),He("y",r,s,e);var l=v,c=ue.x,u=ue.y;_e(s);var d=function(t){1===t?(v=e,ue.x=s.x,ue.y=s.y):(v=(e-l)*t+l,ue.x=(s.x-c)*t+c,ue.y=(s.y-u)*t+u),a&&a(t),Ie(1===t)};i?Ke("customZoomTo",0,1,i,n||o.easing.sine.inOut,d):d(1)}},Qe={},Ge={},Je={},et={},tt={},it=[],nt={},ot=[],at={},rt=0,st={x:0,y:0},lt=0,ct={x:0,y:0},ut={x:0,y:0},dt={x:0,y:0},pt=function(e,t){return at.x=Math.abs(e.x-t.x),at.y=Math.abs(e.y-t.y),Math.sqrt(at.x*at.x+at.y*at.y)},ht=function(){U&&(M(U),U=null)},ft=function(){z&&(U=P(ft),It())},mt=function(e,t){return!(!e||e===document)&&!(e.getAttribute("class")&&e.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(t(e)?e:mt(e.parentNode,t))},vt={},gt=function(e,t){return vt.prevent=!mt(e.target,r.isClickableElement),Ce("preventDragEvent",e,t,vt),vt.prevent},yt=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},bt=function(e,t,i){i.x=.5*(e.x+t.x),i.y=.5*(e.y+t.y)},wt=function(){var e=ue.y-a.currItem.initialPosition.y;return 1-Math.abs(e/(de.y/2))},xt={},kt={},St=[],Ct=function(e){for(;St.length>0;)St.pop();return A?(se=0,it.forEach(function(e){0===se?St[0]=e:1===se&&(St[1]=e),se++})):e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(St[0]=yt(e.touches[0],xt),e.touches.length>1&&(St[1]=yt(e.touches[1],kt))):(xt.x=e.pageX,xt.y=e.pageY,xt.id="",St[0]=xt),St},Tt=function(e,t){var i,n,o,s,l=ue[e]+t[e],c=t[e]>0,u=ct.x+t.x,d=ct.x-nt.x;return i=l>J.min[e]||lJ.min[e]&&(i=r.panEndFriction,J.min[e],n=J.min[e]-ce[e]),(0>=n||0>d)&&Ht()>1?(s=u,0>d&&u>nt.x&&(s=nt.x)):J.min.x!==J.max.x&&(o=l)):(l=n||d>0)&&Ht()>1?(s=u,d>0&&ua.currItem.fitRatio&&(ue[e]+=t[e]*i)):(void 0!==s&&(Pe(s,!0),K=s!==nt.x),J.min.x!==J.max.x&&(void 0!==o?ue.x=o:K||(ue.x+=t.x*i)),void 0!==s)},$t=function(e){if(!("mousedown"===e.type&&e.button>0)){if(jt)return void e.preventDefault();if(!N||"mousedown"!==e.type){if(gt(e,!0)&&e.preventDefault(),Ce("pointerDown"),A){var t=o.arraySearch(it,e.pointerId,"id");0>t&&(t=it.length),it[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var i=Ct(e),n=i.length;Z=null,Ue(),z&&1!==n||(z=ne=!0,o.bind(window,h,a),W=re=oe=Y=K=q=B=X=!1,ie=null,Ce("firstTouchStart",i),Le(ce,ue),le.x=le.y=0,Le(et,i[0]),Le(tt,et),nt.x=fe.x*pe,ot=[{x:et.x,y:et.y}],F=j=Te(),Re(v,!0),ht(),ft()),!Q&&n>1&&!te&&!K&&(g=v,X=!1,Q=B=!0,le.y=le.x=0,Le(ce,ue),Le(Qe,i[0]),Le(Ge,i[1]),bt(Qe,Ge,dt),ut.x=Math.abs(dt.x)-ue.x,ut.y=Math.abs(dt.y)-ue.y,G=pt(Qe,Ge))}}},Ot=function(e){if(e.preventDefault(),A){var t=o.arraySearch(it,e.pointerId,"id");if(t>-1){var i=it[t];i.x=e.pageX,i.y=e.pageY}}if(z){var n=Ct(e);if(ie||q||Q)Z=n;else if(ct.x!==fe.x*pe)ie="h";else{var a=Math.abs(n[0].x-et.x)-Math.abs(n[0].y-et.y);Math.abs(a)>=10&&(ie=a>0?"h":"v",Z=n)}}},It=function(){if(Z){var e=Z.length;if(0!==e)if(Le(Qe,Z[0]),Je.x=Qe.x-et.x,Je.y=Qe.y-et.y,Q&&e>1){if(et.x=Qe.x,et.y=Qe.y,!Je.x&&!Je.y&&function(e,t){return e.x===t.x&&e.y===t.y}(Z[1],Ge))return;Le(Ge,Z[1]),X||(X=!0,Ce("zoomGestureStarted"));var t=pt(Qe,Ge),i=Lt(t);i>a.currItem.initialZoomLevel+a.currItem.initialZoomLevel/15&&(re=!0);var n=1,o=je(),s=Fe();if(o>i)if(r.pinchToClose&&!re&&g<=a.currItem.initialZoomLevel){var l=1-(o-i)/(o/1.2);$e(l),Ce("onPinchClose",l),oe=!0}else(n=(o-i)/o)>1&&(n=1),i=o-n*(o/3);else i>s&&((n=(i-s)/(6*o))>1&&(n=1),i=s+n*o);0>n&&(n=0),bt(Qe,Ge,st),le.x+=st.x-dt.x,le.y+=st.y-dt.y,Le(dt,st),ue.x=Me("x",i),ue.y=Me("y",i),W=i>v,v=i,Ie()}else{if(!ie)return;if(ne&&(ne=!1,Math.abs(Je.x)>=10&&(Je.x-=Z[0].x-tt.x),Math.abs(Je.y)>=10&&(Je.y-=Z[0].y-tt.y)),et.x=Qe.x,et.y=Qe.y,0===Je.x&&0===Je.y)return;if("v"===ie&&r.closeOnVerticalDrag&&"fit"===r.scaleMode&&v===a.currItem.initialZoomLevel){le.y+=Je.y,ue.y+=Je.y;var c=wt();return Y=!0,Ce("onVerticalDrag",c),$e(c),void Ie()}(function(e,t,i){if(e-F>50){var n=ot.length>2?ot.shift():{};n.x=t,n.y=i,ot.push(n),F=e}})(Te(),Qe.x,Qe.y),q=!0,J=a.currItem.bounds,Tt("x",Je)||(Tt("y",Je),_e(ue),Ie())}}},At=function(e){if(R.isOldAndroid){if(N&&"mouseup"===e.type)return;e.type.indexOf("touch")>-1&&(clearTimeout(N),N=setTimeout(function(){N=0},600))}var t;if(Ce("pointerUp"),gt(e,!1)&&e.preventDefault(),A){var i=o.arraySearch(it,e.pointerId,"id");i>-1&&(t=it.splice(i,1)[0],navigator.pointerEnabled?t.type=e.pointerType||"mouse":(t.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],t.type||(t.type=e.pointerType||"mouse")))}var n,s=Ct(e),l=s.length;if("mouseup"===e.type&&(l=0),2===l)return Z=null,!0;1===l&&Le(tt,s[0]),0!==l||ie||te||(t||("mouseup"===e.type?t={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(t={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),Ce("touchRelease",e,t));var c=-1;if(0===l&&(z=!1,o.unbind(window,h,a),ht(),Q?c=0:-1!==lt&&(c=Te()-lt)),lt=1===l?Te():-1,n=-1!==c&&150>c?"zoom":"swipe",Q&&2>l&&(Q=!1,1===l&&(n="zoomPointerUp"),Ce("zoomGestureEnded")),Z=null,q||X||te||Y)if(Ue(),H||(H=Et()),H.calculateSwipeSpeed("x"),Y)if(wt()a.currItem.fitRatio&&Pt(H))}},Et=function(){var e,t,i={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(n){ot.length>1?(e=Te()-F+50,t=ot[ot.length-2][n]):(e=Te()-j,t=tt[n]),i.lastFlickOffset[n]=et[n]-t,i.lastFlickDist[n]=Math.abs(i.lastFlickOffset[n]),i.lastFlickDist[n]>20?i.lastFlickSpeed[n]=i.lastFlickOffset[n]/e:i.lastFlickSpeed[n]=0,Math.abs(i.lastFlickSpeed[n])<.1&&(i.lastFlickSpeed[n]=0),i.slowDownRatio[n]=.95,i.slowDownRatioReverse[n]=1-i.slowDownRatio[n],i.speedDecelerationRatio[n]=1},calculateOverBoundsAnimOffset:function(e,t){i.backAnimStarted[e]||(ue[e]>J.min[e]?i.backAnimDestination[e]=J.min[e]:ue[e]30&&(c||t.lastFlickOffset.x>20)?n=-1:-30>l&&(c||t.lastFlickOffset.x<-20)&&(n=1)}n&&(0>(u+=n)?(u=r.loop?Ht()-1:0,s=!0):u>=Ht()&&(u=r.loop?0:Ht()-1,s=!0),(!s||r.loop)&&(me+=n,pe-=n,i=!0));var d,p=fe.x*pe,h=Math.abs(p-ct.x);return i||p>ct.x==t.lastFlickSpeed.x>0?(d=Math.abs(t.lastFlickSpeed.x)>0?h/Math.abs(t.lastFlickSpeed.x):333,d=Math.min(d,400),d=Math.max(d,250)):d=333,rt===u&&(i=!1),te=!0,Ce("mainScrollAnimStart"),Ke("mainScroll",ct.x,p,d,o.easing.cubic.out,Pe,function(){Ue(),te=!1,rt=-1,(i||rt!==u)&&a.updateCurrItem(),Ce("mainScrollAnimComplete")}),i&&a.updateCurrItem(!0),i},Lt=function(e){return 1/G*e*g},_t=function(){var e=v,t=je(),i=Fe();t>v?e=t:v>i&&(e=i);var n,r=ae;return oe&&!W&&!re&&t>v?(a.close(),!0):(oe&&(n=function(e){$e((1-r)*e+r)}),a.zoomTo(e,0,200,o.easing.cubic.out,n),!0)};we("Gestures",{publicMethods:{initGestures:function(){var e=function(e,t,i,n,o){C=e+t,T=e+i,$=e+n,O=o?e+o:""};(A=R.pointerEvent)&&R.touch&&(R.touch=!1),A?navigator.pointerEnabled?e("pointer","down","move","up","cancel"):e("MSPointer","Down","Move","Up","Cancel"):R.touch?(e("touch","start","move","end","cancel"),E=!0):e("mouse","down","move","up"),h=T+" "+$+" "+O,f=C,A&&!E&&(E=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),a.likelyTouchDevice=E,m[C]=$t,m[T]=Ot,m[$]=At,O&&(m[O]=m[$]),R.touch&&(f+=" mousedown",h+=" mousemove mouseup",m.mousedown=m[C],m.mousemove=m[T],m.mouseup=m[$]),E||(r.allowPanToNext=!1)}}});var Dt,Vt,Rt,jt,Ft,Ht,Wt=function(t,i,n,s){var l;Dt&&clearTimeout(Dt),jt=!0,Rt=!0,t.initialLayout?(l=t.initialLayout,t.initialLayout=null):l=r.getThumbBoundsFn&&r.getThumbBoundsFn(u);var d=n?r.hideAnimationDuration:r.showAnimationDuration,p=function(){Xe("initialZoom"),n?(a.template.removeAttribute("style"),a.bg.removeAttribute("style")):($e(1),i&&(i.style.display="block"),o.addClass(e,"pswp--animated-in"),Ce("initialZoom"+(n?"OutEnd":"InEnd"))),s&&s(),jt=!1};if(!d||!l||void 0===l.x)return Ce("initialZoom"+(n?"Out":"In")),v=t.initialZoomLevel,Le(ue,t.initialPosition),Ie(),e.style.opacity=n?0:1,$e(1),void(d?setTimeout(function(){p()},d):p());!function(){var i=c,s=!a.currItem.src||a.currItem.loadError||r.showHideOpacity;t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility="hidden"),n||(v=l.w/t.w,ue.x=l.x,ue.y=l.y-_,a[s?"template":"bg"].style.opacity=.001,Ie()),qe("initialZoom"),n&&!i&&o.removeClass(e,"pswp--animated-in"),s&&(n?o[(i?"remove":"add")+"Class"](e,"pswp--animate_opacity"):setTimeout(function(){o.addClass(e,"pswp--animate_opacity")},30)),Dt=setTimeout(function(){if(Ce("initialZoom"+(n?"Out":"In")),n){var a=l.w/t.w,r={x:ue.x,y:ue.y},c=v,u=ae,h=function(t){1===t?(v=a,ue.x=l.x,ue.y=l.y-V):(v=(a-c)*t+c,ue.x=(l.x-r.x)*t+r.x,ue.y=(l.y-V-r.y)*t+r.y),Ie(),s?e.style.opacity=1-t:$e(u-t*u)};i?Ke("initialZoom",0,1,d,o.easing.cubic.out,h,p):(h(1),Dt=setTimeout(p,d+20))}else v=t.initialZoomLevel,Le(ue,t.initialPosition),Ie(),$e(1),s?e.style.opacity=1:$e(1),Dt=setTimeout(p,d+20)},n?25:90)}()},Yt={},Nt=[],zt={index:0,errorMsg:'
    The image could not be loaded.
    ',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Vt.length}},Bt=function(e,t,i){if(e.src&&!e.loadError){var n=!i;if(n&&(e.vGap||(e.vGap={top:0,bottom:0}),Ce("parseVerticalMargin",e)),Yt.x=t.x,Yt.y=t.y-e.vGap.top-e.vGap.bottom,n){var o=Yt.x/e.w,a=Yt.y/e.h;e.fitRatio=a>o?o:a;var s=r.scaleMode;"orig"===s?i=1:"fit"===s&&(i=e.fitRatio),i>1&&(i=1),e.initialZoomLevel=i,e.bounds||(e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}})}if(!i)return;return function(e,t,i){var n=e.bounds;n.center.x=Math.round((Yt.x-t)/2),n.center.y=Math.round((Yt.y-i)/2)+e.vGap.top,n.max.x=t>Yt.x?Math.round(Yt.x-t):n.center.x,n.max.y=i>Yt.y?Math.round(Yt.y-i)+e.vGap.top:n.center.y,n.min.x=t>Yt.x?0:n.center.x,n.min.y=i>Yt.y?e.vGap.top:n.center.y}(e,e.w*i,e.h*i),n&&i===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds}return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}},e.initialPosition=e.bounds.center,e.bounds},Xt=function(e,t,i,n,o,r){t.loadError||n&&(t.imageAppended=!0,Kt(t,n,t===a.currItem&&be),i.appendChild(n),r&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500))},qt=function(e){e.loading=!0,e.loaded=!1;var t=e.img=o.createEl("pswp__img","img"),i=function(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,t.onload=t.onerror=null,t=null};return t.onload=i,t.onerror=function(){e.loadError=!0,i()},t.src=e.src,t},Ut=function(e,t){return e.src&&e.loadError&&e.container?(t&&(e.container.innerHTML=""),e.container.innerHTML=r.errorMsg.replace("%url%",e.src),!0):void 0},Kt=function(e,t,i){if(e.src){t||(t=e.container.lastChild);var n=i?e.w:Math.round(e.w*e.fitRatio),o=i?e.h:Math.round(e.h*e.fitRatio);e.placeholder&&!e.loaded&&(e.placeholder.style.width=n+"px",e.placeholder.style.height=o+"px"),t.style.width=n+"px",t.style.height=o+"px"}},Zt=function(){if(Nt.length){for(var e,t=0;t=0,o=Math.min(i[0],Ht()),s=Math.min(i[1],Ht());for(t=1;(n?s:o)>=t;t++)a.lazyLoadItem(u+t);for(t=1;(n?o:s)>=t;t++)a.lazyLoadItem(u-t)}),Se("initialLayout",function(){a.currItem.initialLayout=r.getThumbBoundsFn&&r.getThumbBoundsFn(u)}),Se("mainScrollAnimComplete",Zt),Se("initialZoomInEnd",Zt),Se("destroy",function(){for(var e,t=0;t=0&&void 0!==Vt[e]&&Vt[e]},allowProgressiveImg:function(){return r.forceProgressiveLoading||!E||r.mouseUsed||screen.width>1200},setContent:function(e,t){r.loop&&(t=xe(t));var i=a.getItemAt(e.index);i&&(i.container=null);var n,l=a.getItemAt(t);if(l){Ce("gettingData",t,l),e.index=t,e.item=l;var c=l.container=o.createEl("pswp__zoom-wrap");if(!l.src&&l.html&&(l.html.tagName?c.appendChild(l.html):c.innerHTML=l.html),Ut(l),Bt(l,de),!l.src||l.loadError||l.loaded)l.src&&!l.loadError&&((n=o.createEl("pswp__img","img")).style.opacity=1,n.src=l.src,Kt(l,n),Xt(0,l,c,n));else{if(l.loadComplete=function(i){if(s){if(e&&e.index===t){if(Ut(i,!0))return i.loadComplete=i.img=null,Bt(i,de),Ae(i),void(e.index===u&&a.updateCurrZoomItem());i.imageAppended?!jt&&i.placeholder&&(i.placeholder.style.display="none",i.placeholder=null):R.transform&&(te||jt)?Nt.push({item:i,baseDiv:c,img:i.img,index:t,holder:e,clearPlaceholder:!0}):Xt(0,i,c,i.img,0,!0)}i.loadComplete=null,i.img=null,Ce("imageLoadComplete",t,i)}},o.features.transform){var d="pswp__img pswp__img--placeholder";d+=l.msrc?"":" pswp__img--placeholder--blank";var p=o.createEl(d,l.msrc?"img":"");l.msrc&&(p.src=l.msrc),Kt(l,p),c.appendChild(p),l.placeholder=p}l.loading||qt(l),a.allowProgressiveImg()&&(!Rt&&R.transform?Nt.push({item:l,baseDiv:c,img:l.img,index:t,holder:e}):Xt(0,l,c,l.img,0,!0))}Rt||t!==u?Ae(l):(ee=c.style,Wt(l,n||l.img)),e.el.innerHTML="",e.el.appendChild(c)}else e.el.innerHTML=""},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});var Qt,Gt,Jt={},ei=function(e,t,i){var n=document.createEvent("CustomEvent"),o={origEvent:e,target:e.target,releasePoint:t,pointerType:i||"touch"};n.initCustomEvent("pswpTap",!0,!0,o),e.target.dispatchEvent(n)};we("Tap",{publicMethods:{initTap:function(){Se("firstTouchStart",a.onTapStart),Se("touchRelease",a.onTapRelease),Se("destroy",function(){Jt={},Qt=null})},onTapStart:function(e){e.length>1&&(clearTimeout(Qt),Qt=null)},onTapRelease:function(e,t){if(t&&!q&&!B&&!Be){var i=t;if(Qt&&(clearTimeout(Qt),Qt=null,function(e,t){return Math.abs(e.x-t.x)<25&&Math.abs(e.y-t.y)<25}(i,Jt)))return void Ce("doubleTap",i);if("mouse"===t.type)return void ei(e,t,"mouse");if("BUTTON"===e.target.tagName.toUpperCase()||o.hasClass(e.target,"pswp__single-tap"))return void ei(e,t);Le(Jt,i),Qt=setTimeout(function(){ei(e,t),Qt=null},300)}}}}),we("DesktopZoom",{publicMethods:{initDesktopZoom:function(){D||(E?Se("mouseUsed",function(){a.setupDesktopZoom()}):a.setupDesktopZoom(!0))},setupDesktopZoom:function(t){Gt={};var i="wheel mousewheel DOMMouseScroll";Se("bindEvents",function(){o.bind(e,i,a.handleMouseWheel)}),Se("unbindEvents",function(){Gt&&o.unbind(e,i,a.handleMouseWheel)}),a.mouseZoomedIn=!1;var n,r=function(){a.mouseZoomedIn&&(o.removeClass(e,"pswp--zoomed-in"),a.mouseZoomedIn=!1),1>v?o.addClass(e,"pswp--zoom-allowed"):o.removeClass(e,"pswp--zoom-allowed"),s()},s=function(){n&&(o.removeClass(e,"pswp--dragging"),n=!1)};Se("resize",r),Se("afterChange",r),Se("pointerDown",function(){a.mouseZoomedIn&&(n=!0,o.addClass(e,"pswp--dragging"))}),Se("pointerUp",s),t||r()},handleMouseWheel:function(e){if(v<=a.currItem.fitRatio)return r.modal&&(!r.closeOnScroll||Be||z?e.preventDefault():I&&Math.abs(e.deltaY)>2&&(c=!0,a.close())),!0;if(e.stopPropagation(),Gt.x=0,"deltaX"in e)1===e.deltaMode?(Gt.x=18*e.deltaX,Gt.y=18*e.deltaY):(Gt.x=e.deltaX,Gt.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(Gt.x=-.16*e.wheelDeltaX),e.wheelDeltaY?Gt.y=-.16*e.wheelDeltaY:Gt.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;Gt.y=e.detail}Re(v,!0);var t=ue.x-Gt.x,i=ue.y-Gt.y;(r.modal||t<=J.min.x&&t>=J.max.x&&i<=J.min.y&&i>=J.max.y)&&e.preventDefault(),a.panTo(t,i)},toggleDesktopZoom:function(t){t=t||{x:de.x/2+he.x,y:de.y/2+he.y};var i=r.getDoubleTapZoom(!0,a.currItem),n=v===i;a.mouseZoomedIn=!n,a.zoomTo(n?a.currItem.initialZoomLevel:i,t,333),o[(n?"remove":"add")+"Class"](e,"pswp--zoomed-in")}}});var ti,ii,ni,oi,ai,ri,si,li,ci,ui,di,pi,hi={history:!0,galleryUID:1},fi=function(){return di.hash.substring(1)},mi=function(){ti&&clearTimeout(ti),ni&&clearTimeout(ni)},vi=function(){var e=fi(),t={};if(e.length<5)return t;var i,n=e.split("&");for(i=0;i-1&&"&"===(si=si.substring(0,t)).slice(-1)&&(si=si.slice(0,-1)),setTimeout(function(){s&&o.bind(window,"hashchange",a.onHashChange)},40)}},onHashChange:function(){return fi()===si?(ci=!0,void a.close()):void(oi||(ai=!0,a.goTo(vi().pid),ai=!1))},updateURL:function(){mi(),ai||(li?ti=setTimeout(gi,800):gi())}}}),o.extend(a,Ze)}}),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipeUI_Default=t()}(this,function(){"use strict";return function(e,t){var i,n,o,a,r,s,l,c,u,d,p,h,f,m,v,g,y,b,w=this,x=!1,k=!0,S=!0,C={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,t){return e.title?(t.children[0].innerHTML=e.title,!0):(t.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return e.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return e.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},T=function(e){if(g)return!0;e=e||window.event,v.timeToIdle&&v.mouseUsed&&!u&&D();for(var i,n,o=(e.target||e.srcElement).getAttribute("class")||"",a=0;a-1&&(i.onTap(),n=!0);if(n){e.stopPropagation&&e.stopPropagation(),g=!0;var r=t.features.isOldAndroid?600:30;setTimeout(function(){g=!1},r)}},$=function(){return!e.likelyTouchDevice||v.mouseUsed||screen.width>v.fitControlsWidth},O=function(e,i,n){t[(n?"add":"remove")+"Class"](e,"pswp__"+i)},I=function(){var e=1===v.getNumItemsFn();e!==m&&(O(n,"ui--one-slide",e),m=e)},A=function(){O(l,"share-modal--hidden",S)},E=function(){return(S=!S)?(t.removeClass(l,"pswp__share-modal--fade-in"),setTimeout(function(){S&&A()},300)):(A(),setTimeout(function(){S||t.addClass(l,"pswp__share-modal--fade-in")},30)),S||M(),!1},P=function(t){var i=(t=t||window.event).target||t.srcElement;return e.shout("shareLinkClick",t,i),!(!i.href||!i.hasAttribute("download")&&(window.open(i.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),S||E(),1))},M=function(){for(var e,t,i,n,o="",a=0;a
    ").width(r).height(a).addClass("sticky-placeholder"),d=i.stopper,p=e(window);function h(){var r=p.scrollTop(),h=d,f=t.parent().width();(u.width(f),o&&"string"==typeof d)&&(h=e(d).offset().top-a-s);if(ca&&(p.bind("scroll",h),p.bind("load",h),p.bind("resize",h))})}}(jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.PerfectScrollbar=t()}(this,function(){"use strict";function e(e){return getComputedStyle(e)}function t(e,t){for(var i in t){var n=t[i];"number"==typeof n&&(n+="px"),e.style[i]=n}return e}function i(e){var t=document.createElement("div");return t.className=e,t}function n(e,t){if(!m)throw new Error("No element matching method supported");return m.call(e,t)}function o(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function a(e,t){return Array.prototype.filter.call(e.children,function(e){return n(e,t)})}function r(e,t){var i=e.element.classList,n=v.state.scrolling(t);i.contains(n)?clearTimeout(g[t]):i.add(n)}function s(e,t){g[t]=setTimeout(function(){return e.isAlive&&e.element.classList.remove(v.state.scrolling(t))},e.settings.scrollingThreshold)}function l(e,t){r(e,t),s(e,t)}function c(e){if("function"==typeof window.CustomEvent)return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function u(e){return parseInt(e,10)||0}function d(e){return n(e,"input,[contenteditable]")||n(e,"select,[contenteditable]")||n(e,"textarea,[contenteditable]")||n(e,"button,[contenteditable]")}function p(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function h(e,i){var n={width:i.railXWidth},o=Math.floor(e.scrollTop);i.isRtl?n.left=i.negativeScrollAdjustment+e.scrollLeft+i.containerWidth-i.contentWidth:n.left=e.scrollLeft,i.isScrollbarXUsingBottom?n.bottom=i.scrollbarXBottom-o:n.top=i.scrollbarXTop+o,t(i.scrollbarXRail,n);var a={top:o,height:i.railYHeight};i.isScrollbarYUsingRight?i.isRtl?a.right=i.contentWidth-(i.negativeScrollAdjustment+e.scrollLeft)-i.scrollbarYRight-i.scrollbarYOuterWidth:a.right=i.scrollbarYRight-e.scrollLeft:i.isRtl?a.left=i.negativeScrollAdjustment+e.scrollLeft+2*i.containerWidth-i.contentWidth-i.scrollbarYLeft-i.scrollbarYOuterWidth:a.left=i.scrollbarYLeft+e.scrollLeft,t(i.scrollbarYRail,a),t(i.scrollbarX,{left:i.scrollbarXLeft,width:i.scrollbarXWidth-i.railBorderXWidth}),t(i.scrollbarY,{top:i.scrollbarYTop,height:i.scrollbarYHeight-i.railBorderYWidth})}function f(e,t){function i(t){m[p]=g+b*(t[l]-y),r(e,h),S(e),t.stopPropagation(),t.preventDefault()}function n(){s(e,h),e[f].classList.remove(v.state.clicking),e.event.unbind(e.ownerDocument,"mousemove",i)}var o=t[0],a=t[1],l=t[2],c=t[3],u=t[4],d=t[5],p=t[6],h=t[7],f=t[8],m=e.element,g=null,y=null,b=null;e.event.bind(e[u],"mousedown",function(t){g=m[p],y=t[l],b=(e[a]-e[o])/(e[c]-e[d]),e.event.bind(e.ownerDocument,"mousemove",i),e.event.once(e.ownerDocument,"mouseup",n),e[f].classList.add(v.state.clicking),t.stopPropagation(),t.preventDefault()})}var m="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector),v={main:"ps",element:{thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}}},g={x:null,y:null},y=function(e){this.element=e,this.handlers={}},b={isEmpty:{configurable:!0}};y.prototype.bind=function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},y.prototype.unbind=function(e,t){var i=this;this.handlers[e]=this.handlers[e].filter(function(n){return!(!t||n===t)||(i.element.removeEventListener(e,n,!1),!1)})},y.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},b.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return 0===e.handlers[t].length})},Object.defineProperties(y.prototype,b);var w=function(){this.eventElements=[]};w.prototype.eventElement=function(e){var t=this.eventElements.filter(function(t){return t.element===e})[0];return t||(t=new y(e),this.eventElements.push(t)),t},w.prototype.bind=function(e,t,i){this.eventElement(e).bind(t,i)},w.prototype.unbind=function(e,t,i){var n=this.eventElement(e);n.unbind(t,i),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},w.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]},w.prototype.once=function(e,t,i){var n=this.eventElement(e),o=function(e){n.unbind(t,o),i(e)};n.bind(t,o)};var x=function(e,t,i,n,o){var a;if(void 0===n&&(n=!0),void 0===o&&(o=!1),"top"===t)a=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==t)throw new Error("A proper axis should be provided");a=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(e,t,i,n,o){var a=i[0],r=i[1],s=i[2],u=i[3],d=i[4],p=i[5];void 0===n&&(n=!0),void 0===o&&(o=!1);var h=e.element;e.reach[u]=null,h[s]<1&&(e.reach[u]="start"),h[s]>e[a]-e[r]-1&&(e.reach[u]="end"),t&&(h.dispatchEvent(c("ps-scroll-"+u)),t<0?h.dispatchEvent(c("ps-scroll-"+d)):t>0&&h.dispatchEvent(c("ps-scroll-"+p)),n&&l(e,u)),e.reach[u]&&(t||o)&&h.dispatchEvent(c("ps-"+u+"-reach-"+e.reach[u]))}(e,i,a,n,o)},k={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)},S=function(e){var t=e.element,i=Math.floor(t.scrollTop);e.containerWidth=t.clientWidth,e.containerHeight=t.clientHeight,e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(a(t,v.element.rail("x")).forEach(function(e){return o(e)}),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(a(t,v.element.rail("y")).forEach(function(e){return o(e)}),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),h(t,e),e.scrollbarXActive?t.classList.add(v.state.active("x")):(t.classList.remove(v.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=0),e.scrollbarYActive?t.classList.add(v.state.active("y")):(t.classList.remove(v.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)},C={"click-rail":function(e){e.event.bind(e.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),e.event.bind(e.scrollbarYRail,"mousedown",function(t){var i=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top>e.scrollbarYTop?1:-1;e.element.scrollTop+=i*e.containerHeight,S(e),t.stopPropagation()}),e.event.bind(e.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),e.event.bind(e.scrollbarXRail,"mousedown",function(t){var i=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=i*e.containerWidth,S(e),t.stopPropagation()})},"drag-thumb":function(e){f(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),f(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(e){var t=e.element,i=function(){return n(t,":hover")},o=function(){return n(e.scrollbarX,":focus")||n(e.scrollbarY,":focus")};e.event.bind(e.ownerDocument,"keydown",function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(i()||o())){var a=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(a){if("IFRAME"===a.tagName)a=a.contentDocument.activeElement;else for(;a.shadowRoot;)a=a.shadowRoot.activeElement;if(d(a))return}var r=0,s=0;switch(n.which){case 37:r=n.metaKey?-e.contentWidth:n.altKey?-e.containerWidth:-30;break;case 38:s=n.metaKey?e.contentHeight:n.altKey?e.containerHeight:30;break;case 39:r=n.metaKey?e.contentWidth:n.altKey?e.containerWidth:30;break;case 40:s=n.metaKey?-e.contentHeight:n.altKey?-e.containerHeight:-30;break;case 32:s=n.shiftKey?e.containerHeight:-e.containerHeight;break;case 33:s=e.containerHeight;break;case 34:s=-e.containerHeight;break;case 36:s=e.contentHeight;break;case 35:s=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&0!==r||e.settings.suppressScrollY&&0!==s||(t.scrollTop-=s,t.scrollLeft+=r,S(e),function(i,n){var o=Math.floor(t.scrollTop);if(0===i){if(!e.scrollbarYActive)return!1;if(0===o&&n>0||o>=e.contentHeight-e.containerHeight&&n<0)return!e.settings.wheelPropagation}var a=t.scrollLeft;if(0===n){if(!e.scrollbarXActive)return!1;if(0===a&&i<0||a>=e.contentWidth-e.containerWidth&&i>0)return!e.settings.wheelPropagation}return!0}(r,s)&&n.preventDefault())}})},wheel:function(t){function i(t,i,n){if(!k.isWebKit&&o.querySelector("select:focus"))return!0;if(!o.contains(t))return!1;for(var a=t;a&&a!==o;){if(a.classList.contains(v.element.consuming))return!0;var r=e(a);if([r.overflow,r.overflowX,r.overflowY].join("").match(/(scroll|auto)/)){var s=a.scrollHeight-a.clientHeight;if(s>0&&!(0===a.scrollTop&&n>0||a.scrollTop===s&&n<0))return!0;var l=a.scrollWidth-a.clientWidth;if(l>0&&!(0===a.scrollLeft&&i<0||a.scrollLeft===l&&i>0))return!0}a=a.parentNode}return!1}function n(e){var n=function(e){var t=e.deltaX,i=-1*e.deltaY;return void 0!==t&&void 0!==i||(t=-1*e.wheelDeltaX/6,i=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(t*=10,i*=10),t!=t&&i!=i&&(t=0,i=e.wheelDelta),e.shiftKey?[-i,-t]:[t,i]}(e),a=n[0],r=n[1];if(!i(e.target,a,r)){var s=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(r?o.scrollTop-=r*t.settings.wheelSpeed:o.scrollTop+=a*t.settings.wheelSpeed,s=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(a?o.scrollLeft+=a*t.settings.wheelSpeed:o.scrollLeft-=r*t.settings.wheelSpeed,s=!0):(o.scrollTop-=r*t.settings.wheelSpeed,o.scrollLeft+=a*t.settings.wheelSpeed),S(t),(s=s||function(e,i){var n=Math.floor(o.scrollTop),a=0===o.scrollTop,r=n+o.offsetHeight===o.scrollHeight,s=0===o.scrollLeft,l=o.scrollLeft+o.offsetWidth===o.scrollWidth;return!(Math.abs(i)>Math.abs(e)?a||r:s||l)||!t.settings.wheelPropagation}(a,r))&&!e.ctrlKey&&(e.stopPropagation(),e.preventDefault())}}var o=t.element;void 0!==window.onwheel?t.event.bind(o,"wheel",n):void 0!==window.onmousewheel&&t.event.bind(o,"mousewheel",n)},touch:function(t){function i(e,i){var n=Math.floor(u.scrollTop),o=u.scrollLeft,a=Math.abs(e),r=Math.abs(i);if(r>a){if(i<0&&n===t.contentHeight-t.containerHeight||i>0&&0===n)return 0===window.scrollY&&i>0&&k.isChrome}else if(a>r&&(e<0&&o===t.contentWidth-t.containerWidth||e>0&&0===o))return!0;return!0}function n(e,i){u.scrollTop-=i,u.scrollLeft-=e,S(t)}function o(e){return e.targetTouches?e.targetTouches[0]:e}function a(e){return!(e.pointerType&&"pen"===e.pointerType&&0===e.buttons||(!e.targetTouches||1!==e.targetTouches.length)&&(!e.pointerType||"mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE))}function r(e){if(a(e)){var t=o(e);d.pageX=t.pageX,d.pageY=t.pageY,p=(new Date).getTime(),null!==f&&clearInterval(f)}}function s(t,i,n){if(!u.contains(t))return!1;for(var o=t;o&&o!==u;){if(o.classList.contains(v.element.consuming))return!0;var a=e(o);if([a.overflow,a.overflowX,a.overflowY].join("").match(/(scroll|auto)/)){var r=o.scrollHeight-o.clientHeight;if(r>0&&!(0===o.scrollTop&&n>0||o.scrollTop===r&&n<0))return!0;var s=o.scrollLeft-o.clientWidth;if(s>0&&!(0===o.scrollLeft&&i<0||o.scrollLeft===s&&i>0))return!0}o=o.parentNode}return!1}function l(e){if(a(e)){var t=o(e),r={pageX:t.pageX,pageY:t.pageY},l=r.pageX-d.pageX,c=r.pageY-d.pageY;if(s(e.target,l,c))return;n(l,c),d=r;var u=(new Date).getTime(),f=u-p;f>0&&(h.x=l/f,h.y=c/f,p=u),i(l,c)&&e.preventDefault()}}function c(){t.settings.swipeEasing&&(clearInterval(f),f=setInterval(function(){t.isInitialized?clearInterval(f):h.x||h.y?Math.abs(h.x)<.01&&Math.abs(h.y)<.01?clearInterval(f):(n(30*h.x,30*h.y),h.x*=.8,h.y*=.8):clearInterval(f)},10))}if(k.supportsTouch||k.supportsIePointer){var u=t.element,d={},p=0,h={},f=null;k.supportsTouch?(t.event.bind(u,"touchstart",r),t.event.bind(u,"touchmove",l),t.event.bind(u,"touchend",c)):k.supportsIePointer&&(window.PointerEvent?(t.event.bind(u,"pointerdown",r),t.event.bind(u,"pointermove",l),t.event.bind(u,"pointerup",c)):window.MSPointerEvent&&(t.event.bind(u,"MSPointerDown",r),t.event.bind(u,"MSPointerMove",l),t.event.bind(u,"MSPointerUp",c)))}}},T=function(n,o){var a=this;if(void 0===o&&(o={}),"string"==typeof n&&(n=document.querySelector(n)),!n||!n.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var r in this.element=n,n.classList.add(v.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},o)a.settings[r]=o[r];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s=function(){return n.classList.add(v.state.focus)},l=function(){return n.classList.remove(v.state.focus)};this.isRtl="rtl"===e(n).direction,this.isNegativeScroll=function(){var e,t=n.scrollLeft;return n.scrollLeft=-1,e=n.scrollLeft<0,n.scrollLeft=t,e}(),this.negativeScrollAdjustment=this.isNegativeScroll?n.scrollWidth-n.clientWidth:0,this.event=new w,this.ownerDocument=n.ownerDocument||document,this.scrollbarXRail=i(v.element.rail("x")),n.appendChild(this.scrollbarXRail),this.scrollbarX=i(v.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",s),this.event.bind(this.scrollbarX,"blur",l),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=e(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=u(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=u(c.borderLeftWidth)+u(c.borderRightWidth),t(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=u(c.marginLeft)+u(c.marginRight),t(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=i(v.element.rail("y")),n.appendChild(this.scrollbarYRail),this.scrollbarY=i(v.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",s),this.event.bind(this.scrollbarY,"blur",l),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var d=e(this.scrollbarYRail);this.scrollbarYRight=parseInt(d.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=u(d.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var i=e(t);return u(i.width)+u(i.paddingLeft)+u(i.paddingRight)+u(i.borderLeftWidth)+u(i.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=u(d.borderTopWidth)+u(d.borderBottomWidth),t(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=u(d.marginTop)+u(d.marginBottom),t(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:n.scrollLeft<=0?"start":n.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:n.scrollTop<=0?"start":n.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(e){return C[e](a)}),this.lastScrollTop=Math.floor(n.scrollTop),this.lastScrollLeft=n.scrollLeft,this.event.bind(this.element,"scroll",function(e){return a.onScroll(e)}),S(this)};return T.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,t(this.scrollbarXRail,{display:"block"}),t(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=u(e(this.scrollbarXRail).marginLeft)+u(e(this.scrollbarXRail).marginRight),this.railYMarginHeight=u(e(this.scrollbarYRail).marginTop)+u(e(this.scrollbarYRail).marginBottom),t(this.scrollbarXRail,{display:"none"}),t(this.scrollbarYRail,{display:"none"}),S(this),x(this,"top",0,!1,!0),x(this,"left",0,!1,!0),t(this.scrollbarXRail,{display:""}),t(this.scrollbarYRail,{display:""}))},T.prototype.onScroll=function(e){this.isAlive&&(S(this),x(this,"top",this.element.scrollTop-this.lastScrollTop),x(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},T.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),o(this.scrollbarX),o(this.scrollbarY),o(this.scrollbarXRail),o(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},T.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(" ")},T}),function(e){var t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=11)}([,,function(e,t,i){"use strict";e.exports=function(e){"complete"===document.readyState||"interactive"===document.readyState?e.call():document.attachEvent?document.attachEvent("onreadystatechange",function(){"interactive"===document.readyState&&e.call()}):document.addEventListener&&document.addEventListener("DOMContentLoaded",e)}},,function(e,t,i){"use strict";(function(t){var i;i="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=i}).call(this,i(5))},function(e,t,i){"use strict";var n,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":o(window))&&(n=window)}e.exports=n},,,,,,function(e,t,i){e.exports=i(12)},function(e,t,i){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=s(i(2)),a=i(4),r=s(i(13));function s(e){return e&&e.__esModule?e:{default:e}}var l=a.window.jarallax;if(a.window.jarallax=r.default,a.window.jarallax.noConflict=function(){return a.window.jarallax=l,this},void 0!==a.jQuery){var c=function(){var e=arguments||[];Array.prototype.unshift.call(e,this);var t=r.default.apply(a.window,e);return"object"!==(void 0===t?"undefined":n(t))?t:this};c.constructor=r.default.constructor;var u=a.jQuery.fn.jarallax;a.jQuery.fn.jarallax=c,a.jQuery.fn.jarallax.noConflict=function(){return a.jQuery.fn.jarallax=u,this}}(0,o.default)(function(){(0,r.default)(document.querySelectorAll("[data-jarallax]"))})},function(e,t,i){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,a=void 0;try{for(var r,s=e[Symbol.iterator]();!(n=(r=s.next()).done)&&(i.push(r.value),!t||i.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var i=0;i-1||navigator.userAgent.indexOf("Trident/")>-1||navigator.userAgent.indexOf("Edge/")>-1,d=function(){for(var e="transform WebkitTransform MozTransform".split(" "),t=document.createElement("div"),i=0;i1?a=Math.abs(o-h):i<0?a=o/i+Math.abs(o):a+=Math.abs(h-t)*(1-i),o/=2),this.parallaxScrollDistance=o,r=n?(h-a)/2:(t-a)/2,this.css(this.image.$item,{height:a+"px",marginTop:r+"px",left:"fixed"===this.image.position?e.left+"px":"0",width:e.width+"px"}),this.options.onCoverImage&&this.options.onCoverImage.call(this),{image:{height:a,marginTop:r},container:e}}},{key:"isVisible",value:function(){return this.isElementInViewport||!1}},{key:"onScroll",value:function(e){var t=this.$item.getBoundingClientRect(),i=t.top,n=t.height,o={},a=t;if(this.options.elementInViewport&&(a=this.options.elementInViewport.getBoundingClientRect()),this.isElementInViewport=a.bottom>=0&&a.right>=0&&a.top<=h&&a.left<=p,e||this.isElementInViewport){var r=Math.max(0,i),s=Math.max(0,n+i),l=Math.max(0,-i),c=Math.max(0,i+n-h),u=Math.max(0,n-(i+n-h)),d=Math.max(0,-i+h-n),f=1-2*(h-i)/(h+n),m=1;if(n0&&void 0!==arguments[0]&&arguments[0];this.player&&e&&("youtube"===this.type&&this.player.setVolume&&this.player.setVolume(e),"vimeo"===this.type&&this.player.setVolume&&this.player.setVolume(e),"local"===this.type&&(this.$video.volume=e/100))}},{key:"getVolume",value:function(e){this.player?("youtube"===this.type&&this.player.getVolume&&e(this.player.getVolume()),"vimeo"===this.type&&this.player.getVolume&&this.player.getVolume().then(function(t){e(t)}),"local"===this.type&&e(100*this.$video.volume)):e(!1)}},{key:"getMuted",value:function(e){this.player?("youtube"===this.type&&this.player.isMuted&&e(this.player.isMuted()),"vimeo"===this.type&&this.player.getVolume&&this.player.getVolume().then(function(t){e(!!t)}),"local"===this.type&&e(this.$video.muted)):e(null)}},{key:"getImageURL",value:function(e){var t=this;if(t.videoImage)e(t.videoImage);else{if("youtube"===t.type){var i=["maxresdefault","sddefault","hqdefault","0"],n=0,o=new Image;o.onload=function(){120!==(this.naturalWidth||this.width)||n===i.length-1?(t.videoImage="https://img.youtube.com/vi/"+t.videoID+"/"+i[n]+".jpg",e(t.videoImage)):(n++,this.src="https://img.youtube.com/vi/"+t.videoID+"/"+i[n]+".jpg")},o.src="https://img.youtube.com/vi/"+t.videoID+"/"+i[n]+".jpg"}if("vimeo"===t.type){var a=new XMLHttpRequest;a.open("GET","https://vimeo.com/api/v2/video/"+t.videoID+".json",!0),a.onreadystatechange=function(){if(4===this.readyState&&this.status>=200&&this.status<400){var i=JSON.parse(this.responseText);t.videoImage=i[0].thumbnail_large,e(t.videoImage)}},a.send(),a=null}}}},{key:"getIframe",value:function(e){this.getVideo(e)}},{key:"getVideo",value:function(e){var t=this;t.$video?e(t.$video):t.onAPIready(function(){var i=void 0;if(t.$video||((i=document.createElement("div")).style.display="none"),"youtube"===t.type){t.playerOptions={},t.playerOptions.videoId=t.videoID,t.playerOptions.playerVars={autohide:1,rel:0,autoplay:0,playsinline:1},t.options.showContols||(t.playerOptions.playerVars.iv_load_policy=3,t.playerOptions.playerVars.modestbranding=1,t.playerOptions.playerVars.controls=0,t.playerOptions.playerVars.showinfo=0,t.playerOptions.playerVars.disablekb=1);var n=void 0,o=void 0;t.playerOptions.events={onReady:function(e){t.options.mute?e.target.mute():t.options.volume&&e.target.setVolume(t.options.volume),t.options.autoplay&&t.play(t.options.startTime),t.fire("ready",e),setInterval(function(){t.getVolume(function(i){t.options.volume!==i&&(t.options.volume=i,t.fire("volumechange",e))})},150)},onStateChange:function(e){t.options.loop&&e.data===YT.PlayerState.ENDED&&t.play(t.options.startTime),n||e.data!==YT.PlayerState.PLAYING||(n=1,t.fire("started",e)),e.data===YT.PlayerState.PLAYING&&t.fire("play",e),e.data===YT.PlayerState.PAUSED&&t.fire("pause",e),e.data===YT.PlayerState.ENDED&&t.fire("ended",e),e.data===YT.PlayerState.PLAYING?o=setInterval(function(){t.fire("timeupdate",e),t.options.endTime&&t.player.getCurrentTime()>=t.options.endTime&&(t.options.loop?t.play(t.options.startTime):t.pause())},150):clearInterval(o)}};var a=!t.$video;if(a){var r=document.createElement("div");r.setAttribute("id",t.playerID),i.appendChild(r),document.body.appendChild(i)}t.player=t.player||new window.YT.Player(t.playerID,t.playerOptions),a&&(t.$video=document.getElementById(t.playerID),t.videoWidth=parseInt(t.$video.getAttribute("width"),10)||1280,t.videoHeight=parseInt(t.$video.getAttribute("height"),10)||720)}if("vimeo"===t.type){t.playerOptions="",t.playerOptions+="player_id="+t.playerID,t.playerOptions+="&autopause=0",t.playerOptions+="&transparent=0",t.options.showContols||(t.playerOptions+="&badge=0&byline=0&portrait=0&title=0"),t.playerOptions+="&autoplay="+(t.options.autoplay?"1":"0"),t.playerOptions+="&loop="+(t.options.loop?1:0),t.$video||(t.$video=document.createElement("iframe"),t.$video.setAttribute("id",t.playerID),t.$video.setAttribute("src","https://player.vimeo.com/video/"+t.videoID+"?"+t.playerOptions),t.$video.setAttribute("frameborder","0"),i.appendChild(t.$video),document.body.appendChild(i)),t.player=t.player||new Vimeo.Player(t.$video),t.player.getVideoWidth().then(function(e){t.videoWidth=e||1280}),t.player.getVideoHeight().then(function(e){t.videoHeight=e||720}),t.options.startTime&&t.options.autoplay&&t.player.setCurrentTime(t.options.startTime),t.options.mute?t.player.setVolume(0):t.options.volume&&t.player.setVolume(t.options.volume);var s=void 0;t.player.on("timeupdate",function(e){s||(t.fire("started",e),s=1),t.fire("timeupdate",e),t.options.endTime&&t.options.endTime&&e.seconds>=t.options.endTime&&(t.options.loop?t.play(t.options.startTime):t.pause())}),t.player.on("play",function(e){t.fire("play",e),t.options.startTime&&0===e.seconds&&t.play(t.options.startTime)}),t.player.on("pause",function(e){t.fire("pause",e)}),t.player.on("ended",function(e){t.fire("ended",e)}),t.player.on("loaded",function(e){t.fire("ready",e)}),t.player.on("volumechange",function(e){t.fire("volumechange",e)})}if("local"===t.type){t.$video||(t.$video=document.createElement("video"),t.options.showContols&&(t.$video.controls=!0),t.options.mute?t.$video.muted=!0:t.$video.volume&&(t.$video.volume=t.options.volume/100),t.options.loop&&(t.$video.loop=!0),t.$video.setAttribute("playsinline",""),t.$video.setAttribute("webkit-playsinline",""),t.$video.setAttribute("id",t.playerID),i.appendChild(t.$video),document.body.appendChild(i),Object.keys(t.videoID).forEach(function(e){var i,n,o,a;i=t.$video,n=t.videoID[e],o="video/"+e,(a=document.createElement("source")).src=n,a.type=o,i.appendChild(a)})),t.player=t.player||t.$video;var l=void 0;t.player.addEventListener("playing",function(e){l||t.fire("started",e),l=1}),t.player.addEventListener("timeupdate",function(e){t.fire("timeupdate",e),t.options.endTime&&t.options.endTime&&this.currentTime>=t.options.endTime&&(t.options.loop?t.play(t.options.startTime):t.pause())}),t.player.addEventListener("play",function(e){t.fire("play",e)}),t.player.addEventListener("pause",function(e){t.fire("pause",e)}),t.player.addEventListener("ended",function(e){t.fire("ended",e)}),t.player.addEventListener("loadedmetadata",function(){t.videoWidth=this.videoWidth||1280,t.videoHeight=this.videoHeight||720,t.fire("ready"),t.options.autoplay&&t.play(t.options.startTime)}),t.player.addEventListener("volumechange",function(e){t.getVolume(function(e){t.options.volume=e}),t.fire("volumechange",e)})}e(t.$video)})}},{key:"init",value:function(){this.playerID="VideoWorker-"+this.ID}},{key:"loadAPI",value:function(){if(!s||!l){var e="";if("youtube"!==this.type||s||(s=1,e="https://www.youtube.com/iframe_api"),"vimeo"!==this.type||l||(l=1,e="https://player.vimeo.com/api/player.js"),e){var t=document.createElement("script"),i=document.getElementsByTagName("head")[0];t.src=e,i.appendChild(t),i=null,t=null}}}},{key:"onAPIready",value:function(e){if("youtube"===this.type&&("undefined"!=typeof YT&&0!==YT.loaded||c?"object"===("undefined"==typeof YT?"undefined":n(YT))&&1===YT.loaded?e():d.done(function(){e()}):(c=1,window.onYouTubeIframeAPIReady=function(){window.onYouTubeIframeAPIReady=null,d.resolve("done"),e()})),"vimeo"===this.type)if("undefined"!=typeof Vimeo||u)"undefined"!=typeof Vimeo?e():p.done(function(){e()});else{u=1;var t=setInterval(function(){"undefined"!=typeof Vimeo&&(clearInterval(t),p.resolve("done"),e())},20)}"local"===this.type&&e()}}]),e}();t.default=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.default.jarallax;if(void 0===e)return;var t=e.constructor,i=t.prototype.init;t.prototype.init=function(){var e=this;i.apply(e),e.video&&!e.options.disableVideo()&&e.video.getVideo(function(t){var i=t.parentNode;e.css(t,{position:e.image.position,top:"0px",left:"0px",right:"0px",bottom:"0px",width:"100%",height:"100%",maxWidth:"none",maxHeight:"none",margin:0,zIndex:-1}),e.$video=t,e.image.$container.appendChild(t),i.parentNode.removeChild(i)})};var a=t.prototype.coverImage;t.prototype.coverImage=function(){var e=a.apply(this),t=!!this.image.$item&&this.image.$item.nodeName;if(e&&this.video&&t&&("IFRAME"===t||"VIDEO"===t)){var i=e.image.height,n=i*this.image.width/this.image.height,o=(e.container.width-n)/2,r=e.image.marginTop;e.container.width>n&&(n=e.container.width,i=n*this.image.height/this.image.width,o=0,r+=(e.image.height-i)/2),"IFRAME"===t&&(i+=400,r-=200),this.css(this.$video,{width:n+"px",marginLeft:o+"px",height:i+"px",marginTop:r+"px"})}return e};var r=t.prototype.initImg;t.prototype.initImg=function(){var e=r.apply(this);return this.options.videoSrc||(this.options.videoSrc=this.$item.getAttribute("data-jarallax-video")||null),this.options.videoSrc?(this.defaultInitImgResult=e,!0):e};var s=t.prototype.canInitParallax;t.prototype.canInitParallax=function(){var e=this,t=s.apply(e);if(!e.options.videoSrc)return t;var i=new n.default(e.options.videoSrc,{autoplay:!0,loop:!0,showContols:!1,startTime:e.options.videoStartTime||0,endTime:e.options.videoEndTime||0,mute:e.options.videoVolume?0:1,volume:e.options.videoVolume||0});if(i.isValid())if(t){if(i.on("ready",function(){if(e.options.videoPlayOnlyVisible){var t=e.onScroll;e.onScroll=function(){t.apply(e),e.isVisible()?i.play():i.pause()}}else i.play()}),i.on("started",function(){e.image.$default_item=e.image.$item,e.image.$item=e.$video,e.image.width=e.video.videoWidth||1280,e.image.height=e.video.videoHeight||720,e.options.imgWidth=e.image.width,e.options.imgHeight=e.image.height,e.coverImage(),e.clipContainer(),e.onScroll(),e.image.$default_item&&(e.image.$default_item.style.display="none")}),e.video=i,!e.defaultInitImgResult)return"local"!==i.type?(i.getImageURL(function(t){e.image.src=t,e.init()}),!1):(e.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",!0)}else e.defaultInitImgResult||i.getImageURL(function(t){var i=e.$item.getAttribute("style");i&&e.$item.setAttribute("data-jarallax-original-styles",i),e.css(e.$item,{"background-image":'url("'+t+'")',"background-position":"center","background-size":"cover"})});return t};var l=t.prototype.destroy;t.prototype.destroy=function(){this.image.$default_item&&(this.image.$item=this.image.$default_item,delete this.image.$default_item),l.apply(this)}};var n=a(i(8)),o=a(i(4));function a(e){return e&&e.__esModule?e:{default:e}}}]),function(e){var t={},i="",n="",o="#ced4da",a="1px solid #4285f4",r="1px solid #ced4da",s="0 1px 0 0 #4285f4",l="",c=-1,u=-45,d=function(){function d(c,u){_classCallCheck(this,d),this.defaults={data:t,dataColor:i,closeColor:n,closeBlurColor:o,inputFocus:a,inputBlur:r,inputFocusShadow:s,inputBlurShadow:l},this.$input=c,this.options=this.assignOptions(u),this.$clearButton=e(".mdb-autocomplete-clear"),this.$autocompleteWrap=e('
      '),this.init()}return _createClass(d,[{key:"init",value:function(){this.setData(),this.inputFocus(),this.inputBlur(),this.inputKeyupData(),this.inputLiClick(),this.clearAutocomplete()}},{key:"assignOptions",value:function(t){return e.extend({},this.defaults,t)}},{key:"setData",value:function(){Object.keys(this.options.data).length&&this.$autocompleteWrap.insertAfter(this.$input)}},{key:"inputFocus",value:function(){var e=this;this.$input.on("focus",function(){e.$input.css("border-bottom",e.options.inputFocus),e.$input.css("box-shadow",e.options.inputFocusShadow)})}},{key:"inputBlur",value:function(){var e=this;this.$input.on("blur",function(){e.$input.css("border-bottom",e.options.inputBlur),e.$input.css("box-shadow",e.options.inputBlurShadow)})}},{key:"inputKeyupData",value:function(){var t=this;this.$input.on("keyup",function(i){if(13===i.which)return t.options.data.includes(t.$input.val())||t.options.data.push(t.$input.val()),t.$autocompleteWrap.find(".selected").trigger("click"),t.$autocompleteWrap.empty(),t.inputBlur(),u=-45,c=-1;var n=t.$input.val();if(t.$autocompleteWrap.empty(),n.length){for(var o in t.options.data)if(-1!==t.options.data[o].toLowerCase().indexOf(n.toLowerCase())){var a=e("
    • ".concat(t.options.data[o],"
    • "));t.$autocompleteWrap.append(a)}var r=t.$autocompleteWrap,s=t.$autocompleteWrap.find("li"),l=s.eq(c).outerHeight(),d=s.eq(c-1).outerHeight();if(40===i.which){if(c>s.length-2)return c=-1,s.scrollTop(0),void(u=-45);c++,u+=l,r.scrollTop(u),s.eq(c).addClass("selected")}else 38===i.which&&(c<1?(c=s.length,r.scrollTop(r.prop("scrollHeight")),u=r.prop("scrollHeight")-l):c--,u-=d,r.scrollTop(u),s.eq(c).addClass("selected"));0===n.length?t.$clearButton.css("visibility","hidden"):t.$clearButton.css("visibility","visible"),t.$autocompleteWrap.children().css("color",t.options.dataColor)}else t.$clearButton.css("visibility","hidden")})}},{key:"inputLiClick",value:function(){var t=this;this.$autocompleteWrap.on("click","li",function(i){i.preventDefault(),t.$input.val(e(i.target).text()),t.$autocompleteWrap.empty()})}},{key:"clearAutocomplete",value:function(){var t=this;this.$clearButton.on("click",function(i){c=-1,u=-45,i.preventDefault();var n=e(i.currentTarget);n.parent().find(".mdb-autocomplete").val(""),n.css("visibility","hidden"),t.$autocompleteWrap.empty(),n.parent().find("label").removeClass("active")})}},{key:"changeSVGcolors",value:function(){var t=this;this.$input.hasClass("mdb-autocomplete")&&(this.$input.on("click keyup",function(i){i.preventDefault(),e(i.target).parent().find(".mdb-autocomplete-clear").find("svg").css("fill",t.options.closeColor)}),this.$input.on("blur",function(i){i.preventDefault(),e(i.target).parent().find(".mdb-autocomplete-clear").find("svg").css("fill",t.options.closeBlurColor)}))}}]),d}();e.fn.mdbAutocomplete=function(t){return this.each(function(){new d(e(this),t)})}}(jQuery),function(e){e("body").on("shown.bs.modal",".modal",function(){e(".modal-backdrop").length||($modal_dialog=e(this).children(".modal-dialog"),$modal_dialog.hasClass("modal-side")&&(e(this).addClass("modal-scrolling"),e("body").addClass("scrollable")),$modal_dialog.hasClass("modal-frame")&&(e(this).addClass("modal-content-clickable"),e("body").addClass("scrollable")))}),e("body").on("hidden.bs.modal",".modal",function(){e("body").removeClass("scrollable")})}(jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).bsCustomFileInput=t()}(this,function(){"use strict";var e={CUSTOMFILE:'.custom-file input[type="file"]',CUSTOMFILELABEL:".custom-file-label",FORM:"form",INPUT:"input"},t=function(t){var i="",n=t.parentNode.querySelector(e.CUSTOMFILELABEL);return n&&(i=n.innerHTML),i},i=function(e){if(e.childNodes.length>0)for(var t=[].slice.call(e.childNodes),i=0;i