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,s=0,r=n;if(0==t)return i;if(1==(t/=o))return i+n;if(s||(s=.3*o),rt((a+1)*t-a)+i},easeOutBack:function(e,t,i,n,o,a){return void 0==a&&(a=1.70158),n*((t=t/o-1)t((a+1)*t+a)+1)+i},easeInOutBack:function(e,t,i,n,o,a){return void 0==a&&(a=1.70158),(t/=o/2)<1?n/2*(t*t*((1+(a*=1.525))*t-a))+i:n/2*((t-=2)t((1+(a*=1.525))*t+a)+2)+i},easeInBounce:function(e,t,i,n,o){return n-jQuery.easing.easeOutBounce(e,o-t,0,n,o)+i},easeOutBounce:function(e,t,i,n,o){return(t/=o)<1/2.75?n*(7.5625*t*t)+i:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+i:n*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(e,t,i,n,o){return to(this)&&no(this)+e(this).height()&&ne(document).height())){var a=e(this).index(“.wow”),s=e(this).attr(“data-wow-delay”);if(s){s=e(this).attr(“data-wow-delay”).slice(0,-1);var r=this;parseFloat(s);e®.addClass(“animated”),e®.css({visibility:“visible”}),e®.css({“animation-delay”:s}),e®.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));r=this;setTimeout(function(){e®.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),r=this;setTimeout(function(){e®.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,s=t.top+o-a;return Math.round(s)}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 global?global: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 s(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 r(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=s(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”,r(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”,r(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”)}}},s=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,s=void 0===i.attr(“placeholder”);n&&o&&s&&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 r=e(“body”);if(!e(“.hiddendiv”).first().length){var l=e(‘

’);r.append(l)}e(“.materialize-textarea”).each(s),r.on(“keyup keydown”,“.materialize-textarea”,s)}(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”),s=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||s)&&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;$(“.smooth-scroll”).on(“click”,“a”,function(){var e=$(this).attr(“href”);if(void 0!==e&&0===e.indexOf(“#”)){var t=$(this).attr(“data-offset”)?$(this).attr(“data-offset”):0,i=$(this).parentsUntil(“.smooth-scroll”).last().parent().attr(“data-allow-hashes”);return $(“body,html”).animate({scrollTop:$(e).offset().top-t},SMOOTH_SCROLL_DURATION),void 0!==i&&!1!==i&&history.replaceState(null,null,e),!1}}),function(e){e.fn.scrollTo=function(t){return e(this).scrollTop(e(this).scrollTop()-e(this).offset().top+e(t).offset().top),this},e.fn.dropdown=function(t){this.each(function(){var i=e(this),n=e.extend({},e.fn.dropdown.defaults,t),o=!1,a=e(“#”.concat(i.attr(“data-activates”)));function s(){void 0!==i.data(“induration”)&&(n.inDuration=i.data(“inDuration”)),void 0!==i.data(“outduration”)&&(n.outDuration=i.data(“outDuration”)),void 0!==i.data(“constrainwidth”)&&(n.constrain_width=i.data(“constrainwidth”)),void 0!==i.data(“hover”)&&(n.hover=i.data(“hover”)),void 0!==i.data(“gutter”)&&(n.gutter=i.data(“gutter”)),void 0!==i.data(“beloworigin”)&&(n.belowOrigin=i.data(“beloworigin”)),void 0!==i.data(“alignment”)&&(n.alignment=i.data(“alignment”))}function r(t){“focus”===t&&(o=!0),s(),a.addClass(“active”),i.addClass(“active”),!0===n.constrain_width?a.css(“width”,i.outerWidth()):a.css(“white-space”,“nowrap”);var r=window.innerHeight,l=i.innerHeight(),c=i.offset().left,u=i.offset().top-e(window).scrollTop(),d=n.alignment,p=0,h=0,f=0;!0===n.belowOrigin&&(f=l);var m=0,v=i.parent();if(!v.is(“body”)&&v[0].scrollHeight>v[0].clientHeight&&(m=v[0].scrollTop),c+a.innerWidth()>e(window).width()?d=“right”:c-a.innerWidth()+i.innerWidth()<0&&(d="left"),u+a.innerHeight()>r)if(u+l-a.innerHeight()<0){var g=r-u-f;a.css("max-height",g)}else f||(f+=l),f-=a.innerHeight();if("left"===d)p=n.gutter,h=i.position().left+p;else if("right"===d){h=i.position().left+i.outerWidth()-a.outerWidth()+(p=-n.gutter)}a.css({position:"absolute",top:i.position().top+f+m,left:h}),a.stop(!0,!0).css("opacity",0).slideDown({queue:!1,duration:n.inDuration,easing:"easeOutCubic",complete:function(){e(this).css("height","")}}).animate({opacity:1,scrollTop:0},{queue:!1,duration:n.inDuration,easing:"easeOutSine"})}function l(){o=!1,a.fadeOut(n.outDuration),a.removeClass("active"),i.removeClass("active"),setTimeout(function(){a.css("max-height","")},n.outDuration)}if(s(),i.after(a),n.hover){var c=!1;i.unbind("click.".concat(i.attr("id"))),i.on("mouseenter",function(){!1===c&&(r(),c=!0)}),i.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(t){var n=t.toElement||t.relatedTarget;e(n).closest(".dropdown-button").is(i)||(a.stop(!0,!0),l(),c=!1)})}else i.unbind("click.".concat(i.attr("id"))),i.bind("click.".concat(i.attr("id")),function(t){o||(i[0]!==t.currentTarget||i.hasClass("active")||0!==e(t.target).closest(".dropdown-content").length?i.hasClass("active")&&(l(),e(document).unbind("click.".concat(a.attr("id")," touchstart.").concat(a.attr("id")))):(t.preventDefault(),r("click")),a.hasClass("active")&&e(document).bind("click.".concat(a.attr("id")," touchstart.").concat(a.attr("id")),function(t){a.is(t.target)||i.is(t.target)||i.find(t.target).length||(l(),e(document).unbind("click.".concat(a.attr("id")," touchstart.").concat(a.attr("id"))))}))});i.on("open",function(e,t){r(t)}),i.on("close",l)})},e.fn.dropdown.defaults={inDuration:300,outDuration:225,constrain_width:!0,hover:!1,gutter:0,belowOrigin:!1,alignment:"left"},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“,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“),(s=a).hasClass(”active“)?n(s):i(s),!1;var a,s})}(jQuery),function(e){var t=240,i=1440,n=300,o=200,a=50,s=200,r=”easeOutQuad“,l=”easeOutCubic“,c=!0,u=!1,d=function(){function d(p,h){_classCallCheck(this,d),this.defaults={MENU_WIDTH:t,edge:”left“,closeOnClick:!1,breakpoint:i,timeDurationOpen:n,timeDurationClose:o,timeDurationOverlayOpen:a,timeDurationOverlayClose:s,easingOpen:r,easingClose:l,showOverlay:c,showCloseButton:u},this.$element=p,this.$elementCloned=p.clone().css({display:”inline-block“,lineHeight:”24px“}),this.options=this.assignOptions(h),this.menuOut=!1,this.lastTouchVelocity={x:{startPosition:0,startTime:0,endPosition:0,endTime:0}},this.$body=e(”body“),this.$menu=e(”#“.concat(this.$element.attr(”data-activates“))),this.$sidenavOverlay=e(”#sidenav-overlay“),this.$dragTarget=e(‘
’),this.$body.append(this.$dragTarget),this.init()}return _createClass(d,[{key:”init“,value:function(){this.setMenuWidth(),this.setMenuTranslation(),this.closeOnClick(),this.openOnClick(),this.bindTouchEvents(),this.showCloseButton(),this.inputOnClick()}},{key:”bindTouchEvents“,value:function(){var e=this;this.$dragTarget.on(”click“,function(){return e.removeMenu()}),this.$elementCloned.on(”click“,function(){return e.removeMenu()}),this.$dragTarget.on(”touchstart“,function(t){e.lastTouchVelocity.x.startPosition=t.touches[0].clientX,e.lastTouchVelocity.x.startTime=Date.now()}),this.$dragTarget.on(”touchmove“,this.touchmoveEventHandler.bind(this)),this.$dragTarget.on(”touchend“,this.touchendEventHandler.bind(this))}},{key:”touchmoveEventHandler“,value:function(e){if(”touchmove“===e.type){var t=e.touches[0],i=t.clientX;Date.now()-this.lastTouchVelocity.x.startTime>20&&(this.lastTouchVelocity.x.startPosition=t.clientX,this.lastTouchVelocity.x.startTime=Date.now()),this.disableScrolling(),0!==this.$sidenavOverlay.length||this.buildSidenavOverlay(),”left“===this.options.edge&&(i>this.options.MENU_WIDTH?i=this.options.MENU_WIDTH:i<0&&(i=0)),this.translateSidenavX(i),this.updateOverlayOpacity(i)}}},{key:"panEventHandler",value:function(e){if("touch"===e.gesture.pointerType){var t=e.gesture.center.x;this.disableScrolling(),0!==this.$sidenavOverlay.length||this.buildSidenavOverlay(),"left"===this.options.edge&&(t>this.options.MENU_WIDTH?t=this.options.MENU_WIDTH:t<0&&(t=0)),this.translateSidenavX(t),this.updateOverlayOpacity(t)}}},{key:"translateSidenavX",value:function(e){if("left"===this.options.edge){var t=e>=this.options.MENU_WIDTH/2;this.menuOut=t,this.$menu.css(”transform“,”translateX(“.concat(e-this.options.MENU_WIDTH,”px)“))}else{var i=e’),this.$sidenavOverlay.css(”opacity“,0).on(”click“,function(){return t.removeMenu()}),this.$body.append(this.$sidenavOverlay))}},{key:”disableScrolling“,value:function(){var e=this.$body.innerWidth();this.$body.css(”overflow“,”hidden“),this.$body.width(e)}},{key:”touchendEventHandler“,value:function(e){if(”touchend“===e.type){var t=e.changedTouches[0];this.lastTouchVelocity.x.endTime=Date.now(),this.lastTouchVelocity.x.endPosition=t.clientX;var i=this.calculateTouchVelocityX(),n=t.clientX,o=n-this.options.MENU_WIDTH,a=n-this.options.MENU_WIDTH/2;o>0&&(o=0),a<0&&(a=0),"left"===this.options.edge?(this.menuOut&&i<=.3||i<-.5?(0!==o&&this.translateMenuX([0,o],"300"),this.showSidenavOverlay()):(!this.menuOut||i>.3)&&(this.enableScrolling(),this.translateMenuX([-1*this.options.MENU_WIDTH-10,o],”200“),this.hideSidenavOverlay()),this.$dragTarget.css({width:”10px“,right:”“,left:0})):this.menuOut&&i>=-.3||i>.5?(this.translateMenuX([0,a],”300“),this.showSidenavOverlay(),this.$dragTarget.css({width:”50%“,right:”“,left:0})):(!this.menuOut||i<-.3)&&(this.enableScrolling(),this.translateMenuX([this.options.MENU_WIDTH+10,a],"200"),this.hideSidenavOverlay(),this.$dragTarget.css({width:"10px",right:0,left:""}))}}},{key:"calculateTouchVelocityX",value:function(){return Math.abs(this.lastTouchVelocity.x.endPosition-this.lastTouchVelocity.x.startPosition)/Math.abs(this.lastTouchVelocity.x.endTime-this.lastTouchVelocity.x.startTime)}},{key:"panendEventHandler",value:function(e){if("touch"===e.gesture.pointerType){var t=e.gesture.velocityX,i=e.gesture.center.x,n=i-this.options.MENU_WIDTH,o=i-this.options.MENU_WIDTH/2;n>0&&(n=0),o<0&&(o=0),"left"===this.options.edge?(this.menuOut&&t<=.3||t<-.5?(0!==n&&this.translateMenuX([0,n],"300"),this.showSidenavOverlay()):(!this.menuOut||t>.3)&&(this.enableScrolling(),this.translateMenuX([-1*this.options.MENU_WIDTH-10,n],”200“),this.hideSidenavOverlay()),this.$dragTarget.css({width:”10px“,right:”“,left:0})):this.menuOut&&t>=-.3||t>.5?(this.translateMenuX([0,o],”300“),this.showSidenavOverlay(),this.$dragTarget.css({width:”50%“,right:”“,left:0})):(!this.menuOut||t<-.3)&&(this.enableScrolling(),this.translateMenuX([this.options.MENU_WIDTH+10,o],"200"),this.hideSidenavOverlay(),this.$dragTarget.css({width:"10px",right:0,left:""}))}}},{key:"translateMenuX",value:function(e,t){this.$menu.velocity({translateX:e},{duration:"string"==typeof t?Number(t):t,queue:!1,easing:this.options.easingOpen})}},{key:"hideSidenavOverlay",value:function(){this.$sidenavOverlay.velocity({opacity:0},{duration:this.options.timeDurationOverlayClose,queue:!1,easing:this.options.easingOpen,complete:function(){e(this).remove()}})}},{key:"showSidenavOverlay",value:function(){this.$sidenavOverlay.velocity({opacity:1},{duration:this.options.timeDurationOverlayOpen,queue:!1,easing:this.options.easingOpen})}},{key:"enableScrolling",value:function(){this.$body.css({overflow:"",width:""})}},{key:"openOnClick",value:function(){var t=this;this.$element.on("click",function(i){if(i.preventDefault(),!0===t.menuOut)t.menuOut=!1,t.removeMenu();else{!0===t.options.showOverlay?(t.$sidenavOverlay=e('
’),t.$body.append(t.$sidenavOverlay)):t.showCloseButton();var n=[];n=”left“===t.options.edge?[0,-1*t.options.MENU_WIDTH]:[0,t.options.MENU_WIDTH],t.$menu.velocity({translateX:n},{duration:t.options.timeDurationOpen,queue:!1,easing:t.options.easingOpen}),t.$sidenavOverlay.on(”click“,function(){return t.removeMenu()}),t.$sidenavOverlay.on(”touchmove“,t.touchmoveEventHandler.bind(t)),t.$menu.on(”touchmove“,function(e){e.preventDefault(),t.$menu.find(”.custom-scrollbar“).css(”padding-bottom“,”30px“)})}})}},{key:”closeOnClick“,value:function(){var e=this;!0===this.options.closeOnClick&&this.$menu.on(”click“,”a:not(.collapsible-header)“,function(){return e.removeMenu()})}},{key:”showCloseButton“,value:function(){!0===this.options.showCloseButton&&(this.$menu.prepend(this.$elementCloned),this.$menu.find(”.logo-wrapper“).css({borderTop:”1px solid rgba(153,153,153,.3)“}))}},{key:”setMenuTranslation“,value:function(){var t=this;”left“===this.options.edge?(this.$menu.css(”transform“,”translateX(-100%)“),this.$dragTarget.css({left:0})):(this.$menu.addClass(”right-aligned“).css(”transform“,”translateX(100%)“),this.$dragTarget.css({right:0})),this.$menu.hasClass(”fixed“)&&(window.innerWidth>this.options.breakpoint&&this.$menu.css(”transform“,”translateX(0)“),this.$menu.find(”input[type=text]“).on(”touchstart“,function(){t.$menu.addClass(”transform-fix-input“)}),e(window).resize(function(){if(window.innerWidth>t.options.breakpoint)t.$sidenavOverlay.length?t.removeMenu(!0):t.$menu.css(”transform“,”translateX(0%)“);else if(!1===t.menuOut){var e=”left“===t.options.edge?”-100“:”100“;t.$menu.css(”transform“,”translateX(“.concat(e,”%)“))}}))}},{key:”setMenuWidth“,value:function(){var i=e(”#“.concat(this.$menu.attr(”id“))).find(”> .sidenav-bg“);this.options.MENU_WIDTH!==t&&(this.$menu.css(”width“,this.options.MENU_WIDTH),i.css(”width“,this.options.MENU_WIDTH))}},{key:”inputOnClick“,value:function(){var e=this;this.$menu.find(”input[type=text]“).on(”touchstart“,function(){return e.$menu.css(”transform“,”translateX(0)“)})}},{key:”assignOptions“,value:function(t){return e.extend({},this.defaults,t)}},{key:”removeMenu“,value:function(e){var t=this;this.$body.css({overflow:”“,width:”“}),this.$menu.velocity({translateX:”left“===this.options.edge?”-100%“:”100%“},{duration:this.options.timeDurationClose,queue:!1,easing:this.options.easingClose,complete:function(){!0===e&&(t.$menu.removeAttr(”style“),t.$menu.css(”width“,t.options.MENU_WIDTH))}}),this.$menu.hasClass(”transform-fix-input“)&&this.$menu.removeClass(”transform-fix-input“),this.hideSidenavOverlay()}}]),d}();e.fn.sideNav=function(t){return this.each(function(){new d(e(this),t)})}}(jQuery),$(function(){$(”#toggle“).click(function(){$(”#slide-out“).hasClass(”slim“)?($(”#slide-out“).removeClass(”slim“),$(”.sv-slim-icon“).removeClass(”fa-angle-double-right“).addClass(”fa-angle-double-left“)):($(”#slide-out“).addClass(”slim“),$(”.sv-slim-icon“).removeClass(”fa-angle-double-left“).addClass(”fa-angle-double-right“))})}),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 s(e).length>0}function s(e){return e.closest(”li > .collapsible-header“)}return t=e.extend(i,t),this.each(function(){var i=e(this),r=e(this).find(”> li > .collapsible-header“),l=i.data(”collapsible“);i.off(”click.collapse“,”.collapsible-header“),r.off(”click.collapse“),t.accordion||”accordion“===l||void 0===l?((r=i.find(”> li > .collapsible-header“)).on(”click.collapse“,function(t){var o=e(t.target);a(o)&&(o=s(o)),o.toggleClass(”active“),n(i,o)}),n(i,r.filter(”.active“).first())):r.each(function(){e(this).on(”click.collapse“,function(t){var i=e(t.target);a(i)&&(i=s(i)),i.toggleClass(”active“),o(i)}),e(this).hasClass(”active“)&&o(e(this))})})},e(”.collapsible“).collapsible()}(jQuery),function(e){var t,i=function(){function t(i,n){_classCallCheck(this,t),this.$nativeSelect=i,this.defaults={destroy:!1,nativeID:null,BSsearchIn:!1,BSinputText:!1,fasClasses:”“,farClasses:”“,fabClasses:”“,copyClassesOption:!1,language:{active:!1,pl:{selectAll:”Wybierz wszystko“,optionsSelected:”wybranych opcji“},in:{selectAll:”Pilih semuanya“,optionsSelected:”opsi yang dipilih“},fr:{selectAll:”Tout choisir“,optionsSelected:”options sélectionnées“},ge:{selectAll:”Wähle alles aus“,optionsSelected:”ausgewählte Optionen“},ar:{selectAll:”اختر كل شيء“,optionsSelected:”الخيارات المحددة“}}},this.options=this.assignOptions(n),this.isMultiple=Boolean(this.$nativeSelect.attr(”multiple“)),this.isSearchable=Boolean(this.$nativeSelect.attr(”searchable“)),this.isRequired=Boolean(this.$nativeSelect.attr(”required“)),this.uuid=null!==this.options.nativeID&&”“!==this.options.nativeID&&void 0!==this.options.nativeID&&”string“==typeof this.options.nativeID?this.options.nativeID:this._randomUUID(),this.$selectWrapper=e(‘
’),this.$materialOptionsList=e(‘’)),this.$materialSelectedOption=this.$nativeSelect.find(”option:selected“),this.$materialSelectInitialOption=this.$nativeSelect.find(”option:first“).text()||”“,this.$nativeSelectChildren=this.$nativeSelect.children(”option, optgroup“),this.$materialSelect=e(‘’)),this.$dropdownIcon=this.options.BSinputText?”“:e(‘’),this.$searchInput=null,this.$toggleAll=e(‘
  • ’),this.label=this.$nativeSelect.next(”label“).not(”.mdb-main-label“),this.mainLabel=this.$nativeSelect.next(”.mdb-main-label“),this.valuesSelected=[],this.keyCodes={tab:9,esc:27,enter:13,arrowUp:38,arrowDown:40},t.mutationObservers=[]}return _createClass(t,[{key:”assignOptions“,value:function(t){return e.extend({},this.defaults,t)}},{key:”init“,value:function(){if(Boolean(this.$nativeSelect.data(”select-id“))&&this._removeMaterialWrapper(),this.options.destroy)this.$nativeSelect.data(”select-id“,null).removeClass(”initialized“);else{this.options.BSsearchIn||this.options.BSinputText?this.$selectWrapper.addClass(this.$nativeSelect.attr(”class“).split(” “).filter(function(e){return”md-form“!==e}).join(” “)).css({marginTop:”1.5rem“,marginBottom:”1.5rem“}):this.$selectWrapper.addClass(this.$nativeSelect.attr(”class“)),this.$nativeSelect.data(”select-id“,this.uuid);var e=this.$materialSelectInitialOption.replace(/”/g,“”“).replace(/ +/g,” “).trim();0===this.mainLabel.length?this.$materialSelect.val(e):this.mainLabel.text(),this.$materialSelectedOption.length>0&&this.$nativeSelect.hasClass(”md-selected“)&&(this.mainLabel.addClass(”active“),this.$materialSelect.val(this.$materialSelectedOption.text())),this.renderMaterialSelect(),this.bindEvents(),this.isRequired&&this.enableValidation(),this.options.language.active&&this.$toggleAll&&(this.options.language.pl&&this.$toggleAll.find(”label“).text(this.options.language.pl.selectAll?this.options.language.pl.selectAll:this.defaults.language.pl.selectAll),this.options.language.fr&&this.$toggleAll.find(”label“).text(this.options.language.fr.selectAll?this.options.language.fr.selectAll:this.defaults.language.fr.selectAll),this.options.language.ge&&this.$toggleAll.find(”label“).text(this.options.language.ge.selectAll?this.options.language.ge.selectAll:this.defaults.language.ge.selectAll),this.options.language.ar&&this.$toggleAll.find(”label“).text(this.options.language.ar.selectAll?this.options.language.ar.selectAll:this.defaults.language.ar.selectAll),this.options.language.in&&this.$toggleAll.find(”label“).text(this.options.language.in.selectAll?this.options.language.in.selectAll:this.defaults.language.in.selectAll)),this.$materialSelect.hasClass(”custom-select“)&&this.$materialSelect.hasClass(”select-dropdown“)&&this.$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“})}}},{key:”_removeMaterialWrapper“,value:function(){var t=this.$nativeSelect.data(”select-id“);this.$nativeSelect.parent().find(”span.caret“).remove(),this.$nativeSelect.parent().find(”input“).remove(),this.$nativeSelect.unwrap(),e(”ul#select-options-“.concat(t)).remove()}},{key:”renderMaterialSelect“,value:function(){var e=this;if(this.$nativeSelect.before(this.$selectWrapper),this.appendDropdownIcon(),this.appendMaterialSelect(),this.appendMaterialOptionsList(),this.appendNativeSelect(),this.appendSaveSelectButton(),this.$nativeSelect.is(”:disabled“)||this.$materialSelect.dropdown({hover:!1,closeOnClick:!1}),!1!==this.$nativeSelect.data(”inherit-tabindex“)&&this.$materialSelect.attr(”tabindex“,this.$nativeSelect.attr(”tabindex“)),this.isMultiple)this.$nativeSelect.find(”option:selected:not(:disabled)“).each(function(t,i){var n=i.index;e._toggleSelectedValue(n),e.$materialOptionsList.find(”li:not(.optgroup):not(.select-toggle-all)“).eq(n).find(”:checkbox“).prop(”checked“,!0)});else{var t=this.$nativeSelect.find(”option:selected“).index();this.$materialOptionsList.find(”li“).eq(t).addClass(”active“)}this.$nativeSelect.addClass(”initialized“),this.options.BSinputText&&this.mainLabel.css(”top“,”-7px“)}},{key:”appendDropdownIcon“,value:function(){this.$nativeSelect.is(”:disabled“)&&this.$dropdownIcon.addClass(”disabled“),this.$selectWrapper.append(this.$dropdownIcon)}},{key:”appendMaterialSelect“,value:function(){this.$selectWrapper.append(this.$materialSelect)}},{key:”appendMaterialOptionsList“,value:function(){this.isSearchable&&this.appendSearchInputOption(),this.buildMaterialOptions(),this.isMultiple&&this.appendToggleAllCheckbox(),this.$selectWrapper.append(this.$materialOptionsList)}},{key:”appendNativeSelect“,value:function(){this.$nativeSelect.appendTo(this.$selectWrapper)}},{key:”appendSearchInputOption“,value:function(){var t=this.$nativeSelect.attr(”searchable“);this.options.BSsearchIn?this.$searchInput=e(‘
    ’)):this.$searchInput=e(‘
    ’)),this.$materialOptionsList.append(this.$searchInput),this.$searchInput.on(”click“,function(e){e.stopPropagation()})}},{key:”appendToggleAllCheckbox“,value:function(){this.$materialOptionsList.find(”li.disabled“).first().after(this.$toggleAll)}},{key:”appendSaveSelectButton“,value:function(){this.$selectWrapper.parent().find(”button.btn-save“).appendTo(this.$materialOptionsList)}},{key:”buildMaterialOptions“,value:function(){var t=this;this.$nativeSelectChildren.each(function(i,n){var o=e(n);if(o.is(”option“))t.buildSingleOption(o,t.isMultiple?”multiple“:”“);else if(o.is(”optgroup“)){var a=e(‘
  • ’.concat(o.attr(”label“),”
  • “));t.$materialOptionsList.append(a),o.children(”option“).each(function(i,n){t.buildSingleOption(e(n),”optgroup-option“)})}})}},{key:”buildSingleOption“,value:function(t,i){var n=t.is(”:disabled“)?”disabled“:”“,o=”optgroup-option“===i?”optgroup-option“:”“,a=t.data(”icon“),s=t.data(”fas“)?‘ ’):”“,r=t.data(”far“)?‘ ’):”“,l=t.data(”fab“)?‘ ’):”“,c=t.attr(”class“),u=a?‘’):”“,d=this.isMultiple?‘”):“”;this.$materialOptionsList.append(e(’
  • ‘).concat(u,’‘).concat(d,“ ”).concat(t.html(),“ ”).concat(s,“ ”).concat(r,“ ”).concat(l,“
  • ”)))}},{key:“enableValidation”,value:function(){this.$nativeSelect.css({position:“absolute”,top:“1rem”,left:“0”,height:“0”,width:“0”,opacity:“0”,padding:“0”,“pointer-events”:“none”}),-1===this.$nativeSelect.attr(“style”).indexOf(“inline!important”)&&this.$nativeSelect.attr(“style”,“”.concat(this.$nativeSelect.attr(“style”),“ display: inline!important;”)),this.$nativeSelect.attr(“tabindex”,-1),this.$nativeSelect.data(“inherit-tabindex”,!1)}},{key:“bindEvents”,value:function(){var i=this,n=new MutationObserver(this._onMutationObserverChange.bind(this));n.observe(this.$nativeSelect.get(0),{attributes:!0,childList:!0,characterData:!0,subtree:!0}),n.customId=this.uuid,n.customStatus=“observing”,t.clearMutationObservers(),t.mutationObservers.push(n),this.$nativeSelect.parent().find(“button.btn-save”).on(“click”,this._onSaveSelectBtnClick.bind(this)),this.$materialSelect.on(“focus”,this._onMaterialSelectFocus.bind(this)),this.$materialSelect.on(“click”,this._onMaterialSelectClick.bind(this)),this.$materialSelect.on(“blur”,this._onMaterialSelectBlur.bind(this)),this.$materialSelect.on(“keydown”,this._onMaterialSelectKeydown.bind(this)),this.$toggleAll.on(“click”,this._onToggleAllClick.bind(this)),this.$materialOptionsList.on(“mousedown”,this._onEachMaterialOptionMousedown.bind(this)),this.$materialOptionsList.find(“li:not(.optgroup)”).not(this.$toggleAll).each(function(t,n){e(n).on(“click”,i._onEachMaterialOptionClick.bind(i,t,n))}),!this.isMultiple&&this.isSearchable&&this.$materialOptionsList.find(“li”).on(“click”,this._onSingleMaterialOptionClick.bind(this)),this.isSearchable&&this.$searchInput.find(“.search”).on(“keyup”,this._onSearchInputKeyup),e(“html”).on(“click”,this._onHTMLClick.bind(this))}},{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:“_onSaveSelectBtnClick”,value:function(){e(“input.multi-bs-select”).trigger(“close”),this.$materialOptionsList.hide(),this.$materialSelect.removeClass(“active”)}},{key:“_onEachMaterialOptionClick”,value:function(t,i,n){n.stopPropagation();var o=e(i);if(!o.hasClass(“disabled”)&&!o.hasClass(“optgroup”)){var a=!0;if(this.isMultiple){o.find(’input[type=“checkbox”]‘).prop(“checked”,function(e,t){return!t});var s=Boolean(this.$nativeSelect.find(“optgroup”).length),r=this._isToggleAllPresent()?o.index()-1:o.index();a=this.isSearchable&&s?this._toggleSelectedValue(r-o.prevAll(“.optgroup”).length-1):this.isSearchable?this._toggleSelectedValue(r-1):s?this._toggleSelectedValue(r-o.prevAll(“.optgroup”).length):this._toggleSelectedValue®,this._isToggleAllPresent()&&this._updateToggleAllOption(),this.$materialSelect.trigger(“focus”)}else this.$materialOptionsList.find(“li”).removeClass(“active”),o.toggleClass(“active”),this.$materialSelect.val(o.text().replace(/ +/g,“ ”).trim()),this.$materialSelect.trigger(“close”);this._selectSingleOption(o),this.$nativeSelect.data(“stop-refresh”,!0),this.$nativeSelect.find(“option”).eq(t).prop(“selected”,a),this.$nativeSelect.removeData(“stop-refresh”),this._triggerChangeOnNativeSelect(),this.mainLabel.prev().find(“input”).hasClass(“select-dropdown”)&&this.mainLabel.prev().find(“input.select-dropdown”).val().length>0&&this.mainLabel.addClass(“active”),“function”==typeof this.options&&this.options(),o.hasClass(“li-added”)&&this.$materialOptionsList.append(this.buildSingleOption(o,“”))}}},{key:“_triggerChangeOnNativeSelect”,value:function(){var e=new KeyboardEvent(“change”,{bubbles:!0,cancelable:!0});this.$nativeSelect.get(0).dispatchEvent(e)}},{key:“_onMaterialSelectFocus”,value:function(t){var i=e(t.target);if(e(“ul.select-dropdown”).not(this.$materialOptionsList.get(0)).is(“:visible”)&&e(“input.select-dropdown”).trigger(“close”),this.mainLabel.addClass(“active”),!this.$materialOptionsList.is(“:visible”)){i.trigger(“open”,[“focus”]);var n=i.val(),o=this.$materialOptionsList.find(“li”).filter(function(){return e(this).text().toLowerCase()===n.toLowerCase()})[0];this._selectSingleOption(o)}this.isMultiple||this.mainLabel.addClass(“active ”),e(document).find(“input.select-dropdown”).each(function(t,i){return e(i).val().length<=0}).parent().next(".mdb-main-label").filter(function(t,i){return e(i).prev().find("input.select-dropdown").val().length<=0&&!e(i).prev().find("input.select-dropdown").hasClass("active")}).removeClass("active")}},{key:"_onMaterialSelectClick",value:function(e){this.mainLabel.addClass("active "),e.stopPropagation()}},{key:"_onMaterialSelectBlur",value:function(t){var i=e(t);this.isMultiple||this.isSearchable||i.trigger("close"),this.$materialOptionsList.find("li.selected").removeClass("selected")}},{key:"_onSingleMaterialOptionClick",value:function(){this.$materialSelect.trigger("close")}},{key:"_onEachMaterialOptionMousedown",value:function(t){var i=t.target;e(".modal-content").find(this.$materialOptionsList).length&&i.scrollHeight>i.offsetHeight&&t.preventDefault()}},{key:“_onHTMLClick”,value:function(t){e(t.target).closest(“#select-options-”.concat(this.uuid)).length||e(t.target).hasClass(“mdb-select”)||!e(“#select-options-”.concat(this.uuid)).hasClass(“active”)||(this.$materialSelect.trigger(“close”),!this.$materialSelect.val().length>0&&this.mainLabel.removeClass(“active”)),this.isSearchable&&null!==this.$searchInput&&this.$materialOptionsList.hasClass(“active”)&&this.$materialOptionsList.find(“.search-wrap input.search”).focus()}},{key:“_onToggleAllClick”,value:function(t){var i=this,n=e(this.$toggleAll).find(’input[type=“checkbox”]‘).first(),o=!e(n).prop(“checked”);e(n).prop(“checked”,o),this.$materialOptionsList.find(“li:not(.optgroup):not(.disabled):not(.select-toggle-all)”).each(function(t,n){var a=e(n).find(’input[type=“checkbox”]‘);o&&a.is(“:checked”)||!o&&!a.is(“:checked”)||(i._isToggleAllPresent()&&t++,a.prop(“checked”,o),i.$nativeSelect.find(“option”).eq(t).prop(“selected”,o),o?e(n).removeClass(“active”):e(n).addClass(“active”),i._toggleSelectedValue(t),i._selectOption(n),i._setValueToMaterialSelect())}),this.$nativeSelect.data(“stop-refresh”,!0),this._triggerChangeOnNativeSelect(),this.$nativeSelect.removeData(“stop-refresh”),t.stopPropagation()}},{key:“_onMaterialSelectKeydown”,value:function(t){var i=e(t.target),n=t.which===this.keyCodes.tab,o=t.which===this.keyCodes.esc,a=t.which===this.keyCodes.enter,s=t.which===this.keyCodes.arrowUp,r=t.which===this.keyCodes.arrowDown,l=this.$materialOptionsList.is(“:visible”);n?this._handleTabKey(i):!r||l?a&&!l||(t.preventDefault(),a?this._handleEnterKey(i):r?this._handleArrowDownKey():s?this._handleArrowUpKey():o?this._handleEscKey(i):this._handleLetterKey(t)):i.trigger(“open”)}},{key:“_handleTabKey”,value:function(e){this._handleEscKey(e)}},{key:“_handleEnterKey”,value:function(t){this.$materialOptionsList.find(“li.selected:not(.disabled)”).trigger(“click”).addClass(“active”),this.isMultiple||e(t).trigger(“close”)}},{key:“_handleArrowDownKey”,value:function(){var e=this.$materialOptionsList.find(“li”).not(“.disabled”).first(),t=this.$materialOptionsList.find(“li”).not(“.disabled”).last(),i=this.$materialOptionsList.find(“li.selected”).length>0,n=i?this.$materialOptionsList.find(“li.selected”):e,o=n.is(t)||!i?n:n.next(“li:not(.disabled)”);this._selectSingleOption(o),o.find(“input”).is(“:checked”)||o.removeClass(“active”),o.prev().hasClass(“selected”)||o.prev().find(“input”).is(“:checked”)||o.prev().removeClass(“active”),o.addClass(“active”)}},{key:“_handleArrowUpKey”,value:function(){var e=this.$materialOptionsList.find(“li”).not(“.disabled”).first(),t=this.$materialOptionsList.find(“li”).not(“.disabled”).last(),i=this.$materialOptionsList.find(“li.selected”).length>0,n=i?this.$materialOptionsList.find(“li.selected”):t,o=n.is(e)||!i?n:n.prev(“li:not(.disabled)”);this._selectSingleOption(o),o.find(“input”).is(“:checked”)||o.removeClass(“active”),o.next().hasClass(“selected”)||o.next().find(“input”).is(“:checked”)||o.next().removeClass(“active”),o.addClass(“active”)}},{key:“_handleEscKey”,value:function(t){e(t).trigger(“close”)}},{key:“_handleLetterKey”,value:function(t){var i=this,n=“”,o=String.fromCharCode(t.which).toLowerCase(),a=Object.keys(this.keyCodes).map(function(e){return i.keyCodes[e]});if(o&&-1===a.indexOf(t.which)){n+=o;var s=this.$materialOptionsList.find(“li”).filter(function(t,i){return e(i).text().toLowerCase().includes(n)}).first();this.isMultiple||this.$materialOptionsList.find(“li”).removeClass(“active”),s.addClass(“active”),this._selectSingleOption(s)}}},{key:“_onSearchInputKeyup”,value:function(t){var i=e(t.target),n=i.closest(“ul”),o=i.val();n.find(“li span.filtrable”).each(function(){var t=e(this);“string”==typeof this.outerHTML&&(this.textContent.toLowerCase().includes(o.toLowerCase())?t.show().parent().show():t.hide().parent().hide())})}},{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”).find(“[type=checkbox]”),t=e.filter(“:checked”),i=this.$toggleAll.find(“[type=checkbox]”).is(“:checked”);t.length!==e.length||i?t.length=5?“”.concat(n,“ ”).concat(i):t.substring(2)).length&&0===this.mainLabel.length&&(t=this.$nativeSelect.find(“option:disabled”).eq(0).text()),t.length>0&&!this.options.BSinputText?this.mainLabel.addClass(“active ”):this.mainLabel.removeClass(“active”),this.options.BSinputText&&this.mainLabel.css(“top”,“-7px”),this.$nativeSelect.siblings(“”.concat(this.options.BSinputText?“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:“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()})},e.fn.material_select=e.fn.materialSelect,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)}}(jQuery),$(“select”).siblings(“input.select-dropdown”,“input.multi-bs-select”).on(“mousedown”,function(e){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(e.clientX>=e.target.clientWidth||e.clientY>=e.target.clientHeight)&&e.preventDefault()}),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=function(){return this.start()},y=g.prototype={constructor:g,$node:v,start:function(){return h&&h.start?y:(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”),y.component=new c(y,f),y.$root=e(’
    i’”‘+(v.data(“value”)||t.value?’ value=“‘+y.get(”select“,f.formatSubmit)+’”‘:“”)+“>”)[0],v.on(“change.”+h.id,function(){y._hidden.value=t.value?y.get(“select”,f.formatSubmit):“”})}(),function(){v.data(n,y).addClass(m.input).val(v.data(“value”)?y.get(“select”,f.format):t.value).on(“focus.”h.id“ click.”+h.id,(i=function(e){e.preventDefault(),y.open()},o=100,function(){var e=this,t=arguments,n=a&&!s;clearTimeout(s),s=setTimeout(function(){s=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,x);var i,o,a,s;l(t,{haspopup:!0,expanded:!1,readonly:!1,owns:t.id+“_root”})}(),f.containerHidden?e(f.containerHidden).append(y._hidden):v.after(y._hidden),f.container?e(f.container).append(y.$root):v.after(y.$root),y.on({start:y.component.onStart,render:y.component.onRender,stop:y.component.onStop,open:y.component.onOpen,close:y.component.onClose,set:y.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}(y.$holder[0]),t.autofocus&&y.open(),y.trigger(“start”).trigger(“render”))},render:function(t){return t?(y.$holder=e(b()),w(),y.$root.html(y.$holder)):y.$root.find(“.”+m.box).html(y.component.nodes(h.open)),y.trigger(“render”)},stop:function(){return h.start?(y.close(),y._hidden&&y._hidden.parentNode.removeChild(y._hidden),y.$root.remove(),v.removeClass(m.input).removeData(n),setTimeout(function(){v.off(“.”+h.id)},0),t.type=h.type,t.readOnly=!1,y.trigger(“stop”),h.methods={},h.start=!1,y):y},open:function(n){return h.open?y:(v.addClass(m.active),l(t,“expanded”,!0),setTimeout(function(){y.$root.addClass(m.opened),l(y.$root[0],“hidden”,!1)},0),!1!==n&&(h.open=!0,p&&e(“body”).css(“overflow”,“hidden”).css(“padding-right”,“+=”+s()),p&&o?y.$holder.find(“.”+m.frame).one(“transitionend”,function(){y.$holder.eq(0).focus()}):setTimeout(function(){y.$holder.eq(0).focus()},0),i.on(“click.”h.id“ focusin.”+h.id,function(e){if(!h.handlingOpen){var i=r(e,t);e.isSimulated||i==t||i==document||3==e.which||y.close(i===y.$holder[0])}}).on(“keydown.”+h.id,function(i){var n=i.keyCode,o=y.component.key[n],s=r(i,t);27==n?y.close(!0):s!=y.$holder[0]||!o&&13!=n?e.contains(y.$root[0],s)&&13==n&&(i.preventDefault(),s.click()):(i.preventDefault(),o?a._.trigger(y.component.key.go,y,[a._.trigger(o)]):y.$root.find(“.”+m.highlighted).hasClass(m.disabled)||(y.set(“select”,y.component.item.highlight),f.closeOnSelect&&y.close(!0)))})),y.trigger(“open”))},close:function(n){return n&&(f.editable?t.focus():(y.$holder.off(“focus.toOpen”).focus(),setTimeout(function(){y.$holder.on(“focus.toOpen”,k)},0))),v.removeClass(m.active),l(t,“expanded”,!1),setTimeout(function(){y.$root.removeClass(m.opened+“ ”+m.focused),l(y.$root[0],“hidden”,!0)},0),h.open?(h.open=!1,p&&e(“body”).css(“overflow”,“”).css(“padding-right”,“-=”+s()),i.off(“.”+h.id),y.trigger(“close”)):y},clear:function(e){return y.set(“clear”,null,e)},set:function(t,i,n){var o,a,s=e.isPlainObject(t),r=s?t:{};if(n=s&&e.isPlainObject(i)?i:n||{},t){for(o in s||(r[t]=i),r)a=r[o],o in y.component.item&&(void 0===a&&(a=null),y.component.set(o,a,n)),“select”!=o&&“clear”!=o||!f.updateInput||v.val(“clear”==o?“”:y.get(o,f.format)).trigger(“change”);y.render()}return n.muted?y:y.trigger(“set”,r)},get:function(e,i){if(null!=h[e=e||“value”])return h[e];if(“valueSubmit”==e){if(y._hidden)return y._hidden.value;e=“value”}if(“value”==e)return t.value;if(e in y.component.item){if(“string”==typeof i){var n=y.component.get(e);return n?a._.trigger(y.component.formats.toString,y.component,[i,n]):“”}return y.component.get(e)}},on:function(t,i,n){var o,a,s=e.isPlainObject(t),r=s?t:{};if(t)for(o in s||(r[t]=i),r)a=r[o],n&&(o=“_”+o),h.methods[o]=h.methods[o]||[],h.methods[o].push(a);return y},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 r(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?(i=e.isArray(i)?i.join(""):i,"<"t(n=n?‘ class=“’n‘”’:“”)+(o=o?“ ”+o:“”)+“>”it”>“):”“},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 s=this.data(t);return”picker“==n?s:s&&”string“==typeof n?a._.trigger(s[n],s,[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,s=e.$node.data(”value“),r=s||a,l=s?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“),r?n.set(”select“,r,{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,s,r,l=t.isArray(i),c=t.isPlainObject(i),u=this.item.view;if(l||c){for(c?(a=i.year,s=i.month,r=i.date):(a=+i[0],s=+i[1],r=+i[2]),n&&n.nav&&u&&u.month!==s&&(a=u.year,s=u.month),a=(o=new Date(a,s+(n&&n.nav?n.nav:0),1)).getFullYear(),s=o.getMonth();new Date(a,s,r).getMonth()!==s;)r-=1;i=[a,s,r]}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,s,r,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&&(s=!0)}return n.isInteger(e)}).length;if((!o||!o.nav&&!o.defaultValue)&&(!p&&c.disabled(i)||p&&c.disabled(i)&&(m||a||s)||!p&&(i.pick<=h.pick||i.pick>=f.pick)))for(p&&!m&&(!s&&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?(r=!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)])),!r||!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],s=i?n.trigger(i,o,[t,a]):e.replace(/^!/,”“).length;i&&(a[e]=t.substr(0,s)),t=t.substr(s)}),[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,s=0;s
    o‘,
    a
    i
    t
    ”)}}),function(){var e,t,i,n=window.jQuery,o=n(window),a=n(document),s=“http://www.w3.org/2000/svg”,r=“SVGAngle”in window&&((t=document.createElement(“div”)).innerHTML=“”,e=(t.firstChild&&t.firstChild.namespaceURI)==s,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(s,e)}function m(e,t,i){var n;return function(){var o=this,a=arguments,s=i&&!n;clearTimeout(n),n=setTimeout(function(){n=null,i||e.apply(o,a)},t),s&&e.apply(o,a)}}function v(e){return(e<10?"0":"")+e}var g=0;var y=135,b=110,w=80,k=20,x=2*y,C=l?350:1,S=['
    ’,‘
    ’,‘
    ’,‘
    ’,‘
    ’,‘
    ’,‘
    ’,‘
    ’,‘’,“:”,‘’,“
    ”,‘
    ’,‘
    ’,“
    ”,“
    ”,“
    ”,‘
    ’,‘
    ’,‘
    ’,‘
    ’,‘
    ’,“
    ”,‘
    ’,“
    ”,“
    ”,‘”,“
    ”,“
    ”,“
    ”,“
    ”,“
    ”].join(“”);function T(e,t){var i,o,s=n(S),l=s.find(“.clockpicker-plate”),c=s.find(“.picker__holder”),h=s.find(“.clockpicker-hours”),T=s.find(“.clockpicker-minutes”),$=s.find(“.clockpicker-am-pm-block”),I=“INPUT”===e.prop(“tagName”),E=I?e:e.find(“input”),M=(E.prop(“type”),n(“label[for=”+E.attr(“id”)+“]”)),A=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=E,this.label=M,this.popover=s,this.plate=l,this.hoursView=h,this.minutesView=T,this.amPmBlock=$,this.spanHours=s.find(“.clockpicker-span-hours”),this.spanMinutes=s.find(“.clockpicker-span-minutes”),this.spanAmPm=s.find(“.clockpicker-span-am-pm”),this.footer=s.find(“.picker__footer”),this.amOrPm=“”,t.twelvehour){var _=[‘
    ’,‘”,‘”,“
    ”].join(“”);n(_);t.ampmclickable?(this.spanAmPm.empty(),n(‘
    AM
    ’).on(“click”,function(){A.spanAmPm.children(“#click-am”).addClass(“text-primary”),A.spanAmPm.children(“#click-pm”).removeClass(“text-primary”),A.amOrPm=“AM”}).appendTo(this.spanAmPm),n(‘
    PM
    ’).on(“click”,function(){A.spanAmPm.children(“#click-pm”).addClass(“text-primary”),A.spanAmPm.children(“#click-am”).removeClass(“text-primary”),A.amOrPm=“PM”}).appendTo(this.spanAmPm)):(n(‘’).on(“click”,function(){A.amOrPm=“AM”,A.amPmBlock.children(“.pm-button”).removeClass(“active”),A.amPmBlock.children(“.am-button”).addClass(“active”),A.spanAmPm.empty().append(“AM”)}).appendTo(this.amPmBlock),n(‘’).on(“click”,function(){A.amOrPm=“PM”,A.amPmBlock.children(“.am-button”).removeClass(“active”),A.amPmBlock.children(“.pm-button”).addClass(“active”),A.spanAmPm.empty().append(“PM”)}).appendTo(this.amPmBlock))}t.darktheme&&s.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”)),E.on(“focus.clockpicker click.clockpicker”,m(n.proxy(this.show,this),100));var D,L,P,W,R=n(‘
    ’);if(t.twelvehour)for(D=0;D<12;D+=t.hourstep)L=R.clone(),P=D/6*Math.PI,W=b,L.css("font-size","140%"),L.css({left:y+Math.sin(P)*W-k,top:y-Math.cos(P)*W-k}),L.html(0===D?12:D),h.append(L),L.on(u,Y);else for(D=0;D<24;D+=t.hourstep){L=R.clone(),P=D/6*Math.PI;var H=D>0&&D<13;W=H?w:b,L.css({left:y+Math.sin(P)*W-k,top:y-Math.cos(P)*W-k}),H&&L.css("font-size","120%"),L.html(0===D?"00":D),h.append(L),L.on(u,Y)}var j=Math.max(t.minutestep,5);for(D=0;D<60;D+=j)for(D=0;D<60;D+=5)L=R.clone(),P=D/30*Math.PI,L.css({left:y+Math.sin(P)*b-k,top:y-Math.cos(P)*b-k}),L.css("font-size","140%"),L.html(v(D)),T.append(L),L.on(u,Y);function Y(e,i){var n=l.offset(),o=/^touch/.test(e.type),s=n.left+y,c=n.top+y,u=(o?e.originalEvent.touches[0]:e).pageX-s,h=(o?e.originalEvent.touches[0]:e).pageY-c,f=Math.sqrt(u*u+h*h),m=!1;if(!i||!(fb+k)){e.preventDefault();var v=setTimeout(function(){A.popover.addClass(“clockpicker-moving”)},200);r&&l.append(A.canvas),A.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-s,n=(t?e.originalEvent.touches[0]:e).pageY-c;(m||i!==u||n!==h)&&(m=!0,A.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-s,r=(n?e.originalEvent.changedTouches[0]:e).pageY-c;(i||m)&&o===u&&r===h&&A.setHand(o,r),“hours”===A.currentView?A.toggleView(“minutes”,C/2):t.autoclose&&(A.minutesView.addClass(“clockpicker-dial-out”),setTimeout(function(){A.done()},C/2)),l.prepend(F),clearTimeout(v),A.popover.removeClass(“clockpicker-moving”),a.off(d)})}}if(l.on(u,function(e){0===n(e.target).closest(“.clockpicker-tick”).length&&Y(e,!0)}),r){var F=s.find(“.clockpicker-canvas”),N=f(“svg”);N.setAttribute(“class”,“clockpicker-svg”),N.setAttribute(“width”,x),N.setAttribute(“height”,x);var V=f(“g”);V.setAttribute(“transform”,“translate(”y“,”y“)”);var X=f(“circle”);X.setAttribute(“class”,“clockpicker-canvas-bearing”),X.setAttribute(“cx”,0),X.setAttribute(“cy”,0),X.setAttribute(“r”,2);var B=f(“line”);B.setAttribute(“x1”,0),B.setAttribute(“y1”,0);var z=f(“circle”);z.setAttribute(“class”,“clockpicker-canvas-bg”),z.setAttribute(“r”,k);var U=f(“circle”);U.setAttribute(“class”,“clockpicker-canvas-fg”),U.setAttribute(“r”,5),V.appendChild(B),V.appendChild(z),V.appendChild(U),V.appendChild(X),N.appendChild(V),F.append(N),this.hand=B,this.bg=z,this.fg=U,this.bearing=X,this.g=V,this.canvas=F}O(this.options.init)}function O(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},T.prototype.toggle=function(){this[this.isShown?“hide”:“show”]()},T.prototype.locate=function(){var e=this.element,t=this.popover;e.offset(),e.outerWidth(),e.outerHeight(),this.options.align;t.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){O(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)),O(this.options.afterShow)}},T.prototype.hide=function(){O(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(),O(this.options.afterHide)},T.prototype.toggleView=function(e,t){var i=!1;“minutes”===e&&“visible”===n(this.hoursView).css(“visibility”)&&(O(this.options.beforeHourSelect),i=!0);var o=“hours”===e,a=o?this.hoursView:this.minutesView,s=o?this.minutesView:this.hoursView;this.currentView=e,this.spanHours.toggleClass(“text-primary”,o),this.spanMinutes.toggleClass(“text-primary”,!o),s.addClass(“clockpicker-dial-out”),a.css(“visibility”,“visible”).removeClass(“clockpicker-dial-out”),this.resetClock(t),clearTimeout(this.toggleViewTimer),this.toggleViewTimer=setTimeout(function(){s.css(“visibility”,“hidden”)},C),i&&O(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,s=Math.sin(o)*a,l=-Math.cos(o)*a,c=this;r&&e?(c.canvas.addClass("clockpicker-canvas-out"),setTimeout(function(){c.canvas.removeClass("clockpicker-canvas-out"),c.setHand(s,l)},e)):this.setHand(s,l)},T.prototype.setHand=function(e,t,i,o){var a,s,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=(s=Math.round(l/a))*a,c?(s*=d.hourstep,d.twelvehour||!p!=s>0||(s+=12),d.twelvehour&&0===s&&(s=12),24===s&&(s=0)):60===(s*=d.minutestep)&&(s=0),c?this.fg.setAttribute(“class”,“clockpicker-canvas-fg”):s%5==0?this.fg.setAttribute(“class”,“clockpicker-canvas-fg”):this.fg.setAttribute(“class”,“clockpicker-canvas-fg active”),this[this.currentView]!==s&&h&&this.options.vibrate&&(this.vibrateTimer||(navigator[h](10),this.vibrateTimer=setTimeout(n.proxy(function(){this.vibrateTimer=null},this),100))),this[this.currentView]=s,this[c?“spanHours”:“spanMinutes”].html(v(s)),r){o||!c&&s%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”,s===+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(){O(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"),O(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;at“(\s|$)”);e.className=e.className.replace(i,“ ”).replace(/^ss*/,“”).replace(/ss*$/,“”)},addClass:function(e,t){o.hasClass(e,t)||(e.className+=(e.className?“ ”:“”)+t)},hasClass:function(e,t){return e.className&&new RegExp(“(^|\s)”t“(\s|$)”).test(e.className)},getChildByClass:function(e,t){for(var i=e.firstChild;i;){if(o.hasClass(i,t))return i;i=i.nextSibling}},arraySearch:function(e,t,i){for(var n=e.length;n–;)if(e[n][i]===t)return n;return-1},extend:function(e,t,i){for(var n in t)if(t.hasOwnProperty(n)){if(i&&e.hasOwnProperty(n))continue;e[n]=t[n]}},easing:{sine:{out:function(e){return Math.sin(e*(Math.PI/2))},inOut:function(e){return-(Math.cos(Math.PI*e)-1)/2}},cubic:{out:function(e){return–e*e*e+1}}},detectFeatures:function(){if(o.features)return o.features;var e=o.createEl().style,t=“”,i={};if(i.oldIE=document.all&&!document.addEventListener,i.touch=“ontouchstart”in window,window.requestAnimationFrame&&(i.raf=window.requestAnimationFrame,i.caf=window.cancelAnimationFrame),i.pointerEvent=navigator.pointerEnabled||navigator.msPointerEnabled,!i.pointerEvent){var n=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var a=navigator.appVersion.match(/OS (d+)_(d+)_?(d+)?/);a&&a.length>0&&(a=parseInt(a[1],10))>=1&&8>a&&(i.isOldIOSPhone=!0)}var s=n.match(/Androids([0-9.]*)/),r=s?s[1]:0;(r=parseFloat®)>=1&&(4.4>r&&(i.isOldAndroid=!0),i.androidVersion=r),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”,s=function(){i.handleEvent.call(i)},r=0;rt-1?e-t:0>e?t+e:e},xe={},Ce=function(e,t){return xe[e]||(xe[e]=[]),xe[e].push(t)},Se=function(e){var t=xe[e];if(t){var i=Array.prototype.slice.call(arguments);i.shift();for(var n=0;ni“px”b“ scale(”ni&&n>0||i>=Yt()-1&&0>n)&&(e=ct.x+n*s.mainScrollEndFriction)}ct.x=e,Me(e,d)},_e=function(e,t){var i=ut[e]-he[e];return ce[e]+le[e]+i-i*(t/g)},De=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},Le=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},Pe=null,We=function(){Pe&&(o.unbind(document,“mousemove”,We),o.addClass(e,“pswp–has_mouse”),s.mouseUsed=!0,Se(“mouseUsed”)),Pe=setTimeout(function(){Pe=null},100)},Re=function(e,t){var i=Bt(a.currItem,de,e);return t&&(J=i),i},He=function(e){return e||(e=a.currItem),e.initialZoomLevel},je=function(e){return e||(e=a.currItem),e.w>0?s.maxSpreadZoom:1},Ye=function(e,t,i,n){return n===a.currItem.initialZoomLevel?(i[e]=a.currItem.initialPosition[e],!0):(i[e]=_e(e,n),i[e]>t.min[e]?(i[e]=t.min[e],!0):i[e]=n)return ze(e),a(i),void(s&&s());a((i-t)*o(r/n)+t),Xe[e].raf=A©}};c()},Ze={shout:Se,listen:Ce,viewportSize:de,options:s,isMainScrollAnimating:function(){return te},getZoomLevel:function(){return v},getCurrentIndex:function(){return u},isDragging:function(){return X},isZooming:function(){return Q},setScrollOffset:function(e,t){he.x=e,W=he.y=t,Se(“updateScrollOffset”,he)},applyZoomPan:function(e,t,i,n){ue.x=t,ue.y=i,v=e,Ie(n)},init:function(){if(!r&&!l){var i;a.framework=o,a.template=e,a.bg=o.getChildByClass(e,“pswp__bg”),D=e.className,r=!0,R=o.detectFeatures(),A=R.raf,_=R.caf,I=R.transform,P=R.oldIE,a.scrollWrap=o.getChildByClass(e,“pswp__scroll-wrap”),a.container=o.getChildByClass(a.scrollWrap,“pswp__container”),d=a.container.style,a.itemHolders=x=[{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}],x[0].el.style.display=x[2].el.style.display=“none”,function(){if(I){var t=R.perspective&&!M;return y=“translate”+(t?“3d(”:“(”),void(b=R.perspective?“, 0px)”:“)”)}I=“left”,o.addClass(e,“pswp–ie”),Me=function(e,t){t.left=e+“px”},Ee=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:Ve,keydown:Fe,click:Ne};var n=R.isOldIOSPhone||R.isOldAndroid||R.isMobileOpera;for(R.animationName&&R.transform&&!n||(s.showAnimationDuration=s.hideAnimationDuration=0),i=0;iu||u>=Yt())&&(u=0),a.currItem=jt(u),(R.isOldIOSPhone||R.isOldAndroid)&&(ve=!1),e.setAttribute(“aria-hidden”,“false”),s.modal&&(ve?e.style.position=“fixed”:(e.style.position=“absolute”,e.style.top=o.getScrollY()+“px”)),void 0===W&&(Se(“initialLayout”),W=L=o.getScrollY());var c=“pswp–open ”;for(s.mainClass&&(c+=s.mainClass+“ ”),s.showHideOpacity&&(c+=“pswp–animate_opacity ”),c+=M?“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++)Me((i+p)*fe.x,x[i].el.style);P||o.bind(a.scrollWrap,f,a),Ce(“initialZoomInEnd”,function(){a.setContent(x[0],u-1),a.setContent(x[2],u+1),x[0].el.style.display=x[2].el.style.display=“block”,s.focus&&e.focus(),o.bind(document,“keydown”,a),R.transform&&o.bind(a.scrollWrap,“click”,a),s.mouseUsed||o.bind(document,“mousemove”,We),o.bind(window,“resize scroll”,a),Se(“bindEvents”)}),a.setContent(x[1],u),a.updateCurrItem(),Se(“afterInit”),ve||(w=setInterval(function(){Be||X||Q||v!==a.currItem.initialZoomLevel||a.updateSize()},1e3)),o.addClass(e,“pswp–visible”)}},close:function(){r&&(r=!1,l=!0,Se(“close”),o.unbind(window,“resize”,a),o.unbind(window,“scroll”,m.scroll),o.unbind(document,“keydown”,a),o.unbind(document,“mousemove”,We),R.transform&&o.unbind(a.scrollWrap,“click”,a),X&&o.unbind(window,h,a),Se(“unbindEvents”),Ft(a.currItem,null,!0,a.destroy))},destroy:function(){Se(“destroy”),Pt&&clearTimeout(Pt),e.setAttribute(“aria-hidden”,“true”),e.className=D,w&&clearInterval(w),o.unbind(a.scrollWrap,f,a),o.unbind(window,“scroll”,a),ht(),qe(),xe=null},panTo:function(e,t,i){i||(e>J.min.x?e=J.min.x:eJ.min.y?t=J.min.y:te;e++)x[e].item&&(x[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==me){var t,i=Math.abs(me);if(!(e&&2>i)){a.currItem=jt(u),be=!1,Se(“beforeChange”,me),i>=3&&(p+=me+(me>0?-3:3),i=3);for(var n=0;i>n;n++)me>0?(t=x.shift(),x[2]=t,Me((++p+2)*fe.x,t.el.style),a.setContent(t,u-i+n+1+1)):(t=x.pop(),x.unshift(t),Me(–p*fe.x,t.el.style),a.setContent(t,u+i-n-1-1));if(ee&&1===Math.abs(me)){var o=jt(C);o.initialZoomLevel!==v&&(Bt(o,de),Kt(o),Ee(o))}me=0,a.updateCurrZoomItem(),C=u,Se(“afterChange”)}}},updateSize:function(t){if(!ve&&s.modal){var i=o.getScrollY();if(W!==i&&(e.style.top=i+“px”,W=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,Ve(),fe.x=de.x+Math.round(de.x*s.spacing),fe.y=de.y,Ae(fe.x*pe),Se(“beforeResize”),void 0!==p){for(var n,r,l,c=0;3>c;c++)n=x[c],Me((c+p)*fe.x,n.el.style),l=u+c-1,s.loop&&Yt()>2&&(l=ke(l)),(r=jt(l))&&(k||r.needsUpdate||!r.bounds)?(a.cleanSlide®,a.setContent(n,l),1===c&&(a.currItem=r,a.updateCurrZoomItem(!0)),r.needsUpdate=!1):-1===n.index&&l>=0&&a.setContent(n,l),r&&r.container&&(Bt(r,de),Kt®,Ee®);k=!1}g=v=a.currItem.initialZoomLevel,(J=a.currItem.bounds)&&(ue.x=J.center.x,ue.y=J.center.y,Ie(!0)),Se(“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,De(ce,ue));var s=Re(e,!1),r={};Ye(“x”,s,r,e),Ye(“y”,s,r,e);var l=v,c=ue.x,u=ue.y;Le®;var d=function(t){1===t?(v=e,ue.x=r.x,ue.y=r.y):(v=(e-l)*t+l,ue.x=(r.x-c)*t+c,ue.y=(r.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={},st=0,rt={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(){q&&(_(q),q=null)},ft=function(){X&&(q=A(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,s.isClickableElement),Se(“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))},kt={},xt={},Ct=[],St=function(e){for(;Ct.length>0;)Ct.pop();return E?(re=0,it.forEach(function(e){0===re?Ct[0]=e:1===re&&(Ct[1]=e),re++})):e.type.indexOf(“touch”)>-1?e.touches&&e.touches.length>0&&(Ct[0]=yt(e.touches[0],kt),e.touches.length>1&&(Ct[1]=yt(e.touches[1],xt))):(kt.x=e.pageX,kt.y=e.pageY,kt.id=“”,Ct[0]=kt),Ct},Tt=function(e,t){var i,n,o,r,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=s.panEndFriction,J.min[e],n=J.min[e]-ce[e]),(0>=n||0>d)&&Yt()>1?(r=u,0>d&&u>nt.x&&(r=nt.x)):J.min.x!==J.max.x&&(o=l)):(l=n||d>0)&&Yt()>1?(r=u,d>0&&ua.currItem.fitRatio&&(ue[e]+=t[e]*i)):(void 0!==r&&(Ae(r,!0),K=r!==nt.x),J.min.x!==J.max.x&&(void 0!==o?ue.x=o:K||(ue.x+=t.x*i)),void 0!==r)},Ot=function(e){if(!(“mousedown”===e.type&&e.button>0)){if(Ht)return void e.preventDefault();if(!V||“mousedown”!==e.type){if(gt(e,!0)&&e.preventDefault(),Se(“pointerDown”),E){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=St(e),n=i.length;Z=null,qe(),X&&1!==n||(X=ne=!0,o.bind(window,h,a),F=se=oe=N=K=U=B=z=!1,ie=null,Se(“firstTouchStart”,i),De(ce,ue),le.x=le.y=0,De(et,i[0]),De(tt,et),nt.x=fe.x*pe,ot=[{x:et.x,y:et.y}],j=H=Te(),Re(v,!0),ht(),ft()),!Q&&n>1&&!te&&!K&&(g=v,z=!1,Q=B=!0,le.y=le.x=0,De(ce,ue),De(Qe,i[0]),De(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))}}},$t=function(e){if(e.preventDefault(),E){var t=o.arraySearch(it,e.pointerId,“id”);if(t>-1){var i=it[t];i.x=e.pageX,i.y=e.pageY}}if(X){var n=St(e);if(ie||U||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(De(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;De(Ge,Z[1]),z||(z=!0,Se(“zoomGestureStarted”));var t=pt(Qe,Ge),i=Dt(t);i>a.currItem.initialZoomLevel+a.currItem.initialZoomLevel/15&&(se=!0);var n=1,o=He(),r=je();if(o>i)if(s.pinchToClose&&!se&&g<=a.currItem.initialZoomLevel){var l=1-(o-i)/(o/1.2);Oe(l),Se("onPinchClose",l),oe=!0}else(n=(o-i)/o)>1&&(n=1),i=o-n*(o/3);else i>r&&((n=(i-r)/(6*o))>1&&(n=1),i=r+n*o);0>n&&(n=0),bt(Qe,Ge,rt),le.x+=rt.x-dt.x,le.y+=rt.y-dt.y,De(dt,rt),ue.x=_e(“x”,i),ue.y=_e(“y”,i),F=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&&s.closeOnVerticalDrag&&“fit”===s.scaleMode&&v===a.currItem.initialZoomLevel){le.y+=Je.y,ue.y+=Je.y;var c=wt();return N=!0,Se(“onVerticalDrag”,c),Oe©,void Ie()}(function(e,t,i){if(e-j>50){var n=ot.length>2?ot.shift():{};n.x=t,n.y=i,ot.push(n),j=e}})(Te(),Qe.x,Qe.y),U=!0,J=a.currItem.bounds,Tt(“x”,Je)||(Tt(“y”,Je),Le(ue),Ie())}}},Et=function(e){if(R.isOldAndroid){if(V&&“mouseup”===e.type)return;e.type.indexOf(“touch”)>-1&&(clearTimeout(V),V=setTimeout(function(){V=0},600))}var t;if(Se(“pointerUp”),gt(e,!1)&&e.preventDefault(),E){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“>”)“},Ie=function(e){ee&&(e&&(v>a.currItem.fitRatio?be||(Kt(a.currItem,!1,!0),be=!0):be&&(Kt(a.currItem),be=!1)),$e(ee,ue.x,ue.y,v))},Ee=function(e){e.container&&$e(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},Me=function(e,t){t,t.type||(t.type=e.pointerType||”mouse“)))}var n,r=St(e),l=r.length;if(”mouseup“===e.type&&(l=0),2===l)return Z=null,!0;1===l&&De(tt,r),0!==l||ie||te||(t||(”mouseup“===e.type?t={x:e.pageX,y:e.pageY,type:”mouse“}:e.changedTouches&&e.changedTouches&&(t={x:e.changedTouches.pageX,y:e.changedTouches.pageY,type:”touch“})),Se(”touchRelease“,e,t));var c=-1;if(0===l&&(X=!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“),Se(”zoomGestureEnded“)),Z=null,U||z||te||N)if(qe(),Y||(Y=Mt()),Y.calculateSwipeSpeed(”x“),N)if(wt()<s.verticalDragRange)a.close();else{var u=ue.y,d=ae;Ke(”verticalDrag“,0,1,300,o.easing.cubic.out,function(e){ue.y=(a.currItem.initialPosition.y-u)*e+u,Oe((1-d)*e+d),Ie()}),Se(”onVerticalDrag“,1)}else{if((K||te)&&0===l){if(_t(n,Y))return;n=”zoomPointerUp“}if(!te)return”swipe“!==n?void Lt():void(!K&&v>a.currItem.fitRatio&&At(Y))}},Mt=function(){var e,t,i={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(n){ot.length>1?(e=Te()-j+50,t=ot[n]):(e=Te()-H,t=tt),i.lastFlickOffset=et-t,i.lastFlickDist=Math.abs(i.lastFlickOffset),i.lastFlickDist>20?i.lastFlickSpeed=i.lastFlickOffset/e:i.lastFlickSpeed=0,Math.abs(i.lastFlickSpeed)<.1&&(i.lastFlickSpeed=0),i.slowDownRatio=.95,i.slowDownRatioReverse=1-i.slowDownRatio,i.speedDecelerationRatio=1},calculateOverBoundsAnimOffset:function(e,t){i.backAnimStarted||(ue>J.min?i.backAnimDestination=J.min:ue<J.max&&(i.backAnimDestination=J.max),void 0!==i.backAnimDestination&&(i.slowDownRatio=.7,i.slowDownRatioReverse=1-i.slowDownRatio,i.speedDecelerationRatioAbs<.05&&(i.lastFlickSpeed=0,i.backAnimStarted=!0,Ke(”bounceZoomPan“+e,ue,i.backAnimDestination,t||300,o.easing.sine.out,function(t){ue=t,Ie()}))))},calculateAnimOffset:function(e){i.backAnimStarted||(i.speedDecelerationRatio=i.speedDecelerationRatio*(i.slowDownRatio+i.slowDownRatioReverse-i.slowDownRatioReverse*i.timeDiff/10),i.speedDecelerationRatioAbs=Math.abs(i.lastFlickSpeed*i.speedDecelerationRatio),i.distanceOffset=i.lastFlickSpeed*i.speedDecelerationRatio*i.timeDiff,ue+=i.distanceOffset)},panAnimLoop:function(){return Xe.zoomPan&&(Xe.zoomPan.raf=A(i.panAnimLoop),i.now=Te(),i.timeDiff=i.now-i.lastNow,i.lastNow=i.now,i.calculateAnimOffset(”x“),i.calculateAnimOffset(”y“),Ie(),i.calculateOverBoundsAnimOffset(”x“),i.calculateOverBoundsAnimOffset(”y“),i.speedDecelerationRatioAbs.x<.05&&i.speedDecelerationRatioAbs.y<.05)?(ue.x=Math.round(ue.x),ue.y=Math.round(ue.y),Ie(),void ze(”zoomPan“)):void 0}};return i},At=function(e){return e.calculateSwipeSpeed(”y“),J=a.currItem.bounds,e.backAnimDestination={},e.backAnimStarted={},Math.abs(e.lastFlickSpeed.x)<=.05&&Math.abs(e.lastFlickSpeed.y)<=.05?(e.speedDecelerationRatioAbs.x=e.speedDecelerationRatioAbs.y=0,e.calculateOverBoundsAnimOffset(”x“),e.calculateOverBoundsAnimOffset(”y“),!0):(Ue(”zoomPan“),e.lastNow=Te(),void e.panAnimLoop())},_t=function(e,t){var i,n,r;if(te||(st=u),”swipe“===e){var l=et.x-tt.x,c=t.lastFlickDist.x<10;l>30&&(c||t.lastFlickOffset.x>20)?n=-1:-30>l&&(c||t.lastFlickOffset.x<-20)&&(n=1)}n&&(0>(u+=n)?(u=s.loop?Yt()-1:0,r=!0):u>=Yt()&&(u=s.loop?0:Yt()-1,r=!0),(!r||s.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,st===u&&(i=!1),te=!0,Se(”mainScrollAnimStart“),Ke(”mainScroll“,ct.x,p,d,o.easing.cubic.out,Ae,function(){qe(),te=!1,st=-1,(i||st!==u)&&a.updateCurrItem(),Se(”mainScrollAnimComplete“)}),i&&a.updateCurrItem(!0),i},Dt=function(e){return 1/G*e*g},Lt=function(){var e=v,t=He(),i=je();t>v?e=t:v>i&&(e=i);var n,s=ae;return oe&&!F&&!se&&t>v?(a.close(),!0):(oe&&(n=function(e){Oe((1-s)*e+s)}),a.zoomTo(e,0,200,o.easing.cubic.out,n),!0)};we(”Gestures“,{publicMethods:{initGestures:function(){var e=function(e,t,i,n,o){S=e+t,T=e+i,O=e+n,$=o?e+o:”“};(E=R.pointerEvent)&&R.touch&&(R.touch=!1),E?navigator.pointerEnabled?e(”pointer“,”down“,”move“,”up“,”cancel“):e(”MSPointer“,”Down“,”Move“,”Up“,”Cancel“):R.touch?(e(”touch“,”start“,”move“,”end“,”cancel“),M=!0):e(”mouse“,”down“,”move“,”up“),h=T+” “O” “+$,f=S,E&&!M&&(M=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),a.likelyTouchDevice=M,m=Ot,m=$t,m=Et,$&&(m=m),R.touch&&(f+=” mousedown“,h+=” mousemove mouseup“,m.mousedown=m,m.mousemove=m,m.mouseup=m),M||(s.allowPanToNext=!1)}}});var Pt,Wt,Rt,Ht,jt,Yt,Ft=function(t,i,n,r){var l;Pt&&clearTimeout(Pt),Ht=!0,Rt=!0,t.initialLayout?(l=t.initialLayout,t.initialLayout=null):l=s.getThumbBoundsFn&&s.getThumbBoundsFn(u);var d=n?s.hideAnimationDuration:s.showAnimationDuration,p=function(){ze(”initialZoom“),n?(a.template.removeAttribute(”style“),a.bg.removeAttribute(”style“)):(Oe(1),i&&(i.style.display=”block“),o.addClass(e,”pswp–animated-in“),Se(”initialZoom“+(n?”OutEnd“:”InEnd“))),r&&r(),Ht=!1};if(!d||!l||void 0===l.x)return Se(”initialZoom“+(n?”Out“:”In“)),v=t.initialZoomLevel,De(ue,t.initialPosition),Ie(),e.style.opacity=n?0:1,Oe(1),void(d?setTimeout(function(){p()},d):p());!function(){var i=c,r=!a.currItem.src||a.currItem.loadError||s.showHideOpacity;t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility=”hidden“),n||(v=l.w/t.w,ue.x=l.x,ue.y=l.y-L,a.style.opacity=.001,Ie()),Ue(”initialZoom“),n&&!i&&o.removeClass(e,”pswp–animated-in“),r&&(n?o(e,”pswp–animate_opacity“):setTimeout(function(){o.addClass(e,”pswp–animate_opacity“)},30)),Pt=setTimeout(function(){if(Se(”initialZoom“+(n?”Out“:”In“)),n){var a=l.w/t.w,s={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-W):(v=(a-c)*t+c,ue.x=(l.x-s.x)*t+s.x,ue.y=(l.y-W-s.y)*t+s.y),Ie(),r?e.style.opacity=1-t:Oe(u-t*u)};i?Ke(”initialZoom“,0,1,d,o.easing.cubic.out,h,p):(h(1),Pt=setTimeout(p,d+20))}else v=t.initialZoomLevel,De(ue,t.initialPosition),Ie(),Oe(1),r?e.style.opacity=1:Oe(1),Pt=setTimeout(p,d+20)},n?25:90)}()},Nt={},Vt=[],Xt={index:0,errorMsg:'<div class=”pswp__error-msg“><a href=”%url%“ target=”_blank“>The image</a> could not be loaded.
    ‘,forceProgressiveLoading:!1,preload:,getNumItemsFn:function(){return Wt.length}},Bt=function(e,t,i){if(e.src&&!e.loadError){var n=!i;if(n&&(e.vGap||(e.vGap={top:0,bottom:0}),Se(”parseVerticalMargin“,e)),Nt.x=t.x,Nt.y=t.y-e.vGap.top-e.vGap.bottom,n){var o=Nt.x/e.w,a=Nt.y/e.h;e.fitRatio=a>o?o:a;var r=s.scaleMode;”orig“===r?i=1:”fit“===r&&(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((Nt.x-t)/2),n.center.y=Math.round((Nt.y-i)/2)+e.vGap.top,n.max.x=t>Nt.x?Math.round(Nt.x-t):n.center.x,n.max.y=i>Nt.y?Math.round(Nt.y-i)+e.vGap.top:n.center.y,n.min.x=t>Nt.x?0:n.center.x,n.min.y=i>Nt.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},zt=function(e,t,i,n,o,s){t.loadError||n&&(t.imageAppended=!0,Kt(t,n,t===a.currItem&&be),i.appendChild(n),s&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display=”none“,t.placeholder=null)},500))},Ut=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},qt=function(e,t){return e.src&&e.loadError&&e.container?(t&&(e.container.innerHTML=”“),e.container.innerHTML=s.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(Vt.length){for(var e,t=0;t).holder.index===e.index&&zt(e.index,e.item,e.baseDiv,e.img,0,e.clearPlaceholder);Vt=[]}};we(”Controller“,{publicMethods:{lazyLoadItem:function(e){e=ke(e);var t=jt(e);t&&(!t.loaded&&!t.loading||k)&&(Se(”gettingData“,e,t),t.src&&Ut(t))},initController:function(){o.extend(s,Xt,!0),a.items=Wt=i,jt=a.getItemAt,Yt=s.getNumItemsFn,s.loop,Yt()<3&&(s.loop=!1),Ce(”beforeChange“,function(e){var t,i=s.preload,n=null===e||e>=0,o=Math.min(i,Yt()),r=Math.min(i,Yt());for(t=1;(n?r:o)>=t;t++)a.lazyLoadItem(u+t);for(t=1;(n?o:r)>=t;t++)a.lazyLoadItem(u-t)}),Ce(”initialLayout“,function(){a.currItem.initialLayout=s.getThumbBoundsFn&&s.getThumbBoundsFn(u)}),Ce(”mainScrollAnimComplete“,Zt),Ce(”initialZoomInEnd“,Zt),Ce(”destroy“,function(){for(var e,t=0;t).container&&(e.container=null),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);Vt=null})},getItemAt:function(e){return e>=0&&void 0!==Wt&&Wt},allowProgressiveImg:function(){return s.forceProgressiveLoading||!M||s.mouseUsed||screen.width>1200},setContent:function(e,t){s.loop&&(t=ke(t));var i=a.getItemAt(e.index);i&&(i.container=null);var n,l=a.getItemAt(t);if(l){Se(”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),qt(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),zt(0,l,c,n));else{if(l.loadComplete=function(i){if®{if(e&&e.index===t){if(qt(i,!0))return i.loadComplete=i.img=null,Bt(i,de),Ee(i),void(e.index===u&&a.updateCurrZoomItem());i.imageAppended?!Ht&&i.placeholder&&(i.placeholder.style.display=”none“,i.placeholder=null):R.transform&&(te||Ht)?Vt.push({item:i,baseDiv:c,img:i.img,index:t,holder:e,clearPlaceholder:!0}):zt(0,i,c,i.img,0,!0)}i.loadComplete=null,i.img=null,Se(”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||Ut(l),a.allowProgressiveImg()&&(!Rt&&R.transform?Vt.push({item:l,baseDiv:c,img:l.img,index:t,holder:e}):zt(0,l,c,l.img,0,!0))}Rt||t!==u?Ee(l):(ee=c.style,Ft(l,n||l.img)),e.el.innerHTML=”“,e.el.appendChild©}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(){Ce(”firstTouchStart“,a.onTapStart),Ce(”touchRelease“,a.onTapRelease),Ce(”destroy“,function(){Jt={},Qt=null})},onTapStart:function(e){e.length>1&&(clearTimeout(Qt),Qt=null)},onTapRelease:function(e,t){if(t&&!U&&!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 Se(”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);De(Jt,i),Qt=setTimeout(function(){ei(e,t),Qt=null},300)}}}}),we(”DesktopZoom“,{publicMethods:{initDesktopZoom:function(){P||(M?Ce(”mouseUsed“,function(){a.setupDesktopZoom()}):a.setupDesktopZoom(!0))},setupDesktopZoom:function(t){Gt={};var i=”wheel mousewheel DOMMouseScroll“;Ce(”bindEvents“,function(){o.bind(e,i,a.handleMouseWheel)}),Ce(”unbindEvents“,function(){Gt&&o.unbind(e,i,a.handleMouseWheel)}),a.mouseZoomedIn=!1;var n,s=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“),r()},r=function(){n&&(o.removeClass(e,”pswp–dragging“),n=!1)};Ce(”resize“,s),Ce(”afterChange“,s),Ce(”pointerDown“,function(){a.mouseZoomedIn&&(n=!0,o.addClass(e,”pswp–dragging“))}),Ce(”pointerUp“,r),t||s()},handleMouseWheel:function(e){if(v<=a.currItem.fitRatio)return s.modal&&(!s.closeOnScroll||Be||X?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;(s.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=s.getDoubleTapZoom(!0,a.currItem),n=v===i;a.mouseZoomedIn=!n,a.zoomTo(n?a.currItem.initialZoomLevel:i,t,333),o(e,”pswp–zoomed-in“)}}});var ti,ii,ni,oi,ai,si,ri,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){var o=n.split(”=“);o.length<2||(t[o]=o)}if(s.galleryPIDs){var a=t.pid;for(t.pid=0,i=0;i.pid===a){t.pid=i;break}}else t.pid=parseInt(t.pid,10)-1;return t.pid<0&&(t.pid=0),t},gi=function(){if(ni&&clearTimeout(ni),Be||X)ni=setTimeout(gi,500);else{oi?clearTimeout(ii):oi=!0;var e=u+1,t=jt(u);t.hasOwnProperty(”pid“)&&(e=t.pid);var i=ri+”&gid=“s.galleryUID”&pid=“+e;li||-1===di.hash.indexOf(i)&&(ui=!0);var n=di.href.split(”#“)+”#“+i;pi?”#“+i!==window.location.hash&&history(”“,document.title,n):li?di.replace(n):di.hash=i,li=!0,ii=setTimeout(function(){oi=!1},60)}};we(”History“,{publicMethods:{initHistory:function(){if(o.extend(s,hi,!0),s.history){di=window.location,ui=!1,ci=!1,li=!1,ri=fi(),pi=”pushState“in history,ri.indexOf(”gid=“)>-1&&(ri=(ri=ri.split(”&gid=“)).split(”?gid=“)),Ce(”afterChange“,a.updateURL),Ce(”unbindEvents“,function(){o.unbind(window,”hashchange“,a.onHashChange)});var e=function(){si=!0,ci||(ui?history.back():ri?di.hash=ri:pi?history.pushState(”“,document.title,di.pathname+di.search):di.hash=”“),mi()};Ce(”unbindEvents“,function(){c&&e()}),Ce(”destroy“,function(){si||e()}),Ce(”firstUpdate“,function(){u=vi().pid});var t=ri.indexOf(”pid=“);t>-1&&”&“===(ri=ri.substring(0,t)).slice(-1)&&(ri=ri.slice(0,-1)),setTimeout(function(){r&&o.bind(window,”hashchange“,a.onHashChange)},40)}},onHashChange:function(){return fi()===ri?(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,s,r,l,c,u,d,p,h,f,m,v,g,y,b,w=this,k=!1,x=!0,C=!0,S={barsSize:{top:44,bottom:”auto“},closeElClasses:,timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,t){return e.title?(t.children.innerHTML=e.title,!0):(t.children.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:”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:”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&&P();for(var i,n,o=(e.target||e.srcElement).getAttribute(”class“)||”“,a=0;a).onTap&&o.indexOf(”pswp__“+i.name)>-1&&(i.onTap(),n=!0);if(n){e.stopPropagation&&e.stopPropagation(),g=!0;var s=t.features.isOldAndroid?600:30;setTimeout(function(){g=!1},s)}},O=function(){return!e.likelyTouchDevice||v.mouseUsed||screen.width>v.fitControlsWidth},$=function(e,i,n){t(e,”pswp__“+i)},I=function(){var e=1===v.getNumItemsFn();e!==m&&($(n,”ui–one-slide“,e),m=e)},E=function(){$(l,”share-modal–hidden“,C)},M=function(){return(C=!C)?(t.removeClass(l,”pswp__share-modal–fade-in“),setTimeout(function(){C&&E()},300)):(E(),setTimeout(function(){C||t.addClass(l,”pswp__share-modal–fade-in“)},30)),C||_(),!1},A=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)),C||M(),1))},_=function(){for(var e,t,i,n,o=”“,a=0;a,t=v.getImageURLForShare(e),i=v.getPageURLForShare(e),n=v.getTextForShare(e),o+='<a href=”'+e.url.replace(“{{url}}”,encodeURIComponent(i)).replace(“{{image_url}}”,encodeURIComponent(t)).replace(“{{raw_image_url}}”,t).replace(“{{text}}”,encodeURIComponent(n))+'“ target=”_blank“ class=”pswp__share–’e.id‘“’+(e.download?”download“:”“)+”>“e.label“,v.parseShareButtonOut&&(o=v.parseShareButtonOut(e,o));l.children.innerHTML=o,l.children.onclick=A},D=function(e){for(var i=0;i))return!0},L=0,P=function(){clearTimeout(b),L=0,u&&w.setIdle(!1)},W=function(e){var t=(e=e||window.event).relatedTarget||e.toElement;t&&”HTML“!==t.nodeName||(clearTimeout(b),b=setTimeout(function(){w.setIdle(!0)},v.timeToIdleOutside))},R=function(e){h!==e&&($(p,”preloader–active“,!e),h=e)},H=function(e){var i=e.vGap;if(O()){var s=v.barsSize;if(v.captionEl&&”auto“===s.bottom)if(a||((a=t.createEl(”pswp__caption pswp__caption–fake“)).appendChild(t.createEl(”pswp__caption__center“)),n.insertBefore(a,o),t.addClass(n,”pswp__ui–fit“)),v.addCaptionHTMLFn(e,a,!0)){var r=a.clientHeight;i.bottom=parseInt(r,10)||44}else i.bottom=s.top;else i.bottom=”auto“===s.bottom?0:s.bottom;i.top=s.top}else i.top=i.bottom=0},j=;w.init=function(){t.extend(e.options,S,!0),v=e.options,n=t.getChildByClass(e.scrollWrap,”pswp__ui“),d=e.listen,function(){var e;d(”onVerticalDrag“,function(e){x&&.95>e?w.hideControls():!x&&e>=.95&&w.showControls()}),d(”onPinchClose“,function(t){x&&.9>t?(w.hideControls(),e=!0):e&&!x&&t>.9&&w.showControls()}),d(”zoomGestureEnded“,function(){(e=!1)&&!x&&w.showControls()})}(),d(”beforeChange“,w.update),d(”doubleTap“,function(t){var i=e.currItem.initialZoomLevel;e.getZoomLevel()!==i?e.zoomTo(i,t,333):e.zoomTo(v.getDoubleTapZoom(!1,e.currItem),t,333)}),d(”preventDragEvent“,function(e,t,i){var n=e.target||e.srcElement;n&&n.getAttribute(”class“)&&e.type.indexOf(”mouse“)>-1&&(n.getAttribute(”class“).indexOf(”__caption“)>0||/(SMALL|STRONG|EM)/i.test(n.tagName))&&(i.prevent=!1)}),d(”bindEvents“,function(){t.bind(n,”pswpTap click“,T),t.bind(e.scrollWrap,”pswpTap“,w.onGlobalTap),e.likelyTouchDevice||t.bind(e.scrollWrap,”mouseover“,w.onMouseOver)}),d(”unbindEvents“,function(){C||M(),y&&clearInterval(y),t.unbind(document,”mouseout“,W),t.unbind(document,”mousemove“,P),t.unbind(n,”pswpTap click“,T),t.unbind(e.scrollWrap,”pswpTap“,w.onGlobalTap),t.unbind(e.scrollWrap,”mouseover“,w.onMouseOver),i&&(t.unbind(document,i.eventK,w.updateFullscreen),i.isFullscreen()&&(v.hideAnimationDuration=0,i.exit()),i=null)}),d(”destroy“,function(){v.captionEl&&(a&&n.removeChild(a),t.removeClass(o,”pswp__caption–empty“)),l&&(l.children.onclick=null),t.removeClass(n,”pswp__ui–over-close“),t.addClass(n,”pswp__ui–hidden“),w.setIdle(!1)}),v.showAnimationDuration||t.removeClass(n,”pswp__ui–hidden“),d(”initialZoomIn“,function(){v.showAnimationDuration&&t.removeClass(n,”pswp__ui–hidden“)}),d(”initialZoomOut“,function(){t.addClass(n,”pswp__ui–hidden“)}),d(”parseVerticalMargin“,H),function(){var e,i,o,a=function(n){if(n)for(var a=n.length,s=0;a>s;s++){e=n,i=e.className;for(var r=0;r,i.indexOf(”pswp__“+o.name)>-1&&(v?(t.removeClass(e,”pswp__element–disabled“),o.onInit&&o.onInit(e)):t.addClass(e,”pswp__element–disabled“))}};a(n.children);var s=t.getChildByClass(n,”pswp__top-bar“);s&&a(s.children)}(),v.shareEl&&r&&l&&(C=!0),I(),v.timeToIdle&&d(”mouseUsed“,function(){t.bind(document,”mousemove“,P),t.bind(document,”mouseout“,W),y=setInterval(function(){2==++L&&w.setIdle(!0)},v.timeToIdle/2)}),v.fullscreenEl&&!t.features.isOldAndroid&&(i||(i=w.getFullscreenAPI()),i?(t.bind(document,i.eventK,w.updateFullscreen),w.updateFullscreen(),t.addClass(e.template,”pswp–supports-fs“)):t.removeClass(e.template,”pswp–supports-fs“)),v.preloaderEl&&(R(!0),d(”beforeChange“,function(){clearTimeout(f),f=setTimeout(function(){e.currItem&&e.currItem.loading?(!e.allowProgressiveImg()||e.currItem.img&&!e.currItem.img.naturalWidth)&&R(!1):R(!0)},v.loadingIndicatorDelay)}),d(”imageLoadComplete“,function(t,i){e.currItem===i&&R(!0)}))},w.setIdle=function(e){u=e,$(n,”ui–idle“,e)},w.update=function(){x&&e.currItem?(w.updateIndexIndicator(),v.captionEl&&(v.addCaptionHTMLFn(e.currItem,o),$(o,”caption–empty“,!e.currItem.title)),k=!0):k=!1,C||M(),I()},w.updateFullscreen=function(n){n&&setTimeout(function(){e.setScrollOffset(0,t.getScrollY())},50),t(e.template,”pswp–fs“)},w.updateIndexIndicator=function(){v.counterEl&&(s.innerHTML=e.getCurrentIndex()+1+v.indexIndicatorSep+v.getNumItemsFn())},w.onGlobalTap=function(i){var n=(i=i||window.event).target||i.srcElement;if(!g)if(i.detail&&”mouse“===i.detail.pointerType){if(D(n))return void e.close();t.hasClass(n,”pswp__img“)&&(1===e.getZoomLevel()&&e.getZoomLevel()<=e.currItem.fitRatio?v.clickToCloseNonZoomable&&e.close():e.toggleDesktopZoom(i.detail.releasePoint))}else if(v.tapToToggleControls&&(x?w.hideControls():w.showControls()),v.tapToClose&&(t.hasClass(n,”pswp__img“)||D(n)))return void e.close()},w.onMouseOver=function(e){var t=(e=e||window.event).target||e.srcElement;$(n,”ui–over-close“,D(t))},w.hideControls=function(){t.addClass(n,”pswp__ui–hidden“),x=!1},w.showControls=function(){x=!0,k||w.update(),t.removeClass(n,”pswp__ui–hidden“)},w.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},w.getFullscreenAPI=function(){var t,i=document.documentElement,n=”fullscreenchange“;return i.requestFullscreen?t={enterK:”requestFullscreen“,exitK:”exitFullscreen“,elementK:”fullscreenElement“,eventK:n}:i.mozRequestFullScreen?t={enterK:”mozRequestFullScreen“,exitK:”mozCancelFullScreen“,elementK:”mozFullScreenElement“,eventK:”moz“+n}:i.webkitRequestFullscreen?t={enterK:”webkitRequestFullscreen“,exitK:”webkitExitFullscreen“,elementK:”webkitFullscreenElement“,eventK:”webkit“+n}:i.msRequestFullscreen&&(t={enterK:”msRequestFullscreen“,exitK:”msExitFullscreen“,elementK:”msFullscreenElement“,eventK:”MSFullscreenChange“}),t&&(t.enter=function(){return c=v.closeOnScroll,v.closeOnScroll=!1,”webkitRequestFullscreen“!==this.enterK?e.template():void e.template(Element.ALLOW_KEYBOARD_INPUT)},t.exit=function(){return v.closeOnScroll=c,document()},t.isFullscreen=function(){return document}),t}}});var initPhotoSwipeFromDOM=function(e){for(var t=function(e){(e=e||window.event).preventDefault?e.preventDefault():e.returnValue=!1;var t=function e(t,i){return t&&(i(t)?t:e(t.parentNode,i))}(e.target||e.srcElement,function(e){return e.tagName&&”FIGURE“===e.tagName.toUpperCase()});if(t){for(var n,o=t.parentNode,a=t.parentNode.childNodes,s=a.length,r=0,l=0;l.nodeType){if(a===t){n=r;break}r++}return n>=0&&i(n,o),!1}},i=function(e,t,i,n){var o,a,s=document.querySelectorAll(”.pswp“);if(a=function(e){for(var t,i,n,o,a=e.childNodes,s=a.length,r=[],l=0;l).nodeType&&(n=(i=t.children).getAttribute(”data-size“).split(”x“),o={src:i.getAttribute(”href“),w:parseInt(n,10),h:parseInt(n,10)},t.children.length>1&&(o.title=t.children.innerHTML),i.children.length>0&&(o.msrc=i.children.getAttribute(”src“)),o.el=t,r.push(o));return r}(t),o={galleryUID:t.getAttribute(”data-pswp-uid“),getThumbBoundsFn:function(e){var t=a.el.getElementsByTagName(”img“),i=window.pageYOffset||document.documentElement.scrollTop,n=t.getBoundingClientRect();return{x:n.left,y:n.top+i,w:n.width}}},n)if(o.galleryPIDs){for(var r=0;r.pid==e){o.index=r;break}}else o.index=parseInt(e,10)-1;else o.index=parseInt(e,10);isNaN(o.index)||(i&&(o.showAnimationDuration=0),new PhotoSwipe(s,PhotoSwipeUI_Default,a,o).init())},n=document.querySelectorAll(e),o=0,a=n.length;o.setAttribute(”data-pswp-uid“,o+1),n.onclick=t;var s=function(){var e=window.location.hash.substring(1),t={};if(e.length<5)return t;for(var i=e.split(”&“),n=0;n){var o=i.split(”=“);o.length<2||(t[o]=o)}return t.gid&&(t.gid=parseInt(t.gid,10)),t}();s.pid&&s.gid&&i(s.pid,n,!0,!0)};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<t.length;i++){var n=t;n.enumerable=n.enumerable||!1,n.configurable=!0,”value“in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),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<t.length;i++){var n=t;n.enumerable=n.enumerable||!1,n.configurable=!0,”value“in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),e}initPhotoSwipeFromDOM(”.mdb-lightbox“),function(e){e.fn.sticky=function(t){var i=e.extend({},{topSpacing:0,zIndex:”“,stopper:”.sticky-stopper“,stickyClass:!1},t);var n=”number“==typeof i.zIndex;var o=0<e(i.stopper).length||”number“==typeof i.stopper;return this.each(function(){var t=e(this),a=t.outerHeight(),s=t.outerWidth(),r=i.topSpacing,l=i.zIndex,c=t.offset().top-r,u=e(”<div></div>“).width(s).height(a).addClass(”sticky-placeholder“),d=i.stopper,p=e(window);function h(){var s=p.scrollTop(),h=d,f=t.parent().width();(u.width(f),o&&”string“==typeof d)&&(h=e(d).offset().top-a-r);if(c<s){if(i.stickyClass&&t.addClass(i.stickyClass),t.after(u).css({position:”fixed“,top:r,width:f}),n&&t.css({zIndex:l}),o&&h<s){var m=h-s+r;t.css({top:m})}}else i.stickyClass&&t.removeClass(i.stickyClass),t.css({position:”static“,top:null,left:null,width:”auto“}),u.remove()}p.innerHeight()>a&&(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;”number“==typeof n&&(n+=”px“),e.style=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 s(e,t){var i=e.element.classList,n=v.state.scrolling(t);i.contains(n)?clearTimeout(g):i.add(n)}function r(e,t){g=setTimeout(function(){return e.isAlive&&e.element.classList.remove(v.state.scrolling(t))},e.settings.scrollingThreshold)}function l(e,t){s(e,t),r(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,“)||n(e,”select,“)||n(e,”textarea,“)||n(e,”button,“)}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=g+b*(t-y),s(e,h),C(e),t.stopPropagation(),t.preventDefault()}function n(){r(e,h),e.classList.remove(v.state.clicking),e.event.unbind(e.ownerDocument,”mousemove“,i)}var o=t,a=t,l=t,c=t,u=t,d=t,p=t,h=t,f=t,m=e.element,g=null,y=null,b=null;e.event.bind(e,”mousedown“,function(t){g=m,y=t,b=(e-e)/(e-e),e.event.bind(e.ownerDocument,”mousemove“,i),e.event.once(e.ownerDocument,”mouseup“,n),e.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&&(this.handlers=[]),this.handlers.push(t),this.element.addEventListener(e,t,!1)},y.prototype.unbind=function(e,t){var i=this;this.handlers=this.handlers.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.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 k=function(e,t,i,n,o){var a;if(void 0===n&&(n=!0),void 0===o&&(o=!1),”top“===t)a=;else{if(”left“!==t)throw new Error(”A proper axis should be provided“);a=}!function(e,t,i,n,o){var a=i,s=i,r=i,u=i,d=i,p=i;void 0===n&&(n=!0),void 0===o&&(o=!1);var h=e.element;e.reach=null,h<1&&(e.reach=”start“),h>e-e-1&&(e.reach=”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&&(t||o)&&h.dispatchEvent(c(”ps-“u”-reach-“+e.reach))}(e,i,a,n,o)},x={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)},C=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.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=p(e,u(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=u((e.negativeScrollAdjustment+t.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=p(e,u(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=u(i*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=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)},S={”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,C(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,C(e),t.stopPropagation()})},”drag-thumb“:function(e){f(e,),f(e,)},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 s=0,r=0;switch(n.which){case 37:s=n.metaKey?-e.contentWidth:n.altKey?-e.containerWidth:-30;break;case 38:r=n.metaKey?e.contentHeight:n.altKey?e.containerHeight:30;break;case 39:s=n.metaKey?e.contentWidth:n.altKey?e.containerWidth:30;break;case 40:r=n.metaKey?-e.contentHeight:n.altKey?-e.containerHeight:-30;break;case 32:r=n.shiftKey?e.containerHeight:-e.containerHeight;break;case 33:r=e.containerHeight;break;case 34:r=-e.containerHeight;break;case 36:r=e.contentHeight;break;case 35:r=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&0!==s||e.settings.suppressScrollY&&0!==r||(t.scrollTop-=r,t.scrollLeft+=s,C(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}(s,r)&&n.preventDefault())}})},wheel:function(t){function i(t,i,n){if(!x.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 s=e(a);if(.join(”“).match(/(scroll|auto)/)){var r=a.scrollHeight-a.clientHeight;if(r>0&&!(0===a.scrollTop&&n>0||a.scrollTop===r&&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?:[t,i]}(e),a=n,s=n;if(!i(e.target,a,s)){var r=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(s?o.scrollTop-=s*t.settings.wheelSpeed:o.scrollTop+=a*t.settings.wheelSpeed,r=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(a?o.scrollLeft+=a*t.settings.wheelSpeed:o.scrollLeft-=s*t.settings.wheelSpeed,r=!0):(o.scrollTop-=s*t.settings.wheelSpeed,o.scrollLeft+=a*t.settings.wheelSpeed),C(t),(r=r||function(e,i){var n=Math.floor(o.scrollTop),a=0===o.scrollTop,s=n+o.offsetHeight===o.scrollHeight,r=0===o.scrollLeft,l=o.scrollLeft+o.offsetWidth===o.scrollWidth;return!(Math.abs(i)>Math.abs(e)?a||s:r||l)||!t.settings.wheelPropagation}(a,s))&&!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),s=Math.abs(i);if(s>a){if(i<0&&n===t.contentHeight-t.containerHeight||i>0&&0===n)return 0===window.scrollY&&i>0&&x.isChrome}else if(a>s&&(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,C(t)}function o(e){return e.targetTouches?e.targetTouches: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 s(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 r(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(.join(”“).match(/(scroll|auto)/)){var s=o.scrollHeight-o.clientHeight;if(s>0&&!(0===o.scrollTop&&n>0||o.scrollTop===s&&n<0))return!0;var r=o.scrollLeft-o.clientWidth;if(r>0&&!(0===o.scrollLeft&&i<0||o.scrollLeft===r&&i>0))return!0}o=o.parentNode}return!1}function l(e){if(a(e)){var t=o(e),s={pageX:t.pageX,pageY:t.pageY},l=s.pageX-d.pageX,c=s.pageY-d.pageY;if(r(e.target,l,c))return;n(l,c),d=s;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(x.supportsTouch||x.supportsIePointer){var u=t.element,d={},p=0,h={},f=null;x.supportsTouch?(t.event.bind(u,”touchstart“,s),t.event.bind(u,”touchmove“,l),t.event.bind(u,”touchend“,c)):x.supportsIePointer&&(window.PointerEvent?(t.event.bind(u,”pointerdown“,s),t.event.bind(u,”pointermove“,l),t.event.bind(u,”pointerup“,c)):window.MSPointerEvent&&(t.event.bind(u,”MSPointerDown“,s),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 s in this.element=n,n.classList.add(v.main),this.settings={handlers:,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=o;this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var r=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“,r),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“,r),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 S(a)}),this.lastScrollTop=Math.floor(n.scrollTop),this.lastScrollLeft=n.scrollLeft,this.event.bind(this.element,”scroll“,function(e){return a.onScroll(e)}),C(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“}),C(this),k(this,”top“,0,!1,!0),k(this,”left“,0,!1,!0),t(this.scrollbarXRail,{display:”“}),t(this.scrollbarYRail,{display:”“}))},T.prototype.onScroll=function(e){this.isAlive&&(C(this),k(this,”top“,this.element.scrollTop-this.lastScrollTop),k(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){e(document).ready(function(){e(document).on(”click“,”.chip .close“,function(){var t=e(this);t.closest(”.chips“).data(”initialized“)||t.closest(”.chip“).remove()})});var t=function(){function t(i,n){_classCallCheck(this,t),this.chips=i,this.$document=e(document),this.options=n,this.eventsHandled=!1,this.ulWrapper=e('<ul class=”chip-ul z-depth-1“></ul>'),this.defaultOptions={data:[],dataChip:,placeholder:”“,secondaryPlaceholder:”“},this.selectors={chips:”.chips“,chip:”.chip“,input:”input“,delete:”.fas“,selectedChip:”.selected“},this.keyCodes={enter:13,backspace:8,delete:46,arrowLeft:37,arrowRight:39,comma:188},this.init()}return _createClass(t,[{key:”init“,value:function(){var t=this;return this.optionsDataStatement(),this.assignOptions(),this.chips.each(function(i,n){var o=e(n);if(!o.data(”initialized“)){var a=o.data(”options“);a.data&&Array.isArray(a.data)||(a.data=[]),o.data(”chips“,a.data),o.data(”index“,i),o.data(”initialized“,!0),o.hasClass(t.selectors.chips)||o.addClass(”chips“),t.renderChips(o)}}),this.eventsHandled||(this.handleEvents(),this.eventsHandled=!0),this}},{key:”optionsDataStatement“,value:function(){return”data“===this.options?this.chips.data(”chips“):”options“!==this.options||this.chips.data(”options“)}},{key:”assignOptions“,value:function(){this.chips.data(”options“,e.extend({},this.defaultOptions,this.options))}},{key:”handleEvents“,value:function(){this.handleSelecorChips(),this.handleBlurInput(),this.handleSelectorChip(),this.handleDocumentKeyDown(),this.handleDocumentFocusIn(),this.handleDocumentFocusOut(),this.handleDocumentKeyDownChipsInput(),this.handleDocumentClickChipsDelete(),this.inputKeyDown(),this.renderedLiClick(),this.dynamicInputChanges()}},{key:”handleSelecorChips“,value:function(){var t=this;this.$document.on(”click“,this.selectors.chips,function(i){return e(i.target).find(t.selectors.input).focus()})}},{key:”handleBlurInput“,value:function(){var e=this;this.$document.on(”blur“,this.selectors.chips,function(){return setTimeout(function(){return e.ulWrapper.hide()},100)})}},{key:”handleSelectorChip“,value:function(){this.chips.on(”click“,”.chip“,function(t){return e(t.target).removeClass(”selected“).addClass(”selected“)})}},{key:”handleDocumentKeyDown“,value:function(){var t=this;this.$document.on(”keydown“,function(i){if(!e(i.target).is(”input, textarea“)){var n=t.$document.find(t.selectors.chip+t.selectors.selectedChip),o=n.closest(t.selectors.chips),a=n.siblings(t.selectors.chip).length;if(n.length){var s=i.which===t.keyCodes.backspace,r=i.which===t.keyCodes.delete,l=i.which===t.keyCodes.arrowLeft,c=i.which===t.keyCodes.arrowRight;s||r?(i.preventDefault(),t.deleteSelectedChip(o,n,a)):l?t.selectLeftChip(o,n):c&&t.selectRightChip(o,n,a)}}})}},{key:”handleDocumentFocusIn“,value:function(){var t=this,i=this.chips;(i.hasClass(”chips-autocomplete“)?i.children().children(”input“):i.children(”input“)).on(”click“,function(i){e(i.target).closest(t.selectors.chips).addClass(”focus“),e(t.selectors.chip).removeClass(”selected“)})}},{key:”handleDocumentFocusOut“,value:function(){var t=this;this.$document.on(”focusout“,”“.concat(this.selectors.chips,” “).concat(this.selectors.input),function(i){return e(i.target).closest(t.selectors.chips).removeClass(”focus“)})}},{key:”handleDocumentKeyDownChipsInput“,value:function(){var t=this;this.$document.on(”keydown“,”“.concat(this.selectors.chips,” “).concat(this.selectors.input),function(i){var n=e(i.target),o=n.closest(t.selectors.chips),a=o.data(”index“),s=o.children(t.selectors.chip).length,r=i.which===t.keyCodes.enter,l=i.which===t.keyCodes.comma;if(r||l)return i.preventDefault(),t.addChip(a,{tag:n.val()},o),void n.val(”“);var c=i.keyCode===t.keyCodes.arrowLeft||i.keyCode===t.keyCodes.delete,u=”“===n.val();c&&u&&s&&(t.selectChip(a,s-1,o),n.blur())})}},{key:”handleDocumentClickChipsDelete“,value:function(){var t=this;this.chips.on(”click“,”.chip .fas“,function(i){var n,o=e(i.target).parent(e(t.chips));o.parents().eq(1).hasClass(”chips-autocomplete“)?n=o.parents().eq(1):o.parent().hasClass(”chips-autocomplete“)||o.parents().eq(1).hasClass(”chips-autocomplete“)?o.parent().hasClass(”chips-initial“)&&o.parent().hasClass(”chips-autocomplete“)&&(n=o.parents().eq(0)):n=o.parents().eq(0),t.deleteChip(n.data(”index“),o.index(),n),n.find(”input“).focus()})}},{key:”inputKeyDown“,value:function(){var t=this,i=this.ulWrapper,n=this.options.dataChip,o=this.chips,a=o.children(”.chip-position-wrapper“).children(”input“);a.on(”keyup“,function(s){var r=a.val();if(i.empty(),r.length)for(var l in n)n.toLowerCase().includes(r.toLowerCase())&&o.children(”.chip-position-wrapper“).append(i.append(e(”
  • “.concat(n,”</li>“))));s.which===t.keyCodes.enter&&(i.empty(),o.children(”:first“).trigger(”click“),i.remove()),0===r.length?i.hide():i.show()})}},{key:”dynamicInputChanges“,value:function(){var t=this.options.dataChip;void 0!==t&&this.chips.children(”.chip-position-wrapper“).children(”input“).on(”change“,function(i){var n=e(i.target).val();t.includes(n)||(t.push(n),t.sort())})}},{key:”renderedLiClick“,value:function(){var t=this;this.chips.on(”click“,”li“,function(i){i.preventDefault();var n=e(i.target),o=n.closest(e(t.selectors.chips)),a=o.data(”index“);t.addChip(a,{tag:n.text()},o),t.chips.children(”.chip-position-wrapper“).children(”input“).val(”“),t.ulWrapper.remove()})}},{key:”deleteSelectedChip“,value:function(e,t,i){var n=e.data(”index“),o=t.index();this.deleteChip(n,o,e);var a=null;o<i-1?a=o:o!==i&&o!==i-1||(a=i-1),a<0&&(a=null),null!==a&&this.selectChip(n,a,e),i||e.find(”input“).focus()}},{key:”selectLeftChip“,value:function(t,i){var n=i.index()-1;n<0||(e(this.selectors.chip).removeClass(”selected“),this.selectChip(t.data(”index“),n,t))}},{key:”selectRightChip“,value:function(t,i,n){var o=i.index()+1;e(this.selectors.chip).removeClass(”selected“),o>n?t.find(”input“).focus():this.selectChip(t.data(”index“),o,t)}},{key:”renderChips“,value:function(e){var t=this,i=”“;e.data(”chips“).forEach(function(e){i+=t.getSingleChipHtml(e)}),e.hasClass(”chips-autocomplete“)?i+='<span class=”chip-position-wrapper position-relative“><input class=”input“ placeholder=”“></span>':i+='<input class=”input“ placeholder=”“>',e.html(i),this.setPlaceholder(e)}},{key:”getSingleChipHtml“,value:function(e){if(!e.tag)return”“;var t='<div class=”chip“>'.concat(e.tag);return e.image&&(t+=' <img src=”'.concat(e.image,'“> ')),t+='<i class=”close fas fa-times“></i>',t+=”</div>“}},{key:”setPlaceholder“,value:function(e){var t=e.data(”options“);e.data(”chips“).length&&t.placeholder?e.find(”input“).prop(”placeholder“,t.placeholder):!e.data(”chips“).length&&t.secondaryPlaceholder&&e.find(”input“).prop(”placeholder“,t.secondaryPlaceholder)}},{key:”isValid“,value:function(e,t){for(var i=e.data(”chips“),n=0;n.tag===t.tag)return!1;return”“!==t.tag}},{key:”addChip“,value:function(t,i,n){if(this.isValid(n,i)){var o=e(this.getSingleChipHtml(i));n.data(”chips“).push(i),n.hasClass(”chips-autocomplete“)&&n.hasClass(”chips-initial“)&&n.find(”.chip“).length>0?o.insertAfter(n.find(”.chip“).last()):o.insertBefore(n.find(”input“)),n.trigger(”chip.add“,i),this.setPlaceholder(n)}}},{key:”deleteChip“,value:function(e,t,i){var n=i.data(”chips“);i.find(”.chip“).eq(t).remove(),i.data(”chips“).splice(t,1),i.trigger(”chip.delete“,n),this.setPlaceholder(i)}},{key:”selectChip“,value:function(e,t,i){var n=i.find(”.chip“).eq(t);n&&!1===n.hasClass(”selected“)&&(n.addClass(”selected“),i.trigger(”chip.select“,i.data(”chips“)))}},{key:”getChipsElement“,value:function(e,t){return t.eq(e)}}]),t}();e.fn.materialChip=function(i){return this.each(function(){new t(e(this),i)})}}(jQuery),function(e){var t={};function i(n){if(t)return t.exports;var o=t={i:n,l:!1,exports:{}};return e.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}.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=r(i(2)),a=i(4),s=r(i(13));function r(e){return e&&e.__esModule?e:{default:e}}var l=a.window.jarallax;if(a.window.jarallax=s.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=s.default.apply(a.window,e);return”object“!==(void 0===t?”undefined“:n(t))?t:this};c.constructor=s.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,s.default)(document.querySelectorAll(”“))})},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 s,r=e();!(n=(s=r.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&r.return&&r.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<t.length;i++){var n=t;n.enumerable=n.enumerable||!1,n.configurable=!0,”value“in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=”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},s=c(i(2)),r=c(i(14)),l=i(4);function c(e){return e&&e.__esModule?e:{default:e}}var u=navigator.userAgent.indexOf(”MSIE “)>-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;i<e.length;i++)if(t&&void 0!==t.style[e])return e;return!1}(),p=void 0,h=void 0,f=void 0,m=!1,v=!1;function g(e){p=l.window.innerWidth||document.documentElement.clientWidth,h=l.window.innerHeight||document.documentElement.clientHeight,”object“!==(void 0===e?”undefined“:a(e))||”load“!==e.type&&”dom-loaded“!==e.type||(m=!0)}g(),l.window.addEventListener(”resize“,g),l.window.addEventListener(”orientationchange“,g),l.window.addEventListener(”load“,g),(0,s.default)(function(){g({type:”dom-loaded“})});var y=[],b=!1;function w(){if(y.length){f=void 0!==l.window.pageYOffset?l.window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;var e=m||!b||b.width!==p||b.height!==h,t=v||e||!b||b.y!==f;m=!1,v=!1,(e||t)&&(y.forEach(function(i){e&&i.onResize(),t&&i.onScroll()}),b={width:p,height:h,y:f}),(0,r.default)(w)}}var k=!!e.ResizeObserver&&new e.ResizeObserver(function(e){e&&e.length&&(0,r.default)(function(){e.forEach(function(e){e.target&&e.target.jarallax&&(m||e.target.jarallax.onResize(),v=!0)})})}),x=0,C=function(){function e(t,i){!function(e,t){if(!(e instanceof t))throw new TypeError(”Cannot call a class as a function“)}(this,e);var o=this;o.instanceID=x++,o.$item=t,o.defaults={type:”scroll“,speed:.5,imgSrc:null,imgElement:”.jarallax-img“,imgSize:”cover“,imgPosition:”50% 50%“,imgRepeat:”no-repeat“,keepImg:!1,elementInViewport:null,zIndex:-100,disableParallax:!1,disableVideo:!1,automaticResize:!0,videoSrc:null,videoStartTime:0,videoEndTime:0,videoVolume:0,videoPlayOnlyVisible:!0,onScroll:null,onInit:null,onDestroy:null,onCoverImage:null};var s=o.$item.getAttribute(”data-jarallax“),r=JSON.parse(s||”{}“);s&&console.warn(”Detected usage of deprecated data-jarallax JSON options, you should use pure data-attribute options. See info here - github.com/nk-o/jarallax/issues/53“);var l=o.$item.dataset||{},c={};if(Object.keys(l).forEach(function(e){var t=e.substr(0,1).toLowerCase()+e.substr(1);t&&void 0!==o.defaults&&(c=l)}),o.options=o.extend({},o.defaults,r,c,i),o.pureOptions=o.extend({},o.options),Object.keys(o.options).forEach(function(e){”true“===o.options?o.options=!0:”false“===o.options&&(o.options=!1)}),o.options.speed=Math.min(2,Math.max(-1,parseFloat(o.options.speed))),(o.options.noAndroid||o.options.noIos)&&(console.warn(”Detected usage of deprecated noAndroid or noIos options, you should use disableParallax option. See info here - github.com/nk-o/jarallax/#disable-on-mobile-devices“),o.options.disableParallax||(o.options.noIos&&o.options.noAndroid?o.options.disableParallax=/iPad|iPhone|iPod|Android/:o.options.noIos?o.options.disableParallax=/iPad|iPhone|iPod/:o.options.noAndroid&&(o.options.disableParallax=/Android/))),”string“==typeof o.options.disableParallax&&(o.options.disableParallax=new RegExp(o.options.disableParallax)),o.options.disableParallax instanceof RegExp){var u=o.options.disableParallax;o.options.disableParallax=function(){return u.test(navigator.userAgent)}}if(”function“!=typeof o.options.disableParallax&&(o.options.disableParallax=function(){return!1}),”string“==typeof o.options.disableVideo&&(o.options.disableVideo=new RegExp(o.options.disableVideo)),o.options.disableVideo instanceof RegExp){var d=o.options.disableVideo;o.options.disableVideo=function(){return d.test(navigator.userAgent)}}”function“!=typeof o.options.disableVideo&&(o.options.disableVideo=function(){return!1});var p=o.options.elementInViewport;p&&”object“===(void 0===p?”undefined“:a(p))&&void 0!==p.length&&(p=n(p,1));p instanceof Element||(p=null),o.options.elementInViewport=p,o.image={src:o.options.imgSrc||null,$container:null,useImgTag:!1,position:/iPad|iPhone|iPod|Android/.test(navigator.userAgent)?”absolute“:”fixed“},o.initImg()&&o.canInitParallax()&&o.init()}return o(e,[{key:”css“,value:function(e,t){return”string“==typeof t?l.window.getComputedStyle(e).getPropertyValue(t):(t.transform&&d&&(t=t.transform),Object.keys(t).forEach(function(i){e.style=t}),e)}},{key:”extend“,value:function(e){var t=arguments;return e=e||{},Object.keys(arguments).forEach(function(i){t&&Object.keys(t).forEach(function(n){e=t[n]})}),e}},{key:”getWindowData“,value:function(){return{width:p,height:h,y:f}}},{key:”initImg“,value:function(){var e=this.options.imgElement;return e&&”string“==typeof e&&(e=this.$item.querySelector(e)),e instanceof Element||(e=null),e&&(this.options.keepImg?this.image.$item=e.cloneNode(!0):(this.image.$item=e,this.image.$itemParent=e.parentNode),this.image.useImgTag=!0),!!this.image.$item||(null===this.image.src&&(this.image.src=this.css(this.$item,”background-image“).replace(/^url(?/g,”“).replace(/?)$/g,”“)),!(!this.image.src||”none“===this.image.src))}},{key:”canInitParallax“,value:function(){return d&&!this.options.disableParallax()}},{key:”init“,value:function(){var e={position:”absolute“,top:0,left:0,width:”100%“,height:”100%“,overflow:”hidden“,pointerEvents:”none“},t={};if(!this.options.keepImg){var i=this.$item.getAttribute(”style“);if(i&&this.$item.setAttribute(”data-jarallax-original-styles“,i),this.image.useImgTag){var n=this.image.$item.getAttribute(”style“);n&&this.image.$item.setAttribute(”data-jarallax-original-styles“,n)}}if(”static“===this.css(this.$item,”position“)&&this.css(this.$item,{position:”relative“}),”auto“===this.css(this.$item,”z-index“)&&this.css(this.$item,{zIndex:0}),this.image.$container=document.createElement(”div“),this.css(this.image.$container,e),this.css(this.image.$container,{”z-index“:this.options.zIndex}),u&&this.css(this.image.$container,{opacity:.9999}),this.image.$container.setAttribute(”id“,”jarallax-container-“+this.instanceID),this.$item.appendChild(this.image.$container),this.image.useImgTag?t=this.extend({”object-fit“:this.options.imgSize,”object-position“:this.options.imgPosition,”font-family“:”object-fit: “this.options.imgSize”; object-position: “this.options.imgPosition”;“,”max-width“:”none“},e,t):(this.image.$item=document.createElement(”div“),this.image.src&&(t=this.extend({”background-position“:this.options.imgPosition,”background-size“:this.options.imgSize,”background-repeat“:this.options.imgRepeat,”background-image“:'url(”'this.image.src'“)'},e,t))),”opacity“!==this.options.type&&”scale“!==this.options.type&&”scale-opacity“!==this.options.type&&1!==this.options.speed||(this.image.position=”absolute“),”fixed“===this.image.position)for(var o=0,a=this.$item;null!==a&&a!==document&&0===o;){var s=this.css(a,”-webkit-transform“)||this.css(a,”-moz-transform“)||this.css(a,”transform“);s&&”none“!==s&&(o=1,this.image.position=”absolute“),a=a.parentNode}t.position=this.image.position,this.css(this.image.$item,t),this.image.$container.appendChild(this.image.$item),this.onResize(),this.onScroll(!0),this.options.automaticResize&&k&&k.observe(this.$item),this.options.onInit&&this.options.onInit.call(this),”none“!==this.css(this.$item,”background-image“)&&this.css(this.$item,{”background-image“:”none“}),this.addToParallaxList()}},{key:”addToParallaxList“,value:function(){y.push(this),1===y.length&&w()}},{key:”removeFromParallaxList“,value:function(){var e=this;y.forEach(function(t,i){t.instanceID===e.instanceID&&y.splice(i,1)})}},{key:”destroy“,value:function(){this.removeFromParallaxList();var e=this.$item.getAttribute(”data-jarallax-original-styles“);if(this.$item.removeAttribute(”data-jarallax-original-styles“),e?this.$item.setAttribute(”style“,e):this.$item.removeAttribute(”style“),this.image.useImgTag){var t=this.image.$item.getAttribute(”data-jarallax-original-styles“);this.image.$item.removeAttribute(”data-jarallax-original-styles“),t?this.image.$item.setAttribute(”style“,e):this.image.$item.removeAttribute(”style“),this.image.$itemParent&&this.image.$itemParent.appendChild(this.image.$item)}this.$clipStyles&&this.$clipStyles.parentNode.removeChild(this.$clipStyles),this.image.$container&&this.image.$container.parentNode.removeChild(this.image.$container),this.options.onDestroy&&this.options.onDestroy.call(this),delete this.$item.jarallax}},{key:”clipContainer“,value:function(){if(”fixed“===this.image.position){var e=this.image.$container.getBoundingClientRect(),t=e.width,i=e.height;if(!this.$clipStyles)this.$clipStyles=document.createElement(”style“),this.$clipStyles.setAttribute(”type“,”text/css“),this.$clipStyles.setAttribute(”id“,”jarallax-clip-“+this.instanceID),(document.head||document.getElementsByTagName(”head“)).appendChild(this.$clipStyles);var n=”#jarallax-container-“this.instanceID” {n clip: rect(0 “t”px “i”px 0);n clip: rect(0, “t”px, “i”px, 0);n }“;this.$clipStyles.styleSheet?this.$clipStyles.styleSheet.cssText=n:this.$clipStyles.innerHTML=n}}},{key:”coverImage“,value:function(){var e=this.image.$container.getBoundingClientRect(),t=e.height,i=this.options.speed,n=”scroll“===this.options.type||”scroll-opacity“===this.options.type,o=0,a=t,s=0;return n&&(o=i<0?i*Math.max(t,h):i*(t+h),i>1?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,s=n?(h-a)/2:(t-a)/2,this.css(this.image.$item,{height:a+”px“,marginTop:s+”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:s},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 s=Math.max(0,i),r=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(n<h?m=1-(l||c)/n:r<=h?m=r/h:u<=h&&(m=u/h),”opacity“!==this.options.type&&”scale-opacity“!==this.options.type&&”scroll-opacity“!==this.options.type||(o.transform=”translate3d(0,0,0)“,o.opacity=m),”scale“===this.options.type||”scale-opacity“===this.options.type){var v=1;this.options.speed<0?v-=this.options.speed*m:v+=this.options.speed*(1-m),o.transform=”scale(“v”) translate3d(0,0,0)“}if(”scroll“===this.options.type||”scroll-opacity“===this.options.type){var g=this.parallaxScrollDistance*f;”absolute“===this.image.position&&(g-=i),o.transform=”translate3d(0,“g”px,0)“}this.css(this.image.$item,o),this.options.onScroll&&this.options.onScroll.call(this,{section:t,beforeTop:s,beforeTopEnd:r,afterTop:l,beforeBottom:c,beforeBottomEnd:u,afterBottom:d,visiblePercent:m,fromViewportCenter:f})}}},{key:”onResize“,value:function(){this.coverImage(),this.clipContainer()}}]),e}(),S=function(e){(”object“===(”undefined“==typeof HTMLElement?”undefined“:a(HTMLElement))?e instanceof HTMLElement:e&&”object“===(void 0===e?”undefined“:a(e))&&null!==e&&1===e.nodeType&&”string“==typeof e.nodeName)&&(e=);for(var t=arguments,i=Array.prototype.slice.call(arguments,2),n=e.length,o=0,s=void 0;o<n;o++)if(”object“===(void 0===t?”undefined“:a(t))||void 0===t?e.jarallax||(e.jarallax=new C(e,t)):e.jarallax&&(s=e.jarallax.apply(e.jarallax,i)),void 0!==s)return s;return e};S.constructor=C,t.default=S}).call(this,i(5))},function(e,t,i){”use strict“;var n=i(4),o=n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||function(e){var t=+new Date,i=Math.max(0,16-(t-a)),n=setTimeout(e,i);return a=t,n},a=+new Date;var s=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.mozCancelAnimationFrame||clearTimeout;Function.prototype.bind&&(o=o.bind(n),s=s.bind(n)),(e.exports=o).cancel=s}]),function(e){var t={};function i(n){if(t)return t.exports;var o=t={i:n,l:!1,exports:{}};return e.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}.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=6)}([,,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(7)},function(e,t,i){”use strict“;var n=r(i(8)),o=r(i(4)),a=r(i(2)),s=r(i(10));function r(e){return e&&e.__esModule?e:{default:e}}o.default.VideoWorker=o.default.VideoWorker||n.default,(0,s.default)(),(0,a.default)(function(){”undefined“!=typeof jarallax&&jarallax(document.querySelectorAll(”“))})},function(e,t,i){”use strict“;e.exports=i(9)},function(e,t,i){”use strict“;Object.defineProperty(t,”__esModule“,{value:!0});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=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t;n.enumerable=n.enumerable||!1,n.configurable=!0,”value“in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(){this._done=[],this._fail=}a.prototype={execute:function(e,t){var i=e.length;for(t=Array.prototype.slice.call(t);i–;)e.apply(null,t)},resolve:function(){this.execute(this._done,arguments)},reject:function(){this.execute(this._fail,arguments)},done:function(e){this._done.push(e)},fail:function(e){this._fail.push(e)}};var s=0,r=0,l=0,c=0,u=0,d=new a,p=new a,h=function(){function e(t,i){!function(e,t){if(!(e instanceof t))throw new TypeError(”Cannot call a class as a function“)}(this,e);this.url=t,this.options_default={autoplay:!1,loop:!1,mute:!1,volume:100,showContols:!0,startTime:0,endTime:0},this.options=this.extend({},this.options_default,i),this.videoID=this.parseURL(t),this.videoID&&(this.ID=s++,this.loadAPI(),this.init())}return o(e,[{key:”extend“,value:function(e){var t=arguments;return e=e||{},Object.keys(arguments).forEach(function(i){t&&Object.keys(t).forEach(function(n){e=t[n]})}),e}},{key:”parseURL“,value:function(e){var t,i,n,o=!(!(t=e.match(/.*(?:youtu.be/|v/|u/w/|embed/|watch?v=)(*).*/))||11!==t.length)&&t,a=function(e){var t=e.match(/https?://(?:www.|player.)?vimeo.com/(?:channels/(?:w+/)?|groups/(*)/videos/|album/(d+)/video/|video/|)(d+)(?:$|/|?)/);return!(!t||!t[3])&&t}(e),s=(i={},n=0,e.split(/,(?=mp4:|webm:|ogv:|ogg:)/).forEach(function(e){var t=e.match(/^(mp4|webm|ogv|ogg):(.*)/);t&&t&&t&&(i[”ogv“===t?”ogg“:t]=t,n=1)}),!!n&&i);return o?(this.type=”youtube“,o):a?(this.type=”vimeo“,a):!!s&&(this.type=”local“,s)}},{key:”isValid“,value:function(){return!!this.videoID}},{key:”on“,value:function(e,t){this.userEventsList=this.userEventsList||[],(this.userEventsList||(this.userEventsList=[])).push(t)}},{key:”off“,value:function(e,t){var i=this;this.userEventsList&&this.userEventsList&&(t?this.userEventsList.forEach(function(n,o){n===t&&(i.userEventsList[o]=!1)}):delete this.userEventsList)}},{key:”fire“,value:function(e){var t=this,i=[].slice.call(arguments,1);this.userEventsList&&void 0!==this.userEventsList&&this.userEventsList.forEach(function(e){e&&e.apply(t,i)})}},{key:”play“,value:function(e){var t=this;t.player&&(”youtube“===t.type&&t.player.playVideo&&(void 0!==e&&t.player.seekTo(e||0),YT.PlayerState.PLAYING!==t.player.getPlayerState()&&t.player.playVideo()),”vimeo“===t.type&&(void 0!==e&&t.player.setCurrentTime(e),t.player.getPaused().then(function(e){e&&t.player.play()})),”local“===t.type&&(void 0!==e&&(t.player.currentTime=e),t.player.paused&&t.player.play()))}},{key:”pause“,value:function(){var e=this;e.player&&(”youtube“===e.type&&e.player.pauseVideo&&YT.PlayerState.PLAYING===e.player.getPlayerState()&&e.player.pauseVideo(),”vimeo“===e.type&&e.player.getPaused().then(function(t){t||e.player.pause()}),”local“===e.type&&(e.player.paused||e.player.pause()))}},{key:”mute“,value:function(){this.player&&(”youtube“===this.type&&this.player.mute&&this.player.mute(),”vimeo“===this.type&&this.player.setVolume&&this.player.setVolume(0),”local“===this.type&&(this.$video.muted=!0))}},{key:”unmute“,value:function(){this.player&&(”youtube“===this.type&&this.player.mute&&this.player.unMute(),”vimeo“===this.type&&this.player.setVolume&&this.player.setVolume(this.options.volume),”local“===this.type&&(this.$video.muted=!1))}},{key:”setVolume“,value:function(){var e=arguments.length>0&&void 0!==arguments&&arguments;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=,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“,”vimeo.com/api/v2/video/“t.videoID=200&&this.status<400){var">”.json“,!0),a.onreadystatechange=function(){if(4===this.readyState&&this.status>=200&&this.status<400){var i=JSON.parse(this.responseText);t.videoImage=i.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 s=document.createElement(”div“);s.setAttribute(”id“,t.playerID),i.appendChild(s),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“,”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 r=void 0;t.player.on(”timeupdate“,function(e){r||(t.fire(”started“,e),r=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,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(!r||!l){var e=”“;if(”youtube“!==this.type||r||(r=1,e=”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“);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?arguments: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,s=e.image.marginTop;e.container.width>n&&(n=e.container.width,i=n*this.image.height/this.image.width,o=0,s+=(e.image.height-i)/2),”IFRAME“===t&&(i+=400,s-=200),this.css(this.$video,{width:n+”px“,marginLeft:o+”px“,height:i+”px“,marginTop:s+”px“})}return e};var s=t.prototype.initImg;t.prototype.initImg=function(){var e=s.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 r=t.prototype.canInitParallax;t.prototype.canInitParallax=function(){var e=this,t=r.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“,s=”1px solid ced4da“,r=”0 1px 0 0 #4285f4“,l=”“,c=function(){function c(u,d){_classCallCheck(this,c),this.defaults={data:t,dataColor:i,xColor:n,xBlurColor:o,inputFocus:a,inputBlur:s,inputFocusShadow:r,inputBlurShadow:l},this.$input=u,this.options=this.assignOptions(d),this.$clearButton=e(”.mdb-autocomplete-clear“),this.$autocompleteWrap=e('<ul class=”mdb-autocomplete-wrap“></ul>'),this.init()}return _createClass(c,[{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){var n=t.$input.val();if(t.$autocompleteWrap.empty(),n.length)for(var o in t.options.data)if(-1!==t.options.data.toLowerCase().indexOf(n.toLowerCase())){var a=e(”
  • “.concat(t.options.data,”</li>“));t.$autocompleteWrap.append(a)}13===i.which&&(t.$autocompleteWrap.children(”:first“).trigger(”click“),t.$autocompleteWrap.empty()),0===n.length?t.$input.parent().find(”.mdb-autocomplete-clear“).css(”visibility“,”hidden“):t.$input.parent().find(”.mdb-autocomplete-clear“).css(”visibility“,”visible“),t.$autocompleteWrap.children().css(”color“,t.options.dataColor)})}},{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){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.xColor)}),this.$input.on(”blur“,function(i){i.preventDefault(),e(i.target).parent().find(”.mdb-autocomplete-clear“).find(”svg“).css(”fill“,t.options.xBlurColor)}))}}]),c}();e.fn.mdbAutocomplete=function(t){return this.each(function(){new c(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',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<t.length;i++){var n=t;if(3!==n.nodeType)return n}return e},n=function(t){var n=t.bsCustomFileInput.defaultText,o=t.parentNode.querySelector(e.CUSTOMFILELABEL);o&&(i(o).innerHTML=n)},o=!!window.File,a=function(e){if(e.hasAttribute(”multiple“)&&o)return[].slice.call(e.files).map(function(e){return e.name}).join(”, “);if(-1!==e.value.indexOf(”fakepath“)){var t=e.value.split(”\“);return t}return e.value};function s(){var t=this.parentNode.querySelector(e.CUSTOMFILELABEL);if(t){var o=i(t),s=a(this);s.length?o.innerHTML=s:n(this)}}function r(){for(var t=[].slice.call(this.querySelectorAll(e.INPUT)).filter(function(e){return!!e.bsCustomFileInput}),i=0,o=t.length;i)}var l=”reset“,c=”change“;return{init:function(i,n){void 0===i&&(i=e.CUSTOMFILE),void 0===n&&(n=e.FORM);for(var o=[].slice.call(document.querySelectorAll(i)),a=.slice.call(document.querySelectorAll(n)),u=0,d=o.length;u<d;u++){var p=o;Object.defineProperty(p,”bsCustomFileInput“,{value:{defaultText:t(p)},writable:!0}),s.call(p),p.addEventListener(c,s)}for(var h=0,f=a.length;h.addEventListener(l,r),Object.defineProperty(a,”bsCustomFileInput“,{value:!0,writable:!0})},destroy:function(){for(var t=[].slice.call(document.querySelectorAll(e.FORM)).filter(function(e){return!!e.bsCustomFileInput}),i=.slice.call(document.querySelectorAll(e.INPUT)).filter(function(e){return!!e.bsCustomFileInput}),o=0,a=i.length;o<a;o++){var u=i;n(u),u.bsCustomFileInput=void 0,u.removeEventListener(c,s)}for(var d=0,p=t.length;d.removeEventListener(l,r),t.bsCustomFileInput=void 0}}}),document.addEventListener(”DOMContentLoaded“,function(){bsCustomFileInput.init()});var i,toggler=document.getElementsByClassName(”rotate“);for(i=0;i.addEventListener(”click“,function(){this.parentElement.querySelector(”.nested“).classList.toggle(”active“),this.classList.toggle(”down“)});