"),m=t("
"),g=t(a.closeHtml),v={intervalId:null,hideEta:null,maxHideTime:null},y={toastId:o,state:"visible",startTime:new Date,options:a,map:i};return i.iconClass&&u.addClass(a.toastClass).addClass(r),i.title&&(p.append(i.title).addClass(a.titleClass),u.append(p)),i.message&&(f.append(i.message).addClass(a.messageClass),u.append(f)),a.closeButton&&(g.addClass("md-toast-close-button").attr("role","button"),u.prepend(g)),a.progressBar&&(m.addClass("md-toast-progress"),u.prepend(m)),a.newestOnTop?e.prepend(u):e.append(u),u.hide(),u[a.showMethod]({duration:a.showDuration,easing:a.showEasing,complete:a.onShown}),a.timeOut>0&&(l=setTimeout(b,a.timeOut),v.maxHideTime=parseFloat(a.timeOut),v.hideEta=(new Date).getTime()+v.maxHideTime,a.progressBar&&(v.intervalId=setInterval(k,10))),function(){u.hover(w,x),!a.onclick&&a.tapToDismiss&&u.click(b);a.closeButton&&g&&g.click(function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&!0!==t.cancelBubble&&(t.cancelBubble=!0),b(!0)});a.onclick&&u.click(function(){a.onclick(),b()})}(),c(y),a.debug&&console&&console.log(y),u}function b(e){if(!t(":focus",u).length||e)return clearTimeout(v.intervalId),u[a.hideMethod]({duration:a.hideDuration,easing:a.hideEasing,complete:function(){h(u),a.onHidden&&"hidden"!==y.state&&a.onHidden(),y.state="hidden",y.endTime=new Date,c(y)}})}function x(){(a.timeOut>0||a.extendedTimeOut>0)&&(l=setTimeout(b,a.extendedTimeOut),v.maxHideTime=parseFloat(a.extendedTimeOut),v.hideEta=(new Date).getTime()+v.maxHideTime)}function w(){clearTimeout(l),v.hideEta=0,u.stop(!0,!0)[a.showMethod]({duration:a.showDuration,easing:a.showEasing})}function k(){var t=(v.hideEta-(new Date).getTime())/v.maxHideTime*100;m.width(t+"%")}}function d(){return t.extend({},{tapToDismiss:!0,toastClass:"md-toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,extendedTimeOut:1e3,iconClasses:{error:"md-toast-error",info:"md-toast-info",success:"md-toast-success",warning:"md-toast-warning"},iconClass:"md-toast-info",positionClass:"md-toast-top-right",timeOut:5e3,titleClass:"md-toast-title",messageClass:"md-toast-message",target:"body",closeHtml:'
',newestOnTop:!0,preventDuplicates:!1,progressBar:!1},r.options)}function h(t){e||(e=s()),t.is(":visible")||(t.remove(),t=null,0===e.children().length&&(e.remove(),n=void 0))}}()})}("function"==typeof define&&define.amd?define:function(t,e){"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):window.toastr=e(window.jQuery)});var SMOOTH_SCROLL_DURATION=700;$(".smooth-scroll").on("click","a",function(){var t=$(this).attr("href");if(void 0!==t&&0===t.indexOf("#")){var e=$(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:$(t).offset().top-e},SMOOTH_SCROLL_DURATION),void 0!==i&&!1!==i&&history.replaceState(null,null,t),!1}}),function(t){t.fn.scrollTo=function(e){return t(this).scrollTop(t(this).scrollTop()-t(this).offset().top+t(e).offset().top),this},t.fn.dropdown=function(e){this.each(function(){var i=t(this),n=t.extend({},t.fn.dropdown.defaults,e),o=!1,a=t("#".concat(i.attr("data-activates")));function r(){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 s(e){"focus"===e&&(o=!0),r(),a.addClass("active"),i.addClass("active"),!0===n.constrain_width?a.css("width",i.outerWidth()):a.css("white-space","nowrap");var s=window.innerHeight,l=i.innerHeight(),c=i.offset().left,u=i.offset().top-t(window).scrollTop(),d=n.alignment,h=0,p=0,f=0;!0===n.belowOrigin&&(f=l);var m=0,g=i.parent();if(!g.is("body")&&g[0].scrollHeight>g[0].clientHeight&&(m=g[0].scrollTop),c+a.innerWidth()>t(window).width()?d="right":c-a.innerWidth()+i.innerWidth()<0&&(d="left"),u+a.innerHeight()>s)if(u+l-a.innerHeight()<0){var v=s-u-f;a.css("max-height",v)}else f||(f+=l),f-=a.innerHeight();if("left"===d)h=n.gutter,p=i.position().left+h;else if("right"===d){p=i.position().left+i.outerWidth()-a.outerWidth()+(h=-n.gutter)}a.css({position:"absolute",top:i.position().top+f+m,left:p}),a.stop(!0,!0).css("opacity",0).slideDown({queue:!1,duration:n.inDuration,easing:"easeOutCubic",complete:function(){t(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(r(),i.after(a),n.hover){var c=!1;i.unbind("click.".concat(i.attr("id"))),i.on("mouseenter",function(){!1===c&&(s(),c=!0)}),i.on("mouseleave",function(e){var i=e.toElement||e.relatedTarget;t(i).closest(".dropdown-content").is(a)||(a.stop(!0,!0),l(),c=!1)}),a.on("mouseleave",function(e){var n=e.toElement||e.relatedTarget;t(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(e){o||(i[0]!==e.currentTarget||i.hasClass("active")||0!==t(e.target).closest(".dropdown-content").length?i.hasClass("active")&&(l(),t(document).unbind("click.".concat(a.attr("id")," touchstart.").concat(a.attr("id")))):(e.preventDefault(),s("click")),a.hasClass("active")&&t(document).bind("click.".concat(a.attr("id")," touchstart.").concat(a.attr("id")),function(e){a.is(e.target)||i.is(e.target)||i.find(e.target).length||(l(),t(document).unbind("click.".concat(a.attr("id")," touchstart.").concat(a.attr("id"))))}))});i.on("open",function(t,e){s(e)}),i.on("close",l)})},t.fn.dropdown.defaults={inDuration:300,outDuration:225,constrain_width:!0,hover:!1,gutter:0,belowOrigin:!1,alignment:"left"},t(".dropdown-button").dropdown(),t.fn.mdbDropSearch=function(e){var i=t(this).find("input");this.filter(function(e,n){t(n).on("keyup",function(){for(var t=i.closest("div[id]").find("a, li"),e=0;e
-1?t.eq(e).css({display:""}):t.eq(e).css({display:"none"})})});var n=t.extend({color:"#000",backgroundColor:"",fontSize:".9rem",fontWeight:"400",borderRadius:"",borderColor:""},e);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(t){var e="fadeIn",i="fadeOut",n=$(t),o=$(".dropdown-menu",t),a=n.parents("ul.nav");return a.height>0&&(e=a.data("dropdown-in")||null,i=a.data("dropdown-out")||null),{target:t,dropdown:n,dropdownMenu:o,effectIn:o.data("dropdown-in")||e,effectOut:o.data("dropdown-out")||i}}function dropdownEffectStart(t,e){e&&(t.dropdown.addClass("dropdown-animating"),t.dropdownMenu.addClass(["animated",e].join(" ")))}function dropdownEffectEnd(t,e){t.dropdown.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){t.dropdown.removeClass("dropdown-animating"),t.dropdownMenu.removeClass(["animated",t.effectIn,t.effectOut].join(" ")),"function"==typeof e&&e()})}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var i=0;i a").on("mouseenter",function(t){var e=$(this);$(".multi-level-dropdown .dropdown-submenu .dropdown-menu").removeClass("show"),e.next(".dropdown-menu").addClass("show"),t.stopPropagation()}),$(".multi-level-dropdown .dropdown").on("hidden.bs.dropdown",function(){$(".multi-level-dropdown .dropdown-menu.show").removeClass("show")}),function(t){var e=this;t(document).ready(function(){t(document).on("mouseenter",".fixed-action-btn",function(){var e=t(this);i(e)}),t(document).on("mouseleave",".fixed-action-btn",function(){var e=t(this);n(e)}),t(document).on("click",".fixed-action-btn > a",function(){var e=t(this).parent();e.hasClass("active")?i(e):n(e),e.hasClass("active")?n(e):i(e)})}),t.fn.extend({openFAB:function(){i(t(this))},closeFAB:function(){n(t(this))}});var i=function(t){var e=t;e.hasClass("active")||(e.addClass("active"),document.querySelectorAll("ul .btn-floating").forEach(function(t){t.classList.add("shown")}))},n=function(t){t.removeClass("active"),document.querySelectorAll("ul .btn-floating").forEach(function(t){t.classList.remove("shown")})};t(".fixed-action-btn:not(.smooth-scroll) > .btn-floating").on("click",function(o){if(!t(e).hasClass("smooth-scroll"))return o.preventDefault(),a=t(".fixed-action-btn"),(r=a).hasClass("active")?n(r):i(r),!1;var a,r})}(jQuery),function(t){var e=240,i=1440,n=300,o=200,a=50,r=200,s="easeOutQuad",l="easeOutCubic",c=!0,u=!1,d=function(){function d(h,p){_classCallCheck(this,d),this.defaults={MENU_WIDTH:e,edge:"left",closeOnClick:!1,breakpoint:i,timeDurationOpen:n,timeDurationClose:o,timeDurationOverlayOpen:a,timeDurationOverlayClose:r,easingOpen:s,easingClose:l,showOverlay:c,showCloseButton:u},this.$element=h,this.$elementCloned=h.clone().css({display:"inline-block",lineHeight:"24px"}),this.options=this.assignOptions(p),this.menuOut=!1,this.lastTouchVelocity={x:{startPosition:0,startTime:0,endPosition:0,endTime:0}},this.$body=t("body"),this.$menu=t("#".concat(this.$element.attr("data-activates"))),this.$sidenavOverlay=t("#sidenav-overlay"),this.$dragTarget=t(''),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 t=this;this.$dragTarget.on("click",function(){return t.removeMenu()}),this.$elementCloned.on("click",function(){return t.removeMenu()}),this.$dragTarget.on("touchstart",function(e){t.lastTouchVelocity.x.startPosition=e.touches[0].clientX,t.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(t){if("touchmove"===t.type){var e=t.touches[0],i=e.clientX;Date.now()-this.lastTouchVelocity.x.startTime>20&&(this.lastTouchVelocity.x.startPosition=e.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(t){if("touch"===t.gesture.pointerType){var e=t.gesture.center.x;this.disableScrolling(),0!==this.$sidenavOverlay.length||this.buildSidenavOverlay(),"left"===this.options.edge&&(e>this.options.MENU_WIDTH?e=this.options.MENU_WIDTH:e<0&&(e=0)),this.translateSidenavX(e),this.updateOverlayOpacity(e)}}},{key:"translateSidenavX",value:function(t){if("left"===this.options.edge){var e=t>=this.options.MENU_WIDTH/2;this.menuOut=e,this.$menu.css("transform","translateX(".concat(t-this.options.MENU_WIDTH,"px)"))}else{var i=t'),this.$sidenavOverlay.css("opacity",0).on("click",function(){return e.removeMenu()}),this.$body.append(this.$sidenavOverlay))}},{key:"disableScrolling",value:function(){var t=this.$body.innerWidth();this.$body.css("overflow","hidden"),this.$body.width(t)}},{key:"touchendEventHandler",value:function(t){if("touchend"===t.type){var e=t.changedTouches[0];this.lastTouchVelocity.x.endTime=Date.now(),this.lastTouchVelocity.x.endPosition=e.clientX;var i=this.calculateTouchVelocityX(),n=e.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(t){if("touch"===t.gesture.pointerType){var e=t.gesture.velocityX,i=t.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&&e<=.3||e<-.5?(0!==n&&this.translateMenuX([0,n],"300"),this.showSidenavOverlay()):(!this.menuOut||e>.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&&e>=-.3||e>.5?(this.translateMenuX([0,o],"300"),this.showSidenavOverlay(),this.$dragTarget.css({width:"50%",right:"",left:0})):(!this.menuOut||e<-.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(t,e){this.$menu.velocity({translateX:t},{duration:"string"==typeof e?Number(e):e,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(){t(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 e=this;this.$element.on("click",function(i){if(i.preventDefault(),!0===e.menuOut)e.removeMenu();else{e.menuOut=!0,!0===e.options.showOverlay?t("#sidenav-overlay").length||(e.$sidenavOverlay=t('
'),e.$body.append(e.$sidenavOverlay)):e.showCloseButton();var n=[];n="left"===e.options.edge?[0,-1*e.options.MENU_WIDTH]:[0,e.options.MENU_WIDTH],"matrix(1, 0, 0, 1, 0, 0)"!==e.$menu.css("transform")&&e.$menu.velocity({translateX:n},{duration:e.options.timeDurationOpen,queue:!1,easing:e.options.easingOpen}),e.$sidenavOverlay.on("click",function(){return e.removeMenu()}),e.$sidenavOverlay.on("touchmove",e.touchmoveEventHandler.bind(e)),e.$menu.on("touchmove",function(t){t.preventDefault(),e.$menu.find(".custom-scrollbar").css("padding-bottom","30px")}),e.menuOut=!0}})}},{key:"closeOnClick",value:function(){var t=this;!0===this.options.closeOnClick&&(this.$menu.on("click","a:not(.collapsible-header)",function(){return t.removeMenu()}),"translateX(0)"===this.$menu.css("transform")&&this.click(function(){return t.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 e=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(){e.$menu.addClass("transform-fix-input")}),t(window).resize(function(){if(window.innerWidth>e.options.breakpoint)e.$sidenavOverlay.length?e.removeMenu(!0):e.$menu.css("transform","translateX(0%)");else if(!1===e.menuOut){var t="left"===e.options.edge?"-100":"100";e.$menu.css("transform","translateX(".concat(t,"%)"))}}))}},{key:"setMenuWidth",value:function(){var i=t("#".concat(this.$menu.attr("id"))).find("> .sidenav-bg");this.options.MENU_WIDTH!==e&&(this.$menu.css("width",this.options.MENU_WIDTH),i.css("width",this.options.MENU_WIDTH))}},{key:"inputOnClick",value:function(){var t=this;this.$menu.find("input[type=text]").on("touchstart",function(){return t.$menu.css("transform","translateX(0)")})}},{key:"assignOptions",value:function(e){return t.extend({},this.defaults,e)}},{key:"removeMenu",value:function(t){var e=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===t&&(e.$menu.removeAttr("style"),e.$menu.css("width",e.options.MENU_WIDTH))}}),this.$menu.hasClass("transform-fix-input")&&this.$menu.removeClass("transform-fix-input"),this.hideSidenavOverlay(),this.menuOut=!1}}]),d}();t.fn.sideNav=function(e){return this.each(function(){new d(t(this),e)})}}(jQuery),$(function(t){t("#toggle").click(function(){t("#slide-out").hasClass("slim")?(t("#slide-out").removeClass("slim"),t(".sv-slim-icon").removeClass("fa-angle-double-right").addClass("fa-angle-double-left"),t(".fixed-sn .double-nav").css({transition:"all .3s ease-in-out","padding-left":"15.9rem"}),t(".fixed-sn main").css({transition:"all .3s ease-in-out","padding-left":"15rem"}),t(".fixed-sn footer").css({transition:"all .3s ease-in-out","padding-left":"15rem"})):(t("#slide-out").addClass("slim"),t(".sv-slim-icon").removeClass("fa-angle-double-left").addClass("fa-angle-double-right"),t(".fixed-sn .double-nav").css("padding-left","4.6rem"),t(".fixed-sn main").css("padding-left","3.7rem"),t(".fixed-sn footer").css("padding-left","3.7rem"))})}),function(t){t.fn.collapsible=function(e){var i={accordion:void 0};function n(e,i){$panelHeaders=e.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(){t(this).css("height","")}}):i.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(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(){t(this).css("height","")}})}function o(e){e.hasClass("active")?e.parent().addClass("active"):e.parent().removeClass("active"),e.parent().hasClass("active")?e.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height","")}}):e.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height","")}})}function a(t){return r(t).length>0}function r(t){return t.closest("li > .collapsible-header")}return e=t.extend(i,e),this.each(function(){var i=t(this),s=t(this).find("> li > .collapsible-header"),l=i.data("collapsible");i.off("click.collapse",".collapsible-header"),s.off("click.collapse"),e.accordion||"accordion"===l||void 0===l?((s=i.find("> li > .collapsible-header")).on("click.collapse",function(e){var o=t(e.target);a(o)&&(o=r(o)),o.toggleClass("active"),n(i,o)}),n(i,s.filter(".active").first())):s.each(function(){t(this).on("click.collapse",function(e){var i=t(e.target);a(i)&&(i=r(i)),i.toggleClass("active"),o(i)}),t(this).hasClass("active")&&o(t(this))})})},t(".collapsible").collapsible()}(jQuery),function(t){var e,i="input[type=range]:not(.custom-range):not(.multi-range)",n='
',o=!1;t(document).on("change",i,function(){var e=t(this);e.siblings(".thumb").find(".value").html(e.val())}),t(document).on("input mousedown touchstart",i,function(a){var r=t(this),s=r.siblings(".thumb"),l=r.outerWidth();if(!s.length&&function(){var e=t(n);t(i).after(e)}(),s.find(".value").html(r.val()),o=!0,r.addClass("active"),s.hasClass("active")||s.velocity({height:"30px",width:"30px",top:"-20px",marginLeft:"-15px"},{duration:300,easing:"easeOutExpo"}),"input"!==a.type){var c=void 0===a.pageX||null===a.pageX;(e=c?a.originalEvent.touches[0].pageX-t(this).offset().left:a.pageX-t(this).offset().left)<0?e=0:e>l&&(e=l),s.addClass("active").css("left",e)}s.find(".value").html(r.val())}),t(document).on("mouseup touchend",".range-field",function(){o=!1,t(this).removeClass("active")}),t(document).on("mousemove touchmove",".range-field",function(e){var n,a=t(this).children(".thumb");if(o){a.hasClass("active")||a.velocity({height:"30px",width:"30px",top:"-20px",marginLeft:"-15px"},{duration:300,easing:"easeOutExpo"}),n=void 0===e.pageX||null===e.pageX?e.originalEvent.touches[0].pageX-t(this).offset().left:e.pageX-t(this).offset().left;var r=t(this).outerWidth();n<0?n=0:n>r&&(n=r),a.addClass("active").css("left",n),a.find(".value").html(a.siblings(i).val())}}),t(document).on("mouseout touchleave",".range-field",function(){if(!o){var e=t(this).children(".thumb");e.hasClass("active")&&e.velocity({height:"0",width:"0",top:"10px",marginLeft:"-6px"},{duration:100}),e.removeClass("active")}})}(jQuery),function(t){t(document).on("change",'.file-field input[type="file"]',function(e){var i=t(e.target),n=i.closest(".file-field").find("input.file-path"),o=i[0].files,a=[];Array.isArray(o)?o.forEach(function(t){return a.push(t.name)}):Object.keys(o).forEach(function(t){a.push(o[t].name)}),n.val(a.join(", ")),n.trigger("change")})}(jQuery),function(t){var e,i=function(){function e(i,n){_classCallCheck(this,e),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.isEditable=Boolean(this.$nativeSelect.attr("editable")),this.selectAllLabel=Boolean(this.$nativeSelect.attr("selectAllLabel"))?this.$nativeSelect.attr("selectAllLabel"):"Select all",this.optionsSelectedLabel=Boolean(this.$nativeSelect.attr("optionsSelectedLabel"))?this.$nativeSelect.attr("optionsSelectedLabel"):"options selected",this.keyboardActiveClass=Boolean(this.$nativeSelect.attr("keyboardActiveClass"))?this.$nativeSelect.attr("keyboardActiveClass"):"heavy-rain-gradient",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=t('
'),this.$materialOptionsList=t('
')),this.$materialSelectInitialOption=i.find("option:selected").text()||i.find("option:first").text()||"",this.$nativeSelectChildren=this.$nativeSelect.children("option, optgroup"),this.$materialSelect=t('
')),this.$dropdownIcon=this.options.BSinputText?"":t('
▼'),this.$searchInput=null,this.$toggleAll=t('
")),this.$addOptionBtn=t('
'),this.mainLabel=this.$nativeSelect.next(".mdb-main-label"),this.$validFeedback=t('
'.concat(this.options.validFeedback||"Good choice","
")),this.$invalidFeedback=t('
'.concat(this.options.invalidFeedback||"Bad choice","
")),this.valuesSelected=[],this.keyCodes={tab:9,esc:27,enter:13,arrowUp:38,arrowDown:40},e.mutationObservers=[]}return _createClass(e,[{key:"assignOptions",value:function(e){return t.extend({},this.defaults,e)}},{key:"init",value:function(){if(Boolean(this.$nativeSelect.data("select-id"))&&this._removeMaterialWrapper(),this.options.destroy){var t=!!this.$nativeSelect.parent().find("button.btn-save").length&&this.$nativeSelect.parent().find("button.btn-save");return this.$nativeSelect.data("select-id",null).removeClass("initialized"),void this.$nativeSelect.parent().append(t)}this.options.BSsearchIn||this.options.BSinputText?this.$selectWrapper.addClass(this.$nativeSelect.attr("class").split(" ").filter(function(t){return"md-form"!==t}).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.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 e=this.$nativeSelect.data("select-id");this.$nativeSelect.parent().find("span.caret").remove(),this.$nativeSelect.parent().find("input").remove(),this.$nativeSelect.unwrap(),t("ul#select-options-".concat(e)).remove()}},{key:"renderMaterialSelect",value:function(){var t=this;if(this.$nativeSelect.before(this.$selectWrapper),this.appendDropdownIcon(),this.appendValidation(),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(e,i){var n=i.index;t._toggleSelectedValue(n),t.$materialOptionsList.find("li:not(.optgroup):not(.select-toggle-all)").eq(n).find(":checkbox").prop("checked",!0)});else{var e=this.$nativeSelect.find("option[selected]").first(),i=this.$nativeSelect.find("option").index(e.get(0));"disabled"!==e.attr("disabled")&&i>=0&&this._toggleSelectedValue(i)}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:"appendValidation",value:function(){this.options.validate&&(this.$validFeedback.insertAfter(this.$selectWrapper),this.$invalidFeedback.insertAfter(this.$selectWrapper))}},{key:"appendMaterialSelect",value:function(){this.$selectWrapper.append(this.$materialSelect)}},{key:"appendMaterialOptionsList",value:function(){this.isSearchable&&this.appendSearchInputOption(),this.isEditable&&this.isSearchable&&this.appendAddOptionBtn(),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 e=this.$nativeSelect.attr("searchable");this.options.BSsearchIn?this.$searchInput=t('
')):this.$searchInput=t('
')),this.$materialOptionsList.append(this.$searchInput),this.$searchInput.on("click",function(t){t.stopPropagation()})}},{key:"appendAddOptionBtn",value:function(){this.$searchInput.append(this.$addOptionBtn),this.$addOptionBtn.on("click",this.addNewOption.bind(this))}},{key:"addNewOption",value:function(){var e=this.$searchInput.find("input").val(),i=t('
")).prop("selected",!0);this.isMultple||this.$nativeSelectChildren.each(function(e,i){t(i).attr("selected",!1)}),this.$nativeSelect.append(i)}},{key:"appendToggleAllCheckbox",value:function(){var t=this.$materialOptionsList.find("li").first();t.hasClass("disabled")&&t.find("input").prop("disabled")?t.after(this.$toggleAll):this.$materialOptionsList.find("li").first().before(this.$toggleAll)}},{key:"appendSaveSelectButton",value:function(){this.$selectWrapper.parent().find("button.btn-save").appendTo(this.$materialOptionsList)}},{key:"buildMaterialOptions",value:function(){var e=this;this.$nativeSelectChildren.each(function(i,n){var o=t(n);if(o.is("option"))e.buildSingleOption(o,e.isMultiple?"multiple":"");else if(o.is("optgroup")){var a=t('
'.concat(o.attr("label"),""));e.$materialOptionsList.append(a),o.children("option").each(function(i,n){e.buildSingleOption(t(n),"optgroup-option")})}})}},{key:"buildSingleOption",value:function(e,i){var n=e.is(":disabled")?"disabled":"",o="optgroup-option"===i?"optgroup-option":"",a=e.data("icon"),r=e.data("fas")?'
'):"",s=e.data("far")?'
'):"",l=e.data("fab")?'
'):"",c=e.attr("class"),u=a?'

'):"",d=this.isMultiple?'
"):"";this.$materialOptionsList.append(t('
').concat(u,'').concat(d," ").concat(e.html()," ").concat(r," ").concat(s," ").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",e.clearMutationObservers(),e.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(e,n){t(n).on("click",i._onEachMaterialOptionClick.bind(i,e,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.bind(this)),t("html").on("click",this._onHTMLClick.bind(this))}},{key:"_onMutationObserverChange",value:function(i){i.forEach(function(i){var n=t(i.target).closest("select");!0!==n.data("stop-refresh")&&("childList"===i.type||"attributes"===i.type&&t(i.target).is("option"))&&(e.clearMutationObservers(),n.materialSelect({destroy:!0}),n.materialSelect())})}},{key:"_onSaveSelectBtnClick",value:function(){t("input.multi-bs-select").trigger("close"),this.$materialOptionsList.hide(),this.$materialSelect.removeClass("active")}},{key:"_onEachMaterialOptionClick",value:function(e,i,n){n.stopPropagation();var o=t(i);if(!o.hasClass("disabled")&&!o.hasClass("optgroup")){var a=!0;if(this.isMultiple){o.find('input[type="checkbox"]').prop("checked",function(t,e){return!e});var r=Boolean(this.$nativeSelect.find("optgroup").length),s=this._isToggleAllPresent()?o.index()-1:o.index();a=this.isSearchable&&r?this._toggleSelectedValue(s-o.prevAll(".optgroup").length-1):this.isSearchable?this._toggleSelectedValue(s-1):r?this._toggleSelectedValue(s-o.prevAll(".optgroup").length):this._toggleSelectedValue(s),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(e).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:"_escapeKeyboardActiveOptions",value:function(){var e=this;this.$materialOptionsList.find("li").each(function(i,n){t(n).removeClass(e.keyboardActiveClass)})}},{key:"_triggerChangeOnNativeSelect",value:function(){var t=new KeyboardEvent("change",{bubbles:!0,cancelable:!0});this.$nativeSelect.get(0).dispatchEvent(t)}},{key:"_onMaterialSelectFocus",value:function(e){var i=t(e.target);if(t("ul.select-dropdown").not(this.$materialOptionsList.get(0)).is(":visible")&&t("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 t(this).text().toLowerCase()===n.toLowerCase()})[0];this._selectSingleOption(o)}this.isMultiple||this.mainLabel.addClass("active"),t(document).find("input.select-dropdown").each(function(e,i){return t(i).val().length<=0}).parent().next(".mdb-main-label").filter(function(e,i){return t(i).prev().find("input.select-dropdown").val().length<=0&&!t(i).prev().find("input.select-dropdown").hasClass("active")}).removeClass("active")}},{key:"_onMaterialSelectClick",value:function(t){this.mainLabel.addClass("active"),t.stopPropagation()}},{key:"_onMaterialSelectBlur",value:function(e){var i=t(e);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(e){var i=e.target;t(".modal-content").find(this.$materialOptionsList).length&&i.scrollHeight>i.offsetHeight&&e.preventDefault()}},{key:"_onHTMLClick",value:function(e){t(e.target).closest("#select-options-".concat(this.uuid)).length||t(e.target).hasClass("mdb-select")||!t("#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(e){var i=this,n=t(this.$toggleAll).find('input[type="checkbox"]').first(),o=!t(n).prop("checked");t(n).prop("checked",o),this.$materialOptionsList.find("li:not(.optgroup):not(.select-toggle-all)").each(function(e,n){var a=t(n).find('input[type="checkbox"]');o&&a.is(":checked")||!o&&!a.is(":checked")||t(n).is(":hidden")||t(n).is(".disabled")||(a.prop("checked",o),i.$nativeSelect.find("option").eq(e).prop("selected",o),o?t(n).removeClass("active"):t(n).addClass("active"),i._toggleSelectedValue(e),i._selectOption(n),i._setValueToMaterialSelect())}),this.$nativeSelect.data("stop-refresh",!0),this._triggerChangeOnNativeSelect(),this.$nativeSelect.removeData("stop-refresh"),e.stopPropagation()}},{key:"_onMaterialSelectKeydown",value:function(e){var i=t(e.target),n=e.which===this.keyCodes.tab,o=e.which===this.keyCodes.esc,a=e.which===this.keyCodes.enter,r=a&&e.shiftKey,s=e.which===this.keyCodes.arrowUp,l=e.which===this.keyCodes.arrowDown,c=this.$materialOptionsList.is(":visible");n?this._handleTabKey(i):!l||c?a&&!c||(e.preventDefault(),r?this._handleEnterWithShiftKey(i):a?this._handleEnterKey(i):l?this._handleArrowDownKey():s?this._handleArrowUpKey():o?this._handleEscKey(i):this._handleLetterKey(e)):i.trigger("open")}},{key:"_handleTabKey",value:function(t){this._handleEscKey(t)}},{key:"_handleEnterWithShiftKey",value:function(t){this.isMultiple?this.$toggleAll.trigger("click"):this._handleEnterKey(t)}},{key:"_handleEnterKey",value:function(e){this.$materialOptionsList.find("li.selected:not(.disabled)").trigger("click").addClass("active"),this.isMultiple||t(e).trigger("close")}},{key:"_handleArrowDownKey",value:function(){var e=this,i=this.$materialOptionsList.find("li:visible").not(".disabled, .select-toggle-all"),n=this.$materialOptionsList.find("li:visible").not(".disabled, .select-toggle-all").first(),o=this.$materialOptionsList.find("li:visible").not(".disabled, .select-toggle-all").last(),a=this.$materialOptionsList.find("li.selected").length>0,r=a?this.$materialOptionsList.find("li.selected").first():n,s=r.next("li:visible:not(.disabled, .select-toggle-all)"),l=s;i.each(function(n,o){t(o).hasClass(e.keyboardActiveClass)&&(s=i.eq(n+1),l=i.eq(n))});var c=r.is(o)||!a?r:s;this._selectSingleOption(c),this._escapeKeyboardActiveOptions(),c.find("input").is(":checked")||c.removeClass(this.keyboardActiveClass),l.hasClass("selected")||l.find("input").is(":checked")||!this.isMultiple||l.removeClass("active",this.keyboardActiveClass),c.addClass(this.keyboardActiveClass),c.position()&&this.$materialOptionsList.scrollTop(this.$materialOptionsList.scrollTop()+c.position().top)}},{key:"_handleArrowUpKey",value:function(){var e=this,i=this.$materialOptionsList.find("li:visible").not(".disabled, .select-toggle-all"),n=this.$materialOptionsList.find("li:visible").not(".disabled, .select-toggle-all").first(),o=this.$materialOptionsList.find("li:visible").not(".disabled, .select-toggle-all").last(),a=this.$materialOptionsList.find("li.selected").length>0,r=a?this.$materialOptionsList.find("li.selected").first():o,s=r.prev("li:visible:not(.disabled, .select-toggle-all)"),l=s;i.each(function(n,o){t(o).hasClass(e.keyboardActiveClass)&&(s=i.eq(n-1),l=i.eq(n))});var c=r.is(n)||!a?r:s;this._selectSingleOption(c),this._escapeKeyboardActiveOptions(),c.find("input").is(":checked")||c.removeClass(this.keyboardActiveClass),l.hasClass("selected")||l.find("input").is(":checked")||!this.isMultiple||l.removeClass("active",this.keyboardActiveClass),c.addClass(this.keyboardActiveClass),c.position()&&this.$materialOptionsList.scrollTop(this.$materialOptionsList.scrollTop()+c.position().top)}},{key:"_handleEscKey",value:function(e){this._escapeKeyboardActiveOptions(),t(e).trigger("close")}},{key:"_handleLetterKey",value:function(e){var i=this;if(this._escapeKeyboardActiveOptions(),this.isSearchable){var n=e.which>46&&e.which<91,o=e.which>93&&e.which<106,a=8===e.which;(n||o)&&this.$searchInput.find("input").val(e.key).focus(),a&&this.$searchInput.find("input").val("").focus()}else{var r="",s=String.fromCharCode(e.which).toLowerCase(),l=Object.keys(this.keyCodes).map(function(t){return i.keyCodes[t]});if(s&&-1===l.indexOf(e.which)){r+=s;var c=this.$materialOptionsList.find("li").filter(function(e,i){return t(i).text().toLowerCase().includes(r)}).first();this.isMultiple||this.$materialOptionsList.find("li").removeClass("active"),c.addClass("active"),this._selectSingleOption(c)}}}},{key:"_onSearchInputKeyup",value:function(e){var i=t(e.target),n=e.which===this.keyCodes.tab,o=e.which===this.keyCodes.esc,a=e.which===this.keyCodes.enter,r=a&&e.shiftKey,s=e.which===this.keyCodes.arrowUp;if(e.which===this.keyCodes.arrowDown||n||o||s)return this.$materialSelect.focus(),void this._handleArrowDownKey();var l=i.closest("ul"),c=i.val(),u=l.find("li span.filtrable"),d=!1;if(u.each(function(){var e=t(this);if("string"==typeof this.outerHTML){var i=this.textContent.toLowerCase();i.includes(c.toLowerCase())?e.show().parent().show():e.hide().parent().hide(),i.trim()===c.toLowerCase()&&(d=!0)}}),a)return this.isEditable&&!d?void this.addNewOption():(r&&this._handleEnterWithShiftKey(i),void this.$materialSelect.trigger("open"));c&&this.isEditable&&!d?this.$addOptionBtn.show():this.$addOptionBtn.hide(),this._updateToggleAllOption()}},{key:"_isToggleAllPresent",value:function(){return this.$materialOptionsList.find(this.$toggleAll).length}},{key:"_updateToggleAllOption",value:function(){var t=this.$materialOptionsList.find("li").not(".select-toggle-all, .disabled, :hidden").find("[type=checkbox]"),e=t.filter(":checked"),i=this.$toggleAll.find("[type=checkbox]").is(":checked");e.length!==t.length||i?e.length
=5?"".concat(n," ").concat(i):e.substring(2)).length&&0===this.mainLabel.length&&(e=this.$nativeSelect.find("option:disabled").eq(0).text()),e.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(e)}},{key:"_randomUUID",value:function(){var t=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var i=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?i:3&i|8).toString(16)})}}],[{key:"clearMutationObservers",value:function(){e.mutationObservers.forEach(function(t){t.disconnect(),t.customStatus="stopped"})}}]),e}();t.fn.materialSelect=function(e){t(this).not(".browser-default").not(".custom-select").each(function(){new i(t(this),e).init()})},t.fn.material_select=t.fn.materialSelect,e=t.fn.val,t.fn.val=function(t){if(!arguments.length)return e.call(this);if(!0!==this.data("stop-refresh")&&this.hasClass("mdb-select")&&this.hasClass("initialized")){i.clearMutationObservers(),this.materialSelect({destroy:!0});var n=e.call(this,t);return this.materialSelect(),n}return e.call(this,t)}}(jQuery),$("select").siblings("input.select-dropdown","input.multi-bs-select").on("mousedown",function(t){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(t.clientX>=t.target.clientWidth||t.clientY>=t.target.clientHeight)&&t.preventDefault()}),function(t){"function"==typeof define&&define.amd?define("picker",["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):this.Picker=t(jQuery)}(function(t){var e=t(window),i=t(document),n=t(document.documentElement),o=null!=document.documentElement.style.transition;function a(e,n,c,d){if(!e)return a;var h=!1,p={id:e.id||"P"+Math.abs(~~(Math.random()*new Date)),handlingOpen:!1},f=c?t.extend(!0,{},c.defaults,d):d||{},m=t.extend({},a.klasses(),f.klass),g=t(e),v=2,y=function(){return this.start()},b=y.prototype={constructor:y,$node:g,start:function(){return p&&p.start?b:(p.methods={},p.start=!0,p.open=!1,p.type=e.type,e.autofocus=e==u(),e.readOnly=!f.editable,e.id=e.id||p.id,"text"!=e.type&&(e.type="text"),b.component=new c(b,f),b.$root=t(''),l(b.$root[0],"hidden",!0),b.$holder=t(x()).appendTo(b.$root),w(),f.formatSubmit&&function(){var i;!0===f.hiddenName?(i=e.name,e.name=""):i=(i=["string"==typeof f.hiddenPrefix?f.hiddenPrefix:"","string"==typeof f.hiddenSuffix?f.hiddenSuffix:"_submit"])[0]+e.name+i[1];b._hidden=t('
")[0],g.on("change."+p.id,function(){b._hidden.value=e.value?b.get("select",f.formatSubmit):""})}(),function(){g.data(n,b).addClass(m.input).val(g.data("value")?b.get("select",f.format):e.value).on("focus."+p.id+" click."+p.id,(i=function(t){t.preventDefault(),b.open()},o=100,function(){var t=this,e=arguments,n=a&&!r;clearTimeout(r),r=setTimeout(function(){r=null,a||i.apply(t,e)},o),n&&i.apply(t,e)})).on("mousedown",function(){p.handlingOpen=!0;var e=function(){setTimeout(function(){t(document).off("mouseup",e),p.handlingOpen=!1},0)};t(document).on("mouseup",e)}),f.editable||g.on("keydown."+p.id,C);var i,o,a,r;l(e,{haspopup:!0,expanded:!1,readonly:!1,owns:e.id+"_root"})}(),f.containerHidden?t(f.containerHidden).append(b._hidden):g.after(b._hidden),f.container?t(f.container).append(b.$root):g.after(b.$root),b.on({start:b.component.onStart,render:b.component.onRender,stop:b.component.onStop,open:b.component.onOpen,close:b.component.onClose,set:b.component.onSet}).on({start:f.onStart,render:f.onRender,stop:f.onStop,open:f.onOpen,close:f.onClose,set:f.onSet}),h=function(t){var e;t.currentStyle?e=t.currentStyle.position:window.getComputedStyle&&(e=getComputedStyle(t).position);return"fixed"==e}(b.$holder[0]),e.autofocus&&b.open(),b.trigger("start").trigger("render"))},render:function(e){return e?(b.$holder=t(x()),w(),b.$root.html(b.$holder)):b.$root.find("."+m.box).html(b.component.nodes(p.open)),b.trigger("render")},stop:function(){return p.start?(b.close(),b._hidden&&b._hidden.parentNode.removeChild(b._hidden),b.$root.remove(),g.removeClass(m.input).removeData(n),setTimeout(function(){g.off("."+p.id)},0),e.type=p.type,e.readOnly=!1,b.trigger("stop"),p.methods={},p.start=!1,b):b},open:function(n){return v++,p.open?b:v<4&&f.editable?b:(setTimeout(function(){b.$root.addClass(m.opened),l(b.$root[0],"hidden",!1)},0),!1!==n&&(p.open=!0,h&&t("body").css("overflow","hidden").css("padding-right","+="+r()),h&&o?b.$holder.find("."+m.frame).one("transitionend",function(){b.$holder.eq(0).focus()}):setTimeout(function(){b.$holder.eq(0).focus()},0),i.on("click."+p.id+" focusin."+p.id,function(t){if(!p.handlingOpen){var i=s(t,e);t.isSimulated||i==e||i==document||3==t.which||b.close(i===b.$holder[0])}}).on("keydown."+p.id,function(i){var n=i.keyCode,o=b.component.key[n],r=s(i,e);27==n?b.close(!0):r!=b.$holder[0]||!o&&13!=n?t.contains(b.$root[0],r)&&13==n&&(i.preventDefault(),r.click()):(i.preventDefault(),o?a._.trigger(b.component.key.go,b,[a._.trigger(o)]):b.$root.find("."+m.highlighted).hasClass(m.disabled)||(b.set("select",b.component.item.highlight),f.closeOnSelect&&b.close(!0)))})),b.trigger("open"))},close:function(n){return v=0,n&&(f.editable?(e.click(),p.open=!1):(b.$holder.off("focus.toOpen").focus(),setTimeout(function(){b.$holder.on("focus.toOpen",k)},0))),g.removeClass(m.active),l(e,"expanded",!1),setTimeout(function(){b.$root.removeClass(m.opened+" "+m.focused),l(b.$root[0],"hidden",!0)},0),p.open?(p.open=!1,h&&t("body").css("overflow","").css("padding-right","-="+r()),document.activeElement.blur(),i.off("."+p.id),b.trigger("close")):b},clear:function(t){return document.activeElement.blur(),b.set("clear",null,t)},set:function(e,i,n){var o,a,r=t.isPlainObject(e),s=r?e:{};if(n=r&&t.isPlainObject(i)?i:n||{},e){for(o in r||(s[e]=i),s)a=s[o],o in b.component.item&&(void 0===a&&(a=null),b.component.set(o,a,n)),"select"!=o&&"clear"!=o||!f.updateInput||g.val("clear"==o?"":b.get(o,f.format)).trigger("change");b.render()}return n.muted?b:b.trigger("set",s)},get:function(t,i){if(null!=p[t=t||"value"])return p[t];if("valueSubmit"==t){if(b._hidden)return b._hidden.value;t="value"}if("value"==t)return e.value;if(t in b.component.item){if("string"==typeof i){var n=b.component.get(t);return n?a._.trigger(b.component.formats.toString,b.component,[i,n]):""}return b.component.get(t)}},on:function(e,i,n){var o,a,r=t.isPlainObject(e),s=r?e:{};if(e)for(o in r||(s[e]=i),s)a=s[o],n&&(o="_"+o),p.methods[o]=p.methods[o]||[],p.methods[o].push(a);return b},off:function(){var t,e,i=arguments;for(t=0,namesCount=i.length;t
').appendTo("body"),o=i[0].offsetWidth;i.css("overflow","scroll");var a=t('').appendTo(i)[0].offsetWidth;return i.remove(),o-a}function s(t,e){var i=[];return t.path&&(i=t.path),t.originalEvent&&t.originalEvent.path&&(i=t.originalEvent.path),i&&i.length>0?e&&i.indexOf(e)>=0?e:i[0]:t.target}function l(e,i,n){if(t.isPlainObject(i))for(var o in i)c(e,o,i[o]);else c(e,i,n)}function c(t,e,i){t.setAttribute(("role"==e?"":"aria-")+e,i)}function u(){try{return document.activeElement}catch(t){}}return a.klasses=function(t){return{picker:t=t||"picker",opened:t+"--opened",focused:t+"--focused",input:t+"__input",active:t+"__input--active",target:t+"__input--target",holder:t+"__holder",frame:t+"__frame",wrap:t+"__wrap",box:t+"__box"}},a._={group:function(t){for(var e,i="",n=a._.trigger(t.min,t);n<=a._.trigger(t.max,t,[n]);n+=t.i)e=a._.trigger(t.item,t,[n]),i+=a._.node(t.node,e[0],e[1],e[2]);return i},node:function(e,i,n,o){return i?"<"+e+(n=n?' class="'+n+'"':"")+(o=o?" "+o:"")+">"+(i=t.isArray(i)?i.join(""):i)+"":""},lead:function(t){return(t<10?"0":"")+t},trigger:function(t,e,i){return"function"==typeof t?t.apply(e,i||[]):t},digits:function(t){return/\d/.test(t[1])?2:1},isDate:function(t){return{}.toString.call(t).indexOf("Date")>-1&&this.isInteger(t.getDate())},isInteger:function(t){return{}.toString.call(t).indexOf("Number")>-1&&t%1==0},ariaAttr:function(e,i){t.isPlainObject(e)||(e={attribute:i});for(var n in i="",e){var o=("role"==n?"":"aria-")+n,a=e[n];i+=null==a?"":o+'="'+e[n]+'"'}return i}},a.extend=function(e,i){t.fn[e]=function(n,o){var r=this.data(e);return"picker"==n?r:r&&"string"==typeof n?a._.trigger(r[n],r,[o]):this.each(function(){t(this).data(e)||new a(this,e,i,n)})},t.fn[e].defaults=i.defaults},a}),function(t){"function"==typeof define&&define.amd?define(["picker","jquery"],t):"object"==typeof exports?module.exports=t(require("./picker.js"),require("jquery")):t(Picker,jQuery)}(function(t,e){var i,n=t._;function o(t,e){var i,n=this,o=t.$node[0],a=o.value,r=t.$node.data("value"),s=r||a,l=r?e.formatSubmit:e.format,c=function(){return o.currentStyle?"rtl"==o.currentStyle.direction:"rtl"==getComputedStyle(t.$root[0]).direction};n.settings=e,n.$node=t.$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=(e.disable||[]).slice(0),n.item.enable=-(!0===(i=n.item.disable)[0]?i.shift():-1),n.set("min",e.min).set("max",e.max).set("now"),s?n.set("select",s,{format:l,defaultValue:!0}):n.set("select",null).set("highlight",n.item.now),n.key={40:7,38:-7,39:function(){return c()?-1:1},37:function(){return c()?1:-1},go:function(t){var e=n.item.highlight,i=new Date(e.year,e.month,e.date+t);n.set("highlight",i,{interval:t}),this.render()}},t.on("render",function(){t.$root.find("."+e.klass.selectMonth).on("change",function(){var i=this.value;i&&(t.set("highlight",[t.get("view").year,i,t.get("highlight").date]),t.$root.find("."+e.klass.selectMonth).trigger("focus"))}),t.$root.find("."+e.klass.selectYear).on("change",function(){var i=this.value;i&&(t.set("highlight",[i,t.get("view").month,t.get("highlight").date]),t.$root.find("."+e.klass.selectYear).trigger("focus"))})},1).on("open",function(){var i="";n.disabled(n.get("now"))&&(i=":not(."+e.klass.buttonToday+")"),t.$root.find("button"+i+", select").attr("disabled",!1)},1).on("close",function(){t.$root.find("button, select").attr("disabled",!0)},1)}o.prototype.set=function(t,e,i){var n=this,o=n.item;return null===e?("clear"==t&&(t="select"),o[t]=e,n):(o["enable"==t?"disable":"flip"==t?"enable":t]=n.queue[t].split(" ").map(function(o){return e=n[o](t,e,i)}).pop(),"select"==t?n.set("highlight",o.select,i):"highlight"==t?n.set("view",o.highlight,i):t.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(t){return this.item[t]},o.prototype.create=function(t,i,o){var a;return(i=void 0===i?t:i)==-1/0||i==1/0?a=i:e.isPlainObject(i)&&n.isInteger(i.pick)?i=i.obj:e.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(t,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(t,i){var o=this,a=function(t){return!0===t||e.isArray(t)||n.isDate(t)?o.create(t):t};return n.isInteger(t)||(t=a(t)),n.isInteger(i)||(i=a(i)),n.isInteger(t)&&e.isPlainObject(i)?t=[i.year,i.month,i.date+t]:n.isInteger(i)&&e.isPlainObject(t)&&(i=[t.year,t.month,t.date+i]),{from:a(t),to:a(i)}},o.prototype.withinRange=function(t,e){return t=this.createRange(t.from,t.to),e.pick>=t.from.pick&&e.pick<=t.to.pick},o.prototype.overlapRanges=function(t,e){return t=this.createRange(t.from,t.to),e=this.createRange(e.from,e.to),this.withinRange(t,e.from)||this.withinRange(t,e.to)||this.withinRange(e,t.from)||this.withinRange(e,t.to)},o.prototype.now=function(t,e,i){return e=new Date,i&&i.rel&&e.setDate(e.getDate()+i.rel),this.normalize(e,i)},o.prototype.navigate=function(t,i,n){var o,a,r,s,l=e.isArray(i),c=e.isPlainObject(i),u=this.item.view;if(l||c){for(c?(a=i.year,r=i.month,s=i.date):(a=+i[0],r=+i[1],s=+i[2]),n&&n.nav&&u&&u.month!==r&&(a=u.year,r=u.month),a=(o=new Date(a,r+(n&&n.nav?n.nav:0),1)).getFullYear(),r=o.getMonth();new Date(a,r,s).getMonth()!==r;)s-=1;i=[a,r,s]}return i},o.prototype.normalize=function(t){return t.setHours(0,0,0,0),t},o.prototype.measure=function(t,e){return n.isInteger(e)?e=this.now(t,e,{rel:e}):e?"string"==typeof e&&(e=this.parse(t,e)):e="min"==t?-1/0:1/0,e},o.prototype.viewset=function(t,e){return this.create([e.year,e.month,1])},o.prototype.validate=function(t,i,o){var a,r,s,l,c=this,u=i,d=o&&o.interval?o.interval:1,h=-1===c.item.enable,p=c.item.min,f=c.item.max,m=h&&c.item.disable.filter(function(t){if(e.isArray(t)){var o=c.create(t).pick;o
i.pick&&(r=!0)}return n.isInteger(t)}).length;if((!o||!o.nav&&!o.defaultValue)&&(!h&&c.disabled(i)||h&&c.disabled(i)&&(m||a||r)||!h&&(i.pick<=p.pick||i.pick>=f.pick)))for(h&&!m&&(!r&&d>0||!a&&d<0)&&(d*=-1);c.disabled(i)&&(Math.abs(d)>1&&(i.monthu.month)&&(i=u,d=d>0?1:-1),i.pick<=p.pick?(s=!0,d=1,i=c.create([p.year,p.month,p.date+(i.pick===p.pick?0:-1)])):i.pick>=f.pick&&(l=!0,d=-1,i=c.create([f.year,f.month,f.date+(i.pick===f.pick?0:1)])),!s||!l);)i=c.create([i.year,i.month,i.date+d]);return i},o.prototype.disabled=function(t){var i=this,o=i.item.disable.filter(function(o){return n.isInteger(o)?t.day===(i.settings.firstDay?o:o-1)%7:e.isArray(o)||n.isDate(o)?t.pick===i.create(o).pick:e.isPlainObject(o)?i.withinRange(o,t):void 0});return o=o.length&&!o.filter(function(t){return e.isArray(t)&&"inverted"==t[3]||e.isPlainObject(t)&&t.inverted}).length,-1===i.item.enable?!o:o||t.picki.item.max.pick},o.prototype.parse=function(t,e,i){var o=this,a={};return e&&"string"==typeof e?(i&&i.format||((i=i||{}).format=o.settings.format),o.formats.toArray(i.format).map(function(t){var i=o.formats[t],r=i?n.trigger(i,o,[e,a]):t.replace(/^!/,"").length;i&&(a[t]=e.substr(0,r)),e=e.substr(r)}),[a.yyyy||a.yy,+(a.mm||a.m)-1,a.dd||a.d]):e},o.prototype.formats=function(){function t(t,e,i){var n=t.match(/[^\x00-\x7F]+|\w+/)[0];return i.mm||i.m||(i.m=e.indexOf(n)+1),n.length}function e(t){return t.match(/\w+/)[0].length}return{d:function(t,e){return t?n.digits(t):e.date},dd:function(t,e){return t?2:n.lead(e.date)},ddd:function(t,i){return t?e(t):this.settings.weekdaysShort[i.day]},dddd:function(t,i){return t?e(t):this.settings.weekdaysFull[i.day]},m:function(t,e){return t?n.digits(t):e.month+1},mm:function(t,e){return t?2:n.lead(e.month+1)},mmm:function(e,i){var n=this.settings.monthsShort;return e?t(e,n,i):n[i.month]},mmmm:function(e,i){var n=this.settings.monthsFull;return e?t(e,n,i):n[i.month]},yy:function(t,e){return t?2:(""+e.year).slice(2)},yyyy:function(t,e){return t?4:e.year},toArray:function(t){return t.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(t,e){var i=this;return i.formats.toArray(t).map(function(t){return n.trigger(i.formats[t],i,[0,e])||t.replace(/^!/,"")}).join("")}}}(),o.prototype.isDateExact=function(t,i){return n.isInteger(t)&&n.isInteger(i)||"boolean"==typeof t&&"boolean"==typeof i?t===i:(n.isDate(t)||e.isArray(t))&&(n.isDate(i)||e.isArray(i))?this.create(t).pick===this.create(i).pick:!(!e.isPlainObject(t)||!e.isPlainObject(i))&&(this.isDateExact(t.from,i.from)&&this.isDateExact(t.to,i.to))},o.prototype.isDateOverlap=function(t,i){var o=this.settings.firstDay?1:0;return n.isInteger(t)&&(n.isDate(i)||e.isArray(i))?(t=t%7+o)===this.create(i).day+1:n.isInteger(i)&&(n.isDate(t)||e.isArray(t))?(i=i%7+o)===this.create(t).day+1:!(!e.isPlainObject(t)||!e.isPlainObject(i))&&this.overlapRanges(t,i)},o.prototype.flipEnable=function(t){var e=this.item;e.enable=t||(-1==e.enable?1:-1)},o.prototype.deactivate=function(t,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(t){for(var i,r=0;r=p.year&&u.month>=p.month||!t&&u.year<=h.year&&u.month<=h.month?" "+a.klass.navDisabled:""),"data-nav="+(t||-1)+" "+n.ariaAttr({role:"button",controls:o.$node[0].id+"_table"})+' title="'+(t?a.labelMonthNext:a.labelMonthPrev)+'"')},g=function(){var e=a.showMonthsShort?a.monthsShort:a.monthsFull;return a.selectMonths?n.node("select",n.group({min:0,max:11,i:1,node:"option",item:function(t){return[e[t],0,"value="+t+(u.month==t?" selected":"")+(u.year==h.year&&tp.month?" disabled":"")]}}),a.klass.selectMonth,(t?"":"disabled")+" "+n.ariaAttr({controls:o.$node[0].id+"_table"})+' title="'+a.labelMonthSelect+'"'):n.node("div",e[u.month],a.klass.month)},v=function(){var e=u.year,i=!0===a.selectYears?5:~~(a.selectYears/2);if(i){var r=h.year,s=p.year,l=e-i,c=e+i;if(r>l&&(c+=r-l,l=r),sf?f:d,c=s}return n.node("select",n.group({min:l,max:c,i:1,node:"option",item:function(t){return[t,0,"value="+t+(e==t?" selected":"")]}}),a.klass.selectYear,(t?"":"disabled")+" "+n.ariaAttr({controls:o.$node[0].id+"_table"})+' title="'+a.labelYearSelect+'"')}return n.node("div",e,a.klass.year)};return n.node("div",(a.selectYears?v()+g():g()+v())+m()+m(1),a.klass.header)+n.node("table",f+n.node("tbody",n.group({min:0,max:5,i:1,node:"tr",item:function(t){var e=a.firstDay&&0===o.create([u.year,u.month,1]).day?-7:0;return[n.group({min:7*t-u.day+e+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(t){t=o.create([u.year,u.month,t+(a.firstDay?1:0)]);var e,i=l&&l.pick==t.pick,r=c&&c.pick==t.pick,f=d&&o.disabled(t)||t.pickp.pick,m=n.trigger(o.formats.toString,o,[a.format,t]);return[n.node("div",t.date,(e=[a.klass.day],e.push(u.month==t.month?a.klass.infocus:a.klass.outfocus),s.pick==t.pick&&e.push(a.klass.now),i&&e.push(a.klass.selected),r&&e.push(a.klass.highlighted),f&&e.push(a.klass.disabled),e.join(" ")),"data-pick="+t.pick+" "+n.ariaAttr({role:"gridcell",label:m,selected:!(!i||o.$node.val()!==m)||null,activedescendant:!!r||null,disabled:!!f||null})),"",n.ariaAttr({role:"presentation"})]}})]}})),a.klass.table,'id="'+o.$node[0].id+'_table" '+n.ariaAttr({role:"grid",controls:o.$node[0].id,readonly:!0}))+n.node("div",n.node("button",a.today,a.klass.buttonToday,"type=button data-pick="+s.pick+(t&&!o.disabled(s)?"":" disabled")+" "+n.ariaAttr({controls:o.$node[0].id}))+n.node("button",a.clear,a.klass.buttonClear,"type=button data-clear=1"+(t?"":" disabled")+" "+n.ariaAttr({controls:o.$node[0].id}))+n.node("button",a.close,a.klass.buttonClose,"type=button data-close=true "+(t?"":" disabled")+" "+n.ariaAttr({controls:o.$node[0].id})),a.klass.footer)},o.defaults={labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,updateInput:!0,format:"d mmmm, yyyy",klass:{table:(i=t.klasses().picker+"__")+"table",header:i+"header",navPrev:i+"nav--prev btn btn-flat",navNext:i+"nav--next btn btn-flat",navDisabled:i+"nav--disabled",month:i+"month",year:i+"year",selectMonth:i+"select--month",selectYear:i+"select--year",weekdays:i+"weekday",day:i+"day",disabled:i+"day--disabled",selected:i+"day--selected",highlighted:i+"day--highlighted",now:i+"day--today",infocus:i+"day--infocus",outfocus:i+"day--outfocus",footer:i+"footer",buttonClear:i+"button--clear",buttonToday:i+"button--today",buttonClose:i+"button--close"}},t.extend("pickadate",o)}),$.extend($.fn.pickadate.defaults,{selectMonths:!0,selectYears:15,onRender:function(){var t=this.$root,e=this.get("highlight","yyyy"),i=this.get("highlight","dd"),n=this.get("highlight","mmm"),o=this.get("highlight","dddd").slice(0,3),a=n.charAt(0).toUpperCase()+n.slice(1);t.find(".picker__header").prepend('")}}),function(){var t,e,i,n=window.jQuery,o=n(window),a=n(document),r="http://www.w3.org/2000/svg",s="SVGAngle"in window&&((e=document.createElement("div")).innerHTML="",t=(e.firstChild&&e.firstChild.namespaceURI)==r,e.innerHTML="",t),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":""),h="mouseup.clockpicker"+(c?" touchend.clockpicker":""),p=navigator.vibrate?"vibrate":navigator.webkitVibrate?"webkitVibrate":null;function f(t){return document.createElementNS(r,t)}function m(t,e,i){var n;return function(){var o=this,a=arguments,r=i&&!n;clearTimeout(n),n=setTimeout(function(){n=null,i||t.apply(o,a)},e),r&&t.apply(o,a)}}function g(t){return(t<10?"0":"")+t}var v=0;var y=135,b=110,x=80,w=20,k=2*y,C=l?350:1,S=['"].join("");function M(t,e){var i,o,r=n(S),l=r.find(".clockpicker-plate"),c=r.find(".picker__holder"),p=r.find(".clockpicker-hours"),M=r.find(".clockpicker-minutes"),A=r.find(".clockpicker-am-pm-block"),I="INPUT"===t.prop("tagName"),P=I?t:t.find("input"),O=(P.prop("type"),n("label[for="+P.attr("id")+"]")),_=this;if(this.id=(o=++v+"",(i="cp")?i+o:o),this.element=t,this.holder=c,this.options=e,this.isAppended=!1,this.isShown=!1,this.currentView="hours",this.isInput=I,this.input=P,this.label=O,this.popover=r,this.plate=l,this.hoursView=p,this.minutesView=M,this.amPmBlock=A,this.spanHours=r.find(".clockpicker-span-hours"),this.spanMinutes=r.find(".clockpicker-span-minutes"),this.spanAmPm=r.find(".clockpicker-span-am-pm"),this.footer=r.find(".picker__footer"),this.amOrPm="",e.twelvehour){var D=['','",'","
"].join("");n(D);e.ampmclickable?(this.spanAmPm.empty(),n('AM
').on("click",function(){_.spanAmPm.children("#click-am").addClass("text-primary"),_.spanAmPm.children("#click-pm").removeClass("text-primary"),_.amOrPm="AM"}).appendTo(this.spanAmPm),n('PM
').on("click",function(){_.spanAmPm.children("#click-pm").addClass("text-primary"),_.spanAmPm.children("#click-am").removeClass("text-primary"),_.amOrPm="PM"}).appendTo(this.spanAmPm)):(n('').on("click",function(){_.amOrPm="AM",_.amPmBlock.children(".pm-button").removeClass("active"),_.amPmBlock.children(".am-button").addClass("active"),_.spanAmPm.empty().append("AM")}).appendTo(this.amPmBlock),n('').on("click",function(){_.amOrPm="PM",_.amPmBlock.children(".am-button").removeClass("active"),_.amPmBlock.children(".pm-button").addClass("active"),_.spanAmPm.empty().append("PM")}).appendTo(this.amPmBlock))}e.darktheme&&r.addClass("darktheme"),n('").click(n.proxy(this.done,this)).appendTo(this.footer),n('").click(n.proxy(this.clearInput,this)).appendTo(this.footer),this.spanHours.click(n.proxy(this.toggleView,this,"hours")),this.spanMinutes.click(n.proxy(this.toggleView,this,"minutes")),P.on("click.clockpicker",m(n.proxy(this.show,this),100));var E,L,$,F,R=n('');if(e.twelvehour)for(E=0;E<12;E+=e.hourstep)L=R.clone(),$=E/6*Math.PI,F=b,L.css("font-size","140%"),L.css({left:y+Math.sin($)*F-w,top:y-Math.cos($)*F-w}),L.html(0===E?12:E),p.append(L),L.on(u,N);else for(E=0;E<24;E+=e.hourstep){L=R.clone(),$=E/6*Math.PI;var W=E>0&&E<13;F=W?x:b,L.css({left:y+Math.sin($)*F-w,top:y-Math.cos($)*F-w}),W&&L.css("font-size","120%"),L.html(0===E?"00":E),p.append(L),L.on(u,N)}var V=Math.max(e.minutestep,5);for(E=0;E<60;E+=V)for(E=0;E<60;E+=5)L=R.clone(),$=E/30*Math.PI,L.css({left:y+Math.sin($)*b-w,top:y-Math.cos($)*b-w}),L.css("font-size","140%"),L.html(g(E)),M.append(L),L.on(u,N);function N(t,i){var n=l.offset(),o=/^touch/.test(t.type),r=n.left+y,c=n.top+y,u=(o?t.originalEvent.touches[0]:t).pageX-r,p=(o?t.originalEvent.touches[0]:t).pageY-c,f=Math.sqrt(u*u+p*p),m=!1;if(!i||!(fb+w)){t.preventDefault();var g=setTimeout(function(){_.popover.addClass("clockpicker-moving")},200);s&&l.append(_.canvas),_.setHand(u,p,!i,!0),a.off(d).on(d,function(t){t.preventDefault();var e=/^touch/.test(t.type),i=(e?t.originalEvent.touches[0]:t).pageX-r,n=(e?t.originalEvent.touches[0]:t).pageY-c;(m||i!==u||n!==p)&&(m=!0,_.setHand(i,n,!1,!0))}),a.off(h).on(h,function(t){a.off(h),t.preventDefault();var n=/^touch/.test(t.type),o=(n?t.originalEvent.changedTouches[0]:t).pageX-r,s=(n?t.originalEvent.changedTouches[0]:t).pageY-c;(i||m)&&o===u&&s===p&&_.setHand(o,s),"hours"===_.currentView?_.toggleView("minutes",C/2):e.autoclose&&(_.minutesView.addClass("clockpicker-dial-out"),setTimeout(function(){_.done()},C/2)),l.prepend(H),clearTimeout(g),_.popover.removeClass("clockpicker-moving"),a.off(d)})}}if(l.on(u,function(t){0===n(t.target).closest(".clockpicker-tick").length&&N(t,!0)}),s){var H=r.find(".clockpicker-canvas"),z=f("svg");z.setAttribute("class","clockpicker-svg"),z.setAttribute("width",k),z.setAttribute("height",k);var B=f("g");B.setAttribute("transform","translate("+y+","+y+")");var j=f("circle");j.setAttribute("class","clockpicker-canvas-bearing"),j.setAttribute("cx",0),j.setAttribute("cy",0),j.setAttribute("r",2);var Y=f("line");Y.setAttribute("x1",0),Y.setAttribute("y1",0);var q=f("circle");q.setAttribute("class","clockpicker-canvas-bg"),q.setAttribute("r",w);var X=f("circle");X.setAttribute("class","clockpicker-canvas-fg"),X.setAttribute("r",5),B.appendChild(Y),B.appendChild(q),B.appendChild(X),B.appendChild(j),z.appendChild(B),H.append(z),this.hand=Y,this.bg=q,this.fg=X,this.bearing=j,this.g=B,this.canvas=H}T(this.options.init)}function T(t){t&&"function"==typeof t&&t()}M.DEFAULTS={default:"",fromnow:0,donetext:"Done",cleartext:"Clear",autoclose:!1,ampmclickable:!1,darktheme:!1,twelvehour:!1,vibrate:!0,hourstep:1,minutestep:1,ampmSubmit:!1},M.prototype.toggle=function(){this[this.isShown?"hide":"show"]()},M.prototype.locate=function(){var t=this.element,e=this.popover;t.offset(),t.outerWidth(),t.outerHeight(),this.options.align;e.show()},M.prototype.parseInputValue=function(){var t=this.input.prop("value")||this.options.default||"";if("now"===t&&(t=new Date(+new Date+this.options.fromnow)),t instanceof Date&&(t=t.getHours()+":"+t.getMinutes()),t=t.split(":"),this.hours=+t[0]||0,this.minutes=+(t[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 e=(t[1]+"").replace(/\d+/g,"").toLowerCase();this.amOrPm=this.hours>12||"pm"===e?"PM":"AM"}},M.prototype.show=function(t){if(!this.isShown){T(this.options.beforeShow),n(":input").each(function(){n(this).attr("tabindex",-1)});var e=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(){e.isShown&&e.locate()}),this.isAppended=!0),this.parseInputValue(),this.spanHours.html(g(this.hours)),this.spanMinutes.html(g(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(t){var i=n(t.target);0===i.closest(e.popover.find(".picker__wrap")).length&&0===i.closest(e.input).length&&e.hide()},100)),a.on("keyup.clockpicker."+this.id,m(function(t){27===t.keyCode&&e.hide()},100)),T(this.options.afterShow)}},M.prototype.hide=function(){T(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(t){n(this).attr("tabindex",t+1)}),a.off("click.clockpicker."+this.id+" focusin.clockpicker."+this.id),a.off("keyup.clockpicker."+this.id),this.popover.hide(),T(this.options.afterHide)},M.prototype.toggleView=function(t,e){var i=!1;"minutes"===t&&"visible"===n(this.hoursView).css("visibility")&&(T(this.options.beforeHourSelect),i=!0);var o="hours"===t,a=o?this.hoursView:this.minutesView,r=o?this.minutesView:this.hoursView;this.currentView=t,this.spanHours.toggleClass("text-primary",o),this.spanMinutes.toggleClass("text-primary",!o),r.addClass("clockpicker-dial-out"),a.css("visibility","visible").removeClass("clockpicker-dial-out"),this.resetClock(e),clearTimeout(this.toggleViewTimer),this.toggleViewTimer=setTimeout(function(){r.css("visibility","hidden")},C),i&&T(this.options.afterHourSelect)},M.prototype.resetClock=function(t){var e=this.currentView,i=this[e],n="hours"===e,o=i*(Math.PI/(n?6:30)),a=n&&i>0&&i<13?x:b,r=Math.sin(o)*a,l=-Math.cos(o)*a,c=this;s&&t?(c.canvas.addClass("clockpicker-canvas-out"),setTimeout(function(){c.canvas.removeClass("clockpicker-canvas-out"),c.setHand(r,l)},t)):this.setHand(r,l)},M.prototype.setHand=function(t,e,i,o){var a,r,l=Math.atan2(t,-e),c="hours"===this.currentView,u=Math.sqrt(t*t+e*e),d=this.options,h=c&&u<(b+x)/2,f=h?x:b;if(a=c?d.hourstep/6*Math.PI:d.minutestep/30*Math.PI,d.twelvehour&&(f=b),l<0&&(l=2*Math.PI+l),l=(r=Math.round(l/a))*a,c?(r*=d.hourstep,d.twelvehour||!h!=r>0||(r+=12),d.twelvehour&&0===r&&(r=12),24===r&&(r=0)):60===(r*=d.minutestep)&&(r=0),c?this.fg.setAttribute("class","clockpicker-canvas-fg"):r%5==0?this.fg.setAttribute("class","clockpicker-canvas-fg"):this.fg.setAttribute("class","clockpicker-canvas-fg active"),this[this.currentView]!==r&&p&&this.options.vibrate&&(this.vibrateTimer||(navigator[p](10),this.vibrateTimer=setTimeout(n.proxy(function(){this.vibrateTimer=null},this),100))),this[this.currentView]=r,this[c?"spanHours":"spanMinutes"].html(g(r)),s){o||!c&&r%5?(this.g.insertBefore(this.hand,this.bearing),this.g.insertBefore(this.bg,this.fg),this.bg.setAttribute("class","clockpicker-canvas-bg clockpicker-canvas-bg-trans")):(this.g.insertBefore(this.hand,this.bg),this.g.insertBefore(this.fg,this.bg),this.bg.setAttribute("class","clockpicker-canvas-bg"));var m=Math.sin(l)*f,v=-Math.cos(l)*f;this.hand.setAttribute("x2",m),this.hand.setAttribute("y2",v),this.bg.setAttribute("cx",m),this.bg.setAttribute("cy",v),this.fg.setAttribute("cx",m),this.fg.setAttribute("cy",v)}else this[c?"hoursView":"minutesView"].find(".clockpicker-tick").each(function(){var t=n(this);t.toggleClass("active",r===+t.html())})},M.prototype.clearInput=function(){this.input.val(""),this.hide(),this.options.afterDone&&"function"==typeof this.options.afterDone&&this.options.afterDone(this.input,null)},M.prototype.getTime=function(t){this.parseInputValue();var e=this.hours;this.options.twelvehour&&e<12&&"PM"===this.amOrPm&&(e+=12);var i=new Date;return i.setMinutes(this.minutes),i.setHours(e),i.setSeconds(0),t&&t.apply(this.element,i)||i},M.prototype.done=function(){T(this.options.beforeDone),this.hide(),this.label.addClass("active");var t=this.input.prop("value"),e=this.hours,i=":"+g(this.minutes);this.isHTML5&&this.options.twelvehour&&(this.hours<12&&"PM"===this.amOrPm&&(e+=12),12===this.hours&&"AM"===this.amOrPm&&(e=0)),i=g(e)+i,!this.isHTML5&&this.options.twelvehour&&(i+=this.amOrPm),this.input.prop("value",i),i!==t&&(this.input.trigger("change"),this.isInput||this.element.trigger("change")),this.options.autoclose&&this.input.trigger("blur"),T(this.options.afterDone)},M.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(t){var e=Array.prototype.slice.call(arguments,1);function i(){var i=n(this),o=i.data("clockpicker");if(o)"function"==typeof o[t]&&o[t].apply(o,e);else{var a=n.extend({},M.DEFAULTS,i.data(),"object"==typeof t&&t);i.data("clockpicker",new M(i,a))}}if(1==this.length){var o=i.apply(this[0]);return void 0!==o?o:this}return this.each(i)}}(),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.PhotoSwipe=e()}(this,function(){"use strict";return function(t,e,i,n){var o={features:null,bind:function(t,e,i,n){var o=(n?"remove":"add")+"EventListener";e=e.split(" ");for(var a=0;a0&&(a=parseInt(a[1],10))>=1&&8>a&&(i.isOldIOSPhone=!0)}var r=n.match(/Android\s([0-9\.]*)/),s=r?r[1]:0;(s=parseFloat(s))>=1&&(4.4>s&&(i.isOldAndroid=!0),i.androidVersion=s),i.isMobileOpera=/opera mini|opera mobi/i.test(n)}for(var l,c,u=["transform","perspective","animationName"],d=["","webkit","Moz","ms","O"],h=0;4>h;h++){e=d[h];for(var p=0;3>p;p++)l=u[p],c=e+(e?l.charAt(0).toUpperCase()+l.slice(1):l),!i[l]&&c in t&&(i[l]=c);e&&!i.raf&&(e=e.toLowerCase(),i.raf=window[e+"RequestAnimationFrame"],i.raf&&(i.caf=window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"]))}if(!i.raf){var f=0;i.raf=function(t){var e=(new Date).getTime(),i=Math.max(0,16-(e-f)),n=window.setTimeout(function(){t(e+i)},i);return f=e+i,n},i.caf=function(t){clearTimeout(t)}}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(t,e,i,n){e=e.split(" ");for(var o,a=(n?"detach":"attach")+"Event",r=function(){i.handleEvent.call(i)},s=0;se-1?t-e:0>t?e+t:t},kt={},Ct=function(t,e){return kt[t]||(kt[t]=[]),kt[t].push(e)},St=function(t){var e=kt[t];if(e){var i=Array.prototype.slice.call(arguments);i.shift();for(var n=0;na.currItem.fitRatio?bt||(Ke(a.currItem,!1,!0),bt=!0):bt&&(Ke(a.currItem),bt=!1)),At(tt,ut.x,ut.y,g))},Pt=function(t){t.container&&At(t.container.style,t.initialPosition.x,t.initialPosition.y,t.initialZoomLevel,t)},Ot=function(t,e){e[I]=y+t+"px, 0px"+b},_t=function(t,e){if(!r.loop&&e){var i=u+(ft.x*ht-t)/ft.x,n=Math.round(t-ce.x);(0>i&&n>0||i>=Ne()-1&&0>n)&&(t=ce.x+n*r.mainScrollEndFriction)}ce.x=t,Ot(t,d)},Dt=function(t,e){var i=ue[t]-pt[t];return ct[t]+lt[t]+i-i*(e/v)},Et=function(t,e){t.x=e.x,t.y=e.y,e.id&&(t.id=e.id)},Lt=function(t){t.x=Math.round(t.x),t.y=Math.round(t.y)},$t=null,Ft=function(){$t&&(o.unbind(document,"mousemove",Ft),o.addClass(t,"pswp--has_mouse"),r.mouseUsed=!0,St("mouseUsed")),$t=setTimeout(function(){$t=null},100)},Rt=function(t,e){var i=Ye(a.currItem,dt,t);return e&&(J=i),i},Wt=function(t){return t||(t=a.currItem),t.initialZoomLevel},Vt=function(t){return t||(t=a.currItem),t.w>0?r.maxSpreadZoom:1},Nt=function(t,e,i,n){return n===a.currItem.initialZoomLevel?(i[t]=a.currItem.initialPosition[t],!0):(i[t]=Dt(t,n),i[t]>e.min[t]?(i[t]=e.min[t],!0):i[t]=n)return qt(t),a(i),void(r&&r());a((i-e)*o(s/n)+e),jt[t].raf=_(c)}};c()},Zt={shout:St,listen:Ct,viewportSize:dt,options:r,isMainScrollAnimating:function(){return et},getZoomLevel:function(){return g},getCurrentIndex:function(){return u},isDragging:function(){return j},isZooming:function(){return Q},setScrollOffset:function(t,e){pt.x=t,F=pt.y=e,St("updateScrollOffset",pt)},applyZoomPan:function(t,e,i,n){ut.x=e,ut.y=i,g=t,It(n)},init:function(){if(!s&&!l){var i;a.framework=o,a.template=t,a.bg=o.getChildByClass(t,"pswp__bg"),E=t.className,s=!0,R=o.detectFeatures(),_=R.raf,D=R.caf,I=R.transform,$=R.oldIE,a.scrollWrap=o.getChildByClass(t,"pswp__scroll-wrap"),a.container=o.getChildByClass(a.scrollWrap,"pswp__container"),d=a.container.style,a.itemHolders=k=[{el:a.container.children[0],wrap:0,index:-1},{el:a.container.children[1],wrap:0,index:-1},{el:a.container.children[2],wrap:0,index:-1}],k[0].el.style.display=k[2].el.style.display="none",function(){if(I){var e=R.perspective&&!O;return y="translate"+(e?"3d(":"("),void(b=R.perspective?", 0px)":")")}I="left",o.addClass(t,"pswp--ie"),Ot=function(t,e){e.left=t+"px"},Pt=function(t){var e=t.fitRatio>1?1:t.fitRatio,i=t.container.style,n=e*t.w,o=e*t.h;i.width=n+"px",i.height=o+"px",i.left=t.initialPosition.x+"px",i.top=t.initialPosition.y+"px"},It=function(){if(tt){var t=tt,e=a.currItem,i=e.fitRatio>1?1:e.fitRatio,n=i*e.w,o=i*e.h;t.width=n+"px",t.height=o+"px",t.left=ut.x+"px",t.top=ut.y+"px"}}}(),m={resize:a.updateSize,scroll:Bt,keydown:Ht,click:zt};var n=R.isOldIOSPhone||R.isOldAndroid||R.isMobileOpera;for(R.animationName&&R.transform&&!n||(r.showAnimationDuration=r.hideAnimationDuration=0),i=0;iu||u>=Ne())&&(u=0),a.currItem=Ve(u),(R.isOldIOSPhone||R.isOldAndroid)&&(gt=!1),t.setAttribute("aria-hidden","false"),r.modal&&(gt?t.style.position="fixed":(t.style.position="absolute",t.style.top=o.getScrollY()+"px")),void 0===F&&(St("initialLayout"),F=L=o.getScrollY());var c="pswp--open ";for(r.mainClass&&(c+=r.mainClass+" "),r.showHideOpacity&&(c+="pswp--animate_opacity "),c+=O?"pswp--touch":"pswp--notouch",c+=R.animationName?" pswp--css_animation":"",c+=R.svg?" pswp--svg":"",o.addClass(t,c),a.updateSize(),h=-1,mt=null,i=0;3>i;i++)Ot((i+h)*ft.x,k[i].el.style);$||o.bind(a.scrollWrap,f,a),Ct("initialZoomInEnd",function(){a.setContent(k[0],u-1),a.setContent(k[2],u+1),k[0].el.style.display=k[2].el.style.display="block",r.focus&&t.focus(),o.bind(document,"keydown",a),R.transform&&o.bind(a.scrollWrap,"click",a),r.mouseUsed||o.bind(document,"mousemove",Ft),o.bind(window,"resize scroll",a),St("bindEvents")}),a.setContent(k[1],u),a.updateCurrItem(),St("afterInit"),gt||(x=setInterval(function(){Yt||j||Q||g!==a.currItem.initialZoomLevel||a.updateSize()},1e3)),o.addClass(t,"pswp--visible")}},close:function(){s&&(s=!1,l=!0,St("close"),o.unbind(window,"resize",a),o.unbind(window,"scroll",m.scroll),o.unbind(document,"keydown",a),o.unbind(document,"mousemove",Ft),R.transform&&o.unbind(a.scrollWrap,"click",a),j&&o.unbind(window,p,a),St("unbindEvents"),He(a.currItem,null,!0,a.destroy))},destroy:function(){St("destroy"),$e&&clearTimeout($e),t.setAttribute("aria-hidden","true"),t.className=E,x&&clearInterval(x),o.unbind(a.scrollWrap,f,a),o.unbind(window,"scroll",a),pe(),Ut(),kt=null},panTo:function(t,e,i){i||(t>J.min.x?t=J.min.x:tJ.min.y?e=J.min.y:et;t++)k[t].item&&(k[t].item.needsUpdate=!0)},updateCurrItem:function(t){if(0!==mt){var e,i=Math.abs(mt);if(!(t&&2>i)){a.currItem=Ve(u),bt=!1,St("beforeChange",mt),i>=3&&(h+=mt+(mt>0?-3:3),i=3);for(var n=0;i>n;n++)mt>0?(e=k.shift(),k[2]=e,Ot((++h+2)*ft.x,e.el.style),a.setContent(e,u-i+n+1+1)):(e=k.pop(),k.unshift(e),Ot(--h*ft.x,e.el.style),a.setContent(e,u+i-n-1-1));if(tt&&1===Math.abs(mt)){var o=Ve(C);o.initialZoomLevel!==g&&(Ye(o,dt),Ke(o),Pt(o))}mt=0,a.updateCurrZoomItem(),C=u,St("afterChange")}}},updateSize:function(e){if(!gt&&r.modal){var i=o.getScrollY();if(F!==i&&(t.style.top=i+"px",F=i),!e&&yt.x===window.innerWidth&&yt.y===window.innerHeight)return;yt.x=window.innerWidth,yt.y=window.innerHeight,t.style.height=yt.y+"px"}if(dt.x=a.scrollWrap.clientWidth,dt.y=a.scrollWrap.clientHeight,Bt(),ft.x=dt.x+Math.round(dt.x*r.spacing),ft.y=dt.y,_t(ft.x*ht),St("beforeResize"),void 0!==h){for(var n,s,l,c=0;3>c;c++)n=k[c],Ot((c+h)*ft.x,n.el.style),l=u+c-1,r.loop&&Ne()>2&&(l=wt(l)),(s=Ve(l))&&(w||s.needsUpdate||!s.bounds)?(a.cleanSlide(s),a.setContent(n,l),1===c&&(a.currItem=s,a.updateCurrZoomItem(!0)),s.needsUpdate=!1):-1===n.index&&l>=0&&a.setContent(n,l),s&&s.container&&(Ye(s,dt),Ke(s),Pt(s));w=!1}v=g=a.currItem.initialZoomLevel,(J=a.currItem.bounds)&&(ut.x=J.center.x,ut.y=J.center.y,It(!0)),St("resize")},zoomTo:function(t,e,i,n,a){e&&(v=g,ue.x=Math.abs(e.x)-ut.x,ue.y=Math.abs(e.y)-ut.y,Et(ct,ut));var r=Rt(t,!1),s={};Nt("x",r,s,t),Nt("y",r,s,t);var l=g,c=ut.x,u=ut.y;Lt(s);var d=function(e){1===e?(g=t,ut.x=s.x,ut.y=s.y):(g=(t-l)*e+l,ut.x=(s.x-c)*e+c,ut.y=(s.y-u)*e+u),a&&a(e),It(1===e)};i?Kt("customZoomTo",0,1,i,n||o.easing.sine.inOut,d):d(1)}},Qt={},Gt={},Jt={},te={},ee={},ie=[],ne={},oe=[],ae={},re=0,se={x:0,y:0},le=0,ce={x:0,y:0},ue={x:0,y:0},de={x:0,y:0},he=function(t,e){return ae.x=Math.abs(t.x-e.x),ae.y=Math.abs(t.y-e.y),Math.sqrt(ae.x*ae.x+ae.y*ae.y)},pe=function(){U&&(D(U),U=null)},fe=function(){j&&(U=_(fe),Ie())},me=function(t,e){return!(!t||t===document)&&!(t.getAttribute("class")&&t.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(e(t)?t:me(t.parentNode,e))},ge={},ve=function(t,e){return ge.prevent=!me(t.target,r.isClickableElement),St("preventDragEvent",t,e,ge),ge.prevent},ye=function(t,e){return e.x=t.pageX,e.y=t.pageY,e.id=t.identifier,e},be=function(t,e,i){i.x=.5*(t.x+e.x),i.y=.5*(t.y+e.y)},xe=function(){var t=ut.y-a.currItem.initialPosition.y;return 1-Math.abs(t/(dt.y/2))},we={},ke={},Ce=[],Se=function(t){for(;Ce.length>0;)Ce.pop();return P?(st=0,ie.forEach(function(t){0===st?Ce[0]=t:1===st&&(Ce[1]=t),st++})):t.type.indexOf("touch")>-1?t.touches&&t.touches.length>0&&(Ce[0]=ye(t.touches[0],we),t.touches.length>1&&(Ce[1]=ye(t.touches[1],ke))):(we.x=t.pageX,we.y=t.pageY,we.id="",Ce[0]=we),Ce},Me=function(t,e){var i,n,o,s,l=ut[t]+e[t],c=e[t]>0,u=ce.x+e.x,d=ce.x-ne.x;return i=l>J.min[t]||lJ.min[t]&&(i=r.panEndFriction,J.min[t],n=J.min[t]-ct[t]),(0>=n||0>d)&&Ne()>1?(s=u,0>d&&u>ne.x&&(s=ne.x)):J.min.x!==J.max.x&&(o=l)):(l=n||d>0)&&Ne()>1?(s=u,d>0&&ua.currItem.fitRatio&&(ut[t]+=e[t]*i)):(void 0!==s&&(_t(s,!0),K=s!==ne.x),J.min.x!==J.max.x&&(void 0!==o?ut.x=o:K||(ut.x+=e.x*i)),void 0!==s)},Te=function(t){if(!("mousedown"===t.type&&t.button>0)){if(We)return void t.preventDefault();if(!B||"mousedown"!==t.type){if(ve(t,!0)&&t.preventDefault(),St("pointerDown"),P){var e=o.arraySearch(ie,t.pointerId,"id");0>e&&(e=ie.length),ie[e]={x:t.pageX,y:t.pageY,id:t.pointerId}}var i=Se(t),n=i.length;Z=null,Ut(),j&&1!==n||(j=nt=!0,o.bind(window,p,a),H=rt=ot=z=K=X=Y=q=!1,it=null,St("firstTouchStart",i),Et(ct,ut),lt.x=lt.y=0,Et(te,i[0]),Et(ee,te),ne.x=ft.x*ht,oe=[{x:te.x,y:te.y}],V=W=Mt(),Rt(g,!0),pe(),fe()),!Q&&n>1&&!et&&!K&&(v=g,q=!1,Q=Y=!0,lt.y=lt.x=0,Et(ct,ut),Et(Qt,i[0]),Et(Gt,i[1]),be(Qt,Gt,de),ue.x=Math.abs(de.x)-ut.x,ue.y=Math.abs(de.y)-ut.y,G=he(Qt,Gt))}}},Ae=function(t){if(t.preventDefault(),P){var e=o.arraySearch(ie,t.pointerId,"id");if(e>-1){var i=ie[e];i.x=t.pageX,i.y=t.pageY}}if(j){var n=Se(t);if(it||X||Q)Z=n;else if(ce.x!==ft.x*ht)it="h";else{var a=Math.abs(n[0].x-te.x)-Math.abs(n[0].y-te.y);Math.abs(a)>=10&&(it=a>0?"h":"v",Z=n)}}},Ie=function(){if(Z){var t=Z.length;if(0!==t)if(Et(Qt,Z[0]),Jt.x=Qt.x-te.x,Jt.y=Qt.y-te.y,Q&&t>1){if(te.x=Qt.x,te.y=Qt.y,!Jt.x&&!Jt.y&&function(t,e){return t.x===e.x&&t.y===e.y}(Z[1],Gt))return;Et(Gt,Z[1]),q||(q=!0,St("zoomGestureStarted"));var e=he(Qt,Gt),i=Ee(e);i>a.currItem.initialZoomLevel+a.currItem.initialZoomLevel/15&&(rt=!0);var n=1,o=Wt(),s=Vt();if(o>i)if(r.pinchToClose&&!rt&&v<=a.currItem.initialZoomLevel){var l=1-(o-i)/(o/1.2);Tt(l),St("onPinchClose",l),ot=!0}else(n=(o-i)/o)>1&&(n=1),i=o-n*(o/3);else i>s&&((n=(i-s)/(6*o))>1&&(n=1),i=s+n*o);0>n&&(n=0),be(Qt,Gt,se),lt.x+=se.x-de.x,lt.y+=se.y-de.y,Et(de,se),ut.x=Dt("x",i),ut.y=Dt("y",i),H=i>g,g=i,It()}else{if(!it)return;if(nt&&(nt=!1,Math.abs(Jt.x)>=10&&(Jt.x-=Z[0].x-ee.x),Math.abs(Jt.y)>=10&&(Jt.y-=Z[0].y-ee.y)),te.x=Qt.x,te.y=Qt.y,0===Jt.x&&0===Jt.y)return;if("v"===it&&r.closeOnVerticalDrag&&"fit"===r.scaleMode&&g===a.currItem.initialZoomLevel){lt.y+=Jt.y,ut.y+=Jt.y;var c=xe();return z=!0,St("onVerticalDrag",c),Tt(c),void It()}(function(t,e,i){if(t-V>50){var n=oe.length>2?oe.shift():{};n.x=e,n.y=i,oe.push(n),V=t}})(Mt(),Qt.x,Qt.y),X=!0,J=a.currItem.bounds,Me("x",Jt)||(Me("y",Jt),Lt(ut),It())}}},Pe=function(t){if(R.isOldAndroid){if(B&&"mouseup"===t.type)return;t.type.indexOf("touch")>-1&&(clearTimeout(B),B=setTimeout(function(){B=0},600))}var e;if(St("pointerUp"),ve(t,!1)&&t.preventDefault(),P){var i=o.arraySearch(ie,t.pointerId,"id");i>-1&&(e=ie.splice(i,1)[0],navigator.pointerEnabled?e.type=t.pointerType||"mouse":(e.type={4:"mouse",2:"touch",3:"pen"}[t.pointerType],e.type||(e.type=t.pointerType||"mouse")))}var n,s=Se(t),l=s.length;if("mouseup"===t.type&&(l=0),2===l)return Z=null,!0;1===l&&Et(ee,s[0]),0!==l||it||et||(e||("mouseup"===t.type?e={x:t.pageX,y:t.pageY,type:"mouse"}:t.changedTouches&&t.changedTouches[0]&&(e={x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY,type:"touch"})),St("touchRelease",t,e));var c=-1;if(0===l&&(j=!1,o.unbind(window,p,a),pe(),Q?c=0:-1!==le&&(c=Mt()-le)),le=1===l?Mt():-1,n=-1!==c&&150>c?"zoom":"swipe",Q&&2>l&&(Q=!1,1===l&&(n="zoomPointerUp"),St("zoomGestureEnded")),Z=null,X||q||et||z)if(Ut(),N||(N=Oe()),N.calculateSwipeSpeed("x"),z)if(xe()a.currItem.fitRatio&&_e(N))}},Oe=function(){var t,e,i={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(n){oe.length>1?(t=Mt()-V+50,e=oe[oe.length-2][n]):(t=Mt()-W,e=ee[n]),i.lastFlickOffset[n]=te[n]-e,i.lastFlickDist[n]=Math.abs(i.lastFlickOffset[n]),i.lastFlickDist[n]>20?i.lastFlickSpeed[n]=i.lastFlickOffset[n]/t:i.lastFlickSpeed[n]=0,Math.abs(i.lastFlickSpeed[n])<.1&&(i.lastFlickSpeed[n]=0),i.slowDownRatio[n]=.95,i.slowDownRatioReverse[n]=1-i.slowDownRatio[n],i.speedDecelerationRatio[n]=1},calculateOverBoundsAnimOffset:function(t,e){i.backAnimStarted[t]||(ut[t]>J.min[t]?i.backAnimDestination[t]=J.min[t]:ut[t]30&&(c||e.lastFlickOffset.x>20)?n=-1:-30>l&&(c||e.lastFlickOffset.x<-20)&&(n=1)}n&&(0>(u+=n)?(u=r.loop?Ne()-1:0,s=!0):u>=Ne()&&(u=r.loop?0:Ne()-1,s=!0),(!s||r.loop)&&(mt+=n,ht-=n,i=!0));var d,h=ft.x*ht,p=Math.abs(h-ce.x);return i||h>ce.x==e.lastFlickSpeed.x>0?(d=Math.abs(e.lastFlickSpeed.x)>0?p/Math.abs(e.lastFlickSpeed.x):333,d=Math.min(d,400),d=Math.max(d,250)):d=333,re===u&&(i=!1),et=!0,St("mainScrollAnimStart"),Kt("mainScroll",ce.x,h,d,o.easing.cubic.out,_t,function(){Ut(),et=!1,re=-1,(i||re!==u)&&a.updateCurrItem(),St("mainScrollAnimComplete")}),i&&a.updateCurrItem(!0),i},Ee=function(t){return 1/G*t*v},Le=function(){var t=g,e=Wt(),i=Vt();e>g?t=e:g>i&&(t=i);var n,r=at;return ot&&!H&&!rt&&e>g?(a.close(),!0):(ot&&(n=function(t){Tt((1-r)*t+r)}),a.zoomTo(t,0,200,o.easing.cubic.out,n),!0)};xt("Gestures",{publicMethods:{initGestures:function(){var t=function(t,e,i,n,o){S=t+e,M=t+i,T=t+n,A=o?t+o:""};(P=R.pointerEvent)&&R.touch&&(R.touch=!1),P?navigator.pointerEnabled?t("pointer","down","move","up","cancel"):t("MSPointer","Down","Move","Up","Cancel"):R.touch?(t("touch","start","move","end","cancel"),O=!0):t("mouse","down","move","up"),p=M+" "+T+" "+A,f=S,P&&!O&&(O=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),a.likelyTouchDevice=O,m[S]=Te,m[M]=Ae,m[T]=Pe,A&&(m[A]=m[T]),R.touch&&(f+=" mousedown",p+=" mousemove mouseup",m.mousedown=m[S],m.mousemove=m[M],m.mouseup=m[T]),O||(r.allowPanToNext=!1)}}});var $e,Fe,Re,We,Ve,Ne,He=function(e,i,n,s){var l;$e&&clearTimeout($e),We=!0,Re=!0,e.initialLayout?(l=e.initialLayout,e.initialLayout=null):l=r.getThumbBoundsFn&&r.getThumbBoundsFn(u);var d=n?r.hideAnimationDuration:r.showAnimationDuration,h=function(){qt("initialZoom"),n?(a.template.removeAttribute("style"),a.bg.removeAttribute("style")):(Tt(1),i&&(i.style.display="block"),o.addClass(t,"pswp--animated-in"),St("initialZoom"+(n?"OutEnd":"InEnd"))),s&&s(),We=!1};if(!d||!l||void 0===l.x)return St("initialZoom"+(n?"Out":"In")),g=e.initialZoomLevel,Et(ut,e.initialPosition),It(),t.style.opacity=n?0:1,Tt(1),void(d?setTimeout(function(){h()},d):h());!function(){var i=c,s=!a.currItem.src||a.currItem.loadError||r.showHideOpacity;e.miniImg&&(e.miniImg.style.webkitBackfaceVisibility="hidden"),n||(g=l.w/e.w,ut.x=l.x,ut.y=l.y-L,a[s?"template":"bg"].style.opacity=.001,It()),Xt("initialZoom"),n&&!i&&o.removeClass(t,"pswp--animated-in"),s&&(n?o[(i?"remove":"add")+"Class"](t,"pswp--animate_opacity"):setTimeout(function(){o.addClass(t,"pswp--animate_opacity")},30)),$e=setTimeout(function(){if(St("initialZoom"+(n?"Out":"In")),n){var a=l.w/e.w,r={x:ut.x,y:ut.y},c=g,u=at,p=function(e){1===e?(g=a,ut.x=l.x,ut.y=l.y-F):(g=(a-c)*e+c,ut.x=(l.x-r.x)*e+r.x,ut.y=(l.y-F-r.y)*e+r.y),It(),s?t.style.opacity=1-e:Tt(u-e*u)};i?Kt("initialZoom",0,1,d,o.easing.cubic.out,p,h):(p(1),$e=setTimeout(h,d+20))}else g=e.initialZoomLevel,Et(ut,e.initialPosition),It(),Tt(1),s?t.style.opacity=1:Tt(1),$e=setTimeout(h,d+20)},n?25:90)}()},ze={},Be=[],je={index:0,errorMsg:'',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Fe.length}},Ye=function(t,e,i){if(t.src&&!t.loadError){var n=!i;if(n&&(t.vGap||(t.vGap={top:0,bottom:0}),St("parseVerticalMargin",t)),ze.x=e.x,ze.y=e.y-t.vGap.top-t.vGap.bottom,n){var o=ze.x/t.w,a=ze.y/t.h;t.fitRatio=a>o?o:a;var s=r.scaleMode;"orig"===s?i=1:"fit"===s&&(i=t.fitRatio),i>1&&(i=1),t.initialZoomLevel=i,t.bounds||(t.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}})}if(!i)return;return function(t,e,i){var n=t.bounds;n.center.x=Math.round((ze.x-e)/2),n.center.y=Math.round((ze.y-i)/2)+t.vGap.top,n.max.x=e>ze.x?Math.round(ze.x-e):n.center.x,n.max.y=i>ze.y?Math.round(ze.y-i)+t.vGap.top:n.center.y,n.min.x=e>ze.x?0:n.center.x,n.min.y=i>ze.y?t.vGap.top:n.center.y}(t,t.w*i,t.h*i),n&&i===t.initialZoomLevel&&(t.initialPosition=t.bounds.center),t.bounds}return t.w=t.h=0,t.initialZoomLevel=t.fitRatio=1,t.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}},t.initialPosition=t.bounds.center,t.bounds},qe=function(t,e,i,n,o,r){e.loadError||n&&(e.imageAppended=!0,Ke(e,n,e===a.currItem&&bt),i.appendChild(n),r&&setTimeout(function(){e&&e.loaded&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null)},500))},Xe=function(t){t.loading=!0,t.loaded=!1;var e=t.img=o.createEl("pswp__img","img"),i=function(){t.loading=!1,t.loaded=!0,t.loadComplete?t.loadComplete(t):t.img=null,e.onload=e.onerror=null,e=null};return e.onload=i,e.onerror=function(){t.loadError=!0,i()},e.src=t.src,e},Ue=function(t,e){return t.src&&t.loadError&&t.container?(e&&(t.container.innerHTML=""),t.container.innerHTML=r.errorMsg.replace("/assets/bundles/mdb/%url%",t.src),!0):void 0},Ke=function(t,e,i){if(t.src){e||(e=t.container.lastChild);var n=i?t.w:Math.round(t.w*t.fitRatio),o=i?t.h:Math.round(t.h*t.fitRatio);t.placeholder&&!t.loaded&&(t.placeholder.style.width=n+"px",t.placeholder.style.height=o+"px"),e.style.width=n+"px",e.style.height=o+"px"}},Ze=function(){if(Be.length){for(var t,e=0;e=0,o=Math.min(i[0],Ne()),s=Math.min(i[1],Ne());for(e=1;(n?s:o)>=e;e++)a.lazyLoadItem(u+e);for(e=1;(n?o:s)>=e;e++)a.lazyLoadItem(u-e)}),Ct("initialLayout",function(){a.currItem.initialLayout=r.getThumbBoundsFn&&r.getThumbBoundsFn(u)}),Ct("mainScrollAnimComplete",Ze),Ct("initialZoomInEnd",Ze),Ct("destroy",function(){for(var t,e=0;e=0&&void 0!==Fe[t]&&Fe[t]},allowProgressiveImg:function(){return r.forceProgressiveLoading||!O||r.mouseUsed||screen.width>1200},setContent:function(t,e){r.loop&&(e=wt(e));var i=a.getItemAt(t.index);i&&(i.container=null);var n,l=a.getItemAt(e);if(l){St("gettingData",e,l),t.index=e,t.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),Ue(l),Ye(l,dt),!l.src||l.loadError||l.loaded)l.src&&!l.loadError&&((n=o.createEl("pswp__img","img")).style.opacity=1,n.src=l.src,Ke(l,n),qe(0,l,c,n));else{if(l.loadComplete=function(i){if(s){if(t&&t.index===e){if(Ue(i,!0))return i.loadComplete=i.img=null,Ye(i,dt),Pt(i),void(t.index===u&&a.updateCurrZoomItem());i.imageAppended?!We&&i.placeholder&&(i.placeholder.style.display="none",i.placeholder=null):R.transform&&(et||We)?Be.push({item:i,baseDiv:c,img:i.img,index:e,holder:t,clearPlaceholder:!0}):qe(0,i,c,i.img,0,!0)}i.loadComplete=null,i.img=null,St("imageLoadComplete",e,i)}},o.features.transform){var d="pswp__img pswp__img--placeholder";d+=l.msrc?"":" pswp__img--placeholder--blank";var h=o.createEl(d,l.msrc?"img":"");l.msrc&&(h.src=l.msrc),Ke(l,h),c.appendChild(h),l.placeholder=h}l.loading||Xe(l),a.allowProgressiveImg()&&(!Re&&R.transform?Be.push({item:l,baseDiv:c,img:l.img,index:e,holder:t}):qe(0,l,c,l.img,0,!0))}Re||e!==u?Pt(l):(tt=c.style,He(l,n||l.img)),t.el.innerHTML="",t.el.appendChild(c)}else t.el.innerHTML=""},cleanSlide:function(t){t.img&&(t.img.onload=t.img.onerror=null),t.loaded=t.loading=t.img=t.imageAppended=!1}}});var Qe,Ge,Je={},ti=function(t,e,i){var n=document.createEvent("CustomEvent"),o={origEvent:t,target:t.target,releasePoint:e,pointerType:i||"touch"};n.initCustomEvent("pswpTap",!0,!0,o),t.target.dispatchEvent(n)};xt("Tap",{publicMethods:{initTap:function(){Ct("firstTouchStart",a.onTapStart),Ct("touchRelease",a.onTapRelease),Ct("destroy",function(){Je={},Qe=null})},onTapStart:function(t){t.length>1&&(clearTimeout(Qe),Qe=null)},onTapRelease:function(t,e){if(e&&!X&&!Y&&!Yt){var i=e;if(Qe&&(clearTimeout(Qe),Qe=null,function(t,e){return Math.abs(t.x-e.x)<25&&Math.abs(t.y-e.y)<25}(i,Je)))return void St("doubleTap",i);if("mouse"===e.type)return void ti(t,e,"mouse");if("BUTTON"===t.target.tagName.toUpperCase()||o.hasClass(t.target,"pswp__single-tap"))return void ti(t,e);Et(Je,i),Qe=setTimeout(function(){ti(t,e),Qe=null},300)}}}}),xt("DesktopZoom",{publicMethods:{initDesktopZoom:function(){$||(O?Ct("mouseUsed",function(){a.setupDesktopZoom()}):a.setupDesktopZoom(!0))},setupDesktopZoom:function(e){Ge={};var i="wheel mousewheel DOMMouseScroll";Ct("bindEvents",function(){o.bind(t,i,a.handleMouseWheel)}),Ct("unbindEvents",function(){Ge&&o.unbind(t,i,a.handleMouseWheel)}),a.mouseZoomedIn=!1;var n,r=function(){a.mouseZoomedIn&&(o.removeClass(t,"pswp--zoomed-in"),a.mouseZoomedIn=!1),1>g?o.addClass(t,"pswp--zoom-allowed"):o.removeClass(t,"pswp--zoom-allowed"),s()},s=function(){n&&(o.removeClass(t,"pswp--dragging"),n=!1)};Ct("resize",r),Ct("afterChange",r),Ct("pointerDown",function(){a.mouseZoomedIn&&(n=!0,o.addClass(t,"pswp--dragging"))}),Ct("pointerUp",s),e||r()},handleMouseWheel:function(t){if(g<=a.currItem.fitRatio)return r.modal&&(!r.closeOnScroll||Yt||j?t.preventDefault():I&&Math.abs(t.deltaY)>2&&(c=!0,a.close())),!0;if(t.stopPropagation(),Ge.x=0,"deltaX"in t)1===t.deltaMode?(Ge.x=18*t.deltaX,Ge.y=18*t.deltaY):(Ge.x=t.deltaX,Ge.y=t.deltaY);else if("wheelDelta"in t)t.wheelDeltaX&&(Ge.x=-.16*t.wheelDeltaX),t.wheelDeltaY?Ge.y=-.16*t.wheelDeltaY:Ge.y=-.16*t.wheelDelta;else{if(!("detail"in t))return;Ge.y=t.detail}Rt(g,!0);var e=ut.x-Ge.x,i=ut.y-Ge.y;(r.modal||e<=J.min.x&&e>=J.max.x&&i<=J.min.y&&i>=J.max.y)&&t.preventDefault(),a.panTo(e,i)},toggleDesktopZoom:function(e){e=e||{x:dt.x/2+pt.x,y:dt.y/2+pt.y};var i=r.getDoubleTapZoom(!0,a.currItem),n=g===i;a.mouseZoomedIn=!n,a.zoomTo(n?a.currItem.initialZoomLevel:i,e,333),o[(n?"remove":"add")+"Class"](t,"pswp--zoomed-in")}}});var ei,ii,ni,oi,ai,ri,si,li,ci,ui,di,hi,pi={history:!0,galleryUID:1},fi=function(){return di.hash.substring(1)},mi=function(){ei&&clearTimeout(ei),ni&&clearTimeout(ni)},gi=function(){var t=fi(),e={};if(t.length<5)return e;var i,n=t.split("&");for(i=0;i-1&&(si=(si=si.split(" &gid=")[0]).split(" ?gid=")[0]),Ct(" afterchange",a.updateurl),ct("unbindevents",function(){o.unbind(window,"hashchange",a.onhashchange)});var="" e="si.indexOf("pid=");e">-1&&"&"===(si=si.substring(0,e)).slice(-1)&&(si=si.slice(0,-1)),setTimeout(function(){s&&o.bind(window,"hashchange",a.onHashChange)},40)}},onHashChange:function(){return fi()===si?(ci=!0,void a.close()):void(oi||(ai=!0,a.goTo(gi().pid),ai=!1))},updateURL:function(){mi(),ai||(li?ei=setTimeout(vi,800):vi())}}}),o.extend(a,Zt)}}),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.PhotoSwipeUI_Default=e()}(this,function(){"use strict";return function(t,e){var i,n,o,a,r,s,l,c,u,d,h,p,f,m,g,v,y,b,x=this,w=!1,k=!0,C=!0,S={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(t,e){return t.title?(e.children[0].innerHTML=t.title,!0):(e.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return t.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return t.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},M=function(t){if(v)return!0;t=t||window.event,g.timeToIdle&&g.mouseUsed&&!u&&$();for(var i,n,o=(t.target||t.srcElement).getAttribute("class")||"",a=0;a-1&&(i.onTap(),n=!0);if(n){t.stopPropagation&&t.stopPropagation(),v=!0;var r=e.features.isOldAndroid?600:30;setTimeout(function(){v=!1},r)}},T=function(){return!t.likelyTouchDevice||g.mouseUsed||screen.width>g.fitControlsWidth},A=function(t,i,n){e[(n?"add":"remove")+"Class"](t,"pswp__"+i)},I=function(){var t=1===g.getNumItemsFn();t!==m&&(A(n,"ui--one-slide",t),m=t)},P=function(){A(l,"share-modal--hidden",C)},O=function(){return(C=!C)?(e.removeClass(l,"pswp__share-modal--fade-in"),setTimeout(function(){C&&P()},300)):(P(),setTimeout(function(){C||e.addClass(l,"pswp__share-modal--fade-in")},30)),C||D(),!1},_=function(e){var i=(e=e||window.event).target||e.srcElement;return t.shout("shareLinkClick",e,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||O(),1))},D=function(){for(var t,e,i,n,o="",a=0;a"+t.label+"",g.parseShareButtonOut&&(o=g.parseShareButtonOut(t,o));l.children[0].innerHTML=o,l.children[0].onclick=_},E=function(t){for(var i=0;it?x.hideControls():!k&&t>=.95&&x.showControls()}),d("onPinchClose",function(e){k&&.9>e?(x.hideControls(),t=!0):t&&!k&&e>.9&&x.showControls()}),d("zoomGestureEnded",function(){(t=!1)&&!k&&x.showControls()})}(),d("beforeChange",x.update),d("doubleTap",function(e){var i=t.currItem.initialZoomLevel;t.getZoomLevel()!==i?t.zoomTo(i,e,333):t.zoomTo(g.getDoubleTapZoom(!1,t.currItem),e,333)}),d("preventDragEvent",function(t,e,i){var n=t.target||t.srcElement;n&&n.getAttribute("class")&&t.type.indexOf("mouse")>-1&&(n.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(n.tagName))&&(i.prevent=!1)}),d("bindEvents",function(){e.bind(n,"pswpTap click",M),e.bind(t.scrollWrap,"pswpTap",x.onGlobalTap),t.likelyTouchDevice||e.bind(t.scrollWrap,"mouseover",x.onMouseOver)}),d("unbindEvents",function(){C||O(),y&&clearInterval(y),e.unbind(document,"mouseout",F),e.unbind(document,"mousemove",$),e.unbind(n,"pswpTap click",M),e.unbind(t.scrollWrap,"pswpTap",x.onGlobalTap),e.unbind(t.scrollWrap,"mouseover",x.onMouseOver),i&&(e.unbind(document,i.eventK,x.updateFullscreen),i.isFullscreen()&&(g.hideAnimationDuration=0,i.exit()),i=null)}),d("destroy",function(){g.captionEl&&(a&&n.removeChild(a),e.removeClass(o,"pswp__caption--empty")),l&&(l.children[0].onclick=null),e.removeClass(n,"pswp__ui--over-close"),e.addClass(n,"pswp__ui--hidden"),x.setIdle(!1)}),g.showAnimationDuration||e.removeClass(n,"pswp__ui--hidden"),d("initialZoomIn",function(){g.showAnimationDuration&&e.removeClass(n,"pswp__ui--hidden")}),d("initialZoomOut",function(){e.addClass(n,"pswp__ui--hidden")}),d("parseVerticalMargin",W),function(){var t,i,o,a=function(n){if(n)for(var a=n.length,r=0;a>r;r++){t=n[r],i=t.className;for(var s=0;s-1&&(g[o.option]?(e.removeClass(t,"pswp__element--disabled"),o.onInit&&o.onInit(t)):e.addClass(t,"pswp__element--disabled"))}};a(n.children);var r=e.getChildByClass(n,"pswp__top-bar");r&&a(r.children)}(),g.shareEl&&s&&l&&(C=!0),I(),g.timeToIdle&&d("mouseUsed",function(){e.bind(document,"mousemove",$),e.bind(document,"mouseout",F),y=setInterval(function(){2==++L&&x.setIdle(!0)},g.timeToIdle/2)}),g.fullscreenEl&&!e.features.isOldAndroid&&(i||(i=x.getFullscreenAPI()),i?(e.bind(document,i.eventK,x.updateFullscreen),x.updateFullscreen(),e.addClass(t.template,"pswp--supports-fs")):e.removeClass(t.template,"pswp--supports-fs")),g.preloaderEl&&(R(!0),d("beforeChange",function(){clearTimeout(f),f=setTimeout(function(){t.currItem&&t.currItem.loading?(!t.allowProgressiveImg()||t.currItem.img&&!t.currItem.img.naturalWidth)&&R(!1):R(!0)},g.loadingIndicatorDelay)}),d("imageLoadComplete",function(e,i){t.currItem===i&&R(!0)}))},x.setIdle=function(t){u=t,A(n,"ui--idle",t)},x.update=function(){k&&t.currItem?(x.updateIndexIndicator(),g.captionEl&&(g.addCaptionHTMLFn(t.currItem,o),A(o,"caption--empty",!t.currItem.title)),w=!0):w=!1,C||O(),I()},x.updateFullscreen=function(n){n&&setTimeout(function(){t.setScrollOffset(0,e.getScrollY())},50),e[(i.isFullscreen()?"add":"remove")+"Class"](t.template,"pswp--fs")},x.updateIndexIndicator=function(){g.counterEl&&(r.innerHTML=t.getCurrentIndex()+1+g.indexIndicatorSep+g.getNumItemsFn())},x.onGlobalTap=function(i){var n=(i=i||window.event).target||i.srcElement;if(!v)if(i.detail&&"mouse"===i.detail.pointerType){if(E(n))return void t.close();e.hasClass(n,"pswp__img")&&(1===t.getZoomLevel()&&t.getZoomLevel()<=t.currItem.fitRatio?g.clickToCloseNonZoomable&&t.close():t.toggleDesktopZoom(i.detail.releasePoint))}else if(g.tapToToggleControls&&(k?x.hideControls():x.showControls()),g.tapToClose&&(e.hasClass(n,"pswp__img")||E(n)))return void t.close()},x.onMouseOver=function(t){var e=(t=t||window.event).target||t.srcElement;A(n,"ui--over-close",E(e))},x.hideControls=function(){e.addClass(n,"pswp__ui--hidden"),k=!1},x.showControls=function(){k=!0,w||x.update(),e.removeClass(n,"pswp__ui--hidden")},x.supportsFullscreen=function(){var t=document;return!!(t.exitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen||t.msExitFullscreen)},x.getFullscreenAPI=function(){var e,i=document.documentElement,n="fullscreenchange";return i.requestFullscreen?e={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:n}:i.mozRequestFullScreen?e={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+n}:i.webkitRequestFullscreen?e={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+n}:i.msRequestFullscreen&&(e={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),e&&(e.enter=function(){return c=g.closeOnScroll,g.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK?t.template[this.enterK]():void t.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},e.exit=function(){return g.closeOnScroll=c,document[this.exitK]()},e.isFullscreen=function(){return document[this.elementK]}),e}}});var initPhotoSwipeFromDOM=function(t){for(var e=function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1;var e=function t(e,i){return e&&(i(e)?e:t(e.parentNode,i))}(t.target||t.srcElement,function(t){return t.tagName&&"FIGURE"===t.tagName.toUpperCase()});if(e){for(var n,o=e.parentNode,a=e.parentNode.childNodes,r=a.length,s=0,l=0;l=0&&i(n,o),!1}},i=function(t,e,i,n){var o,a,r=document.querySelectorAll(".pswp")[0];if(a=function(t){for(var e,i,n,o,a=t.childNodes,r=a.length,s=[],l=0;l1&&(o.title=e.children[1].innerHTML),i.children.length>0&&(o.msrc=i.children[0].getAttribute("src")),o.el=e,s.push(o));return s}(e),o={galleryUID:e.getAttribute("data-pswp-uid"),getThumbBoundsFn:function(t){var e=a[t].el.getElementsByTagName("img")[0],i=window.pageYOffset||document.documentElement.scrollTop,n=e.getBoundingClientRect();return{x:n.left,y:n.top+i,w:n.width}}},n)if(o.galleryPIDs){for(var s=0;s '),this.scrollTop=0,this.setPushPoint(),this.setStopperPosition(),this.bindEvents()}return _createClass(i,[{key:"assignOptions",value:function(e){return t.extend({},this.defaults,e)}},{key:"bindEvents",value:function(){this.$window.on("resize",this.handleResize.bind(this)),this.$window.on("scroll",this.init.bind(this))}},{key:"hasZIndex",value:function(){return"number"==typeof this.options.zIndex}},{key:"hasStopper",value:function(){return t(this.options.stopper).length||"number"==typeof this.options.stopper}},{key:"isScreenHeightEnough",value:function(){return this.$element.outerHeight()+this.options.topSpacingthis.$window.innerWidth())return!1;"bottom"!==this.options.startScrolling||this.isScreenHeightEnough()?this.scrollTop=this.$window.scrollTop():this.scrollTop=this.$window.scrollTop()+this.$window.height(),this.$pushPointthis.$pushPoint?this.stop():this.stickyEnd()}},{key:"appendPlaceholder",value:function(){this.$element.after(this.$placeholder),this.$placeholder.css({width:this.elementWidth,height:this.elementHeight})}},{key:"stickyStart",value:function(){this.options.stickyClass&&this.$element.addClass(this.options.stickyClass),this.$element.get(0).style.overflow="scroll";var t=this.$element.get(0).scrollHeight;this.$element.get(0).style.overflow="",this.$element.css({position:"fixed",width:this.elementWidth,height:t}),"bottom"!==this.options.startScrolling||this.isScreenHeightEnough()?this.$element.css({top:this.options.topSpacing}):this.$element.css({bottom:0,top:""}),this.hasZIndex()&&this.$element.css({zIndex:this.options.zIndex})}},{key:"stickyEnd",value:function(){this.options.stickyClass&&this.$element.removeClass(this.options.stickyClass),this.$placeholder.remove(),this.$element.css({position:"static",top:e})}},{key:"stop",value:function(){this.stopPointt[a]-t[r]-1&&(t.reach[u]="end"),e&&(p.dispatchEvent(c("ps-scroll-"+u)),e<0?p.dispatchEvent(c("ps-scroll-"+d)):e>0&&p.dispatchEvent(c("ps-scroll-"+h)),n&&l(t,u)),t.reach[u]&&(e||o)&&p.dispatchEvent(c("ps-"+u+"-reach-"+t.reach[u]))}(t,i,a,n,o)},k={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)},C=function(t){var e=t.element,i=Math.floor(e.scrollTop);t.containerWidth=e.clientWidth,t.containerHeight=e.clientHeight,t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(a(e,g.element.rail("x")).forEach(function(t){return o(t)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(a(e,g.element.rail("y")).forEach(function(t){return o(t)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),p(e,t),t.scrollbarXActive?e.classList.add(g.state.active("x")):(e.classList.remove(g.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=0),t.scrollbarYActive?e.classList.add(g.state.active("y")):(e.classList.remove(g.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)},S={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top>t.scrollbarYTop?1:-1;t.element.scrollTop+=i*t.containerHeight,C(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=i*t.containerWidth,C(t),e.stopPropagation()})},"drag-thumb":function(t){f(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),f(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element,i=function(){return n(e,":hover")},o=function(){return n(t.scrollbarX,":focus")||n(t.scrollbarY,":focus")};t.event.bind(t.ownerDocument,"keydown",function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(i()||o())){var a=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(a){if("IFRAME"===a.tagName)a=a.contentDocument.activeElement;else for(;a.shadowRoot;)a=a.shadowRoot.activeElement;if(d(a))return}var r=0,s=0;switch(n.which){case 37:r=n.metaKey?-t.contentWidth:n.altKey?-t.containerWidth:-30;break;case 38:s=n.metaKey?t.contentHeight:n.altKey?t.containerHeight:30;break;case 39:r=n.metaKey?t.contentWidth:n.altKey?t.containerWidth:30;break;case 40:s=n.metaKey?-t.contentHeight:n.altKey?-t.containerHeight:-30;break;case 32:s=n.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:s=t.containerHeight;break;case 34:s=-t.containerHeight;break;case 36:s=t.contentHeight;break;case 35:s=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==r||t.settings.suppressScrollY&&0!==s||(e.scrollTop-=s,e.scrollLeft+=r,C(t),function(i,n){var o=Math.floor(e.scrollTop);if(0===i){if(!t.scrollbarYActive)return!1;if(0===o&&n>0||o>=t.contentHeight-t.containerHeight&&n<0)return!t.settings.wheelPropagation}var a=e.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===a&&i<0||a>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}(r,s)&&n.preventDefault())}})},wheel:function(e){function i(e,i,n){if(!k.isWebKit&&o.querySelector("select:focus"))return!0;if(!o.contains(e))return!1;for(var a=e;a&&a!==o;){if(a.classList.contains(g.element.consuming))return!0;var r=t(a);if([r.overflow,r.overflowX,r.overflowY].join("").match(/(scroll|auto)/)){var s=a.scrollHeight-a.clientHeight;if(s>0&&!(0===a.scrollTop&&n>0||a.scrollTop===s&&n<0))return!0;var l=a.scrollWidth-a.clientWidth;if(l>0&&!(0===a.scrollLeft&&i<0||a.scrollLeft===l&&i>0))return!0}a=a.parentNode}return!1}function n(t){var n=function(t){var e=t.deltaX,i=-1*t.deltaY;return void 0!==e&&void 0!==i||(e=-1*t.wheelDeltaX/6,i=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,i*=10),e!=e&&i!=i&&(e=0,i=t.wheelDelta),t.shiftKey?[-i,-e]:[e,i]}(t),a=n[0],r=n[1];if(!i(t.target,a,r)){var s=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(r?o.scrollTop-=r*e.settings.wheelSpeed:o.scrollTop+=a*e.settings.wheelSpeed,s=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(a?o.scrollLeft+=a*e.settings.wheelSpeed:o.scrollLeft-=r*e.settings.wheelSpeed,s=!0):(o.scrollTop-=r*e.settings.wheelSpeed,o.scrollLeft+=a*e.settings.wheelSpeed),C(e),(s=s||function(t,i){var n=Math.floor(o.scrollTop),a=0===o.scrollTop,r=n+o.offsetHeight===o.scrollHeight,s=0===o.scrollLeft,l=o.scrollLeft+o.offsetWidth===o.scrollWidth;return!(Math.abs(i)>Math.abs(t)?a||r:s||l)||!e.settings.wheelPropagation}(a,r))&&!t.ctrlKey&&(t.stopPropagation(),t.preventDefault())}}var o=e.element;void 0!==window.onwheel?e.event.bind(o,"wheel",n):void 0!==window.onmousewheel&&e.event.bind(o,"mousewheel",n)},touch:function(e){function i(t,i){var n=Math.floor(u.scrollTop),o=u.scrollLeft,a=Math.abs(t),r=Math.abs(i);if(r>a){if(i<0&&n===e.contentHeight-e.containerHeight||i>0&&0===n)return 0===window.scrollY&&i>0&&k.isChrome}else if(a>r&&(t<0&&o===e.contentWidth-e.containerWidth||t>0&&0===o))return!0;return!0}function n(t,i){u.scrollTop-=i,u.scrollLeft-=t,C(e)}function o(t){return t.targetTouches?t.targetTouches[0]:t}function a(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function r(t){if(a(t)){var e=o(t);d.pageX=e.pageX,d.pageY=e.pageY,h=(new Date).getTime(),null!==f&&clearInterval(f)}}function s(e,i,n){if(!u.contains(e))return!1;for(var o=e;o&&o!==u;){if(o.classList.contains(g.element.consuming))return!0;var a=t(o);if([a.overflow,a.overflowX,a.overflowY].join("").match(/(scroll|auto)/)){var r=o.scrollHeight-o.clientHeight;if(r>0&&!(0===o.scrollTop&&n>0||o.scrollTop===r&&n<0))return!0;var s=o.scrollLeft-o.clientWidth;if(s>0&&!(0===o.scrollLeft&&i<0||o.scrollLeft===s&&i>0))return!0}o=o.parentNode}return!1}function l(t){if(a(t)){var e=o(t),r={pageX:e.pageX,pageY:e.pageY},l=r.pageX-d.pageX,c=r.pageY-d.pageY;if(s(t.target,l,c))return;n(l,c),d=r;var u=(new Date).getTime(),f=u-h;f>0&&(p.x=l/f,p.y=c/f,h=u),i(l,c)&&t.preventDefault()}}function c(){e.settings.swipeEasing&&(clearInterval(f),f=setInterval(function(){e.isInitialized?clearInterval(f):p.x||p.y?Math.abs(p.x)<.01&&Math.abs(p.y)<.01?clearInterval(f):(n(30*p.x,30*p.y),p.x*=.8,p.y*=.8):clearInterval(f)},10))}if(k.supportsTouch||k.supportsIePointer){var u=e.element,d={},h=0,p={},f=null;k.supportsTouch?(e.event.bind(u,"touchstart",r),e.event.bind(u,"touchmove",l),e.event.bind(u,"touchend",c)):k.supportsIePointer&&(window.PointerEvent?(e.event.bind(u,"pointerdown",r),e.event.bind(u,"pointermove",l),e.event.bind(u,"pointerup",c)):window.MSPointerEvent&&(e.event.bind(u,"MSPointerDown",r),e.event.bind(u,"MSPointerMove",l),e.event.bind(u,"MSPointerUp",c)))}}},M=function(n,o){var a=this;if(void 0===o&&(o={}),"string"==typeof n&&(n=document.querySelector(n)),!n||!n.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var r in this.element=n,n.classList.add(g.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},o)a.settings[r]=o[r];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s=function(){return n.classList.add(g.state.focus)},l=function(){return n.classList.remove(g.state.focus)};this.isRtl="rtl"===t(n).direction,this.isNegativeScroll=function(){var t,e=n.scrollLeft;return n.scrollLeft=-1,t=n.scrollLeft<0,n.scrollLeft=e,t}(),this.negativeScrollAdjustment=this.isNegativeScroll?n.scrollWidth-n.clientWidth:0,this.event=new x,this.ownerDocument=n.ownerDocument||document,this.scrollbarXRail=i(g.element.rail("x")),n.appendChild(this.scrollbarXRail),this.scrollbarX=i(g.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",s),this.event.bind(this.scrollbarX,"blur",l),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=t(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),e(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=u(c.marginLeft)+u(c.marginRight),e(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=i(g.element.rail("y")),n.appendChild(this.scrollbarYRail),this.scrollbarY=i(g.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",s),this.event.bind(this.scrollbarY,"blur",l),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var d=t(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(e){var i=t(e);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),e(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=u(d.marginTop)+u(d.marginBottom),e(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(t){return S[t](a)}),this.lastScrollTop=Math.floor(n.scrollTop),this.lastScrollLeft=n.scrollLeft,this.event.bind(this.element,"scroll",function(t){return a.onScroll(t)}),C(this)};return M.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,e(this.scrollbarXRail,{display:"block"}),e(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=u(t(this.scrollbarXRail).marginLeft)+u(t(this.scrollbarXRail).marginRight),this.railYMarginHeight=u(t(this.scrollbarYRail).marginTop)+u(t(this.scrollbarYRail).marginBottom),e(this.scrollbarXRail,{display:"none"}),e(this.scrollbarYRail,{display:"none"}),C(this),w(this,"top",0,!1,!0),w(this,"left",0,!1,!0),e(this.scrollbarXRail,{display:""}),e(this.scrollbarYRail,{display:""}))},M.prototype.onScroll=function(t){this.isAlive&&(C(this),w(this,"top",this.element.scrollTop-this.lastScrollTop),w(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},M.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)},M.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")},M}),function(t){t(document).on("click",".chip .close",function(){var e=t(this);e.closest(".chips").data("initialized")||e.closest(".chip").remove()});var e=function(){function e(i,n){_classCallCheck(this,e),this.chips=i,this.$document=t(document),this.options=n,this.eventsHandled=!1,this.ulWrapper=t(''),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(e,[{key:"init",value:function(){var e=this;return this.optionsDataStatement(),this.assignOptions(),this.chips.each(function(i,n){var o=t(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.attr("tabindex",0),o.hasClass(e.selectors.chips)||o.addClass("chips"),e.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",t.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 e=this;this.$document.on("click",this.selectors.chips,function(i){return t(i.target).find(e.selectors.input).focus().addClass("active")})}},{key:"handleBlurInput",value:function(){var e=this;this.$document.on("blur",this.selectors.chips,function(i){setTimeout(function(){return e.ulWrapper.removeClass("active").hide()},100),t(i.target).removeClass("active"),t(".chip.selected").removeClass("selected")})}},{key:"handleSelectorChip",value:function(){this.chips.on("click",".chip",function(){t(".chip.selected").not(this).removeClass("selected"),t(this).toggleClass("selected")})}},{key:"handleDocumentKeyDown",value:function(){var t=this;this.chips.on("keydown",function(e){var i=t.$document.find(t.selectors.chip+t.selectors.selectedChip),n=i.closest(t.selectors.chips),o=i.siblings(t.selectors.chip).length;if(i.length){var a=e.which===t.keyCodes.backspace,r=e.which===t.keyCodes.delete,s=e.which===t.keyCodes.arrowLeft,l=e.which===t.keyCodes.arrowRight;a||r?(e.preventDefault(),t.deleteSelectedChip(n,i,o)):s?t.selectLeftChip(n,i):l&&t.selectRightChip(n,i,o)}})}},{key:"handleDocumentFocusIn",value:function(){var e=this,i=this.chips;(i.hasClass("chips-autocomplete")?i.children().children("input"):i.children("input")).on("click",function(i){var n=t(i.target);n.closest(e.selectors.chips).addClass("focus"),t(e.selectors.chip).removeClass("selected"),n.addClass("active")})}},{key:"handleDocumentFocusOut",value:function(){var e=this;this.chips.on("focusout","input",function(i){return t(i.target).closest(e.selectors.chips).removeClass("focus")})}},{key:"handleDocumentKeyDownChipsInput",value:function(){var e=this;this.chips.on("keydown","input",function(i){var n=t(i.target),o=e.chips,a=n.closest(e.selectors.chips),r=a.data("index"),s=a.children(e.selectors.chip).length,l=i.which===e.keyCodes.enter,c=i.which===e.keyCodes.comma,u=i.which===e.keyCodes.arrowLeft,d=i.which===e.keyCodes.backspace;if((l||c)&&!e.ulWrapper.find("li").hasClass("selected"))return i.preventDefault(),e.addChip(r,{tag:n.val()},a),void n.val("");var h=i.keyCode===e.keyCodes.arrowLeft||i.keyCode===e.keyCodes.delete,p=""===n.val();h&&p&&s&&e.selectChip(r,s-1,a),p&&t(e.selectors.input).hasClass("active")?u&&e.selectChip(r,s-1,a):o.find(".chip").removeClass("selected");var f=o.find(".chip-position-wrapper").children(".chip"),m=o.find(".chip-position-wrapper .chip").last().index();!p||!d||f.hasClass("selected")&&o.find(".chip").hasClass("selected")||!o.hasClass("chips")||o.hasClass("chips-initial")||o.hasClass("chips-placeholder")||e.deleteChip(a.data("index"),m,a),p&&d&&!o.find(".chip").hasClass("selected")&&o.hasClass("chips")&&(o.hasClass("chips-initial")||o.hasClass("chips-placeholder"))&&e.deleteChip(a.data("index"),m,a)})}},{key:"handleDocumentClickChipsDelete",value:function(){var e=this;this.chips.on("click",".chip .fas",function(i){var n,o=t(i.target).parent(t(e.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),e.deleteChip(n.data("index"),o.index(),n),n.find("input").focus()})}},{key:"inputKeyDown",value:function(){var e=this,i=this.ulWrapper,n=this.options.dataChip,o=this.chips,a=o.children(".chip-position-wrapper").children("input");a.on("keyup",function(r){var s=a.val();if(i.empty(),s.length)for(var l in n)n[l].toLowerCase().includes(s.toLowerCase())&&o.children(".chip-position-wrapper").append(i.append(t("".concat(n[l],""))));r.which===e.keyCodes.enter&&(i.empty(),i.remove()),0===s.length?i.removeClass("active").hide():i.addClass("active").show()})}},{key:"dynamicInputChanges",value:function(){var e=this.options.dataChip;void 0!==e&&this.chips.children(".chip-position-wrapper").children("input").on("change",function(i){var n=t(i.target).val();e.includes(n)||(e.push(n),e.sort())})}},{key:"renderedLiClick",value:function(){var e=this;this.chips.on("click","li",function(i){i.preventDefault();var n=t(i.target),o=n.closest(t(e.selectors.chips)),a=o.data("index");e.addChip(a,{tag:n.text()},o),e.chips.children(".chip-position-wrapper").children("input").val(""),e.ulWrapper.remove()})}},{key:"deleteSelectedChip",value:function(t,e,i){var n=t.data("index"),o=e.index();this.deleteChip(n,o,t);var a=null;on?e.find("input").focus():this.selectChip(e.data("index"),o,e)}},{key:"renderChips",value:function(t){var e=this,i="";t.data("chips").forEach(function(t){i+=e.getSingleChipHtml(t)}),t.hasClass("chips-autocomplete")?i+='':i+='',t.html(i),this.setPlaceholder(t)}},{key:"getSingleChipHtml",value:function(t){if(!t.tag)return"";var e=''.concat(t.tag);return t.image&&(e+='

')),e+='
',e+="
"}},{key:"setPlaceholder",value:function(t){var e=t.data("options");t.data("chips").length&&e.placeholder?t.find("input").prop("placeholder",e.placeholder):!t.data("chips").length&&e.secondaryPlaceholder&&t.find("input").prop("placeholder",e.secondaryPlaceholder)}},{key:"isValid",value:function(t,e){for(var i=t.data("chips"),n=0;n0?o.insertAfter(n.find(".chip").last()):o.insertBefore(n.find("input")),n.trigger("chip.add",i),this.setPlaceholder(n)}}},{key:"deleteChip",value:function(t,e,i){var n=i.data("chips")[e];i.find(".chip").eq(e).remove(),i.data("chips").splice(e,1),i.trigger("chip.delete",n),this.setPlaceholder(i)}},{key:"selectChip",value:function(t,e,i){var n=i.find(".chip").eq(e);n&&!1===n.hasClass("selected")&&(n.addClass("selected"),i.trigger("chip.select",i.data("chips")[e]))}},{key:"getChipsElement",value:function(t,e){return e.eq(t)}}]),e}();t.fn.materialChip=function(i){return this.each(function(){new e(t(this),i)})}}(jQuery);var objectFitImages=function(){"use strict";var t="bfred-it:object-fit-images",e=/(object-fit|object-position)\s*:\s*([-.\w\s%]+)/g,i="undefined"==typeof Image?{style:{"object-position":1}}:new Image,n="object-fit"in i.style,o="object-position"in i.style,a="background-size"in i.style,r="string"==typeof i.currentSrc,s=i.getAttribute,l=i.setAttribute,c=!1;function u(t,e,i){var n="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='"+(e||1)+"' height='"+(i||0)+"'%3E%3C/svg%3E";s.call(t,"src")!==n&&l.call(t,"src",n)}function d(t,e){t.naturalWidth?e(t):setTimeout(d,100,t,e)}function h(i){var o=function(t){for(var i,n=getComputedStyle(t).fontFamily,o={};null!==(i=e.exec(n));)o[i[1]]=i[2];return o}(i),a=i[t];if(o["object-fit"]=o["object-fit"]||"fill",!a.img){if("fill"===o["object-fit"])return;if(!a.skipTest&&n&&!o["object-position"])return}if(!a.img){a.img=new Image(i.width,i.height),a.img.srcset=s.call(i,"data-ofi-srcset")||i.srcset,a.img.src=s.call(i,"data-ofi-src")||i.src,l.call(i,"data-ofi-src",i.src),i.srcset&&l.call(i,"data-ofi-srcset",i.srcset),u(i,i.naturalWidth||i.width,i.naturalHeight||i.height),i.srcset&&(i.srcset="");try{!function(e){var i={get:function(i){return e[t].img[i||"src"]},set:function(i,n){return e[t].img[n||"src"]=i,l.call(e,"data-ofi-"+n,i),h(e),i}};Object.defineProperty(e,"src",i),Object.defineProperty(e,"currentSrc",{get:function(){return i.get("currentSrc")}}),Object.defineProperty(e,"srcset",{get:function(){return i.get("srcset")},set:function(t){return i.set(t,"srcset")}})}(i)}catch(t){window.console&&console.warn("https://bit.ly/ofi-old-browser")}}!function(t){if(t.srcset&&!r&&window.picturefill){var e=window.picturefill._;t[e.ns]&&t[e.ns].evaled||e.fillImg(t,{reselect:!0}),t[e.ns].curSrc||(t[e.ns].supported=!1,e.fillImg(t,{reselect:!0})),t.currentSrc=t[e.ns].curSrc||t.src}}(a.img),i.style.backgroundImage='url("'+(a.img.currentSrc||a.img.src).replace(/"/g,'\\"')+'")',i.style.backgroundPosition=o["object-position"]||"center",i.style.backgroundRepeat="no-repeat",i.style.backgroundOrigin="content-box",/scale-down/.test(o["object-fit"])?d(a.img,function(){a.img.naturalWidth>i.width||a.img.naturalHeight>i.height?i.style.backgroundSize="contain":i.style.backgroundSize="auto"}):i.style.backgroundSize=o["object-fit"].replace("none","auto").replace("fill","100% 100%"),d(a.img,function(t){u(i,t.naturalWidth,t.naturalHeight)})}function p(e,i){var n=!c&&!e;if(i=i||{},e=e||"img",o&&!i.skipTest||!a)return!1;"img"===e?e=document.getElementsByTagName("img"):"string"==typeof e?e=document.querySelectorAll(e):"length"in e||(e=[e]);for(var r=0;r-1||navigator.userAgent.indexOf("Trident/")>-1||navigator.userAgent.indexOf("Edge/")>-1,d=function(){for(var t="transform WebkitTransform MozTransform".split(" "),e=document.createElement("div"),i=0;i1?a=Math.abs(o-p):i<0?a=o/i+Math.abs(o):a+=Math.abs(p-e)*(1-i),o/=2),this.parallaxScrollDistance=o,r=n?(p-a)/2:(e-a)/2,this.css(this.image.$item,{height:a+"px",marginTop:r+"px",left:"fixed"===this.image.position?t.left+"px":"0",width:t.width+"px"}),this.options.onCoverImage&&this.options.onCoverImage.call(this),{image:{height:a,marginTop:r},container:t}}},{key:"isVisible",value:function(){return this.isElementInViewport||!1}},{key:"onScroll",value:function(t){var e=this.$item.getBoundingClientRect(),i=e.top,n=e.height,o={},a=e;if(this.options.elementInViewport&&(a=this.options.elementInViewport.getBoundingClientRect()),this.isElementInViewport=a.bottom>=0&&a.right>=0&&a.top<=p&&a.left<=h,t||this.isElementInViewport){var r=Math.max(0,i),s=Math.max(0,n+i),l=Math.max(0,-i),c=Math.max(0,i+n-p),u=Math.max(0,n-(i+n-p)),d=Math.max(0,-i+p-n),f=1-2*(p-i)/(p+n),m=1;if(n0&&void 0!==arguments[0]&&arguments[0];this.player&&t&&("youtube"===this.type&&this.player.setVolume&&this.player.setVolume(t),"vimeo"===this.type&&this.player.setVolume&&this.player.setVolume(t),"local"===this.type&&(this.$video.volume=t/100))}},{key:"getVolume",value:function(t){this.player?("youtube"===this.type&&this.player.getVolume&&t(this.player.getVolume()),"vimeo"===this.type&&this.player.getVolume&&this.player.getVolume().then(function(e){t(e)}),"local"===this.type&&t(100*this.$video.volume)):t(!1)}},{key:"getMuted",value:function(t){this.player?("youtube"===this.type&&this.player.isMuted&&t(this.player.isMuted()),"vimeo"===this.type&&this.player.getVolume&&this.player.getVolume().then(function(e){t(!!e)}),"local"===this.type&&t(this.$video.muted)):t(null)}},{key:"getImageURL",value:function(t){var e=this;if(e.videoImage)t(e.videoImage);else{if("youtube"===e.type){var i=["maxresdefault","sddefault","hqdefault","0"],n=0,o=new Image;o.onload=function(){120!==(this.naturalWidth||this.width)||n===i.length-1?(e.videoImage="https://img.youtube.com/vi/"+e.videoID+"/"+i[n]+".jpg",t(e.videoImage)):(n++,this.src="https://img.youtube.com/vi/"+e.videoID+"/"+i[n]+".jpg")},o.src="https://img.youtube.com/vi/"+e.videoID+"/"+i[n]+".jpg"}if("vimeo"===e.type){var a=new XMLHttpRequest;a.open("GET","https://vimeo.com/api/v2/video/"+e.videoID+".json",!0),a.onreadystatechange=function(){if(4===this.readyState&&this.status>=200&&this.status<400){var i=JSON.parse(this.responseText);e.videoImage=i[0].thumbnail_large,t(e.videoImage)}},a.send(),a=null}}}},{key:"getIframe",value:function(t){this.getVideo(t)}},{key:"getVideo",value:function(t){var e=this;e.$video?t(e.$video):e.onAPIready(function(){var i=void 0;if(e.$video||((i=document.createElement("div")).style.display="none"),"youtube"===e.type){e.playerOptions={},e.playerOptions.videoId=e.videoID,e.playerOptions.playerVars={autohide:1,rel:0,autoplay:0,playsinline:1},e.options.showContols||(e.playerOptions.playerVars.iv_load_policy=3,e.playerOptions.playerVars.modestbranding=1,e.playerOptions.playerVars.controls=0,e.playerOptions.playerVars.showinfo=0,e.playerOptions.playerVars.disablekb=1);var n=void 0,o=void 0;e.playerOptions.events={onReady:function(t){e.options.mute?t.target.mute():e.options.volume&&t.target.setVolume(e.options.volume),e.options.autoplay&&e.play(e.options.startTime),e.fire("ready",t),setInterval(function(){e.getVolume(function(i){e.options.volume!==i&&(e.options.volume=i,e.fire("volumechange",t))})},150)},onStateChange:function(t){e.options.loop&&t.data===YT.PlayerState.ENDED&&e.play(e.options.startTime),n||t.data!==YT.PlayerState.PLAYING||(n=1,e.fire("started",t)),t.data===YT.PlayerState.PLAYING&&e.fire("play",t),t.data===YT.PlayerState.PAUSED&&e.fire("pause",t),t.data===YT.PlayerState.ENDED&&e.fire("ended",t),t.data===YT.PlayerState.PLAYING?o=setInterval(function(){e.fire("timeupdate",t),e.options.endTime&&e.player.getCurrentTime()>=e.options.endTime&&(e.options.loop?e.play(e.options.startTime):e.pause())},150):clearInterval(o)}};var a=!e.$video;if(a){var r=document.createElement("div");r.setAttribute("id",e.playerID),i.appendChild(r),document.body.appendChild(i)}e.player=e.player||new window.YT.Player(e.playerID,e.playerOptions),a&&(e.$video=document.getElementById(e.playerID),e.videoWidth=parseInt(e.$video.getAttribute("width"),10)||1280,e.videoHeight=parseInt(e.$video.getAttribute("height"),10)||720)}if("vimeo"===e.type){e.playerOptions="",e.playerOptions+="player_id="+e.playerID,e.playerOptions+="&autopause=0",e.playerOptions+="&transparent=0",e.options.showContols||(e.playerOptions+="&badge=0&byline=0&portrait=0&title=0"),e.playerOptions+="&autoplay="+(e.options.autoplay?"1":"0"),e.playerOptions+="&loop="+(e.options.loop?1:0),e.$video||(e.$video=document.createElement("iframe"),e.$video.setAttribute("id",e.playerID),e.$video.setAttribute("src","https://player.vimeo.com/video/"+e.videoID+"?"+e.playerOptions),e.$video.setAttribute("frameborder","0"),i.appendChild(e.$video),document.body.appendChild(i)),e.player=e.player||new Vimeo.Player(e.$video),e.player.getVideoWidth().then(function(t){e.videoWidth=t||1280}),e.player.getVideoHeight().then(function(t){e.videoHeight=t||720}),e.options.startTime&&e.options.autoplay&&e.player.setCurrentTime(e.options.startTime),e.options.mute?e.player.setVolume(0):e.options.volume&&e.player.setVolume(e.options.volume);var s=void 0;e.player.on("timeupdate",function(t){s||(e.fire("started",t),s=1),e.fire("timeupdate",t),e.options.endTime&&e.options.endTime&&t.seconds>=e.options.endTime&&(e.options.loop?e.play(e.options.startTime):e.pause())}),e.player.on("play",function(t){e.fire("play",t),e.options.startTime&&0===t.seconds&&e.play(e.options.startTime)}),e.player.on("pause",function(t){e.fire("pause",t)}),e.player.on("ended",function(t){e.fire("ended",t)}),e.player.on("loaded",function(t){e.fire("ready",t)}),e.player.on("volumechange",function(t){e.fire("volumechange",t)})}if("local"===e.type){e.$video||(e.$video=document.createElement("video"),e.options.showContols&&(e.$video.controls=!0),e.options.mute?e.$video.muted=!0:e.$video.volume&&(e.$video.volume=e.options.volume/100),e.options.loop&&(e.$video.loop=!0),e.$video.setAttribute("playsinline",""),e.$video.setAttribute("webkit-playsinline",""),e.$video.setAttribute("id",e.playerID),i.appendChild(e.$video),document.body.appendChild(i),Object.keys(e.videoID).forEach(function(t){var i,n,o,a;i=e.$video,n=e.videoID[t],o="video/"+t,(a=document.createElement("source")).src=n,a.type=o,i.appendChild(a)})),e.player=e.player||e.$video;var l=void 0;e.player.addEventListener("playing",function(t){l||e.fire("started",t),l=1}),e.player.addEventListener("timeupdate",function(t){e.fire("timeupdate",t),e.options.endTime&&e.options.endTime&&this.currentTime>=e.options.endTime&&(e.options.loop?e.play(e.options.startTime):e.pause())}),e.player.addEventListener("play",function(t){e.fire("play",t)}),e.player.addEventListener("pause",function(t){e.fire("pause",t)}),e.player.addEventListener("ended",function(t){e.fire("ended",t)}),e.player.addEventListener("loadedmetadata",function(){e.videoWidth=this.videoWidth||1280,e.videoHeight=this.videoHeight||720,e.fire("ready"),e.options.autoplay&&e.play(e.options.startTime)}),e.player.addEventListener("volumechange",function(t){e.getVolume(function(t){e.options.volume=t}),e.fire("volumechange",t)})}t(e.$video)})}},{key:"init",value:function(){this.playerID="VideoWorker-"+this.ID}},{key:"loadAPI",value:function(){if(!s||!l){var t="";if("youtube"!==this.type||s||(s=1,t="https://www.youtube.com/iframe_api"),"vimeo"!==this.type||l||(l=1,t="https://player.vimeo.com/api/player.js"),t){var e=document.createElement("script"),i=document.getElementsByTagName("head")[0];e.src=t,i.appendChild(e),i=null,e=null}}}},{key:"onAPIready",value:function(t){if("youtube"===this.type&&("undefined"!=typeof YT&&0!==YT.loaded||c?"object"===("undefined"==typeof YT?"undefined":n(YT))&&1===YT.loaded?t():d.done(function(){t()}):(c=1,window.onYouTubeIframeAPIReady=function(){window.onYouTubeIframeAPIReady=null,d.resolve("done"),t()})),"vimeo"===this.type)if("undefined"!=typeof Vimeo||u)"undefined"!=typeof Vimeo?t():h.done(function(){t()});else{u=1;var e=setInterval(function(){"undefined"!=typeof Vimeo&&(clearInterval(e),h.resolve("done"),t())},20)}"local"===this.type&&t()}}]),t}();e.default=p},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.default.jarallax;if(void 0===t)return;var e=t.constructor,i=e.prototype.init;e.prototype.init=function(){var t=this;i.apply(t),t.video&&!t.options.disableVideo()&&t.video.getVideo(function(e){var i=e.parentNode;t.css(e,{position:t.image.position,top:"0px",left:"0px",right:"0px",bottom:"0px",width:"100%",height:"100%",maxWidth:"none",maxHeight:"none",margin:0,zIndex:-1}),t.$video=e,t.image.$container.appendChild(e),i.parentNode.removeChild(i)})};var a=e.prototype.coverImage;e.prototype.coverImage=function(){var t=a.apply(this),e=!!this.image.$item&&this.image.$item.nodeName;if(t&&this.video&&e&&("IFRAME"===e||"VIDEO"===e)){var i=t.image.height,n=i*this.image.width/this.image.height,o=(t.container.width-n)/2,r=t.image.marginTop;t.container.width>n&&(n=t.container.width,i=n*this.image.height/this.image.width,o=0,r+=(t.image.height-i)/2),"IFRAME"===e&&(i+=400,r-=200),this.css(this.$video,{width:n+"px",marginLeft:o+"px",height:i+"px",marginTop:r+"px"})}return t};var r=e.prototype.initImg;e.prototype.initImg=function(){var t=r.apply(this);return this.options.videoSrc||(this.options.videoSrc=this.$item.getAttribute("data-jarallax-video")||null),this.options.videoSrc?(this.defaultInitImgResult=t,!0):t};var s=e.prototype.canInitParallax;e.prototype.canInitParallax=function(){var t=this,e=s.apply(t);if(!t.options.videoSrc)return e;var i=new n.default(t.options.videoSrc,{autoplay:!0,loop:!0,showContols:!1,startTime:t.options.videoStartTime||0,endTime:t.options.videoEndTime||0,mute:t.options.videoVolume?0:1,volume:t.options.videoVolume||0});if(i.isValid())if(e){if(i.on("ready",function(){if(t.options.videoPlayOnlyVisible){var e=t.onScroll;t.onScroll=function(){e.apply(t),t.isVisible()?i.play():i.pause()}}else i.play()}),i.on("started",function(){t.image.$default_item=t.image.$item,t.image.$item=t.$video,t.image.width=t.video.videoWidth||1280,t.image.height=t.video.videoHeight||720,t.options.imgWidth=t.image.width,t.options.imgHeight=t.image.height,t.coverImage(),t.clipContainer(),t.onScroll(),t.image.$default_item&&(t.image.$default_item.style.display="none")}),t.video=i,!t.defaultInitImgResult)return"local"!==i.type?(i.getImageURL(function(e){t.image.src=e,t.init()}),!1):(t.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",!0)}else t.defaultInitImgResult||i.getImageURL(function(e){var i=t.$item.getAttribute("style");i&&t.$item.setAttribute("data-jarallax-original-styles",i),t.css(t.$item,{"background-image":'url("'+e+'")',"background-position":"center","background-size":"cover"})});return e};var l=e.prototype.destroy;e.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(t){return t&&t.__esModule?t:{default:t}}}]),function(t){var e={},i="",n="",o="#ced4da",a="1px solid #4285f4",r="1px solid #ced4da",s="0 1px 0 0 #4285f4",l="",c=-1,u=-45,d=function(){function d(c,u){_classCallCheck(this,d),this.defaults={data:e,dataColor:i,closeColor:n,closeBlurColor:o,inputFocus:a,inputBlur:r,inputFocusShadow:s,inputBlurShadow:l},this.$input=c,this.options=this.assignOptions(u),this.$clearButton=t(".mdb-autocomplete-clear"),this.$autocompleteWrap=t('
'),this.init()}return _createClass(d,[{key:"init",value:function(){this.setData(),this.inputFocus(),this.inputBlur(),this.inputKeyupData(),this.inputLiClick(),this.clearAutocomplete()}},{key:"assignOptions",value:function(e){return t.extend({},this.defaults,e)}},{key:"setData",value:function(){Object.keys(this.options.data).length&&this.$autocompleteWrap.insertAfter(this.$input)}},{key:"inputFocus",value:function(){var t=this;this.$input.on("focus",function(){t.$input.css("border-bottom",t.options.inputFocus),t.$input.css("box-shadow",t.options.inputFocusShadow)})}},{key:"inputBlur",value:function(){var t=this;this.$input.on("blur",function(){t.$input.css("border-bottom",t.options.inputBlur),t.$input.css("box-shadow",t.options.inputBlurShadow)})}},{key:"inputKeyupData",value:function(){var e=this;this.$input.on("keyup",function(i){if(13===i.which)return e.options.data.includes(e.$input.val())||e.options.data.push(e.$input.val()),e.$autocompleteWrap.find(".selected").trigger("click"),e.$autocompleteWrap.empty(),e.inputBlur(),u=-45,c=-1;var n=e.$input.val();if(e.$autocompleteWrap.empty(),n.length){for(var o in e.options.data)if(-1!==e.options.data[o].toLowerCase().indexOf(n.toLowerCase())){var a=t("".concat(e.options.data[o],""));e.$autocompleteWrap.append(a)}var r=e.$autocompleteWrap,s=e.$autocompleteWrap.find("li"),l=s.eq(c).outerHeight(),d=s.eq(c-1).outerHeight();if(40===i.which){if(c>s.length-2)return c=-1,s.scrollTop(0),void(u=-45);c++,u+=l,r.scrollTop(u),s.eq(c).addClass("selected")}else 38===i.which&&(c<1?(c=s.length,r.scrollTop(r.prop("scrollHeight")),u=r.prop("scrollHeight")-l):c--,u-=d,r.scrollTop(u),s.eq(c).addClass("selected"));0===n.length?e.$clearButton.css("visibility","hidden"):e.$clearButton.css("visibility","visible"),e.$autocompleteWrap.children().css("color",e.options.dataColor)}else e.$clearButton.css("visibility","hidden")})}},{key:"inputLiClick",value:function(){var e=this;this.$autocompleteWrap.on("click","li",function(i){i.preventDefault(),e.$input.val(t(i.target).text()),e.$autocompleteWrap.empty()})}},{key:"clearAutocomplete",value:function(){var e=this;this.$clearButton.on("click",function(i){c=-1,u=-45,i.preventDefault();var n=t(i.currentTarget);n.parent().find(".mdb-autocomplete").val(""),n.css("visibility","hidden"),e.$autocompleteWrap.empty(),n.parent().find("label").removeClass("active")})}},{key:"changeSVGcolors",value:function(){var e=this;this.$input.hasClass("mdb-autocomplete")&&(this.$input.on("click keyup",function(i){i.preventDefault(),t(i.target).parent().find(".mdb-autocomplete-clear").find("svg").css("fill",e.options.closeColor)}),this.$input.on("blur",function(i){i.preventDefault(),t(i.target).parent().find(".mdb-autocomplete-clear").find("svg").css("fill",e.options.closeBlurColor)}))}}]),d}();t.fn.mdbAutocomplete=function(e){return this.each(function(){new d(t(this),e)})}}(jQuery),function(t){t("body").on("shown.bs.modal",".modal",function(){t(".modal-backdrop").length||($modal_dialog=t(this).children(".modal-dialog"),$modal_dialog.hasClass("modal-side")&&(t(this).addClass("modal-scrolling"),t("body").addClass("scrollable")),$modal_dialog.hasClass("modal-frame")&&(t(this).addClass("modal-content-clickable"),t("body").addClass("scrollable")))}),t("body").on("hidden.bs.modal",".modal",function(){t("body").removeClass("scrollable")})}(jQuery),function(t){t.fn.mdbTreeview=function(){var e=t(this);if(e.hasClass("treeview")){var i=e.find(".rotate");t.each(i,function(e){t(i[e]).off("click"),t(i[e]).on("click",function(){var e=t(this);e.siblings(".nested").toggleClass("active"),e.toggleClass("down")})})}if(e.hasClass("treeview-animated")){var n=e.find(".treeview-animated-element"),o=e.find(".closed");e.find(".nested").hide(),o.off("click"),o.on("click",function(){var e=t(this),i=e.siblings(".nested"),n=e.children(".fa-angle-right");return e.toggleClass("open"),n.toggleClass("down"),i.hasClass("active")?i.removeClass("active").slideUp():i.addClass("active").slideDown(),!1}),n.off("click"),n.on("click",function(){var e=t(this);e.hasClass("opened")?e.removeClass("opened"):(n.removeClass("opened"),e.addClass("opened"))})}if(e.hasClass("treeview-colorful")){var a=e.find(".treeview-colorful-element"),r=e.find(".treeview-colorful-items-header");e.find(".nested").hide(),r.off("click"),r.on("click",function(){var e=t(this),i=e.siblings(".nested"),n=e.children(".fa-plus-circle"),o=e.children(".fa-minus-circle");e.toggleClass("open"),n.removeClass("fa-plus-circle"),n.addClass("fa-minus-circle"),o.removeClass("fa-minus-circle"),o.addClass("fa-plus-circle"),i.hasClass("active")?i.removeClass("active").slideUp():i.addClass("active").slideDown()}),a.off("click"),a.on("click",function(){var e=t(this);e.hasClass("opened")?a.removeClass("opened"):(a.removeClass("opened"),e.addClass("opened"))})}}}(jQuery),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).bsCustomFileInput=e()}(this,function(){"use strict";var t={CUSTOMFILE:'.custom-file input[type="file"]',CUSTOMFILELABEL:".custom-file-label",FORM:"form",INPUT:"input"},e=function(e){var i="",n=e.parentNode.querySelector(t.CUSTOMFILELABEL);return n&&(i=n.innerHTML),i},i=function(t){if(t.childNodes.length>0)for(var e=[].slice.call(t.childNodes),i=0;i