function GA_Subscribe(){googleAnalyticsEnabled&&typeof ga=="function"&&ga("send","event","Event","Subscribe","OpenPopup","","")}function GA_SubmitSubscribe(){googleAnalyticsEnabled&&typeof ga=="function"&&ga("send","event","Event","Subscribe","SubmitSubscribe","","")}function GA_CampaignSubscribe(){googleAnalyticsEnabled&&typeof ga=="function"&&ga("send","event","Event","Campaign","SignUp","","")}function GA_OpenPopupHeadNavigation(){googleAnalyticsEnabled&&typeof ga=="function"&&ga("send","event","Event","Subscribe","OpenPopupHeadNavigation","","")}function closeTab(){$("#mapVerticalTab ul.resp-tabs-list li").removeAttr("style").removeClass("resp-tab-active");$("#mapVerticalTab .resp-tabs-container h2.resp-accordion").removeAttr("style").removeClass("resp-tab-active");$("#mapVerticalTab .resp-tabs-container .resp-tab-content").removeAttr("style").removeClass("resp-tab-content-active");window.location.hash.indexOf("dayfrom")==-1&&removeHash()}function removeHash(){var t,i,n=window.location;"pushState"in history?history.pushState("",document.title,n.pathname+n.search):(t=document.body.scrollTop,i=document.body.scrollLeft,n.hash="",document.body.scrollTop=t,document.body.scrollLeft=i)}function initPromotedEvents(){if(showPromotedEvents&&promotedEventsAll&&promotedEventsAll.length>0){mappedPromotedEventsAll=PromotedEventsUtils.mapPromotedEvents(promotedEventsAll);mappedPromotedEventsAll=PromotedEventsUtils.filterOutExcludedEventTypes(mappedPromotedEventsAll,ExcludedEventTypeValuesList);filteredPromotedEvents=PromotedEventsUtils.sortPromotedEvents(mappedPromotedEventsAll);refreshPromotedEvents();$(".wrapper_upcoming_events").show();var n=$("#select101");n.select2({theme:"bootstrap",minimumResultsForSearch:-1});n.off("select2:select").on("select2:select",function(){var t=$(this).select2("data"),n,i;if(t.length>0&&t[0]&&(n=t[0].id>-1?t[0].text:null,n==="São Paulo"&&(n="Sao Paulo"),i=n?mappedPromotedEventsAll.filter(function(t){return t.location===n||t.location==="Global"}):[].concat(mappedPromotedEventsAll),filteredPromotedEvents=PromotedEventsUtils.sortPromotedEvents(i),refreshPromotedEvents(),n))jsllHelper.mainPage.onLocationFilterOnFeaturedEventsClick(n)})}}function refreshPromotedEvents(){var i=createHtml(filteredPromotedEvents,"promoted-events-template"),n,t;$("#PromotedEventsSection div").remove();$("#PromotedEventsSection").append(i);$("#ScrollList_1").length?$("#ScrollList_1").innerWidth()<$("#ScrollList_1 .wrapper-blog-list.wrapper-blog-list-new").innerWidth()?($("#ScrollList_1 .main__bar_1").show(),$("#ScrollList_1 .main__track_1").show(),n=document.querySelector(".main__scroller_1"),addWheelEventHandler(n,"wheel")):($("#ScrollList_1 .main__bar_1").hide(),$("#ScrollList_1 .main__track_1").hide(),n=document.querySelector(".main__scroller_1"),removeWheelEventHandler(n,"wheel")):$("#ScrollList_2").length&&($("#ScrollList_2").innerWidth()<$("#ScrollList_2 .wrapper-blog-list.wrapper-blog-list-new").innerWidth()?($("#ScrollList_2 .main__bar_2").show(),$("#ScrollList_2 .main__track_2").show(),t=document.querySelector(".main__scroller_2"),addWheelEventHandler(t,"wheel")):($("#ScrollList_2 .main__bar_2").hide(),$("#ScrollList_2 .main__track_2").hide(),t=document.querySelector(".main__scroller_2"),removeWheelEventHandler(t,"wheel")));initBlogScrollSection()}function trimText(n,t,i,r){var f,u;return(i=i===undefined?"...":i,r=r===undefined?!0:r,f=t+(i?i.length:0),n!==null&&n!==undefined&&n.length<=f)?n:(u=t,r&&(u=n.indexOf(" ",u)),n.substring(0,u)+i)}function ToJavaScriptDate(n){return new Date(n)}function indexOfObjectInArray(n,t,i){for(var r=0;r<n.length;r+=1)if(n[r][t]===i)return r;return-1}function hideLoaderSafe(){window.calendarLoadingComplete&&window.promotedEventsLoadingComplete&&hideLoader()}function doResize(n,t){var i=1,r=parseInt(t.css("fontSize"));n.innerHeight()<t.innerHeight()?(i=n.innerHeight()/t.innerHeight(),t.stop().animate({fontSize:r*i+"px"})):t.removeAttr("style")}function encodeEmails(){for(var t,r,i=$('a[href^="mailto:"]'),n=0;n<i.length;n++)t=$(i[n])[0],r=t.href.replace("mailto:",""),setEmailElement(t,r)}function openLocationPopup(){var t=window.location.hash,n,i;(t.indexOf("dayfrom")==-1||t=="")&&(n=t.replace("#","").replace("Reactor",""),n=n.toUnderscore().substr(1),i=null,i=n=="redmond_b20"||n=="redmond_b25"?$("#"+n):$('li[data-hashtag="'+t+'"]'),i.length>0&&(i.click(),$("html, body").animate({scrollTop:$("#mapVerticalTab div.resp-tab-content-active").first().offset().top-100},500)))}function encodeByROT13(n){return n.replace(/[a-zA-Z]/g,function(n){return String.fromCharCode((n<="Z"?90:122)>=(n=n.charCodeAt(0)+13)?n:n-26)})}function setEmailElement(n,t){var i=encodeByROT13(t),r;n.setAttribute("href","javascript:void(0);");n.setAttribute("onclick",'openMailer("'+i+'")');r=n.firstChild.nodeValue.replace("&#8203;","");n.firstChild.nodeValue="email"}function openMailer(n){var t=encodeByROT13(n);window.location.href="mailto:"+t}function initHtml5LightboxScript(){var n=document.createElement("script");n.type="text/javascript";n.src="/Scripts/Pages/html5lightbox/html5lightbox.js";n.async=!0;$("head")[0].appendChild(n);console.log("init html5lightbox script")}function initSliderBx(n,t){var u=n.getMonth()+1,r=u===12?new Date(n.getFullYear()+1,0,15):new Date(n.getFullYear(),n.getMonth()+1,15),i=u===0?new Date(n.getFullYear()-1,0,15):new Date(n.getFullYear(),n.getMonth()-1,15),c=new Date(i.getFullYear(),i.getMonth(),1),f,e,h;firstLoadedMonth=i.getMonth()+1;f=new Date(r.getFullYear(),r.getMonth()+1,0);e={date:n,selectedEventId:t};loadEvents(c,f,onLoadedEventsFirstTime,e);var o=i<new Date(minYear,0,1),l=o?[]:getPreviousMonthSlides(i),a=o?getPreviousMonthSlides(n):initMonthForSlider(n),v=n.getFullYear()===maxYear&&n.getMonth()===11,y=v?[]:initMonthForSlider(r),s=l.concat(a.concat(y)),p=createHtml(s,"calendar-item-bx");document.getElementById("calendar-bxslider").innerHTML=p;h=FindIndex(s,function(t){return+t.day==+n.getDate()&&+t.month===n.getMonth()+1&&+t.year==+n.getFullYear()});sliderConfig.startSlide=Math.floor(h/slidesOnPage);sliderInstance=$("#calendar-bxslider").bxSlider(sliderConfig)}function FindIndex(n,t){return n.reduce(function(n,i,r){return t(i,r)?r:n},-1)}function initDropdowns(n,t){$("#select002").val(n);$("#select002").trigger("change");$("#select003").val(t);$("#select003").trigger("change")}function initMonthForSlider(n,t){for(var f=n.getMonth()+1,u=n.getFullYear(),o=n.toLocaleString("en-us",{month:"long"}),s=new Date(u,f,0).getDate(),e=[],h=t?n.getDate()-1:0,r=h;r<s;r++){var c=new Date(u,n.getMonth(),r+1),l=c.toLocaleDateString("en-us",{weekday:"short"}),i=r+1;i=i>9?""+i:"0"+i;e.push({day:i,month:f,year:u,dayName:l,monthName:o,eventString:"7 events"})}return e}function createHtml(n,t){var i=document.getElementById(t),r=null,u;return i!==null&&i.innerHTML&&(u=Handlebars.compile(i.innerHTML),r=u(n)),r}function beforSliderChangedBx(n,t,i){var c=Math.ceil(slidesOnPage/2),l=t*slidesOnPage,u=i*slidesOnPage,a=$($("#calendar-bxslider").find(".wrapper-days")[u]),r=a.data("month"),v=a.data("year"),f=t<i,p=sliderInstance.getSlideCount(),y,h;if(f?($(".wrapper_calendar_box .slider > div .wrapper-days").addClass("currentLeft"),p/slidesOnPage-i<=2&&loadNextMonth(r,v)):($(".wrapper_calendar_box .slider > div .wrapper-days").addClass("currentRight"),i<=2&&r===firstLoadedMonth&&(firstLoadedMonth=r===1?12:r-1,loadPrevMonth(r,v))),notUpdateDateDropdown)notUpdateDateDropdown=!1;else{var w=f?l:l+slidesOnPage-1,b=f?u+c:u+c-1,e=$("#calendar-bxslider").find(".wrapper-days")[w],o=$("#calendar-bxslider").find(".wrapper-days")[b];if(e&&o){var k=$(e).data("month"),s=$(o).data("month"),d=+$("#select002").val();k!==s&&d!==s&&($("#select002").val(s),$("#select002").trigger("change"),y=$(e).data("year"),h=$(o).data("year"),y!==h?($("#select003").val(h),$("#select003").trigger("change"),highlightDropdowns()):highlightDropdowns("month-select-box"))}}}function afterSliderChangedBx(n,t,i){t<i?$(".wrapper_calendar_box .slider > div .wrapper-days").removeClass("currentLeft"):$(".wrapper_calendar_box .slider > div .wrapper-days").removeClass("currentRight")}function loadNextMonth(n,t){var i=n,r=t,u,f;if(i===12&&(i=0,r=t+1),r<=maxYear){var e=new Date(r,i,15,0,0,0,0),o=initMonthForSlider(e),s=createHtml(o,"calendar-item-bx");$("#calendar-bxslider").first().append(s);sliderConfig.startSlide=sliderInstance.getCurrentSlide();sliderInstance.reloadSlider(sliderConfig);u=new Date(r,i,1,0,0,0,0);f=new Date(r,i+1,0,0,0,0,0);loadEvents(u,f,onEventsLoaded)}}function loadPrevMonth(n,t){var i=n-1,r=t,o,s,h;if(i===0&&(i=12,r=t-1),r>=minYear){var c=sliderInstance.getCurrentSlide(),l=new Date(r,i-1,15,0,0,0,0),u=getPreviousMonthSlides(l),f=$($("#calendar-bxslider").find(".wrapper-days")[0]),a=$(f).data("month"),v=$(f).data("year"),y=$(f).data("day"),e=FindIndex(u,function(n){return+n.day==+y&&+n.month==+a&&+n.year==+v});e!==-1&&(u=u.slice(0,e));o=createHtml(u,"calendar-item-bx");$("#calendar-bxslider").first().prepend(o);sliderInstance.reloadSlider();setTimeout(function(){sliderInstance.goToSlide(Math.floor(u.length/slidesOnPage)+c)},0);s=new Date(r,i-1,1,0,0,0,0);h=new Date(r,i,0,0,0,0,0);loadEvents(s,h,onEventsLoaded)}}function getPreviousSunday(n){var t=new Date(n.toString());return new Date(t.setDate(t.getDate()-t.getDay()))}function showEvents(n,t,i,r,u){$("#calendar-bxslider a.active").removeClass("active");var f=n>9?n:"0"+n;$("#calendar-bxslider").find("[data-day='"+f+"'][data-month='"+t+"'][data-year='"+i+"'] a").addClass("active");renderEventInfo({day:n,month:t,year:i},null,r,u);$('[data-toggle="tooltip"]').tooltip()}function getCorrectEventFormat(n){if(n&&n.length>0){let t="";return n.forEach(function(n){n=="Livestream"?t=t.length==0?'<span class="livestream">'+n+"<\/span>":'<span class="livestream">'+n+"<\/span>, "+t:(t.length>0&&(t+=", "),t+=n)}),t}return""}function isLivestreamEventFormat(n){return n&&n.find(function(n){return n==="Livestream"})?!0:!1}function renderEventInfo(n,t,i,r){var w=new Date(n.year,n.month-1,n.day),s,o,v,y,b,h,c,k,d,g;if(selectedDate=new Date(w),s=w.toLocaleDateString("en-US"),o=null,filteredEvents[s]&&filteredEvents[s].events.length>0){for(v=$("#parentVerticalTab .resp-tabs-list"),y=$("#parentVerticalTab .resp-tabs-container"),v.html(""),y.html(""),o=r?r:null,o&&(b=filteredEvents[s].events.filter(function(n){return n.id==o}),b.length==0&&(o=null)),h=[],c=0;c<filteredEvents[s].events.length;c++){var u=filteredEvents[s].events[c],f=datetimeHelper.getDateWithoutTimezoneOffset(u.startDate),e=u.endDate!=null&&u.endDate!=""?datetimeHelper.getDateWithoutTimezoneOffset(u.endDate):datetimeHelper.getDateWithoutTimezoneOffset(u.startDate),a=getTopic(u),l="";f.toISOString()==e.toISOString()?l=monthNames[f.getMonth()]+" "+f.getDate()+", "+f.getFullYear():f<e&&f.getDate()<e.getDate()&&f.getMonth()==e.getMonth()&&f.getFullYear()==e.getFullYear()?l=monthNames[f.getMonth()]+" "+f.getDate()+" - "+e.getDate()+", "+f.getFullYear():f<e&&f.getMonth()<e.getMonth()&&f.getFullYear()==e.getFullYear()?l=monthNames[f.getMonth()]+" "+f.getDate()+" - "+monthNames[e.getMonth()]+" "+e.getDate()+", "+f.getFullYear():f<e&&f.getFullYear()<e.getFullYear()&&(l=monthNames[f.getMonth()]+" "+f.getDate()+", "+f.getFullYear()+" - "+monthNames[e.getMonth()]+" "+e.getDate()+", "+e.getFullYear());h.push({eventId:u.id,spId:u.spId,isActive:o?u.id===o:c===0,time:getCorrectTimeIntervalText(u.eventHours),date:l,timezone:u.timezone,title:u.title,eventPreRequisites:u.eventPreRequisites&&u.eventPreRequisites.length?u.eventPreRequisites.split("\n").join("<\/p><p>"):u.eventPreRequisites,displayEventPreRequisites:u.displayEventPreRequisites,titleSafe:u.title.split("'").join("\\'"),eventFormat:getCorrectEventFormat(u.eventFormat),eventDriver:u.eventDriver,topic:a,displayDescription:u.displayDescription,description:u.eventDescription?u.eventDescription.split("\n").join("<br/>"):u.eventDescription,tabTitle:u.title!==""?u.title:a,location:u.location,hasRegistration:u.registrationURLVisible==="Yes"&&u.registrationLink&&u.registrationLink!=="",isLivestreamEventFormat:isLivestreamEventFormat(u.eventFormat),regLink:u.registrationLink,displayReducedInfo:u.eventType&&u.eventType.length>0&&u.eventType[0]?arraysIntersect(u.eventType,eventTypesWithReducedInfo):null,reactorTeamManagingRegistration:u.reactorTeamManagingRegistration,onDemandVideos:u.onDemandVideos,isPastEvent:u.isPastEvent})}k=createHtml(h,"calendar-event-tabls");d=createHtml(h,"calendar-event-details");v.html(k);y.html(d);g=h.filter(function(n){return n.isActive})[0];r=g.eventId;attachResponsiveTabs();selectEvent(r,t,i);toggleEventDetails("show")}else{var a=getTopicValue(),tt=getEventFormatValue(),nt=getEventTypeValue(),p=getLocationValues(),it=getEventDriverValue();isNeedSetFilterUrl==!0&&setLink(selectedDate,null,p,a,nt,tt,it);p&&p.length||a||nt?toggleEventDetails("not_found"):toggleEventDetails("not_found")}}function toggleEventDetails(n){n==="not_found"?($("#event_not_found").show(),$("#_eventDetails").hide()):n==="filter"?($("#event_not_found").hide(),$("#_eventDetails").show(),$("#parentVerticalTab").hide()):n==="show"&&($("#event_not_found").hide(),$("#_eventDetails").show(),$("#parentVerticalTab").show())}function setLink(n,t,i,r,u,f,e){var o="";n&&(o+="dayfrom="+(n.getMonth()+1)+"-"+n.getDate()+"-"+n.getFullYear()+"&");t&&(o+="id="+t+"&");i&&i.length>0&&(o+="locations="+i+"&");r&&(o+="topic="+r+"&");u&&(o+="eventType="+u+"&");f&&f.length&&(o+="format="+f+"&");e&&(o+="audience="+e+"&");o&&o.length>0&&o[o.length-1]=="&"&&(o=o.substring(0,o.length-1));window.location.hash=o&&o.length>0?encodeURI("filter?"+getComparableFormattedText(o)):null}function loadEvents(n,t,i,r){showLoader();$.ajax({type:"GET",url:urlHelper.getAbsoluteUrl("api/sp/events"),data:{from:n.getFullYear()+"-"+(n.getMonth()+1)+"-"+n.getDate()+"T00:00:00.111Z",to:t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()+"T00:00:00.111Z"},success:function(n){var t,f,o,e,u;if(n.data){t=n.data;t=$.grep(t,function(n){return n.location&&n.location.length&&n.location.toLowerCase()!=="redmond b25"});try{for(f=0;f<t.length;f++)if(validateEvent(t[f]))for(o=datetimeHelper.getDateWithoutTimezoneOffset(t[f].endDate),o.setHours(o.getHours()+1),e=datetimeHelper.getDateWithoutTimezoneOffset(t[f].startDate);e<=o;e.setDate(e.getDate()+1))u=e.toLocaleDateString("en-US"),(allEvents[u]===null||allEvents[u]===undefined)&&(allEvents[u]={}),(allEvents[u].events===null||allEvents[u].events===undefined)&&(allEvents[u].events=[]),allEvents[u].events.some(function(n){return t[f].id===n.id})||allEvents[u].events.push(t[f])}catch(s){console.error(s.message)}i&&typeof i=="function"?i(r):(window.calendarLoadingComplete=!0,hideLoaderSafe())}},error:function(n){hideLoader();console.error(n)}})}function validateEvent(n){for(var i=!0,t=0;t<n.eventType.length;t++)if(n.eventType[t]&&ExcludedEventTypeValuesList.indexOf(n.eventType[t].split("\n").join("").trim())>-1){i=!1;break}return i}function getEventDateFromLink(){var f=decodeURI(window.location.hash),n=getParameterByName("dayfrom",f);if(n&&n.length>0){var t=n.split("-"),i=+t[1],r=+t[0],u=+t[2];if(!isNaN(i)&&!isNaN(r)&&!isNaN(u))return{day:i,month:r,year:u}}return null}function getEncodedEventIdFromLink(){var t=decodeURI(window.location.hash),n=getParameterByName("id",t);return n&&n.length>0?decodeURI(n):null}function getLocationsFromLink(){var t=decodeURI(window.location.hash),n=getParameterByName("locations",t);return n&&n.length>0?decodeURI(n).split(","):null}function getTopicFromLink(){var t=decodeURI(window.location.hash),n=getParameterByName("topic",t);return n&&n.length>0?decodeURI(n):null}function getEventTypeFromLink(){var t=decodeURI(window.location.hash),n=getParameterByName("eventType",t);return n&&n.length>0?decodeURI(n):null}function getFormatFromLink(){var t=decodeURI(window.location.hash),n=getParameterByName("format",t);return n&&n.length>0?decodeURI(n):null}function getAudienceFromLink(){var t=window.location.hash,n=getParameterByName("audience",t);return n&&n.length>0?decodeURI(n):null}function resetFilters(){var n,t;$("#select001").val(-1).trigger("change");onCloseLocationCalendarFilter();var i=getEventTypeValue(),r=getTopicValue(),u=getEventFormatValue();$("#select007").val(-1).trigger("change");onCloseFormatCalendarFilter();n=getEventDriverValue();applyFilterEvents(null,r,i,u,n);$("#select005").val(-1).trigger("change");$("#select006").val(-1).trigger("change");$("#select008").val(-1).trigger("change");$("a#resetFiltersButton").addClass("disabled");t=getLocationValues();applyFilterEvents(t)}function applyFilterEvents(n,t,i,r,u){var f,o,e;filterEvents(n,t,i,r,u);refreshEventsOnSlider();f=getEventDateFromLink();o=!1;f||(e=new Date,f={day:e.getDate(),month:e.getMonth()+1,year:e.getFullYear()},o=!0);renderEventInfo(f,o)}function onEventsLoaded(){var n=getLocationValues(),t=getEventTypeValue(),i=getTopicValue(),r=getEventFormatValue(),u=getEventDriverValue();filterEvents(n,i,t,r,u);refreshEventsOnSlider();window.calendarLoadingComplete=!0;hideLoaderSafe()}function onLoadedEventsFirstTime(n){var t=n.date,i=n.selectedEventId;onEventsLoaded();showEvents(t.getDate(),t.getMonth()+1,t.getFullYear(),!0,i);i?selectEvent(i,null,!0):isNeedSetFilterUrl=!0}function getLocationValues(){return selectedLocations}function getEventDriverValue(){var t=null,n=$("#select008").select2("data");return n&&n.length>0&&n[0].id>-1&&(t=getComparableFormattedText(n[0].text)),t}function getTopicValue(){var t=null,n=$("#select006").select2("data");return n&&n.length>0&&n[0].id>-1&&(t=getComparableFormattedText(n[0].text)),t}function getEventTypeValue(){var t=null,n=$("#select005").select2("data");return n&&n.length>0&&n[0].id>-1&&(t=getComparableFormattedText(n[0].text)),t}function getEventFormatValue(){return selectedFormats}function refreshEventsOnSlider(){var t,n,f,e;for(t in filteredEvents){var o=Date.parse(decodeURIComponent(encodeURIComponent(t).toLowerCase().split("%e2%80%8e").join(""))),i=new Date(o),r=i.getDate(),s=i.getMonth()+1,h=i.getFullYear(),c=r>9?r:"0"+r,u=$("#calendar-bxslider").find("[data-day='"+c+"'][data-month='"+s+"'][data-year='"+h+"'] span.events:not(.month)");u&&u.length>0&&(n=filteredEvents[t].events.length,f="",n>0&&(e=n===1?"1 events":n+" events",f=e+'<i class="fa fa-chevron-down"><\/i>'),$(u[0]).html(f))}}function filterEvents(n,t,i,r,u){filteredEvents=$.extend(!0,{},allEvents);for(var f in allEvents)filteredEvents[f].events=filteredEvents[f].events.filter(function(f){return(!n||!n.length||n.includes(getComparableFormattedText(f.location))||getComparableFormattedText(f.location)==="Global")&&(!t||f.topic&&getComparableFormattedText(f.topic).indexOf(t)!==-1)&&(!i||f.eventType.filter(function(n){return getComparableFormattedText(n)===i}).length>0)&&hasEventFormats(r,f)&&(!u||u==="Startup"&&(f.eventDriver==="Microsoft for Startup"||f.eventDriver==="Startup (external)")||u!=="Startup"&&(f.eventDriver===null||f.eventDriver===undefined||f.eventDriver.length==0||f.eventDriver.length>0&&f.eventDriver!=="Microsoft for Startup"&&f.eventDriver!=="Startup (external)"))})}function hasEventFormats(n,t){var r=!0,f,e,u,i;if(!n||!n.length)return r;if(f=[],t.eventFormat&&t.eventFormat.length)for(i=0;i<t.eventFormat.length;i++)(e=getComparableFormattedText(t.eventFormat[i].toLowerCase()),e!=="ondemand")&&f.push(e);for(u=[],i=0;i<n.length;i++)u.push(n[i].toLowerCase());return r=arraysIntersect(u,f),r||u.includes("ondemand")&&(r=t.isPastEvent&&t.onDemandVideos&&t.onDemandVideos.length),r}function bindOnChangeSelectorEvents(){$("#select001").off("select2:close").on("select2:close",function(n){onCloseLocationCalendarFilter(n);selectedLocations&&selectedLocations.length?$("a#resetFiltersButton").removeClass("disabled"):$("a#resetFiltersButton").addClass("disabled");var t=selectedLocations,i=getEventTypeValue(),r=getTopicValue(),u=getEventFormatValue(),f=getEventDriverValue();if(isNeedSetFilterUrl==!0&&setLink(selectedDate,null,t,r,i,u,f),displayedSelectedLocation.length>0)jsllHelper.mainPage.onEventCalendarFilteringClick(displayedSelectedLocation.toString(),"Locations");applyFilterEvents(t,r,i,u,f)});$("#select002").off("select2:select").on("select2:select",function(){onDropdownDateChanged();jsllHelper.mainPage.onEventCalendarFilteringClick($("#select002").select2("data")[0].text,"Month")});$("#select003").off("select2:select").on("select2:select",function(){onDropdownDateChanged();jsllHelper.mainPage.onEventCalendarFilteringClick($("#select003").select2("data")[0].text,"Year")});$("#select005").off("select2:select").on("select2:select",function(){var n=$(this).select2("data");if(n.length>0&&n[0]){var t=null,r=getLocationValues(),u=getEventFormatValue(),f=getEventDriverValue(),i=getTopicValue();if(n[0].id>0){jsllHelper.mainPage.onEventCalendarFilteringClick(n[0].text,"Event type");t=getComparableFormattedText(n[0].text);$("a#resetFiltersButton").removeClass("disabled")}else i||$("a#resetFiltersButton").addClass("disabled");isNeedSetFilterUrl==!0&&setLink(selectedDate,null,r,i,t,u,f);applyFilterEvents(r,i,t,u,f)}});$("#select006").off("select2:select").on("select2:select",function(){var n=$(this).select2("data");if(n.length>0&&n[0]){var t=null,r=getEventFormatValue(),i=getEventTypeValue(),u=getLocationValues(),f=getEventDriverValue();if(n[0].id>-1){jsllHelper.mainPage.onEventCalendarFilteringClick(n[0].text,"Topic");t=getComparableFormattedText(n[0].text);$("a#resetFiltersButton").removeClass("disabled")}else i||$("a#resetFiltersButton").addClass("disabled");isNeedSetFilterUrl==!0&&setLink(selectedDate,null,u,t,i,r,f);applyFilterEvents(u,t,i,r,f)}});$("#select007").off("select2:close").on("select2:close",function(n){onCloseFormatCalendarFilter(n);selectedFormats&&selectedFormats.length?$("a#resetFiltersButton").removeClass("disabled"):$("a#resetFiltersButton").addClass("disabled");var t=getLocationValues(),i=getEventTypeValue(),r=getTopicValue(),u=selectedFormats,f=getEventDriverValue();if(isNeedSetFilterUrl==!0&&setLink(selectedDate,null,t,r,i,u,f),displayedSelectedFormats.length>0)jsllHelper.mainPage.onEventCalendarFilteringClick(displayedSelectedFormats.toString(),"Formats");applyFilterEvents(t,r,i,u,f)});$("#select008").off("select2:select").on("select2:select",function(){var n=$(this).select2("data");if(n.length>0&&n[0]){var t=null,r=getTopicValue(),u=getEventFormatValue(),i=getEventTypeValue(),f=getLocationValues();if(n[0].id>-1){jsllHelper.mainPage.onEventCalendarFilteringClick(n[0].text,"Audience");t=getComparableFormattedText(n[0].text);$("a#resetFiltersButton").removeClass("disabled")}else i||$("a#resetFiltersButton").addClass("disabled");isNeedSetFilterUrl==!0&&setLink(selectedDate,null,f,r,i,u,t);applyFilterEvents(f,r,i,u,t)}})}function refreshData(){notUpdateDateDropdown=!1;allEvents={};filteredEvents={}}function onDropdownDateChanged(){var n=$("#select002").select2("data"),t=$("#select003").select2("data"),i;n.length>0&&n[0]&&t.length>0&&t[0]&&(i=new Date(+t[0].text,+n[0].id-1,1),selectedDate=i,reInitSlider(i));var r=getTopicValue(),u=getEventFormatValue(),f=getEventTypeValue(),e=getLocationValues(),o=getEventDriverValue();isNeedSetFilterUrl==!0&&setLink(selectedDate,null,e,r,f,u,o)}function reInitSlider(n){refreshData();sliderInstance.destroySlider();document.getElementById("calendar-bxslider").innerHTML="";initSliderBx(n)}function highlightDropdowns(n){var t=n?"#"+n+".wrapper-select-box.vertical_overlap":".wrapper-select-box.vertical_overlap";$(t).addClass("overlap");setTimeout(function(){$(t).removeClass("overlap")},500)}function attachResponsiveTabs(){$("#parentVerticalTab").easyResponsiveTabs({type:"vertical",width:"auto",fit:!0,closed:"accordion",tabidentify:"hor_1"})}function getTechnology(n){var t;if(n.technology!==null&&n.technology.indexOf!==undefined)return t=n.technology.indexOf("Other"),t>-1&&(n.technology.splice(t,1),n.otherTechnology!==""&&n.technology.push(n.otherTechnology)),n.technology.length>0?n.technology.filter(function(n){return n!==" "}).join(", "):""}function getTopic(n){return n.topic}function GA_ViewEvent(n){googleAnalyticsEnabled&&typeof ga=="function"&&ga("send","event","Event","View Details",n)}function GA_Registration(n){googleAnalyticsEnabled&&typeof ga=="function"&&ga("send","event","Event","Follow registration link",n)}function gotoRegistrationLinkPopup(n,t,i,r,u){var f,e,o;n.preventDefault();n.stopPropagation();f=i.split("'").join("\\'");u&&(u==="true"||u===!0)?(e=urlHelper.getAbsoluteUrl("/EventRegistration/Register/"+r),gotoRegistrationLink(n,e,f,u)):t.indexOf("microsoftevents.com")>-1||t.indexOf("aka.ms")>-1||t.indexOf("microsoft.com")>-1?gotoRegistrationLink(n,t,f,u):(o="onclick=\"gotoRegistrationLink(event,'"+t+"', '"+f+"')\"",showErrorPopup('<span style="font-weight:600;">Important Notes<\/span>','<p>You are now leaving the Reactor web page and being directed to a site outside of Microsoft to complete your registration.             If you register for the event, your information may be shared with Microsoft as part of the event guest list.<\/p>            <p>Click here to review <a href="https://go.microsoft.com/fwlink/?LinkId=521839" target="_blank">Microsoft’s Privacy Statement<\/a>.<\/p>','<div class="wrapper_create_event_btn mt-0"><a class="text-center" style="margin: 0 20px;" data-dismiss="modal" href="#"><span '+o+">Ok<\/span><\/a><\/div>"))}function gotoRegistrationLink(n,t,i){n.preventDefault();GA_Registration(i);window.open(t,"_blank")}function initCalendarUI(){var r=getEventDateFromLink(),u=r?new Date(r.year,r.month-1,r.day):new Date,t=getLocationsFromLink(),n,s,i;t&&(selectedLocations=getLocationsFromLink());n=getFormatFromLink();n&&(selectedFormats=n);var f=getTopicFromLink(),e=getEventTypeFromLink(),o=getAudienceFromLink();(t&&t.length>0||f||n&&n.length||e||o)&&($("a#resetFiltersButton").removeClass("disabled"),isNeedSetFilterUrl=!0);$("#select001").select2MultiCheckboxes({templateSelection:onSelectLocationCalendarFilter,width:"auto",minimumResultsForSearch:-1});t&&t.length>0?(i=[],$("#select001 option").filter(function(){return t.includes(getComparableFormattedText($(this).html()))}).each(function(){i.push($(this).val())}),$("#select001").val(i).trigger("change")):$("#select001").val(-1).trigger("change");$("#select002").select2({theme:"bootstrap",minimumResultsForSearch:-1});u&&$("#select002").val(u.getMonth()+1).trigger("change");$("#select003").select2({theme:"bootstrap",minimumResultsForSearch:-1});u&&$("#select003").val(u.getFullYear()).trigger("change");$("#select005").select2({theme:"bootstrap",minimumResultsForSearch:-1}).data("select2").listeners["*"].push(function(n){n==="focus"&&$("#lablel001").textillate("start")});e&&$("#select005").val($("#select005 option").filter(function(){return getComparableFormattedText($(this).html())===e}).first().val()).trigger("change");$("#select006").select2({theme:"bootstrap",minimumResultsForSearch:-1}).data("select2").listeners["*"].push(function(n){n==="focus"&&$("#lablel001").textillate("start")});f&&(s=$("#select006 option").filter(function(){return getComparableFormattedText($(this).html())===f}).first().val(),$("#select006").val(s).trigger("change"));$("#select007").select2MultiCheckboxes({templateSelection:onSelectFormatCalendarFilter,width:"auto",minimumResultsForSearch:-1});n&&n.length>0?(i=[],$("#select007 option").filter(function(){return n.includes(getComparableFormattedText($(this).html()))}).each(function(){i.push($(this).val())}),$("#select007").val(i).trigger("change")):$("#select007").val(-1).trigger("change");$("#select008").select2({theme:"bootstrap",minimumResultsForSearch:-1}).data("select2").listeners["*"].push(function(n){n==="focus"&&$("#lablel001").textillate("start")});o&&$("#select008").val($("#select008 option").filter(function(){return getComparableFormattedText($(this).html())===o}).first().val()).trigger("change")}function selectEvent(n,t,i){var v=n,r=null,h,c,l,a;Object.keys(filteredEvents).forEach(function(n){if(filteredEvents[n].events)for(var t=0;t<filteredEvents[n].events.length;t++)if(filteredEvents[n].events[t].id===v){r=filteredEvents[n].events[t];break}});var u=null,f=null,e=null,o=null,s=null;u=getTopicValue();f=getEventFormatValue();e=getEventTypeValue();o=getLocationValues();s=getEventDriverValue();r&&(t||(selectedDate?isNeedSetFilterUrl==!0&&setLink(selectedDate,r.id,o,u,e,f,s):isNeedSetFilterUrl==!0&&setLink(null,r.id,o,u,e,f,s)),i||GA_ViewEvent(r.title));h=document.querySelector("#parentVerticalTab .resp-tabs-list .resp-tab-active");c=$("li.resp-tab-item#"+n);h&&c.length>0&&($(h).removeClass("resp-tab-active"),$(c).addClass("resp-tab-active"));l=document.querySelector("#parentVerticalTab .resp-tabs-container .resp-tab-content-active");l&&(l.className="event_info resp-tab-content");a=document.querySelector("#parentVerticalTab .resp-tabs-container #event_"+n);a&&(a.className+=" resp-tab-content-active");isNeedSetFilterUrl=!0}function scrollToEvent(n,t,i){displayedSelectedLocation=[];displayedSelectedFormats=[];selectedLocations=[];sliderInstance.destroySlider();initSliderBx(i,n);t&&GA_ViewEvent(t);$("#select003").val(i.getFullYear()).trigger("change");$("#select002").val(i.getMonth()+1).trigger("change");$("#select001").val(-1).trigger("change");$("#select005").val(-1).trigger("change");$("#select006").val(-1).trigger("change");$("#select007").val(-1).trigger("change");$("#select008").val(-1).trigger("change");$("a#resetFiltersButton").addClass("disabled");$('[data-toggle="tooltip"]').tooltip();var r=setInterval(function(){var i=0,t;$("html, body").width()>=992&&(i=60);t=$("#event_"+n);t&&t.length>0&&($("html, body").animate({scrollTop:t.offset().top-i},500),clearInterval(r))},500)}function getPreviousMonthSlides(n){var t=[],i=new Date(n.getFullYear(),n.getMonth(),1),r=getPreviousSunday(i);return r.getMonth()!==i.getMonth()&&(t=initMonthForSlider(r,!0)),t.concat(initMonthForSlider(new Date(n.getFullYear(),n.getMonth(),15)))}function hideLoaderSafe(){window.calendarLoadingComplete&&window.promotedEventsLoadingComplete&&hideLoader()}function onSelectLocationCalendarFilter(n){var r="Location",t,i;return!n||!Array.isArray(n)||n.length===0?r:(t=[],Array.isArray(n)&&n.forEach(function(n){var i=$.grep(LocationsList,function(t){return t.Value==n});i&&i.length&&t.push(i[0].Text)}),i=r,t&&t.length>0&&(i=t.join(", ")),i)}function onCloseLocationCalendarFilter(){var n=$("#select001").select2("data"),t=[],i,r;n&&n.length&&Array.isArray(n)&&(t=$.map(n,function(n){return n.text}));i=[];r=[];Array.isArray(t)&&t.forEach(function(n){var t=$.grep(LocationsList,function(t){return t.Text==n});t&&t.length&&(i.push(getComparableFormattedText(t[0].Text)),r.push(t[0].Text))});selectedLocations=i;displayedSelectedLocation=r}function onSelectFormatCalendarFilter(n){var r="Format",t,i;return!n||!Array.isArray(n)||n.length===0?r:(t=[],Array.isArray(n)&&n.forEach(function(n){var i=$.grep(FormatsList,function(t){return t.Value==n});i&&i.length&&t.push(i[0].Text)}),i=r,t&&t.length>0&&(i=t.join(", ")),i)}function onCloseFormatCalendarFilter(){var n=$("#select007").select2("data"),t=[],i,r;n&&n.length&&Array.isArray(n)&&(t=$.map(n,function(n){return n.text}));i=[];r=[];Array.isArray(t)&&t.forEach(function(n){var t=$.grep(FormatsList,function(t){return t.Text==n});t&&t.length&&(i.push(getComparableFormattedText(t[0].Text)),r.push(t[0].Text))});selectedFormats=i;displayedSelectedFormats=r}function getComparableFormattedText(n){return n?n.replace(/ã/g,"a").replace(/ /g,"").replace(/\//g,""):null}function viewOnDemand(n){var i,e,o,u,r,f,t,s;n=+n;i=null;for(e in filteredEvents)if(Object.prototype.hasOwnProperty.call(filteredEvents,e)&&(o=filteredEvents[e].events.find(function(t){return t.spId===n}),!!o)){i=o;console.log("found event 1");break}if(i&&i.onDemandVideos&&i.onDemandVideos.length&&(u=document.querySelector("#onDemandVideoContainer ul"),u)){for(u.innerHTML="",r=0;r<i.onDemandVideos.length;r++)(f=extractYoutubeVideoId(i.onDemandVideos[r]),f)&&(t=document.createElement("a"),t.id=n,t.href=i.onDemandVideos[r],t.classList.add("html5lightbox"),t.classList.add("onDemandVideo"),t.classList.add("video"),t.setAttribute("aria-label",n),t.setAttribute("data-thumbnail","https://img.youtube.com/vi/"+f+"/maxresdefault.jpg"),t.setAttribute("data-showsocial",!1),t.setAttribute("data-group","set1"),t.setAttribute("data-showvideo",!0),t.innerHTML="<span style=\"background-image: url('https://img.youtube.com/vi/"+f+"/maxresdefault.jpg');\"><\/span>",s=document.createElement("li"),s.appendChild(t),u.appendChild(s));$(".html5lightbox.onDemandVideo").html5lightbox();document.getElementById(n).click()}}function initTweetsslider(){var n=$(".wrapper-tweets .slider").bxSlider({pager:!1,slideMargin:0,speed:1e3,hideControlOnEnd:!0,infiniteLoop:!1,autoReload:!0,breaks:[{screen:0,slides:1,pager:!1},{screen:460,slides:2},{screen:768,slides:3}],onSliderLoad:function(){},onSlideAfter:function(n,t,i){t<i?$(".wrapper-tweets .slider > div .slide-overlay").removeClass("currentLeft"):$(".wrapper-tweets .slider > div .slide-overlay").removeClass("currentRight")},onSlideBefore:function(n,t,i){t<i?$(".wrapper-tweets .slider > div .slide-overlay").addClass("currentLeft"):$(".wrapper-tweets .slider > div .slide-overlay").addClass("currentRight")}})}function getTweetsAsync(){var n=urlHelper.getAbsoluteUrl("/GetTweets");return $.get(n)}function onConsentCookiesonLanding(){for(var i,r,t,u,n=0;n<locationContext.videoPreview.length;n++)for(i=$("#"+locationContext.videoPreview[n].WebId+"_slider"),r=i.find(".slider-title-img"),t=0;t<locationContext.videoPreview[n].PreviewVideoLinks.length;t++)u=$("<div><span>"+locationContext.videoPreview[n].PreviewVideoLinks[t]+"<\/span><\/div>"),r.length?u.insertAfter(r):i.prepend(u)}var SubscribeModule=window.SubscribeModule?window.SubscribeModule:{},sourceClick,getCorrectTimeIntervalText,selectedLocations,selectedFormats;SubscribeModule.containerSelector="#subscribeModal";sourceClick={subscribeBtn:0,subscribeSubmit:1,headerSubscribe:2,compaingSunscribe:3};SubscribeModule.openSubscribeModal=function(n,t){t==sourceClick.subscribeBtn&&GA_Subscribe();t==sourceClick.headerSubscribe&&GA_OpenPopupHeadNavigation();n&&(n.preventDefault(),n.stopPropagation());SubscribeModule.init();SubscribeModule.showSubscribeModal()};SubscribeModule.init=function(n){n&&n.length&&(SubscribeModule.containerSelector=n);SubscribeModule.initLocations();SubscribeModule.initLocationMultiSelect();SubscribeModule.initCountries();SubscribeModule.initCountryAutocomplete();SubscribeModule.initJobRoleSelectHtml();SubscribeModule.initJobRoleSelectPlugin();SubscribeModule.clearSubscribeFormData();SubscribeModule.setPrivacyStatement(null);SubscribeModule.subscribeToModalEvents()};SubscribeModule.showSubscribeModal=function(){$(SubscribeModule.containerSelector+" .modal-footer").hide();$(SubscribeModule.containerSelector).modal("show")};SubscribeModule.hideSubscribeModal=function(){$(SubscribeModule.containerSelector).modal("hide");$(SubscribeModule.containerSelector).modal("dispose");SubscribeModule.clearSubscribeFormData()};SubscribeModule.sendSubscribeRequest=function(n,t){if(n.preventDefault(),!$(SubscribeModule.containerSelector+" .wrapper_create_event_btn.mt-0 > a").hasClass("disabled")){var i=SubscribeModule.getSubscribeFormData(),r=SubscribeModule.isFormDataValid(i);r&&(showLoader(),$(SubscribeModule.containerSelector+" .wrapper_create_event_btn a").addClass("disabled"),$.ajax({type:"POST",url:"/api/subscribers",data:i,success:function(n){hideLoader();t==sourceClick.compaingSunscribe&&GA_CampaignSubscribe();t==sourceClick.subscribeSubmit&&GA_SubmitSubscribe();$(SubscribeModule.containerSelector+" .wrapper_create_event_btn a").removeClass("disabled");n.statusCode===200||n.statusCode===201?(SubscribeModule.hideSubscribeModal(),SubscribeModule.showSubscribeSuccessModal(localizeSubscribe.Popup_Subscribe_Success)):(SubscribeModule.hideSubscribeModal(),SubscribeModule.showSubscribeSuccessModal(localizeSubscribe.Popup_Subscribe_Error))},error:function(){hideLoader();$(SubscribeModule.containerSelector+" .wrapper_create_event_btn a").removeClass("disabled");SubscribeModule.hideSubscribeModal();SubscribeModule.showSubscribeSuccessModal(localizeSubscribe.Popup_Subscribe_Error)}}))}};SubscribeModule.selectedLocations="";SubscribeModule.initLocations=function(){var t=$("select#selectLocation"),i,n;t.empty();i='<option value="{0}" {1} {2}>{3}<\/option>';n="";LocationAllList.forEach(function(t,r){n+=i.format(r,"","",t.Localize[t.KeyName])});t.html(n)};SubscribeModule.initLocationMultiSelect=function(){$("#selectLocation").unbind("change");SubscribeModule.renderLocationMultiSelect();$("#selectLocation").on("select2:open",function(){$(".select2-container--bootstrap.select2-container--open .select2-dropdown .select2-results").slimscroll({height:"250px"})})};SubscribeModule.renderLocationMultiSelect=function(){$("#selectLocation")&&$("#selectLocation").select2MultiCheckboxes({templateSelection:SubscribeModule.templateSelectionLocations,width:"auto",closeOnSelect:!1})};SubscribeModule.templateSelectionLocations=function(n){var i,t;return n.length==0?"Choose multiple...":(i=[],Array.isArray(n)&&n.forEach(function(n){var t=LocationAllList[n];t!=undefined&&i.push(t.Localize[t.KeyName])}),t=i.join(", "),SubscribeModule.selectedLocations=t!=null?t:"",t)};SubscribeModule.initJobRoleSelectHtml=function(){var i=$("select#selectJobRole"),t,n;i.empty();t='<option value="{0}" {1} {2}>{3}<\/option>';n="";n+=t.format(-1,"","",localizeSubscribe.Form_ChooseOne);JobRolesList.forEach(function(i){n+=t.format(i.Id,"","",i.Name)});i.html(n)};SubscribeModule.initJobRoleSelectPlugin=function(){$("select#selectJobRole").select2({theme:"bootstrap",minimumResultsForSearch:-1})};SubscribeModule.initCountries=function(){var t=$("select#selectCountry"),i,n;t.empty();i='<option value="{0}" {1} {2}>{3}<\/option>';n="";CountriesList.forEach(function(t){n+=i.format(t.Id,"","",t.CountryDisplayName)});t.html(n)};SubscribeModule.initCountryAutocomplete=function(){$("selectCountry");SubscribeModule.renderCountryAutocomplete();$("#selectCountry").on("select2:open",function(){$(".select2-container--bootstrap.select2-container--open .select2-dropdown .select2-results").slimscroll({height:"250px"})})};SubscribeModule.renderCountryAutocomplete=function(){$("#selectCountry").autocomplete({source:function(n,t){var i=n.term.toLowerCase(),r=$.grep(CountriesList,function(n){return n.CountryDisplayName.toLowerCase().indexOf(i)!==-1}),u=r.map(function(n){return n.CountryDisplayName});t(u)},minLength:2,appendTo:$(SubscribeModule.containerSelector),select:function(n,t){var r=t.item&&t.item.value?t.item.value:null,u,i;SubscribeModule.setPrivacyStatement(r);u=$.grep(CountriesList,function(n){return n.CountryDisplayName.toLowerCase()===r.toLowerCase()&&n.HasPostalCode===!1});i=SubscribeModule.containerSelector+" #inputPostalCode";u.length?($(i).val(""),$(i).prop("disabled",!0)):$(i).prop("disabled",!1)},close:function(){var n=$(SubscribeModule.containerSelector+" #selectCountry").val(),u=n&&n.length?n.toLowerCase():null,i=$.grep(CountriesList,function(n){return n.CountryDisplayName.toLowerCase()===u}),r,t;i.length&&(n=i[0].CountryDisplayName,$(SubscribeModule.containerSelector+" #selectCountry").val(n));SubscribeModule.setPrivacyStatement(n);r=$.grep(CountriesList,function(t){return t.CountryDisplayName.toLowerCase()===n.toLowerCase()&&t.HasPostalCode===!1});t=SubscribeModule.containerSelector+" #inputPostalCode";r.length?($(t).val(""),$(t).prop("disabled",!0)):$(t).prop("disabled",!1)}})};SubscribeModule.validateOptInState=function(n,t){var i=SubscribeModule.containerSelector+" .wrapper_create_event_btn.mt-0 > a",r="disabled";n===2?$(i).removeClass(r):n===1?t===null?$(i).removeClass(r):t.checked?$(i).removeClass(r):$(i).addClass(r):t===null?$(i).addClass(r):t.checked?$(i).removeClass(r):$(i).addClass(r)};SubscribeModule.isFormDataValid=function(n){function i(t,i,r,u){var f=!0;return r(n[t])?SubscribeModule.setErrorStyle(i,!1,u):(SubscribeModule.setErrorStyle(i,!0,u),f=!1),f}function e(t){return PostalCode.checkIsPostalCodeValide(t,n.CountryId)}function o(n){if(!n||!n.length)return!0;return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n)}function r(n){return n==undefined||n===""||n===-1?!1:!0}function s(n,t,i,r){var u=!0,e=i+t[0].toUpperCase()+t.substr(1),o=n.CountryId,f;return o?u=!0:(f=$(SubscribeModule.containerSelector+" #selectCountry").val(),u=o===null&&f&&f.toLowerCase()==="other"?!0:!1),u?SubscribeModule.setErrorStyle(e,!1,r):SubscribeModule.setErrorStyle(e,!0,r),u}var t=!0,u=!0,f=$.grep(CountriesList,function(t){return t.Id===n.CountryId&&t.HasPostalCode===!1});return f.length&&(console.log("isPostalCodeRequired: false"),u=!1),t=t&i("FirstName","inputFirstName",r,"has-error"),t=t&i("LastName","inputLastName",r,"has-error"),t=t&i("Email","inputEmail",r,"has-error"),u&&(t=t&i("PostalCode","inputPostalCode",r,"has-error")),t=t&i("Company","inputCompany",r,"has-error"),t=t&i("JobRoleId","selectJobRole",r,"has-error"),t=t&s(n,"Country","select","has-error"),t=t&i("Email","inputEmail",o,"has-type-error"),u&&(t=t&i("PostalCode","inputPostalCode",e,"has-type-error")),RegFormFieldLengthValidation.fieldsLengthValidation(n,t)};SubscribeModule.setErrorStyle=function(n,t,i){var u=$("#"+n)[0],r;u!==undefined&&(r=u.parentNode,t?$(r).addClass(i):$(r).removeClass(i))};SubscribeModule.templateSelectionCountry=function(n){var i,t;return n.length==0?"Choose multiple...":(i=[],Array.isArray(n)&&n.forEach(function(n){var t=LocationAllList[n];t!=undefined&&i.push(t.Name)}),t=i.join(", "),SubscribeModule.selectedLocations=t!=null?t:"",t)};SubscribeModule.setPrivacyStatement=function(n){var h,a,c,r,i,t,l,o,v,y,s;n&&n.length||window&&window.culture&&window.culture.length&&(h=window.culture.toLowerCase().split("-"),h.length>1&&(a=h[1],c=$.grep(CountriesList,function(n){return n.CountryCode&&n.CountryCode.toLowerCase()===a}),c.length&&(n=c[0].CountryDisplayName)));var u=2,e="",f=$.grep(CountriesList,function(n){return n.CountryDisplayName==="United States"});f.length&&(u=f[0].NotificationConsentCheckboxState,o=f[0].PrivacyStatementPrimaryLink+"&redirect=true",e=f[0].PrivacyStatementPrimaryText+' <a href="'+o+'" target="_blank">'+f[0].PrivacyStatementPrimaryLinkText+"<\/a>");r="";i="";n&&n.length?(t=null,l=$.grep(CountriesList,function(t){return t.CountryDisplayName===n}),l.length&&(t=l[0]),t?(u=t.NotificationConsentCheckboxState,t.PrivacyStatementPrimaryText&&t.PrivacyStatementPrimaryText.length?(o=t.PrivacyStatementPrimaryLink+"&redirect=true",r=t.PrivacyStatementPrimaryText+' <a href="'+o+'" target="_blank">'+t.PrivacyStatementPrimaryLinkText+"<\/a>"):r=e,t.PrivacyStatementSecondaryText&&t.PrivacyStatementSecondaryText.length?(v=t.PrivacyStatementSecondaryLink+"&redirect=true",i=t.PrivacyStatementSecondaryText+' <a href="'+v+'" target="_blank">'+t.PrivacyStatementSecondaryLinkText+"<\/a>"):i=null):(r=e,i=null)):(r=e,i=null);y='<input id="optInStatus" name="optInStatus" onchange="SubscribeModule.validateOptInState('+u+',this)" type="checkbox" '+(u==2?'style="display:none;"':u==1?'checked="checked"':"")+" /><i "+(u==2?'style="display:none;"':"")+"><\/i>";r="<span>"+r+"<\/span>";i&&i.length&&(i="<span "+(t.PrivacyStatementSecondaryAlignRight?'style="direction: rtl; text-align: right;"':"")+">"+i+"<\/span>");s="<label>"+y+'<span class="label-checkbox-text">'+r+(i?i:"<\/span><\/label>");s=s.replace("\r\n","<br />").replace("\n","<br />");$(SubscribeModule.containerSelector+" .privacy-statement-wrapper").html(s);SubscribeModule.validateOptInState(u,null)};SubscribeModule.getSubscribeFormData=function(){var n={},r,f,t,u,i;return n.FirstName=$(SubscribeModule.containerSelector+" #inputFirstName").val(),n.LastName=$(SubscribeModule.containerSelector+" #inputLastName").val(),n.Email=$(SubscribeModule.containerSelector+" #inputEmail").val(),n.PostalCode=$(SubscribeModule.containerSelector+" #inputPostalCode").val(),n.Company=$(SubscribeModule.containerSelector+" #inputCompany").val(),r=Number($(SubscribeModule.containerSelector+" #selectJobRole").val()),n.JobRoleId=isNaN(r)?null:r,n.Locations=SubscribeModule.selectedLocations,n.ContactSource=$(SubscribeModule.containerSelector+" #hdContactSource").val(),n.OptInState=2,f=$(SubscribeModule.containerSelector+" #selectCountry").val(),t=$.grep(CountriesList,function(n){return n.CountryDisplayName===f}),t&&t.length?(n.CountryId=t[0].Id,u=$(SubscribeModule.containerSelector+" #optInStatus")[0].checked,i=t[0].NotificationConsentCheckboxState,n.OptInState=i===2?1:i===1&&u?1:i===0&&u?0:2):n.CountryId=null,n};SubscribeModule.clearSubscribeFormData=function(){$(SubscribeModule.containerSelector+" #inputFirstName").val("");$(SubscribeModule.containerSelector+" #inputLastName").val("");$(SubscribeModule.containerSelector+" #inputEmail").val("");$(SubscribeModule.containerSelector+" #selectJobRole").val("-1");SubscribeModule.initJobRoleSelectHtml();SubscribeModule.initJobRoleSelectPlugin();$(SubscribeModule.containerSelector+" #inputCompany").val("");$(SubscribeModule.containerSelector+" #selectCountry").val("");$(SubscribeModule.containerSelector+" #inputPostalCode").val("");SubscribeModule.selectedLocations="";SubscribeModule.initLocations();SubscribeModule.initLocationMultiSelect();SubscribeModule.setPrivacyStatement();SubscribeModule.setErrorStyle("inputFirstName",!1,"has-error");SubscribeModule.setErrorStyle("inputLastName",!1,"has-error");SubscribeModule.setErrorStyle("inputEmail",!1,"has-error");SubscribeModule.setErrorStyle("inputCompany",!1,"has-error");SubscribeModule.setErrorStyle("selectCountry",!1,"has-error");SubscribeModule.setErrorStyle("selectLocation",!1,"has-error");SubscribeModule.setErrorStyle("selectJobRole",!1,"has-error");SubscribeModule.setErrorStyle("inputPostalCode",!1,"has-error");SubscribeModule.setErrorStyle("inputFirstName",!1,"has-type-error");SubscribeModule.setErrorStyle("inputLastName",!1,"has-type-error");SubscribeModule.setErrorStyle("inputEmail",!1,"has-type-error");SubscribeModule.setErrorStyle("inputPostalCode",!1,"has-type-error");SubscribeModule.setErrorStyle("inputCompany",!1,"has-type-error");SubscribeModule.setErrorStyle("selectCountry",!1,"has-type-error");SubscribeModule.setErrorStyle("inputFirstName",!1,"has-length-error");SubscribeModule.setErrorStyle("inputLastName",!1,"has-length-error");SubscribeModule.setErrorStyle("inputEmail",!1,"has-length-error");SubscribeModule.setErrorStyle("inputPostalCode",!1,"has-length-error");SubscribeModule.setErrorStyle("inputCompany",!1,"has-length-error")};SubscribeModule.showSubscribeSuccessModal=function(n,t,i){$("#subscribeSuccessModal .modal-footer").hide();$("#subscribeSuccessModal #messageTitleSM").html(n);t&&$("#subscribeSuccessModal #messageBodySM").html(t);i&&($("#subscribeSuccessModal .modal-footer").show(),$("#subscribeSuccessModal .modal-footer").html(i));$("#subscribeSuccessModal").modal("show")};SubscribeModule.subscribeToModalEvents=function(){$(SubscribeModule.containerSelector).on("shown.bs.modal",function(){modalContentBefore=$(".modal.modal-experts.show .modal-dialog .modal-content").outerWidth()>$(".modal.modal-experts.show .modal-dialog .modal-content").outerHeight()?$(".modal.modal-experts.show .modal-dialog .modal-content").outerWidth():$(".modal.modal-experts.show .modal-dialog .modal-content").outerHeight();$(".modal.modal-experts.show .modal-dialog .modal-content > .before").css("width",modalContentBefore*2.5);$(window).resize(function(){modalContentBefore=$(".modal.modal-experts.show .modal-dialog .modal-content").outerWidth()>$(".modal.modal-experts.show .modal-dialog .modal-content").outerHeight()?$(".modal.modal-experts.show .modal-dialog .modal-content").outerWidth():$(".modal.modal-experts.show .modal-dialog .modal-content").outerHeight();$(".modal.modal-experts.show .modal-dialog .modal-content > .before").css("width",modalContentBefore*2.5)})});$("#subscribeSuccessModal").on("hidden.bs.modal",function(){$(".modal.modal-experts .modal-dialog .modal-content > .before").removeAttr("style")});$("#subscribeSuccessModal").on("shown.bs.modal",function(){modalContentBefore=$(".modal.modal-experts.show .modal-dialog .modal-content").outerWidth()>$(".modal.modal-experts.show .modal-dialog .modal-content").outerHeight()?$(".modal.modal-experts.show .modal-dialog .modal-content").outerWidth():$(".modal.modal-experts.show .modal-dialog .modal-content").outerHeight();$(".modal.modal-experts.show .modal-dialog .modal-content > .before").css("width",modalContentBefore*2.5);$(window).resize(function(){modalContentBefore=$(".modal.modal-experts.show .modal-dialog .modal-content").outerWidth()>$(".modal.modal-experts.show .modal-dialog .modal-content").outerHeight()?$(".modal.modal-experts.show .modal-dialog .modal-content").outerWidth():$(".modal.modal-experts.show .modal-dialog .modal-content").outerHeight();$(".modal.modal-experts.show .modal-dialog .modal-content > .before").css("width",modalContentBefore*2.5)})});$("#exampleModalCenter").on("hidden.bs.modal",function(){$(".modal.modal-experts .modal-dialog .modal-content > .before").removeAttr("style")})};String.prototype.format=function(){for(var i,t=this,n=0;n<arguments.length;n++)i=new RegExp("\\{"+n+"\\}","gm"),t=t.replace(i,arguments[n]);return t};$(document).ready(function(){$(SubscribeModule.containerSelector).hide()}),function(n){function s(t){return n(t).filter(function(){return n(this).is(":appeared")})}function e(){var n,e,t,u;for(f=!1,n=0,e=r.length;n<e;n++)t=s(r[n]),t.trigger("appear",[t]),i[n]&&(u=i[n].not(t),u.trigger("disappear",[u])),i[n]=t}function h(n){r.push(n);i.push()}var r=[],u=!1,f=!1,o={interval:250,force_process:!1},t=n(window),i=[];n.expr[":"].appeared=function(i){var r=n(i);if(!r.is(":visible"))return!1;var u=t.scrollLeft(),f=t.scrollTop(),e=r.offset(),o=e.left,s=e.top;return s+r.height()>=f&&s-(r.data("appear-top-offset")||0)<=f+t.height()&&o+r.width()>=u&&o-(r.data("appear-left-offset")||0)<=u+t.width()?!0:!1};n.fn.extend({appear:function(t){var i=n.extend({},o,t||{}),s=this.selector||this,r;return u||(r=function(){f||(f=!0,setTimeout(e,i.interval))},n(window).scroll(r).resize(r),u=!0),i.force_process&&setTimeout(e,i.interval),h(s),n(s)}});n.extend({force_appear:function(){return u?(e(),!0):!1}})}(function(){return typeof module!="undefined"?require("jquery"):jQuery}()),function(n){var t={},r={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,autoReload:!1,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};n.fn.bxSlider=function(u){var f,e,a,y;if(this.length==0)return this;if(this.length>1)return this.each(function(){n(this).bxSlider(u)}),this;f={};e=this;t.el=this;a=n(window).width();y=n(window).height();f.windowWidth=n(window).width();var k=function(){function nt(n,t,i){var r=(n-i*(t-1))/t;return Math.floor(r)}function y(n){for(var t in n)f.settings[t]=n[t]}function s(){f.settings.slides&&(f.settings.maxSlides=f.settings.slides,f.settings.minSlides=f.settings.slides,f.settings.slideWidth=nt(a,f.settings.slides,f.settings.slideMargin))}function p(n){n=n.replace(/([a-zA-Z0-9]+?):/g,'"$1":');n=n.replace(/'/g,'"');return jQuery.parseJSON(n)}var o,t,w,b,h,c,l,i;if(f.settings=n.extend({},r,u),s(),o=n(window).width(),a=o,t=n(e).attr("data-options"),t){w=t.charAt(t.length-1);b=t.charAt(0);b!="{"&&w!="}"&&(t="{"+t+"}");h=p(t);for(c in h)f.settings[c]=h[c];s()}if(l=n(e).attr("data-breaks"),l&&(f.settings.breaks=p(l)),f.settings.breaks){for(f.settings.breaks.sort(function(n,t){return n.screen-t.screen}),i=0;i<f.settings.breaks.length;++i){var v=f.settings.breaks[i],k={},d=v.screen,g;i<f.settings.breaks.length-1?(k=f.settings.breaks[i+1],g=k.screen,o>=d&&o<g&&y(v)):o>=d&&y(v)}s()}f.settings.slideWidth=parseInt(f.settings.slideWidth);f.children=e.children(f.settings.slideSelector);f.children.length<f.settings.minSlides&&(f.settings.minSlides=f.children.length);f.children.length<f.settings.maxSlides&&(f.settings.maxSlides=f.children.length);f.settings.randomStart&&(f.settings.startSlide=Math.floor(Math.random()*f.children.length));f.active={index:f.settings.startSlide};f.carousel=f.settings.minSlides>1||f.settings.maxSlides>1;f.carousel&&(f.settings.preloadImages="all");f.minThreshold=f.settings.minSlides*f.settings.slideWidth+(f.settings.minSlides-1)*f.settings.slideMargin;f.maxThreshold=f.settings.maxSlides*f.settings.slideWidth+(f.settings.maxSlides-1)*f.settings.slideMargin;f.working=!1;f.controls={};f.interval=null;f.animProp=f.settings.mode=="vertical"?"top":"left";f.usingCSS=f.settings.useCSS&&f.settings.mode!="fade"&&function(){var i=document.createElement("div"),n=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var t in n)if(i.style[n[t]]!==undefined)return f.cssPrefix=n[t].replace("Perspective","").toLowerCase(),f.animProp="-"+f.cssPrefix+"-transform",!0;return!1}();f.settings.mode=="vertical"&&(f.settings.maxSlides=f.settings.minSlides);e.data("origStyle",e.attr("style"));e.children(f.settings.slideSelector).each(function(){n(this).data("origStyle",n(this).attr("style"))});ft()},ft=function(){var i,t;e.wrap('<div class="'+f.settings.wrapperClass+'"><div class="bx-viewport"><\/div><\/div>');f.viewport=e.parent();f.loader=n('<div class="bx-loading" />');f.viewport.prepend(f.loader);e.css({width:f.settings.mode=="horizontal"?f.children.length*100+215+"%":"auto",position:"relative"});f.usingCSS&&f.settings.easing?e.css("-"+f.cssPrefix+"-transition-timing-function",f.settings.easing):f.settings.easing||(f.settings.easing="swing");i=h();f.viewport.css({width:"100%",overflow:"hidden",position:"relative"});f.viewport.parent().css({maxWidth:st()});f.settings.pager||f.viewport.parent().css({margin:"0 auto 0px"});f.children.css({float:f.settings.mode=="horizontal"?"left":"none",listStyle:"none",position:"relative"});f.children.css("width",d());f.settings.mode=="horizontal"&&f.settings.slideMargin>0&&f.children.css("marginRight",f.settings.slideMargin);f.settings.mode=="vertical"&&f.settings.slideMargin>0&&f.children.css("marginBottom",f.settings.slideMargin);f.settings.mode=="fade"&&(f.children.css({position:"absolute",zIndex:0,display:"none"}),f.children.eq(f.settings.startSlide).css({zIndex:f.settings.slideZIndex,display:"block"}));f.controls.el=n('<div class="bx-controls" />');f.settings.captions&&at();f.active.last=f.settings.startSlide==o()-1;f.settings.video&&e.fitVids();t=f.children.eq(f.settings.startSlide);f.settings.preloadImages=="all"&&(t=f.children);f.settings.ticker?f.settings.pager=!1:(f.settings.pager&&ht(),f.settings.controls&&ct(),f.settings.auto&&f.settings.autoControls&&lt(),(f.settings.controls||f.settings.autoControls||f.settings.pager)&&f.viewport.after(f.controls.el));et(t,ot)},et=function(t,i){var r=t.find("img, iframe").length,u;if(r==0){i();return}u=0;t.find("img, iframe").each(function(){n(this).one("load",function(){++u==r&&i()}).each(function(){this.complete&&n(this).load()})})},ot=function(){if(f.settings.infiniteLoop&&f.settings.mode!="fade"&&!f.settings.ticker){var t=f.settings.mode=="vertical"?f.settings.minSlides:f.settings.maxSlides,i=f.children.slice(0,t).clone().addClass("bx-clone"),r=f.children.slice(-t).clone().addClass("bx-clone");e.append(i).prepend(r)}f.loader.remove();g();f.settings.mode=="vertical"&&(f.settings.adaptiveHeight=!0);f.viewport.height(l());e.redrawSlider();f.settings.onSliderLoad(f.active.index);f.initialized=!0;f.settings.responsive&&n(window).bind("resize",ut);f.settings.auto&&f.settings.autoStart&&(o()>1||f.settings.autoSlideForOnePage)&&kt();f.settings.ticker&&dt();f.settings.pager&&p(f.settings.startSlide);f.settings.controls&&tt();f.settings.touchEnabled&&!f.settings.ticker&&gt()},l=function(){var r=0,t=n(),u;if(f.settings.mode=="vertical"||f.settings.adaptiveHeight)if(f.carousel)for(u=f.settings.moveSlides==1?f.active.index:f.active.index*c(),t=f.children.eq(u),i=1;i<=f.settings.maxSlides-1;i++)t=u+i>=f.children.length?t.add(f.children.eq(i-1)):t.add(f.children.eq(u+i));else t=f.children.eq(f.active.index);else t=f.children;return f.settings.mode=="vertical"?(t.each(function(){r+=n(this).outerHeight()}),f.settings.slideMargin>0&&(r+=f.settings.slideMargin*(f.settings.minSlides-1))):r=Math.max.apply(Math,t.map(function(){return n(this).outerHeight(!1)}).get()),f.viewport.css("box-sizing")=="border-box"?r+=parseFloat(f.viewport.css("padding-top"))+parseFloat(f.viewport.css("padding-bottom"))+parseFloat(f.viewport.css("border-top-width"))+parseFloat(f.viewport.css("border-bottom-width")):f.viewport.css("box-sizing")=="padding-box"&&(r+=parseFloat(f.viewport.css("padding-top"))+parseFloat(f.viewport.css("padding-bottom"))),r},st=function(){var n="100%";return f.settings.slideWidth>0&&(n=f.settings.mode=="horizontal"?f.settings.maxSlides*f.settings.slideWidth+(f.settings.maxSlides-1)*f.settings.slideMargin:f.settings.slideWidth),n},d=function(){var t=f.settings.slideWidth,n=f.viewport.width();return f.settings.slideWidth==0||f.settings.slideWidth>n&&!f.carousel||f.settings.mode=="vertical"?t=n:f.settings.maxSlides>1&&f.settings.mode=="horizontal"&&(n>f.maxThreshold||n<f.minThreshold&&(t=(n-f.settings.slideMargin*(f.settings.minSlides-1))/f.settings.minSlides)),t},h=function(){var n=1,t;return f.settings.mode=="horizontal"&&f.settings.slideWidth>0?f.viewport.width()<f.minThreshold?n=f.settings.minSlides:f.viewport.width()>f.maxThreshold?n=f.settings.maxSlides:(t=f.children.first().width()+f.settings.slideMargin,n=Math.floor((f.viewport.width()+f.settings.slideMargin)/t)):f.settings.mode=="vertical"&&(n=f.settings.minSlides),n},o=function(){var n=0,t,i;if(f.settings.moveSlides>0)if(f.settings.infiniteLoop)n=Math.ceil(f.children.length/c());else for(t=0,i=0;t<f.children.length;)++n,t=i+h(),i+=f.settings.moveSlides<=h()?f.settings.moveSlides:h();else n=Math.ceil(f.children.length/h());return n},c=function(){return f.settings.moveSlides>0&&f.settings.moveSlides<=h()?f.settings.moveSlides:h()},g=function(){var t,i,n;f.children.length>f.settings.maxSlides&&f.active.last&&!f.settings.infiniteLoop?f.settings.mode=="horizontal"?(t=f.children.last(),n=t.position(),s(-(n.left-(f.viewport.width()-t.outerWidth())),"reset",0)):f.settings.mode=="vertical"&&(i=f.children.length-f.settings.minSlides,n=f.children.eq(i).position(),s(-n.top,"reset",0)):(n=f.children.eq(f.active.index*c()).position(),f.active.index==o()-1&&(f.active.last=!0),n!=undefined&&(f.settings.mode=="horizontal"?s(-n.left,"reset",0):f.settings.mode=="vertical"&&s(-n.top,"reset",0)))},s=function(n,t,i,r){var u,o;f.usingCSS?(u=f.settings.mode=="vertical"?"translate3d(0, "+n+"px, 0)":"translate3d("+n+"px, 0, 0)",e.css("-"+f.cssPrefix+"-transition-duration",i/1e3+"s"),t=="slide"?(e.css(f.animProp,u),e.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){e.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd");w()})):t=="reset"?e.css(f.animProp,u):t=="ticker"&&(e.css("-"+f.cssPrefix+"-transition-timing-function","linear"),e.css(f.animProp,u),e.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){e.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd");s(r.resetValue,"reset",0);v()}))):(o={},o[f.animProp]=n,t=="slide"?e.animate(o,i,f.settings.easing,function(){w()}):t=="reset"?e.css(f.animProp,n):t=="ticker"&&e.animate(o,speed,"linear",function(){s(r.resetValue,"reset",0);v()}))},nt=function(){for(var i,r="",u=o(),t=0;t<u;t++)i="",f.settings.buildPager&&n.isFunction(f.settings.buildPager)?(i=f.settings.buildPager(t),f.pagerEl.addClass("bx-custom-pager")):(i=t+1,f.pagerEl.addClass("bx-default-pager")),r+='<div class="bx-pager-item"><a href="" data-slide-index="'+t+'" class="bx-pager-link">'+i+"<\/a><\/div>";f.pagerEl.html(r)},ht=function(){f.settings.pagerCustom?f.pagerEl=n(f.settings.pagerCustom):(f.pagerEl=n('<div class="bx-pager" />'),f.settings.pagerSelector?n(f.settings.pagerSelector).html(f.pagerEl):f.controls.el.addClass("bx-has-pager").append(f.pagerEl),nt());f.pagerEl.on("click","a",bt)},ct=function(){f.controls.next=n('<a class="bx-next" href="">'+f.settings.nextText+"<\/a>");f.controls.prev=n('<a class="bx-prev" href="">'+f.settings.prevText+"<\/a>");f.controls.next.bind("click",vt);f.controls.prev.bind("click",yt);f.settings.nextSelector&&n(f.settings.nextSelector).append(f.controls.next);f.settings.prevSelector&&n(f.settings.prevSelector).append(f.controls.prev);f.settings.nextSelector||f.settings.prevSelector||(f.controls.directionEl=n('<div class="bx-controls-direction" />'),f.controls.directionEl.append(f.controls.prev).append(f.controls.next),f.controls.el.addClass("bx-has-controls-direction").append(f.controls.directionEl))},lt=function(){f.controls.start=n('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+f.settings.startText+"<\/a><\/div>");f.controls.stop=n('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+f.settings.stopText+"<\/a><\/div>");f.controls.autoEl=n('<div class="bx-controls-auto" />');f.controls.autoEl.on("click",".bx-start",pt);f.controls.autoEl.on("click",".bx-stop",wt);f.settings.autoControlsCombine?f.controls.autoEl.append(f.controls.start):f.controls.autoEl.append(f.controls.start).append(f.controls.stop);f.settings.autoControlsSelector?n(f.settings.autoControlsSelector).html(f.controls.autoEl):f.controls.el.addClass("bx-has-controls-auto").append(f.controls.autoEl);b(f.settings.autoStart?"stop":"start")},at=function(){f.children.each(function(){var t=n(this).find("img:first").attr("title");t!=undefined&&(""+t).length&&n(this).append('<div class="bx-caption"><span>'+t+"<\/span><\/div>")})},vt=function(n){f.settings.auto&&e.stopAuto();e.goToNextSlide();n.preventDefault()},yt=function(n){f.settings.auto&&e.stopAuto();e.goToPrevSlide();n.preventDefault()},pt=function(n){e.startAuto();n.preventDefault()},wt=function(n){e.stopAuto();n.preventDefault()},bt=function(t){var i,r;f.settings.auto&&e.stopAuto();i=n(t.currentTarget);i.attr("data-slide-index")!==undefined&&(r=parseInt(i.attr("data-slide-index")),r!=f.active.index&&e.goToSlide(r),t.preventDefault())},p=function(t){var i=f.children.length;if(f.settings.pagerType=="short"){f.settings.maxSlides>1&&(i=Math.ceil(f.children.length/f.settings.maxSlides));f.pagerEl.html(t+1+f.settings.pagerShortSeparator+i);return}f.pagerEl.find("a").removeClass("active");f.pagerEl.each(function(i,r){n(r).find("a").eq(t).addClass("active")})},w=function(){if(f.settings.infiniteLoop){var n="";f.active.index==0?n=f.children.eq(0).position():f.active.index==o()-1&&f.carousel?n=f.children.eq((o()-1)*c()).position():f.active.index==f.children.length-1&&(n=f.children.eq(f.children.length-1).position());n&&(f.settings.mode=="horizontal"?s(-n.left,"reset",0):f.settings.mode=="vertical"&&s(-n.top,"reset",0))}f.working=!1;f.settings.onSlideAfter(f.children.eq(f.active.index),f.oldIndex,f.active.index)},b=function(n){f.settings.autoControlsCombine?f.controls.autoEl.html(f.controls[n]):(f.controls.autoEl.find("a").removeClass("active"),f.controls.autoEl.find("a:not(.bx-"+n+")").addClass("active"))},tt=function(){o()==1?(f.controls.prev.addClass("disabled"),f.controls.next.addClass("disabled")):!f.settings.infiniteLoop&&f.settings.hideControlOnEnd&&(f.active.index==0?(f.controls.prev.addClass("disabled"),f.controls.next.removeClass("disabled")):f.active.index==o()-1?(f.controls.next.addClass("disabled"),f.controls.prev.removeClass("disabled")):(f.controls.prev.removeClass("disabled"),f.controls.next.removeClass("disabled")))},kt=function(){if(f.settings.autoDelay>0)var n=setTimeout(e.startAuto,f.settings.autoDelay);else e.startAuto();f.settings.autoHover&&e.hover(function(){f.interval&&(e.stopAuto(!0),f.autoPaused=!0)},function(){f.autoPaused&&(e.startAuto(!0),f.autoPaused=null)})},dt=function(){var i=0,t;f.settings.autoDirection=="next"?e.append(f.children.clone().addClass("bx-clone")):(e.prepend(f.children.clone().addClass("bx-clone")),t=f.children.first().position(),i=f.settings.mode=="horizontal"?-t.left:-t.top);s(i,"reset",0);f.settings.pager=!1;f.settings.controls=!1;f.settings.autoControls=!1;f.settings.tickerHover&&!f.usingCSS&&f.viewport.hover(function(){e.stop()},function(){var t=0;f.children.each(function(){t+=f.settings.mode=="horizontal"?n(this).outerWidth(!0):n(this).outerHeight(!0)});var i=f.settings.speed/t,r=f.settings.mode=="horizontal"?"left":"top",u=i*(t-Math.abs(parseInt(e.css(r))));v(u)});v()},v=function(n){var t,i;speed=n?n:f.settings.speed;t={left:0,top:0};i={left:0,top:0};f.settings.autoDirection=="next"?t=e.find(".bx-clone").first().position():i=f.children.first().position();var r=f.settings.mode=="horizontal"?-t.left:-t.top,u=f.settings.mode=="horizontal"?-i.left:-i.top,o={resetValue:u};s(r,"ticker",speed,o)},gt=function(){f.touch={start:{x:0,y:0},end:{x:0,y:0}};f.viewport.bind("touchstart",ni)},ni=function(n){if(f.working)n.preventDefault();else{f.touch.originalPos=e.position();var t=n.originalEvent;f.touch.start.x=t.changedTouches[0].pageX;f.touch.start.y=t.changedTouches[0].pageY;f.viewport.bind("touchmove",it);f.viewport.bind("touchend",rt)}},it=function(n){var t=n.originalEvent,u=Math.abs(t.changedTouches[0].pageX-f.touch.start.x),e=Math.abs(t.changedTouches[0].pageY-f.touch.start.y),i,r;u*3>e&&f.settings.preventDefaultSwipeX?n.preventDefault():e*3>u&&f.settings.preventDefaultSwipeY&&n.preventDefault();f.settings.mode!="fade"&&f.settings.oneToOneTouch&&(i=0,f.settings.mode=="horizontal"?(r=t.changedTouches[0].pageX-f.touch.start.x,i=f.touch.originalPos.left+r):(r=t.changedTouches[0].pageY-f.touch.start.y,i=f.touch.originalPos.top+r),s(i,"reset",0))},rt=function(n){var r,i,t;f.viewport.unbind("touchmove",it);r=n.originalEvent;i=0;f.touch.end.x=r.changedTouches[0].pageX;f.touch.end.y=r.changedTouches[0].pageY;f.settings.mode=="fade"?(t=Math.abs(f.touch.start.x-f.touch.end.x),t>=f.settings.swipeThreshold&&(f.touch.start.x>f.touch.end.x?e.goToNextSlide():e.goToPrevSlide(),e.stopAuto())):(t=0,f.settings.mode=="horizontal"?(t=f.touch.end.x-f.touch.start.x,i=f.touch.originalPos.left):(t=f.touch.end.y-f.touch.start.y,i=f.touch.originalPos.top),!f.settings.infiniteLoop&&(f.active.index==0&&t>0||f.active.last&&t<0)?s(i,"reset",200):Math.abs(t)>=f.settings.swipeThreshold?(t<0?e.goToNextSlide():e.goToPrevSlide(),e.stopAuto()):s(i,"reset",200));f.viewport.unbind("touchend",rt)},ut=function(){if(f.initialized){var t=n(window).width(),i=n(window).height();(a!=t||y!=i)&&(a=t,y=i,e.redrawSlider(),f.settings.onSliderResize.call(e,f.active.index))}};return e.goToSlide=function(t,i){var h,r,a,v,u,y,b;if(!f.working&&f.active.index!=t){f.working=!0;f.oldIndex=f.active.index;f.active.index=t<0?o()-1:t>=o()?0:t;f.settings.onSlideBefore(f.children.eq(f.active.index),f.oldIndex,f.active.index);if(i=="next")f.settings.onSlideNext(f.children.eq(f.active.index),f.oldIndex,f.active.index);else if(i=="prev")f.settings.onSlidePrev(f.children.eq(f.active.index),f.oldIndex,f.active.index);f.active.last=f.active.index>=o()-1;f.settings.pager&&p(f.active.index);f.settings.controls&&tt();f.settings.mode=="fade"?(f.settings.adaptiveHeight&&f.viewport.height()!=l()&&f.viewport.animate({height:l()},f.settings.adaptiveHeightSpeed),f.children.filter(":visible").fadeOut(f.settings.speed).css({zIndex:0}),f.children.eq(f.active.index).css("zIndex",f.settings.slideZIndex+1).fadeIn(f.settings.speed,function(){n(this).css("zIndex",f.settings.slideZIndex);w()})):(f.settings.adaptiveHeight&&f.viewport.height()!=l()&&f.viewport.animate({height:l()},f.settings.adaptiveHeightSpeed),h=0,r={left:0,top:0},!f.settings.infiniteLoop&&f.carousel&&f.active.last?f.settings.mode=="horizontal"?(u=f.children.eq(f.children.length-1),r=u.position(),h=f.viewport.width()-u.outerWidth()):(a=f.children.length-f.settings.minSlides,r=f.children.eq(a).position()):f.carousel&&f.active.last&&i=="prev"?(v=f.settings.moveSlides==1?f.settings.maxSlides-c():(o()-1)*c()-(f.children.length-f.settings.maxSlides),u=e.children(".bx-clone").eq(v),r=u.position()):i=="next"&&f.active.index==0?(r=e.find("> .bx-clone").eq(f.settings.maxSlides).position(),f.active.last=!1):t>=0&&(y=t*c(),r=f.children.eq(y).position()),"undefined"!=typeof r&&(b=f.settings.mode=="horizontal"?-(r.left-h):-r.top,s(b,"slide",f.settings.speed)))}},e.goToNextSlide=function(){if(f.settings.infiniteLoop||!f.active.last){var n=parseInt(f.active.index)+1;e.goToSlide(n,"next")}},e.goToPrevSlide=function(){if(f.settings.infiniteLoop||f.active.index!=0){var n=parseInt(f.active.index)-1;e.goToSlide(n,"prev")}},e.startAuto=function(n){f.interval||(f.interval=setInterval(function(){f.settings.autoDirection=="next"?e.goToNextSlide():e.goToPrevSlide()},f.settings.pause),f.settings.autoControls&&n!=!0&&b("stop"))},e.stopAuto=function(n){f.interval&&(clearInterval(f.interval),f.interval=null,f.settings.autoControls&&n!=!0&&b("start"))},e.getCurrentSlide=function(){return f.active.index},e.getCurrentSlideElement=function(){return f.children.eq(f.active.index)},e.getSlideCount=function(){return f.children.length},e.redrawSlider=function(){f.children.add(e.find(".bx-clone")).width(d());f.viewport.css("height",l());f.settings.ticker||g();f.active.last&&(f.active.index=o()-1);f.active.index>=o()&&(f.active.last=!0);f.settings.pager&&!f.settings.pagerCustom&&(nt(),p(f.active.index))},e.destroySlider=function(){f.initialized&&(f.initialized=!1,n(".bx-clone",this).remove(),f.children.each(function(){n(this).data("origStyle")!=undefined?n(this).attr("style",n(this).data("origStyle")):n(this).removeAttr("style")}),n(this).data("origStyle")!=undefined?this.attr("style",n(this).data("origStyle")):n(this).removeAttr("style"),n(this).unwrap().unwrap(),f.controls.el&&f.controls.el.remove(),f.controls.next&&f.controls.next.remove(),f.controls.prev&&f.controls.prev.remove(),f.pagerEl&&f.settings.controls&&f.pagerEl.remove(),n(".bx-caption",this).remove(),f.controls.autoEl&&f.controls.autoEl.remove(),clearInterval(f.interval),f.settings.responsive&&n(window).unbind("resize",ut))},e.reloadSlider=function(n){n!=undefined&&(u=n);e.destroySlider();k()},n(window).resize(function(){n(window).width()!=f.windowWidth&&(f.windowWidth=n(window).width(),f.settings.autoReload&&e.reloadSlider())}),k(),this}}(jQuery);$('[data-call="bxslider"]').each(function(){$(this).bxSlider()});$("#mapVerticalTab").on("click",function(n){var t=n.target,i=$(t).is("#mapVerticalTab ul.resp-tabs-list")||$(t).is("#mapVerticalTab");i&&closeTab()});(function(n){n.fn.extend({easyResponsiveTabs:function(t){var f={type:"default",width:"auto",fit:!0,closed:!1,tabidentify:"",activetab_bg:"white",inactive_bg:"#F5F5F5",active_border_color:"#c1c1c1",active_content_border_color:"#c1c1c1",activate:function(){}},t=n.extend(f,t),i=t,r=i.type,e=i.fit,o=i.width,s="vertical",h="accordion",u=window.location.hash,c=!!(window.history&&history.replaceState);n(this).bind("tabactivate",function(n,i){typeof t.activate=="function"&&t.activate.call(i,n)});this.each(function(){function b(){r==s&&i.addClass("resp-vtabs").addClass(t.tabidentify);e==!0&&i.css({width:"100%",margin:"0px"});r==h&&(i.addClass("resp-easy-accordion").addClass(t.tabidentify),i.find(".resp-tabs-list").css("display","none"))}var i=n(this),v=i.find("ul.resp-tabs-list."+t.tabidentify),w=i.attr("id"),y,c,l,p,f,a;i.find("ul.resp-tabs-list."+t.tabidentify+" li").addClass("resp-tab-item").addClass(t.tabidentify);i.css({display:"block",width:o});t.type=="vertical"&&v.css("margin-top","3px");i.find(".resp-tabs-container."+t.tabidentify).css("border-color",t.active_content_border_color);i.find(".resp-tabs-container."+t.tabidentify+" > div").addClass("resp-tab-content").addClass(t.tabidentify);b();i.find(".resp-tab-content."+t.tabidentify).before("<h2 class='resp-accordion "+t.tabidentify+"' part='tab'><span class='resp-arrow'><\/span><\/h2>");i.find(".resp-tab-content."+t.tabidentify).prev("h2").css({"background-color":t.inactive_bg,"border-color":t.active_border_color});c=0;i.find(".resp-accordion").each(function(){y=n(this);var r=i.find(".resp-tab-item:eq("+c+")"),u=i.find(".resp-accordion:eq("+c+")");u.append(r.html());u.data(r.data());y.attr("aria-label",t.tabidentify+"_tab_item-"+c);c++});l=0;i.find(".resp-tab-item").each(function(){$tabItem=n(this);$tabItem.attr("aria-label",t.tabidentify+"_tab_item-"+l);$tabItem.attr("part","tab");$tabItem.css({"background-color":t.inactive_bg,"border-color":"none"});var r=0;i.find(".resp-tab-content."+t.tabidentify).each(function(){p=n(this);p.attr("aria-label",t.tabidentify+"_tab_item-"+r).css({"border-color":t.active_border_color});r++});l++});f=0;u!=""&&(a=u.match(new RegExp(w+"([0-9]+)")),a!==null&&a.length===2&&(f=parseInt(a[1],10)-1,f>l&&(f=0)));t.closed!==!0&&n(i.find(".resp-tab-item."+t.tabidentify)[f]).addClass("resp-tab-active").css({"background-color":t.activetab_bg,"border-color":t.active_border_color});t.closed===!0||t.closed==="accordion"&&!v.is(":visible")||t.closed==="tabs"&&v.is(":visible")||(n(i.find(".resp-accordion."+t.tabidentify)[f]).addClass("resp-tab-active").css({"background-color":t.activetab_bg+" !important","border-color":t.active_border_color,background:"none"}),n(i.find(".resp-tab-content."+t.tabidentify)[f]).addClass("resp-tab-content-active").addClass(t.tabidentify).attr("style","display:block"));i.find("[part=tab]").each(function(){var r=n(this);r.click(function(){var r=n(this),u=r.attr("aria-label");if(r.hasClass("resp-accordion")&&r.hasClass("resp-tab-active"))return i.find(".resp-tab-content-active."+t.tabidentify).slideUp("",function(){n(this).addClass("resp-accordion-closed")}),r.removeClass("resp-tab-active").css({"background-color":t.inactive_bg,"border-color":"none"}),!1;if(!r.hasClass("resp-tab-active")&&r.hasClass("resp-accordion"))i.find(".resp-tab-active."+t.tabidentify).removeClass("resp-tab-active").css({"background-color":t.inactive_bg,"border-color":"none"}),i.find(".resp-tab-content-active."+t.tabidentify).slideUp().removeClass("resp-tab-content-active resp-accordion-closed"),i.find("[aria-label="+u+"]").addClass("resp-tab-active").css({"background-color":t.activetab_bg,"border-color":t.active_border_color}),i.find(".resp-tab-content[aria-label = "+u+"]."+t.tabidentify).slideDown().addClass("resp-tab-content-active");else{if(r.hasClass("resp-tabs")&&r.hasClass("resp-tab-active"))return i.find(".resp-tab-content-active."+t.tabidentify).toggleClass("resp-accordion-closed"),r.removeClass("resp-tab-active").css({"background-color":t.inactive_bg,"border-color":"none"}),!1;i.find(".resp-tab-active."+t.tabidentify).removeClass("resp-tab-active").css({"background-color":t.inactive_bg,"border-color":"none"});i.find(".resp-tab-content-active."+t.tabidentify).removeAttr("style").removeClass("resp-tab-content-active").removeClass("resp-accordion-closed");i.find("[aria-label="+u+"]").addClass("resp-tab-active").css({"background-color":t.activetab_bg,"border-color":t.active_border_color});i.find(".resp-tab-content[aria-label = "+u+"]."+t.tabidentify).addClass("resp-tab-content-active").attr("style","display:block")}r.trigger("tabactivate",r)})});n(window).resize(function(){i.find(".resp-accordion-closed").removeAttr("style")})})}})})(jQuery),function(n){n.fn.extend({slimScroll:function(i){var r=n.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},i);return this.each(function(){function g(t){var t,i,f;l&&(t=t||window.event,i=0,t.wheelDelta&&(i=-t.wheelDelta/120),t.detail&&(i=t.detail/3),f=t.target||t.srcTarget||t.srcElement,n(f).closest("."+r.wrapperClass).is(u.parent())&&h(i,!0),t.preventDefault&&!o&&t.preventDefault(),o||(t.returnValue=!1))}function h(n,t,i){var s,l,h;o=!1;s=n;l=u.outerHeight()-f.outerHeight();t&&(s=parseInt(f.css("top"))+n*parseInt(r.wheelStep)/100*f.outerHeight(),s=Math.min(Math.max(s,0),l),s=n>0?Math.ceil(s):Math.floor(s),f.css({top:s+"px"}));e=parseInt(f.css("top"))/(u.outerHeight()-f.outerHeight());s=e*(u[0].scrollHeight-u.outerHeight());i&&(s=n,h=s/u[0].scrollHeight*u.outerHeight(),h=Math.min(Math.max(h,0),l),f.css({top:h+"px"}));u.scrollTop(s);u.trigger("slimscrolling",~~s);tt();c()}function ot(n){window.addEventListener?(n.addEventListener("DOMMouseScroll",g,!1),n.addEventListener("mousewheel",g,!1)):document.attachEvent("onmousewheel",g)}function nt(){a=Math.max(u.outerHeight()/u[0].scrollHeight*u.outerHeight(),et);f.css({height:a+"px"});var n=a==u.outerHeight()?"none":"block";f.css({display:n})}function tt(){if(nt(),clearTimeout(it),e==~~e){if(o=r.allowPageScroll,rt!=e){var n=~~e==0?"top":"bottom";u.trigger("slimscroll",n)}}else o=!1;if(rt=e,a>=u.outerHeight()){o=!0;return}f.stop(!0,!0).fadeIn("fast");r.railVisible&&s.stop(!0,!0).fadeIn("fast")}function c(){r.alwaysVisible||(it=setTimeout(function(){r.disableFadeOut&&l||y||p||(f.fadeOut("slow"),s.fadeOut("slow"))},1e3))}var l,y,p,it,w,a,e,rt,b="<div><\/div>",et=30,o=!1,u=n(this),v,k,d,ut;if(u.parent().hasClass(r.wrapperClass)){if(v=u.scrollTop(),f=u.siblings("."+r.barClass),s=u.siblings("."+r.railClass),nt(),n.isPlainObject(i)){if("height"in i&&i.height=="auto"?(u.parent().css("height","auto"),u.css("height","auto"),k=u.parent().parent().height(),u.parent().css("height",k),u.css("height",k)):"height"in i&&(d=i.height,u.parent().css("height",d),u.css("height",d)),"scrollTo"in i)v=parseInt(r.scrollTo);else if("scrollBy"in i)v+=parseInt(r.scrollBy);else if("destroy"in i){f.remove();s.remove();u.unwrap();return}h(v,!1,!0)}return}if(!n.isPlainObject(i)||!("destroy"in i)){r.height=r.height=="auto"?u.parent().height():r.height;ut=n(b).addClass(r.wrapperClass).css({position:"relative",overflow:"hidden",width:r.width,height:r.height});u.css({overflow:"hidden",width:r.width,height:r.height});var s=n(b).addClass(r.railClass).css({width:r.size,height:"100%",position:"absolute",top:0,display:r.alwaysVisible&&r.railVisible?"block":"none","border-radius":r.railBorderRadius,background:r.railColor,opacity:r.railOpacity,zIndex:90}),f=n(b).addClass(r.barClass).css({background:r.color,width:r.size,position:"absolute",top:0,opacity:r.opacity,display:r.alwaysVisible?"block":"none","border-radius":r.borderRadius,BorderRadius:r.borderRadius,MozBorderRadius:r.borderRadius,WebkitBorderRadius:r.borderRadius,zIndex:99}),ft=r.position=="right"?{right:r.distance}:{left:r.distance};s.css(ft);f.css(ft);u.wrap(ut);u.parent().append(f);u.parent().append(s);r.railDraggable&&f.bind("mousedown",function(i){var r=n(document);return p=!0,t=parseFloat(f.css("top")),pageY=i.pageY,r.bind("mousemove.slimscroll",function(n){currTop=t+n.pageY-pageY;f.css("top",currTop);h(0,f.position().top,!1)}),r.bind("mouseup.slimscroll",function(){p=!1;c();r.unbind(".slimscroll")}),!1}).bind("selectstart.slimscroll",function(n){return n.stopPropagation(),n.preventDefault(),!1});s.hover(function(){tt()},function(){c()});f.hover(function(){y=!0},function(){y=!1});u.hover(function(){l=!0;tt();c()},function(){l=!1;c()});u.bind("touchstart",function(n){n.originalEvent.touches.length&&(w=n.originalEvent.touches[0].pageY)});u.bind("touchmove",function(n){if(o||n.originalEvent.preventDefault(),n.originalEvent.touches.length){var t=(w-n.originalEvent.touches[0].pageY)/r.touchScrollStep;h(t,!0);w=n.originalEvent.touches[0].pageY}});nt();r.start==="bottom"?(f.css({top:u.outerHeight()-f.outerHeight()}),h(0,!0)):r.start!=="top"&&(h(n(r.start).position().top,null,!0),r.alwaysVisible||f.hide());ot(this)}}),this}});n.fn.extend({slimscroll:n.fn.slimScroll})}(jQuery),function(n,t){typeof define=="function"&&define.amd?define(["jquery"],t):t(n.jQuery)}(this,function(n){"use strict";function f(i){if(t.webkit&&!i)return{height:0,width:0};if(!t.data.outer){var r={border:"none","box-sizing":"content-box",height:"200px",margin:"0",padding:"0",width:"200px"};t.data.inner=n("<div>").css(n.extend({},r));t.data.outer=n("<div>").css(n.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},r)).append(t.data.inner).appendTo("body")}return t.data.outer.scrollLeft(1e3).scrollTop(1e3),{height:Math.ceil(t.data.outer.offset().top-t.data.inner.offset().top||0),width:Math.ceil(t.data.outer.offset().left-t.data.inner.offset().left||0)}}function h(){var n=f(!0);return!(n.height||n.width)}function e(n){var t=n.originalEvent;return t.axis&&t.axis===t.HORIZONTAL_AXIS?!1:t.wheelDeltaX?!1:!0}var s=!1,t={data:{index:0,name:"scrollbar"},macosx:/mac/i.test(navigator.platform),mobile:/android|webos|iphone|ipad|ipod|blackberry/i.test(navigator.userAgent),overlay:null,scroll:null,scrolls:[],webkit:/webkit/i.test(navigator.userAgent)&&!/edge\/\d+/i.test(navigator.userAgent)},r,u,o,i;t.scrolls.add=function(n){this.remove(n).push(n)};t.scrolls.remove=function(t){while(n.inArray(t,this)>=0)this.splice(n.inArray(t,this),1);return this};r={autoScrollSize:!0,autoUpdate:!0,debug:!1,disableBodyScroll:!1,duration:200,ignoreMobile:!1,ignoreOverlay:!1,scrollStep:30,showArrows:!1,stepScrolling:!0,scrollx:null,scrolly:null,onDestroy:null,onInit:null,onScroll:null,onUpdate:null};u=function(u){t.scroll||(t.overlay=h(),t.scroll=f(),i(),n(window).resize(function(){var r=!1,n;t.scroll&&(t.scroll.height||t.scroll.width)&&(n=f(),(n.height!==t.scroll.height||n.width!==t.scroll.width)&&(t.scroll=n,r=!0));i(r)}));this.container=u;this.namespace=".scrollbar_"+t.data.index++;this.options=n.extend({},r,window.jQueryScrollbarOptions||{});this.scrollTo=null;this.scrollx={};this.scrolly={};u.data(t.data.name,this);t.scrolls.add(this)};u.prototype={destroy:function(){if(this.wrapper){this.container.removeData(t.data.name);t.scrolls.remove(this);var i=this.container.scrollLeft(),r=this.container.scrollTop();this.container.insertBefore(this.wrapper).css({height:"",margin:"","max-height":""}).removeClass("scroll-content scroll-scrollx_visible scroll-scrolly_visible").off(this.namespace).scrollLeft(i).scrollTop(r);this.scrollx.scroll.removeClass("scroll-scrollx_visible").find("div").andSelf().off(this.namespace);this.scrolly.scroll.removeClass("scroll-scrolly_visible").find("div").andSelf().off(this.namespace);this.wrapper.remove();n(document).add("body").off(this.namespace);n.isFunction(this.options.onDestroy)&&this.options.onDestroy.apply(this,[this.container])}},init:function(i){var o=this,r=this.container,c=this.containerWrapper||r,s=this.namespace,f=n.extend(this.options,i||{}),u={x:this.scrollx,y:this.scrolly},h=this.wrapper,a={scrollLeft:r.scrollLeft(),scrollTop:r.scrollTop()},l;if(t.mobile&&f.ignoreMobile||t.overlay&&f.ignoreOverlay||t.macosx&&!t.webkit)return!1;if(h)c.css({height:"auto","margin-bottom":t.scroll.height*-1+"px","margin-right":t.scroll.width*-1+"px","max-height":""});else{this.wrapper=h=n("<div>").addClass("scroll-wrapper").addClass(r.attr("class")).css("position",r.css("position")=="absolute"?"absolute":"relative").insertBefore(r).append(r);r.is("textarea")&&(this.containerWrapper=c=n("<div>").insertBefore(r).append(r),h.addClass("scroll-textarea"));c.addClass("scroll-content").css({height:"auto","margin-bottom":t.scroll.height*-1+"px","margin-right":t.scroll.width*-1+"px","max-height":""});r.on("scroll"+s,function(){n.isFunction(f.onScroll)&&f.onScroll.call(o,{maxScroll:u.y.maxScrollOffset,scroll:r.scrollTop(),size:u.y.size,visible:u.y.visible},{maxScroll:u.x.maxScrollOffset,scroll:r.scrollLeft(),size:u.x.size,visible:u.x.visible});u.x.isVisible&&u.x.scroll.bar.css("left",r.scrollLeft()*u.x.kx+"px");u.y.isVisible&&u.y.scroll.bar.css("top",r.scrollTop()*u.y.kx+"px")});h.on("scroll"+s,function(){h.scrollTop(0).scrollLeft(0)});if(f.disableBodyScroll){l=function(n){e(n)?u.y.isVisible&&u.y.mousewheel(n):u.x.isVisible&&u.x.mousewheel(n)};h.on("MozMousePixelScroll"+s,l);h.on("mousewheel"+s,l);if(t.mobile)h.on("touchstart"+s,function(t){var i=t.originalEvent.touches&&t.originalEvent.touches[0]||t,u={pageX:i.pageX,pageY:i.pageY},f={left:r.scrollLeft(),top:r.scrollTop()};n(document).on("touchmove"+s,function(n){var t=n.originalEvent.targetTouches&&n.originalEvent.targetTouches[0]||n;r.scrollLeft(f.left+u.pageX-t.pageX);r.scrollTop(f.top+u.pageY-t.pageY);n.preventDefault()});n(document).on("touchend"+s,function(){n(document).off(s)})})}n.isFunction(f.onInit)&&f.onInit.apply(this,[r])}n.each(u,function(t,i){var v=null,l=1,c=t==="x"?"scrollLeft":"scrollTop",a=f.scrollStep,y=function(){var n=r[c]();r[c](n+a);l==1&&n+a>=h&&(n=r[c]());l==-1&&n+a<=h&&(n=r[c]());r[c]()==n&&v&&v()},h=0;if(!i.scroll){i.scroll=o._getScroll(f["scroll"+t]).addClass("scroll-"+t);f.showArrows&&i.scroll.addClass("scroll-element_arrows_visible");i.mousewheel=function(n){if(!i.isVisible||t==="x"&&e(n))return!0;if(t==="y"&&!e(n))return u.x.mousewheel(n),!0;var f=n.originalEvent.wheelDelta*-1||n.originalEvent.detail,s=i.size-i.visible-i.offset;return(f>0&&h<s||f<0&&h>0)&&(h=h+f,h<0&&(h=0),h>s&&(h=s),o.scrollTo=o.scrollTo||{},o.scrollTo[c]=h,setTimeout(function(){o.scrollTo&&(r.stop().animate(o.scrollTo,240,"linear",function(){h=r[c]()}),o.scrollTo=null)},1)),n.preventDefault(),!1};i.scroll.on("MozMousePixelScroll"+s,i.mousewheel).on("mousewheel"+s,i.mousewheel).on("mouseenter"+s,function(){h=r[c]()});i.scroll.find(".scroll-arrow, .scroll-element_track").on("mousedown"+s,function(u){if(u.which!=1)return!0;l=1;var e={eventOffset:u[t==="x"?"pageX":"pageY"],maxScrollValue:i.size-i.visible-i.offset,scrollbarOffset:i.scroll.bar.offset()[t==="x"?"left":"top"],scrollbarSize:i.scroll.bar[t==="x"?"outerWidth":"outerHeight"]()},s=0,p=0;return n(this).hasClass("scroll-arrow")?(l=n(this).hasClass("scroll-arrow_more")?1:-1,a=f.scrollStep*l,h=l>0?e.maxScrollValue:0):(l=e.eventOffset>e.scrollbarOffset+e.scrollbarSize?1:e.eventOffset<e.scrollbarOffset?-1:0,a=Math.round(i.visible*.75)*l,h=e.eventOffset-e.scrollbarOffset-(f.stepScrolling?l==1?e.scrollbarSize:0:Math.round(e.scrollbarSize/2)),h=r[c]()+h/i.kx),o.scrollTo=o.scrollTo||{},o.scrollTo[c]=f.stepScrolling?r[c]()+a:h,f.stepScrolling&&(v=function(){h=r[c]();clearInterval(p);clearTimeout(s);s=0;p=0},s=setTimeout(function(){p=setInterval(y,40)},f.duration+100)),setTimeout(function(){o.scrollTo&&(r.animate(o.scrollTo,f.duration),o.scrollTo=null)},1),o._handleMouseDown(v,u)});i.scroll.bar.on("mousedown"+s,function(u){if(u.which!=1)return!0;var f=u[t==="x"?"pageX":"pageY"],e=r[c]();i.scroll.addClass("scroll-draggable");n(document).on("mousemove"+s,function(n){var u=parseInt((n[t==="x"?"pageX":"pageY"]-f)/i.kx,10);r[c](e+u)});return o._handleMouseDown(function(){i.scroll.removeClass("scroll-draggable");h=r[c]()},u)})}});n.each(u,function(n,t){var i="scroll-scroll"+n+"_visible",r=n=="x"?u.y:u.x;t.scroll.removeClass(i);r.scroll.removeClass(i);c.removeClass(i)});n.each(u,function(t,i){n.extend(i,t=="x"?{offset:parseInt(r.css("left"),10)||0,size:r.prop("scrollWidth"),visible:h.width()}:{offset:parseInt(r.css("top"),10)||0,size:r.prop("scrollHeight"),visible:h.height()})});this._updateScroll("x",this.scrollx);this._updateScroll("y",this.scrolly);n.isFunction(f.onUpdate)&&f.onUpdate.apply(this,[r]);n.each(u,function(n,t){var e=n==="x"?"left":"top",o=n==="x"?"outerWidth":"outerHeight",h=n==="x"?"width":"height",c=parseInt(r.css(e),10)||0,i=t.size,u=t.visible+c,s=t.scroll.size[o]()+(parseInt(t.scroll.size.css(e),10)||0);f.autoScrollSize&&(t.scrollbarSize=parseInt(s*u/i,10),t.scroll.bar.css(h,t.scrollbarSize+"px"));t.scrollbarSize=t.scroll.bar[o]();t.kx=(s-t.scrollbarSize)/(i-u)||1;t.maxScrollOffset=i-u});r.scrollLeft(a.scrollLeft).scrollTop(a.scrollTop).trigger("scroll")},_getScroll:function(t){var i={advanced:'<div class="scroll-element"><div class="scroll-element_corner"><\/div><div class="scroll-arrow scroll-arrow_less"><\/div><div class="scroll-arrow scroll-arrow_more"><\/div><div class="scroll-element_outer"><div class="scroll-element_size"><\/div><div class="scroll-element_inner-wrapper"><div class="scroll-element_inner scroll-element_track"><div class="scroll-element_inner-bottom"><\/div><\/div><\/div><div class="scroll-bar"><div class="scroll-bar_body"><div class="scroll-bar_body-inner"><\/div><\/div><div class="scroll-bar_bottom"><\/div><div class="scroll-bar_center"><\/div><\/div><\/div><\/div>',simple:'<div class="scroll-element"><div class="scroll-element_outer"><div class="scroll-element_size"><\/div><div class="scroll-element_track"><\/div><div class="scroll-bar"><\/div><\/div><\/div>'};return i[t]&&(t=i[t]),t||(t=i.simple),t=typeof t=="string"?n(t).appendTo(this.wrapper):n(t),n.extend(t,{bar:t.find(".scroll-bar"),size:t.find(".scroll-element_size"),track:t.find(".scroll-element_track")}),t},_handleMouseDown:function(t,i){var r=this.namespace;n(document).on("blur"+r,function(){n(document).add("body").off(r);t&&t()});n(document).on("dragstart"+r,function(n){return n.preventDefault(),!1});n(document).on("mouseup"+r,function(){n(document).add("body").off(r);t&&t()});n("body").on("selectstart"+r,function(n){return n.preventDefault(),!1});return i&&i.preventDefault(),!1},_updateScroll:function(i,r){var u=this.container,h=this.containerWrapper||u,f="scroll-scroll"+i+"_visible",e=i==="x"?this.scrolly:this.scrollx,l=parseInt(this.container.css(i==="x"?"left":"top"),10)||0,o=this.wrapper,c=r.size,s=r.visible+l;r.isVisible=c-s>1;r.isVisible?(r.scroll.addClass(f),e.scroll.addClass(f),h.addClass(f)):(r.scroll.removeClass(f),e.scroll.removeClass(f),h.removeClass(f));i==="y"&&(u.is("textarea")||c<s?(h.css({height:s+t.scroll.height+"px","max-height":"none"}),o.css({height:s+t.scroll.height+"px",overflow:"hidden"})):(h.css({"max-height":s+t.scroll.height+"px"}),o.css({height:s+t.scroll.height+"px",overflow:"hidden"})));(r.size!=u.prop("scrollWidth")||e.size!=u.prop("scrollHeight")||r.visible!=o.width()||e.visible!=o.height()||r.offset!=(parseInt(u.css("left"),10)||0)||e.offset!=(parseInt(u.css("top"),10)||0))&&(n.extend(this.scrollx,{offset:parseInt(u.css("left"),10)||0,size:u.prop("scrollWidth"),visible:o.width()}),n.extend(this.scrolly,{offset:parseInt(u.css("top"),10)||0,size:this.container.prop("scrollHeight"),visible:o.height()}),this._updateScroll(i==="x"?"y":"x",e))}};o=u;n.fn.scrollbar=function(i,r){return typeof i!="string"&&(r=i,i="init"),typeof r=="undefined"&&(r=[]),n.isArray(r)||(r=[r]),this.not("body, .scroll-wrapper").each(function(){var f=n(this),u=f.data(t.data.name);(u||i==="init")&&(u||(u=new o(f)),u[i]&&u[i].apply(u,r))}),this};n.fn.scrollbar.options=r;i=function(){var n=0,r=0;return function(u){for(var o,c,f,e,l,a,h=0;h<t.scrolls.length;h++)f=t.scrolls[h],o=f.container,c=f.options,e=f.wrapper,l=f.scrollx,a=f.scrolly,(u||c.autoUpdate&&e&&e.is(":visible")&&(o.prop("scrollWidth")!=l.size||o.prop("scrollHeight")!=a.size||e.width()!=l.visible||e.height()!=a.visible))&&(f.init(),c.debug&&(window.console&&console.log({scrollHeight:o.prop("scrollHeight")+":"+f.scrolly.size,scrollWidth:o.prop("scrollWidth")+":"+f.scrollx.size,visibleHeight:e.height()+":"+f.scrolly.visible,visibleWidth:e.width()+":"+f.scrollx.visible},!0),r++));s&&r>10?(window.console&&console.log("Scroll updates exceed 10"),i=function(){}):(clearTimeout(n),n=setTimeout(i,300))}}();window.angular&&function(n){n.module("jQueryScrollbar",[]).provider("jQueryScrollbar",function(){var t=r;return{setOptions:function(i){n.extend(t,i)},$get:function(){return{options:n.copy(t)}}}}).directive("jqueryScrollbar",["jQueryScrollbar","$parse",function(n,t){return{restrict:"AC",link:function(i,r,u){var f=t(u.jqueryScrollbar),e=f(i);r.scrollbar(e||n.options).on("$destroy",function(){r.scrollbar("destroy")})}}}])}(window.angular)}),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof module!="undefined"&&module.exports?module.exports=n:n(jQuery,window,document)}(function(n){(function(t){var i=typeof define=="function"&&define.amd,r=typeof module!="undefined"&&module.exports,u="https:"==document.location.protocol?"https:":"http:";i||(r?require("jquery-mousewheel")(n):n.event.special.mousewheel||n("head").append(decodeURI("%3Cscript src="+u+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E")));t()})(function(){var h="mCustomScrollbar",t="mCS",it=".mCustomScrollbar",ot={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},pt=0,b={},p=window.attachEvent&&!window.addEventListener?1:0,e=!1,c,i=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],s={init:function(r){var r=n.extend(!0,{},ot,r),e=v.call(this),u,f;if(r.live){if(u=r.liveSelector||this.selector||it,f=n(u),r.live==="off"){k(u);return}b[u]=setTimeout(function(){f.mCustomScrollbar(r);r.live==="once"&&f.length&&k(u)},500)}else k(u);return r.setWidth=r.set_width?r.set_width:r.setWidth,r.setHeight=r.set_height?r.set_height:r.setHeight,r.axis=r.horizontalScroll?"x":wt(r.axis),r.scrollInertia=r.scrollInertia>0&&r.scrollInertia<17?17:r.scrollInertia,typeof r.mouseWheel!="object"&&r.mouseWheel==!0&&(r.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),r.mouseWheel.scrollAmount=r.mouseWheelPixels?r.mouseWheelPixels:r.mouseWheel.scrollAmount,r.mouseWheel.normalizeDelta=r.advanced.normalizeMouseWheelDelta?r.advanced.normalizeMouseWheelDelta:r.mouseWheel.normalizeDelta,r.scrollButtons.scrollType=bt(r.scrollButtons.scrollType),st(r),n(e).each(function(){var u=n(this);if(!u.data(t)){u.data(t,{idx:++pt,opt:r,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:u.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var e=u.data(t),f=e.opt,o=u.data("mcs-axis"),h=u.data("mcs-scrollbar-position"),c=u.data("mcs-theme");o&&(f.axis=o);h&&(f.scrollbarPosition=h);c&&(f.theme=c,st(f));kt.call(this);e&&f.callbacks.onCreate&&typeof f.callbacks.onCreate=="function"&&f.callbacks.onCreate.call(this);n("#mCSB_"+e.idx+"_container img:not(."+i[2]+")").addClass(i[2]);s.update.call(null,u)}})},update:function(r,f){var e=r||v.call(this);return n(e).each(function(){var s=n(this),c;if(s.data(t)){var e=s.data(t),r=e.opt,h=n("#mCSB_"+e.idx+"_container"),a=n("#mCSB_"+e.idx),l=[n("#mCSB_"+e.idx+"_dragger_vertical"),n("#mCSB_"+e.idx+"_dragger_horizontal")];if(!h.length)return;e.tweenRunning&&o(s);f&&e&&r.callbacks.onBeforeUpdate&&typeof r.callbacks.onBeforeUpdate=="function"&&r.callbacks.onBeforeUpdate.call(this);s.hasClass(i[3])&&s.removeClass(i[3]);s.hasClass(i[4])&&s.removeClass(i[4]);a.css("max-height","none");a.height()!==s.height()&&a.css("max-height",s.height());dt.call(this);r.axis==="y"||r.advanced.autoExpandHorizontalScroll||h.css("width",ht(h));e.overflowed=ii.call(this);ct.call(this);r.autoDraggerLength&&ni.call(this);ti.call(this);ri.call(this);c=[Math.abs(h[0].offsetTop),Math.abs(h[0].offsetLeft)];r.axis!=="x"&&(e.overflowed[0]?l[0].height()>l[0].parent().height()?y.call(this):(u(s,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),e.contentReset.y=null):(y.call(this),r.axis==="y"?g.call(this):r.axis==="yx"&&e.overflowed[1]&&u(s,c[1].toString(),{dir:"x",dur:0,overwrite:"none"})));r.axis!=="y"&&(e.overflowed[1]?l[1].width()>l[1].parent().width()?y.call(this):(u(s,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),e.contentReset.x=null):(y.call(this),r.axis==="x"?g.call(this):r.axis==="yx"&&e.overflowed[0]&&u(s,c[0].toString(),{dir:"y",dur:0,overwrite:"none"})));f&&e&&(f===2&&r.callbacks.onImageLoad&&typeof r.callbacks.onImageLoad=="function"?r.callbacks.onImageLoad.call(this):f===3&&r.callbacks.onSelectorChange&&typeof r.callbacks.onSelectorChange=="function"?r.callbacks.onSelectorChange.call(this):r.callbacks.onUpdate&&typeof r.callbacks.onUpdate=="function"&&r.callbacks.onUpdate.call(this));et.call(this)}})},scrollTo:function(i,r){if(typeof i!="undefined"&&i!=null){var f=v.call(this);return n(f).each(function(){var s=n(this);if(s.data(t)){var o=s.data(t),h=o.opt,c={trigger:"external",scrollInertia:h.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},f=n.extend(!0,{},c,r),e=ft.call(this,i),l=f.scrollInertia>0&&f.scrollInertia<17?17:f.scrollInertia;e[0]=at.call(this,e[0],"y");e[1]=at.call(this,e[1],"x");f.moveDragger&&(e[0]*=o.scrollRatio.y,e[1]*=o.scrollRatio.x);f.dur=wi()?0:l;setTimeout(function(){e[0]!==null&&typeof e[0]!="undefined"&&h.axis!=="x"&&o.overflowed[0]&&(f.dir="y",f.overwrite="all",u(s,e[0].toString(),f));e[1]!==null&&typeof e[1]!="undefined"&&h.axis!=="y"&&o.overflowed[1]&&(f.dir="x",f.overwrite="none",u(s,e[1].toString(),f))},f.timeout)}})}},stop:function(){var i=v.call(this);return n(i).each(function(){var i=n(this);i.data(t)&&o(i)})},disable:function(r){var u=v.call(this);return n(u).each(function(){var u=n(this),f;u.data(t)&&(f=u.data(t),et.call(this,"remove"),g.call(this),r&&y.call(this),ct.call(this,!0),u.addClass(i[3]))})},destroy:function(){var r=v.call(this);return n(r).each(function(){var f=n(this);if(f.data(t)){var u=f.data(t),e=u.opt,s=n("#mCSB_"+u.idx),o=n("#mCSB_"+u.idx+"_container"),c=n(".mCSB_"+u.idx+"_scrollbar");e.live&&k(e.liveSelector||n(r).selector);et.call(this,"remove");g.call(this);y.call(this);f.removeData(t);a(this,"mcs");c.remove();o.find("img."+i[2]).removeClass(i[2]);s.replaceWith(o.contents());f.removeClass(h+" _"+t+"_"+u.idx+" "+i[6]+" "+i[7]+" "+i[5]+" "+i[3]).addClass(i[4])}})}},v=function(){return typeof n(this)!="object"||n(this).length<1?it:this},st=function(t){t.autoDraggerLength=n.inArray(t.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"])>-1?!1:t.autoDraggerLength;t.autoExpandScrollbar=n.inArray(t.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"])>-1?!1:t.autoExpandScrollbar;t.scrollButtons.enable=n.inArray(t.theme,["minimal","minimal-dark"])>-1?!1:t.scrollButtons.enable;t.autoHideScrollbar=n.inArray(t.theme,["minimal","minimal-dark"])>-1?!0:t.autoHideScrollbar;t.scrollbarPosition=n.inArray(t.theme,["minimal","minimal-dark"])>-1?"outside":t.scrollbarPosition},k=function(n){b[n]&&(clearTimeout(b[n]),a(b,n))},wt=function(n){return n==="yx"||n==="xy"||n==="auto"?"yx":n==="x"||n==="horizontal"?"x":"y"},bt=function(n){return n==="stepped"||n==="pixels"||n==="step"||n==="click"?"stepped":"stepless"},kt=function(){var f=n(this),u=f.data(t),r=u.opt,l=r.autoExpandScrollbar?" "+i[1]+"_expand":"",o=["<div id='mCSB_"+u.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+u.idx+"_scrollbar mCS-"+r.theme+" mCSB_scrollTools_vertical"+l+"'><div class='"+i[12]+"'><div id='mCSB_"+u.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /><\/div><div class='mCSB_draggerRail' /><\/div><\/div>","<div id='mCSB_"+u.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+u.idx+"_scrollbar mCS-"+r.theme+" mCSB_scrollTools_horizontal"+l+"'><div class='"+i[12]+"'><div id='mCSB_"+u.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /><\/div><div class='mCSB_draggerRail' /><\/div><\/div>"],v=r.axis==="yx"?"mCSB_vertical_horizontal":r.axis==="x"?"mCSB_horizontal":"mCSB_vertical",a=r.axis==="yx"?o[0]+o[1]:r.axis==="x"?o[1]:o[0],y=r.axis==="yx"?"<div id='mCSB_"+u.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",p=r.autoHideScrollbar?" "+i[6]:"",w=r.axis!=="x"&&u.langDir==="rtl"?" "+i[7]:"",c,s,e;r.setWidth&&f.css("width",r.setWidth);r.setHeight&&f.css("height",r.setHeight);r.setLeft=r.axis!=="y"&&u.langDir==="rtl"?"989999px":r.setLeft;f.addClass(h+" _"+t+"_"+u.idx+p+w).wrapInner("<div id='mCSB_"+u.idx+"' class='mCustomScrollBox mCS-"+r.theme+" "+v+"'><div id='mCSB_"+u.idx+"_container' class='mCSB_container' style='position:relative; top:"+r.setTop+"; left:"+r.setLeft+";' dir='"+u.langDir+"' /><\/div>");c=n("#mCSB_"+u.idx);s=n("#mCSB_"+u.idx+"_container");r.axis==="y"||r.advanced.autoExpandHorizontalScroll||s.css("width",ht(s));r.scrollbarPosition==="outside"?(f.css("position")==="static"&&f.css("position","relative"),f.css("overflow","visible"),c.addClass("mCSB_outside").after(a)):(c.addClass("mCSB_inside").append(a),s.wrap(y));gt.call(this);e=[n("#mCSB_"+u.idx+"_dragger_vertical"),n("#mCSB_"+u.idx+"_dragger_horizontal")];e[0].css("min-height",e[0].height());e[1].css("min-width",e[1].width())},ht=function(t){var i=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return n(this).outerWidth(!0)}).get())],r=t.parent().width();return i[0]>r?i[0]:i[1]>r?i[1]:"100%"},dt=function(){var e=n(this),f=e.data(t),r=f.opt,i=n("#mCSB_"+f.idx+"_container"),u;r.advanced.autoExpandHorizontalScroll&&r.axis!=="y"&&(i.css({width:"auto","min-width":0,"overflow-x":"scroll"}),u=Math.ceil(i[0].scrollWidth),r.advanced.autoExpandHorizontalScroll===3||r.advanced.autoExpandHorizontalScroll!==2&&u>i.parent().width()?i.css({width:u,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap())},gt=function(){var s=n(this),o=s.data(t),u=o.opt,h=n(".mCSB_"+o.idx+"_scrollbar:first"),f=tt(u.scrollButtons.tabindex)?"tabindex='"+u.scrollButtons.tabindex+"'":"",r=["<a href='#' class='"+i[13]+"' "+f+" />","<a href='#' class='"+i[14]+"' "+f+" />","<a href='#' class='"+i[15]+"' "+f+" />","<a href='#' class='"+i[16]+"' "+f+" />"],e=[u.axis==="x"?r[2]:r[0],u.axis==="x"?r[3]:r[1],r[2],r[3]];u.scrollButtons.enable&&h.prepend(e[0]).append(e[1]).next(".mCSB_scrollTools").prepend(e[2]).append(e[3])},ni=function(){var s=n(this),u=s.data(t),f=n("#mCSB_"+u.idx),e=n("#mCSB_"+u.idx+"_container"),r=[n("#mCSB_"+u.idx+"_dragger_vertical"),n("#mCSB_"+u.idx+"_dragger_horizontal")],o=[f.height()/e.outerHeight(!1),f.width()/e.outerWidth(!1)],i=[parseInt(r[0].css("min-height")),Math.round(o[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(o[1]*r[1].parent().width())],h=p&&i[1]<i[0]?i[0]:i[1],c=p&&i[3]<i[2]?i[2]:i[3];r[0].css({height:h,"max-height":r[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":i[0]+"px"});r[1].css({width:c,"max-width":r[1].parent().width()-10})},ti=function(){var s=n(this),i=s.data(t),u=n("#mCSB_"+i.idx),f=n("#mCSB_"+i.idx+"_container"),r=[n("#mCSB_"+i.idx+"_dragger_vertical"),n("#mCSB_"+i.idx+"_dragger_horizontal")],e=[f.outerHeight(!1)-u.height(),f.outerWidth(!1)-u.width()],o=[e[0]/(r[0].parent().height()-r[0].height()),e[1]/(r[1].parent().width()-r[1].width())];i.scrollRatio={y:o[0],x:o[1]}},d=function(n,t,r){var f=r?i[0]+"_expanded":"",u=n.closest(".mCSB_scrollTools");t==="active"?(n.toggleClass(i[0]+" "+f),u.toggleClass(i[1]),n[0]._draggable=n[0]._draggable?0:1):n[0]._draggable||(t==="hide"?(n.removeClass(i[0]),u.removeClass(i[1])):(n.addClass(i[0]),u.addClass(i[1])))},ii=function(){var h=n(this),r=h.data(t),e=n("#mCSB_"+r.idx),i=n("#mCSB_"+r.idx+"_container"),u=r.overflowed==null?i.height():i.outerHeight(!1),f=r.overflowed==null?i.width():i.outerWidth(!1),o=i[0].scrollHeight,s=i[0].scrollWidth;return o>u&&(u=o),s>f&&(f=s),[u>e.height(),f>e.width()]},y=function(){var r=n(this),i=r.data(t),f=i.opt,c=n("#mCSB_"+i.idx),s=n("#mCSB_"+i.idx+"_container"),h=[n("#mCSB_"+i.idx+"_dragger_vertical"),n("#mCSB_"+i.idx+"_dragger_horizontal")],e;o(r);(f.axis!=="x"&&!i.overflowed[0]||f.axis==="y"&&i.overflowed[0])&&(h[0].add(s).css("top",0),u(r,"_resetY"));(f.axis!=="y"&&!i.overflowed[1]||f.axis==="x"&&i.overflowed[1])&&(e=dx=0,i.langDir==="rtl"&&(e=c.width()-s.outerWidth(!1),dx=Math.abs(e/i.scrollRatio.x)),s.css("left",e),h[1].css("left",dx),u(r,"_resetX"))},ri=function(){var u=n(this),r=u.data(t),i=r.opt,f;if(!r.bindEvents){if(ui.call(this),i.contentTouchScroll&&fi.call(this),ei.call(this),i.mouseWheel.enable){function t(){f=setTimeout(function(){n.event.special.mousewheel?(clearTimeout(f),oi.call(u[0])):t()},100)}t()}hi.call(this);li.call(this);i.advanced.autoScrollOnFocus&&ci.call(this);i.scrollButtons.enable&&ai.call(this);i.keyboard.enable&&vi.call(this);r.bindEvents=!0}},g=function(){var f=n(this),r=f.data(t),u=r.opt,o=t+"_"+r.idx,s=".mCSB_"+r.idx+"_scrollbar",e=n("#mCSB_"+r.idx+",#mCSB_"+r.idx+"_container,#mCSB_"+r.idx+"_container_wrapper,"+s+" ."+i[12]+",#mCSB_"+r.idx+"_dragger_vertical,#mCSB_"+r.idx+"_dragger_horizontal,"+s+">a"),h=n("#mCSB_"+r.idx+"_container");u.advanced.releaseDraggableSelectors&&e.add(n(u.advanced.releaseDraggableSelectors));u.advanced.extraDraggableSelectors&&e.add(n(u.advanced.extraDraggableSelectors));r.bindEvents&&(n(document).add(n(!l()||top.document)).unbind("."+o),e.each(function(){n(this).unbind("."+o)}),clearTimeout(f[0]._focusTimeout),a(f[0],"_focusTimeout"),clearTimeout(r.sequential.step),a(r.sequential,"step"),clearTimeout(h[0].onCompleteTimeout),a(h[0],"onCompleteTimeout"),r.bindEvents=!1)},ct=function(r){var h=n(this),u=h.data(t),o=u.opt,c=n("#mCSB_"+u.idx+"_container_wrapper"),f=c.length?c:n("#mCSB_"+u.idx+"_container"),e=[n("#mCSB_"+u.idx+"_scrollbar_vertical"),n("#mCSB_"+u.idx+"_scrollbar_horizontal")],s=[e[0].find(".mCSB_dragger"),e[1].find(".mCSB_dragger")];o.axis!=="x"&&(u.overflowed[0]&&!r?(e[0].add(s[0]).add(e[0].children("a")).css("display","block"),f.removeClass(i[8]+" "+i[10])):(o.alwaysShowScrollbar?(o.alwaysShowScrollbar!==2&&s[0].css("display","none"),f.removeClass(i[10])):(e[0].css("display","none"),f.addClass(i[10])),f.addClass(i[8])));o.axis!=="y"&&(u.overflowed[1]&&!r?(e[1].add(s[1]).add(e[1].children("a")).css("display","block"),f.removeClass(i[9]+" "+i[11])):(o.alwaysShowScrollbar?(o.alwaysShowScrollbar!==2&&s[1].css("display","none"),f.removeClass(i[11])):(e[1].css("display","none"),f.addClass(i[11])),f.addClass(i[9])));u.overflowed[0]||u.overflowed[1]?h.removeClass(i[5]):h.addClass(i[5])},r=function(t){var e=t.type,i=t.target.ownerDocument!==document&&frameElement!==null?[n(frameElement).offset().top,n(frameElement).offset().left]:null,u=l()&&t.target.ownerDocument!==top.document&&frameElement!==null?[n(t.view.frameElement).offset().top,n(t.view.frameElement).offset().left]:[0,0],r,f;switch(e){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return i?[t.originalEvent.pageY-i[0]+u[0],t.originalEvent.pageX-i[1]+u[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":return r=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],f=t.originalEvent.touches.length||t.originalEvent.changedTouches.length,t.target.ownerDocument!==document?[r.screenY,r.screenX,f>1]:[r.pageY,r.pageX,f>1];default:return i?[t.pageY-i[0]+u[0],t.pageX-i[1]+u[1],!1]:[t.pageY,t.pageX,!1]}},ui=function(){function k(n,t,r,f){var e,o;w[0].idleTimer=h.scrollInertia<233?250:0;i.attr("id")===y[1]?(e="x",o=(i[0].offsetLeft-t+f)*s.scrollRatio.x):(e="y",o=(i[0].offsetTop-n+r)*s.scrollRatio.y);u(v,o.toString(),{dir:e,drag:!0})}var v=n(this),s=v.data(t),h=s.opt,f=t+"_"+s.idx,y=["mCSB_"+s.idx+"_dragger_vertical","mCSB_"+s.idx+"_dragger_horizontal"],w=n("#mCSB_"+s.idx+"_container"),b=n("#"+y[0]+",#"+y[1]),i,c,a,g=h.advanced.releaseDraggableSelectors?b.add(n(h.advanced.releaseDraggableSelectors)):b,nt=h.advanced.extraDraggableSelectors?n(!l()||top.document).add(n(h.advanced.extraDraggableSelectors)):n(!l()||top.document);b.bind("contextmenu."+f,function(n){n.preventDefault()}).bind("mousedown."+f+" touchstart."+f+" pointerdown."+f+" MSPointerDown."+f,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),yt(t)){e=!0;p&&(document.onselectstart=function(){return!1});lt.call(w,!1);o(v);i=n(this);var u=i.offset(),f=r(t)[0]-u.top,s=r(t)[1]-u.left,l=i.height()+u.top,y=i.width()+u.left;f<l&&f>0&&s<y&&s>0&&(c=f,a=s);d(i,"active",h.autoExpandScrollbar)}}).bind("touchmove."+f,function(n){n.stopImmediatePropagation();n.preventDefault();var t=i.offset(),u=r(n)[0]-t.top,f=r(n)[1]-t.left;k(c,a,u,f)});n(document).add(nt).bind("mousemove."+f+" pointermove."+f+" MSPointerMove."+f,function(n){if(i){var t=i.offset(),u=r(n)[0]-t.top,f=r(n)[1]-t.left;if(c===u&&a===f)return;k(c,a,u,f)}}).add(g).bind("mouseup."+f+" touchend."+f+" pointerup."+f+" MSPointerUp."+f,function(){i&&(d(i,"active",h.autoExpandScrollbar),i=null);e=!1;p&&(document.onselectstart=null);lt.call(w,!0)})},fi=function(){function dt(n){if(!nt(n)||e||r(n)[2]){c=0;return}c=1;ft=0;et=0;st=1;k.removeClass("mCS_touch_action");var t=b.offset();d=r(n)[0]-t.top;g=r(n)[1]-t.left;v=[r(n)[0],r(n)[1]]}function gt(n){var c,l,a,y;if(nt(n)&&!e&&!r(n)[2]&&(f.documentTouchScroll||n.preventDefault(),n.stopImmediatePropagation(),!et||ft)&&st){pt=w();var o=tt.offset(),t=r(n)[0]-o.top,u=r(n)[1]-o.left,h="mcsLinearOut";rt.push(t);ut.push(u);v[2]=Math.abs(r(n)[0]-v[0]);v[3]=Math.abs(r(n)[1]-v[1]);i.overflowed[0]&&(c=it[0].parent().height()-it[0].height(),l=d-t>0&&t-d>-(c*i.scrollRatio.y)&&(v[3]*2<v[2]||f.axis==="yx"));i.overflowed[1]&&(a=it[1].parent().width()-it[1].width(),y=g-u>0&&u-g>-(a*i.scrollRatio.x)&&(v[2]*2<v[3]||f.axis==="yx"));l||y?(kt||n.preventDefault(),ft=1):(et=1,k.addClass("mCS_touch_action"));kt&&n.preventDefault();s=f.axis==="yx"?[d-t,g-u]:f.axis==="x"?[null,g-u]:[d-t,null];b[0].idleTimer=250;i.overflowed[0]&&ot(s[0],wt,h,"y","all",!0);i.overflowed[1]&&ot(s[1],wt,h,"x",lt,!0)}}function ni(n){if(!nt(n)||e||r(n)[2]){c=0;return}c=1;n.stopImmediatePropagation();o(k);yt=w();var t=tt.offset();at=r(n)[0]-t.top;vt=r(n)[1]-t.left;rt=[];ut=[]}function ti(n){var t,u,h;if(nt(n)&&!e&&!r(n)[2]){st=0;n.stopImmediatePropagation();ft=0;et=0;ht=w();var c=tt.offset(),l=r(n)[0]-c.top,v=r(n)[1]-c.left;if(!(ht-pt>30)){a=1e3/(ht-yt);var p="mcsEaseOut",o=a<2.5,k=o?[rt[rt.length-2],ut[ut.length-2]]:[0,0];y=o?[l-k[0],v-k[1]]:[l-at,v-vt];t=[Math.abs(y[0]),Math.abs(y[1])];a=o?[Math.abs(y[0]/4),Math.abs(y[1]/4)]:[a,a];u=[Math.abs(b[0].offsetTop)-y[0]*ii(t[0]/a[0],a[0]),Math.abs(b[0].offsetLeft)-y[1]*ii(t[1]/a[1],a[1])];s=f.axis==="yx"?[u[0],u[1]]:f.axis==="x"?[null,u[1]]:[u[0],null];ct=[t[0]*4+f.scrollInertia,t[1]*4+f.scrollInertia];h=parseInt(f.contentTouchScroll)||0;s[0]=t[0]>h?s[0]:0;s[1]=t[1]>h?s[1]:0;i.overflowed[0]&&ot(s[0],ct[0],p,"y",lt,!1);i.overflowed[1]&&ot(s[1],ct[1],p,"x",lt,!1)}}}function ii(n,t){var i=[t*1.5,t*2,t/1.5,t/2];return n>90?t>4?i[0]:i[3]:n>60?t>3?i[3]:i[2]:n>30?t>8?i[1]:t>6?i[0]:t>4?t:i[2]:t>8?t:i[3]}function ot(n,t,i,r,f,e){n&&u(k,n.toString(),{dur:t,scrollEasing:i,dir:r,overwrite:f,drag:e})}var k=n(this),i=k.data(t),f=i.opt,h=t+"_"+i.idx,tt=n("#mCSB_"+i.idx),b=n("#mCSB_"+i.idx+"_container"),it=[n("#mCSB_"+i.idx+"_dragger_vertical"),n("#mCSB_"+i.idx+"_dragger_horizontal")],st,d,g,at,vt,rt=[],ut=[],yt,pt,ht,y,a,s,wt=0,ct,lt=f.axis==="yx"?"none":"all",v=[],ft,et,bt=b.find("iframe"),p=["touchstart."+h+" pointerdown."+h+" MSPointerDown."+h,"touchmove."+h+" pointermove."+h+" MSPointerMove."+h,"touchend."+h+" pointerup."+h+" MSPointerUp."+h],kt=document.body.style.touchAction!==undefined&&document.body.style.touchAction!=="";b.bind(p[0],function(n){dt(n)}).bind(p[1],function(n){gt(n)});tt.bind(p[0],function(n){ni(n)}).bind(p[2],function(n){ti(n)});bt.length&&bt.each(function(){n(this).bind("load",function(){l(this)&&n(this.contentDocument||this.contentWindow.document).bind(p[0],function(n){dt(n);ni(n)}).bind(p[1],function(n){gt(n)}).bind(p[2],function(n){ti(n)})})})},ei=function(){function y(){return window.getSelection?window.getSelection().toString():document.selection&&document.selection.type!="Control"?document.selection.createRange().text:0}function f(n,t,i){l.type=i&&u?"stepped":"stepless";l.scrollAmount=10;ut(a,n,t,"mcsLinearOut",i?60:null)}var a=n(this),i=a.data(t),v=i.opt,l=i.sequential,s=t+"_"+i.idx,o=n("#mCSB_"+i.idx+"_container"),h=o.parent(),u;o.bind("mousedown."+s,function(){c||u||(u=1,e=!0)}).add(document).bind("mousemove."+s,function(n){if(!c&&u&&y()){var s=o.offset(),t=r(n)[0]-s.top+o[0].offsetTop,e=r(n)[1]-s.left+o[0].offsetLeft;t>0&&t<h.height()&&e>0&&e<h.width()?l.step&&f("off",null,"stepped"):(v.axis!=="x"&&i.overflowed[0]&&(t<0?f("on",38):t>h.height()&&f("on",40)),v.axis!=="y"&&i.overflowed[1]&&(e<0?f("on",37):e>h.width()&&f("on",39)))}}).bind("mouseup."+s+" dragend."+s,function(){c||(u&&(u=0,f("off",null)),e=!1)})},oi=function(){function a(t,h){var a,v;if(o(s),!si(s,t.target)){if(a=i.mouseWheel.deltaFactor!=="auto"?parseInt(i.mouseWheel.deltaFactor):p&&t.deltaFactor<100?100:t.deltaFactor||100,v=i.scrollInertia,i.axis==="x"||i.mouseWheel.axis==="x")var y="x",l=[Math.round(a*r.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],w=i.mouseWheel.scrollAmount!=="auto"?l[1]:l[0]>=e.width()?e.width()*.9:l[0],k=Math.abs(n("#mCSB_"+r.idx+"_container")[0].offsetLeft),b=f[1][0].offsetLeft,d=f[1].parent().width()-f[1].width(),c=i.mouseWheel.axis==="y"?t.deltaY||h:t.deltaX;else var y="y",l=[Math.round(a*r.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],w=i.mouseWheel.scrollAmount!=="auto"?l[1]:l[0]>=e.height()?e.height()*.9:l[0],k=Math.abs(n("#mCSB_"+r.idx+"_container")[0].offsetTop),b=f[0][0].offsetTop,d=f[0].parent().height()-f[0].height(),c=t.deltaY||h;(y!=="y"||r.overflowed[0])&&(y!=="x"||r.overflowed[1])&&((i.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(c=-c),i.mouseWheel.normalizeDelta&&(c=c<0?-1:1),(c>0&&b!==0||c<0&&b!==d||i.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!i.mouseWheel.normalizeDelta&&(w=t.deltaFactor,v=17),u(s,(k-c*w).toString(),{dir:y,dur:v}))}}if(n(this).data(t)){var s=n(this),r=s.data(t),i=r.opt,h=t+"_"+r.idx,e=n("#mCSB_"+r.idx),f=[n("#mCSB_"+r.idx+"_dragger_vertical"),n("#mCSB_"+r.idx+"_dragger_horizontal")],c=n("#mCSB_"+r.idx+"_container").find("iframe");c.length&&c.each(function(){n(this).bind("load",function(){l(this)&&n(this.contentDocument||this.contentWindow.document).bind("mousewheel."+h,function(n,t){a(n,t)})})});e.bind("mousewheel."+h,function(n,t){a(n,t)})}},rt={},l=function(t){var r=!1,i=!1,u=null,f;if(t===undefined?i="#empty":n(t).attr("id")!==undefined&&(i=n(t).attr("id")),i!==!1&&rt[i]!==undefined)return rt[i];if(t){try{f=t.contentDocument||t.contentWindow.document;u=f.body.innerHTML}catch(e){}r=u!==null}else{try{f=top.document;u=f.body.innerHTML}catch(e){}r=u!==null}return i!==!1&&(rt[i]=r),r},lt=function(n){var t=this.find("iframe"),i;t.length&&(i=n?"auto":"none",t.css("pointer-events",i))},si=function(i,r){var u=r.nodeName.toLowerCase(),f=i.data(t).opt.mouseWheel.disableOver;return n.inArray(u,f)>-1&&!(n.inArray(u,["select","textarea"])>-1&&!n(r).is(":focus"))},hi=function(){var s=n(this),f=s.data(t),r=t+"_"+f.idx,h=n("#mCSB_"+f.idx+"_container"),l=h.parent(),a=n(".mCSB_"+f.idx+"_scrollbar ."+i[12]),c;a.bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r,function(t){e=!0;n(t.target).hasClass("mCSB_dragger")||(c=1)}).bind("touchend."+r+" pointerup."+r+" MSPointerUp."+r,function(){e=!1}).bind("click."+r,function(t){var r,e;if(c&&(c=0,n(t.target).hasClass(i[12])||n(t.target).hasClass("mCSB_draggerRail"))){if(o(s),r=n(this),e=r.find(".mCSB_dragger"),r.parent(".mCSB_scrollTools_horizontal").length>0){if(!f.overflowed[1])return;var v="x",a=t.pageX>e.offset().left?-1:1,y=Math.abs(h[0].offsetLeft)-a*l.width()*.9}else{if(!f.overflowed[0])return;var v="y",a=t.pageY>e.offset().top?-1:1,y=Math.abs(h[0].offsetTop)-a*l.height()*.9}u(s,y.toString(),{dir:v,scrollEasing:"mcsEaseInOut"})}})},ci=function(){var i=n(this),s=i.data(t),e=s.opt,c=t+"_"+s.idx,r=n("#mCSB_"+s.idx+"_container"),h=r.parent();r.bind("focusin."+c,function(){var t=n(document.activeElement),c=r.find(".mCustomScrollBox").length,s=0;t.is(e.advanced.autoScrollOnFocus)&&(o(i),clearTimeout(i[0]._focusTimeout),i[0]._focusTimer=c?(s+17)*c:0,i[0]._focusTimeout=setTimeout(function(){var n=[f(t)[0],f(t)[1]],o=[r[0].offsetTop,r[0].offsetLeft],c=[o[0]+n[0]>=0&&o[0]+n[0]<h.height()-t.outerHeight(!1),o[1]+n[1]>=0&&o[0]+n[1]<h.width()-t.outerWidth(!1)],l=e.axis==="yx"&&!c[0]&&!c[1]?"none":"all";e.axis==="x"||c[0]||u(i,n[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:l,dur:s});e.axis==="y"||c[1]||u(i,n[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:l,dur:s})},i[0]._focusTimer))})},li=function(){var u=n(this),i=u.data(t),f=t+"_"+i.idx,r=n("#mCSB_"+i.idx+"_container").parent();r.bind("scroll."+f,function(){(r.scrollTop()!==0||r.scrollLeft()!==0)&&n(".mCSB_"+i.idx+"_scrollbar").css("visibility","hidden")})},ai=function(){var f=n(this),r=f.data(t),o=r.opt,u=r.sequential,i=t+"_"+r.idx,s=".mCSB_"+r.idx+"_scrollbar",h=n(s+">a");h.bind("contextmenu."+i,function(n){n.preventDefault()}).bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i+" mouseup."+i+" touchend."+i+" pointerup."+i+" MSPointerUp."+i+" mouseout."+i+" pointerout."+i+" MSPointerOut."+i+" click."+i,function(t){function s(n,t){u.scrollAmount=o.scrollButtons.scrollAmount;ut(f,n,t)}if(t.preventDefault(),yt(t)){var i=n(this).attr("class");u.type=o.scrollButtons.scrollType;switch(t.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if(u.type==="stepped")return;e=!0;r.tweenRunning=!1;s("on",i);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if(u.type==="stepped")return;e=!1;u.dir&&s("off",i);break;case"click":if(u.type!=="stepped"||r.tweenRunning)return;s("on",i)}}})},vi=function(){function p(t){function w(n,t){(s.type=r.keyboard.scrollType,s.scrollAmount=r.keyboard.scrollAmount,s.type==="stepped"&&i.tweenRunning)||ut(e,n,t)}var c,y,p,l,v;switch(t.type){case"blur":i.tweenRunning&&s.dir&&w("off",null);break;case"keydown":case"keyup":if(c=t.keyCode?t.keyCode:t.which,y="on",r.axis!=="x"&&(c===38||c===40)||r.axis!=="y"&&(c===37||c===39)){if((c===38||c===40)&&!i.overflowed[0]||(c===37||c===39)&&!i.overflowed[1])return;t.type==="keyup"&&(y="off");n(document.activeElement).is(a)||(t.preventDefault(),t.stopImmediatePropagation(),w(y,c))}else c===33||c===34?((i.overflowed[0]||i.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),t.type==="keyup"&&(o(e),p=c===34?-1:1,r.axis==="x"||r.axis==="yx"&&i.overflowed[1]&&!i.overflowed[0]?(l="x",v=Math.abs(f[0].offsetLeft)-p*h.width()*.9):(l="y",v=Math.abs(f[0].offsetTop)-p*h.height()*.9),u(e,v.toString(),{dir:l,scrollEasing:"mcsEaseInOut"}))):(c===35||c===36)&&(n(document.activeElement).is(a)||((i.overflowed[0]||i.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),t.type==="keyup"&&(r.axis==="x"||r.axis==="yx"&&i.overflowed[1]&&!i.overflowed[0]?(l="x",v=c===35?Math.abs(h.width()-f.outerWidth(!1)):0):(l="y",v=c===35?Math.abs(h.height()-f.outerHeight(!1)):0),u(e,v.toString(),{dir:l,scrollEasing:"mcsEaseInOut"}))))}}var e=n(this),i=e.data(t),r=i.opt,s=i.sequential,c=t+"_"+i.idx,w=n("#mCSB_"+i.idx),f=n("#mCSB_"+i.idx+"_container"),h=f.parent(),a="input,textarea,select,datalist,keygen,[contenteditable='true']",v=f.find("iframe"),y=["blur."+c+" keydown."+c+" keyup."+c];v.length&&v.each(function(){n(this).bind("load",function(){l(this)&&n(this.contentDocument||this.contentWindow.document).bind(y[0],function(n){p(n)})})});w.attr("tabindex","0").bind(y[0],function(n){p(n)})},ut=function(r,f,e,s,h){function y(n){l.snapAmount&&(c.scrollAmount=(l.snapAmount instanceof Array)?c.dir[0]==="x"?l.snapAmount[1]:l.snapAmount[0]:l.snapAmount);var i=c.type!=="stepped",f=h?h:n?i?b/1.5:k:1e3/60,e=n?i?7.5:40:2.5,t=[Math.abs(p[0].offsetTop),Math.abs(p[0].offsetLeft)],o=[v.scrollRatio.y>10?10:v.scrollRatio.y,v.scrollRatio.x>10?10:v.scrollRatio.x],w=c.dir[0]==="x"?t[1]+c.dir[1]*o[1]*e:t[0]+c.dir[1]*o[0]*e,d=c.dir[0]==="x"?t[1]+c.dir[1]*parseInt(c.scrollAmount):t[0]+c.dir[1]*parseInt(c.scrollAmount),a=c.scrollAmount!=="auto"?d:w,g=s?s:n?i?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",nt=n?!0:!1;if(n&&f<17&&(a=c.dir[0]==="x"?t[1]:t[0]),u(r,a.toString(),{dir:c.dir[0],scrollEasing:g,dur:f,onComplete:nt}),n){c.dir=!1;return}clearTimeout(c.step);c.step=setTimeout(function(){y()},f)}function d(){clearTimeout(c.step);a(c,"step");o(r)}var v=r.data(t),l=v.opt,c=v.sequential,p=n("#mCSB_"+v.idx+"_container"),w=c.type==="stepped"?!0:!1,b=l.scrollInertia<26?26:l.scrollInertia,k=l.scrollInertia<1?17:l.scrollInertia;switch(f){case"on":if(c.dir=[e===i[16]||e===i[15]||e===39||e===37?"x":"y",e===i[13]||e===i[15]||e===38||e===37?-1:1],o(r),tt(e)&&c.type==="stepped")return;y(w);break;case"off":d();(w||v.tweenRunning&&c.dir)&&y(!0)}},ft=function(i){var u=n(this).data(t).opt,r=[];return typeof i=="function"&&(i=i()),i instanceof Array?r=i.length>1?[i[0],i[1]]:u.axis==="x"?[null,i[0]]:[i[0],null]:(r[0]=i.y?i.y:i.x||u.axis==="x"?null:i,r[1]=i.x?i.x:i.y||u.axis==="y"?null:i),typeof r[0]=="function"&&(r[0]=r[0]()),typeof r[1]=="function"&&(r[1]=r[1]()),r},at=function(i,r){var h,e;if(i!=null&&typeof i!="undefined"){var c=n(this),l=c.data(t),v=l.opt,u=n("#mCSB_"+l.idx+"_container"),o=u.parent(),y=typeof i;r||(r=v.axis==="x"?"x":"y");var p=r==="x"?u.outerWidth(!1)-o.width():u.outerHeight(!1)-o.height(),a=r==="x"?u[0].offsetLeft:u[0].offsetTop,w=r==="x"?"left":"top";switch(y){case"function":return i();case"object":return(e=i.jquery?i:n(i),!e.length)?void 0:r==="x"?f(e)[1]:f(e)[0];case"string":case"number":if(tt(i))return Math.abs(i);if(i.indexOf("%")!==-1)return Math.abs(p*parseInt(i)/100);if(i.indexOf("-=")!==-1)return Math.abs(a-parseInt(i.split("-=")[1]));if(i.indexOf("+=")!==-1)return h=a+parseInt(i.split("+=")[1]),h>=0?0:Math.abs(h);if(i.indexOf("px")!==-1&&tt(i.split("px")[0]))return Math.abs(i.split("px")[0]);if(i==="top"||i==="left")return 0;if(i==="bottom")return Math.abs(o.height()-u.outerHeight(!1));if(i==="right")return Math.abs(o.width()-u.outerWidth(!1));if(i==="first"||i==="last")return e=u.find(":"+i),r==="x"?f(e)[1]:f(e)[0];if(n(i).length)return r==="x"?f(n(i))[1]:f(n(i))[0];u.css(w,i);s.update.call(null,c[0]);return}}},et=function(r){function c(){if(clearTimeout(e[0].autoUpdate),o.parents("html").length===0){o=null;return}e[0].autoUpdate=setTimeout(function(){if(f.advanced.updateOnSelectorChange&&(u.poll.change.n=v(),u.poll.change.n!==u.poll.change.o)){u.poll.change.o=u.poll.change.n;h(3);return}if(f.advanced.updateOnContentResize&&(u.poll.size.n=o[0].scrollHeight+o[0].scrollWidth+e[0].offsetHeight+o[0].offsetHeight+o[0].offsetWidth,u.poll.size.n!==u.poll.size.o)){u.poll.size.o=u.poll.size.n;h(1);return}if(f.advanced.updateOnImageLoad&&!(f.advanced.updateOnImageLoad==="auto"&&f.axis==="y")&&(u.poll.img.n=e.find("img").length,u.poll.img.n!==u.poll.img.o)){u.poll.img.o=u.poll.img.n;e.find("img").each(function(){l(this)});return}(f.advanced.updateOnSelectorChange||f.advanced.updateOnContentResize||f.advanced.updateOnImageLoad)&&c()},f.advanced.autoUpdateTimeout)}function l(t){function u(n,t){return function(){return t.apply(n,arguments)}}function f(){this.onload=null;n(t).addClass(i[2]);h(2)}if(n(t).hasClass(i[2])){h();return}var r=new Image;r.onload=u(r,f);r.src=t.src}function v(){f.advanced.updateOnSelectorChange===!0&&(f.advanced.updateOnSelectorChange="*");var n=0,t=e.find(f.advanced.updateOnSelectorChange);return f.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){n+=this.offsetHeight+this.offsetWidth}),n}function h(n){clearTimeout(e[0].autoUpdate);s.update.call(null,o[0],n)}var o=n(this),u=o.data(t),f=u.opt,e=n("#mCSB_"+u.idx+"_container");if(r){clearTimeout(e[0].autoUpdate);a(e[0],"autoUpdate");return}c()},yi=function(n,t,i){return Math.round(n/t)*t-i},o=function(i){var r=i.data(t),u=n("#mCSB_"+r.idx+"_container,#mCSB_"+r.idx+"_container_wrapper,#mCSB_"+r.idx+"_dragger_vertical,#mCSB_"+r.idx+"_dragger_horizontal");u.each(function(){pi.call(this)})},u=function(i,r,u){function h(n){return f&&e.callbacks[n]&&typeof e.callbacks[n]=="function"}function ot(){return[e.callbacks.alwaysTriggerOffsets||w>=l[0]+v,e.callbacks.alwaysTriggerOffsets||w<=-y]}function a(){var n=[o[0].offsetTop,o[0].offsetLeft],t=[c[0].offsetTop,c[0].offsetLeft],r=[o.outerHeight(!1),o.outerWidth(!1)],f=[p.height(),p.width()];i[0].mcs={content:o,top:n[0],left:n[1],draggerTop:t[0],draggerLeft:t[1],topPct:Math.round(100*Math.abs(n[0])/(Math.abs(r[0])-f[0])),leftPct:Math.round(100*Math.abs(n[1])/(Math.abs(r[1])-f[1])),direction:u.dir}}var f=i.data(t),e=f.opt,rt={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:e.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},u=n.extend(rt,u),k=[u.dur,u.drag?0:u.dur],p=n("#mCSB_"+f.idx),o=n("#mCSB_"+f.idx+"_container"),b=o.parent(),g=e.callbacks.onTotalScrollOffset?ft.call(i,e.callbacks.onTotalScrollOffset):[0,0],nt=e.callbacks.onTotalScrollBackOffset?ft.call(i,e.callbacks.onTotalScrollBackOffset):[0,0],tt;if(f.trigger=u.trigger,(b.scrollTop()!==0||b.scrollLeft()!==0)&&(n(".mCSB_"+f.idx+"_scrollbar").css("visibility","visible"),b.scrollTop(0).scrollLeft(0)),r!=="_resetY"||f.contentReset.y||(h("onOverflowYNone")&&e.callbacks.onOverflowYNone.call(i[0]),f.contentReset.y=1),r!=="_resetX"||f.contentReset.x||(h("onOverflowXNone")&&e.callbacks.onOverflowXNone.call(i[0]),f.contentReset.x=1),r!=="_resetY"&&r!=="_resetX"){(f.contentReset.y||!i[0].mcs)&&f.overflowed[0]&&(h("onOverflowY")&&e.callbacks.onOverflowY.call(i[0]),f.contentReset.x=null);(f.contentReset.x||!i[0].mcs)&&f.overflowed[1]&&(h("onOverflowX")&&e.callbacks.onOverflowX.call(i[0]),f.contentReset.x=null);e.snapAmount&&(tt=(e.snapAmount instanceof Array)?u.dir==="x"?e.snapAmount[1]:e.snapAmount[0]:e.snapAmount,r=yi(r,tt,e.snapOffset));switch(u.dir){case"x":var c=n("#mCSB_"+f.idx+"_dragger_horizontal"),it="left",w=o[0].offsetLeft,l=[p.width()-o.outerWidth(!1),c.parent().width()-c.width()],s=[r,r===0?0:r/f.scrollRatio.x],v=g[1],y=nt[1],ut=v>0?v/f.scrollRatio.x:0,et=y>0?y/f.scrollRatio.x:0;break;case"y":var c=n("#mCSB_"+f.idx+"_dragger_vertical"),it="top",w=o[0].offsetTop,l=[p.height()-o.outerHeight(!1),c.parent().height()-c.height()],s=[r,r===0?0:r/f.scrollRatio.y],v=g[0],y=nt[0],ut=v>0?v/f.scrollRatio.y:0,et=y>0?y/f.scrollRatio.y:0}(s[1]<0||s[0]===0&&s[1]===0?s=[0,0]:s[1]>=l[1]?s=[l[0],l[1]]:s[0]=-s[0],i[0].mcs||(a(),h("onInit")&&e.callbacks.onInit.call(i[0])),clearTimeout(o[0].onCompleteTimeout),vt(c[0],it,Math.round(s[1]),k[1],u.scrollEasing),!f.tweenRunning&&(w===0&&s[0]>=0||w===l[0]&&s[0]<=l[0]))||vt(o[0],it,Math.round(s[0]),k[0],u.scrollEasing,u.overwrite,{onStart:function(){u.callbacks&&u.onStart&&!f.tweenRunning&&(h("onScrollStart")&&(a(),e.callbacks.onScrollStart.call(i[0])),f.tweenRunning=!0,d(c),f.cbOffsets=ot())},onUpdate:function(){u.callbacks&&u.onUpdate&&h("whileScrolling")&&(a(),e.callbacks.whileScrolling.call(i[0]))},onComplete:function(){if(u.callbacks&&u.onComplete){e.axis==="yx"&&clearTimeout(o[0].onCompleteTimeout);var n=o[0].idleTimer||0;o[0].onCompleteTimeout=setTimeout(function(){h("onScroll")&&(a(),e.callbacks.onScroll.call(i[0]));h("onTotalScroll")&&s[1]>=l[1]-ut&&f.cbOffsets[0]&&(a(),e.callbacks.onTotalScroll.call(i[0]));h("onTotalScrollBack")&&s[1]<=et&&f.cbOffsets[1]&&(a(),e.callbacks.onTotalScrollBack.call(i[0]));f.tweenRunning=!1;o[0].idleTimer=0;d(c,"hide")},n)}}})}},vt=function(n,t,i,r,u,f,e){function y(){o.stop||(s||b.call(),s=w()-g,p(),s>=o.time&&(o.time=s>o.time?s+h-(s-o.time):s+h-1,o.time<s+1&&(o.time=s+1)),o.time<r?o.id=l(y):d.call())}function p(){r>0?(o.currVal=it(o.time,c,v,r,u),a[t]=Math.round(o.currVal)+"px"):a[t]=i+"px";k.call()}function nt(){h=1e3/60;o.time=s+h;l=window.requestAnimationFrame?window.requestAnimationFrame:function(n){return p(),setTimeout(n,.01)};o.id=l(y)}function tt(){o.id!=null&&(window.requestAnimationFrame?window.cancelAnimationFrame(o.id):clearTimeout(o.id),o.id=null)}function it(n,t,i,r,u){switch(u){case"linear":case"mcsLinear":return i*n/r+t;case"mcsLinearOut":return n/=r,n--,i*Math.sqrt(1-n*n)+t;case"easeInOutSmooth":return(n/=r/2,n<1)?i/2*n*n+t:(n--,-i/2*(n*(n-2)-1)+t);case"easeInOutStrong":return(n/=r/2,n<1)?i/2*Math.pow(2,10*(n-1))+t:(n--,i/2*(-Math.pow(2,-10*n)+2)+t);case"easeInOut":case"mcsEaseInOut":return(n/=r/2,n<1)?i/2*n*n*n+t:(n-=2,i/2*(n*n*n+2)+t);case"easeOutSmooth":return n/=r,n--,-i*(n*n*n*n-1)+t;case"easeOutStrong":return i*(-Math.pow(2,-10*n/r)+1)+t;case"easeOut":case"mcsEaseOut":default:var f=(n/=r)*n,e=f*n;return t+i*(.499999999999997*e*f+-2.5*f*f+5.5*e+-6.5*f+4*n)}}var v;n._mTween||(n._mTween={top:{},left:{}});var e=e||{},b=e.onStart||function(){},k=e.onUpdate||function(){},d=e.onComplete||function(){},g=w(),h,s=0,c=n.offsetTop,a=n.style,l,o=n._mTween[t];t==="left"&&(c=n.offsetLeft);v=i-c;o.stop=0;f!=="none"&&tt();nt()},w=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},pi=function(){var n=this,r,i,t;for(n._mTween||(n._mTween={top:{},left:{}}),r=["top","left"],i=0;i<r.length;i++)t=r[i],n._mTween[t].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(n._mTween[t].id):clearTimeout(n._mTween[t].id),n._mTween[t].id=null,n._mTween[t].stop=1)},a=function(n,t){try{delete n[t]}catch(i){n[t]=null}},yt=function(n){return!(n.which&&n.which!==1)},nt=function(n){var t=n.originalEvent.pointerType;return!(t&&t!=="touch"&&t!==2)},tt=function(n){return!isNaN(parseFloat(n))&&isFinite(n)},f=function(n){var t=n.parents(".mCSB_container");return[n.offset().top-t.offset().top,n.offset().left-t.offset().left]},wi=function(){function t(){var t=["webkit","moz","ms","o"],n;if("hidden"in document)return"hidden";for(n=0;n<t.length;n++)if(t[n]+"Hidden"in document)return t[n]+"Hidden";return null}var n=t();return n?document[n]:!1};n.fn[h]=function(t){if(s[t])return s[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t!="object"&&t)n.error("Method "+t+" does not exist");else return s.init.apply(this,arguments)};n[h]=function(t){if(s[t])return s[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t!="object"&&t)n.error("Method "+t+" does not exist");else return s.init.apply(this,arguments)};n[h].defaults=ot;window[h]=!0;n(window).bind("load",function(){n(it)[h]();n.extend(n.expr[":"],{mcsInView:n.expr[":"].mcsInView||function(t){var i=n(t),u=i.parents(".mCSB_container"),e,r;if(u.length)return e=u.parent(),r=[u[0].offsetTop,u[0].offsetLeft],r[0]+f(i)[0]>=0&&r[0]+f(i)[0]<e.height()-i.outerHeight(!1)&&r[1]+f(i)[1]>=0&&r[1]+f(i)[1]<e.width()-i.outerWidth(!1)},mcsInSight:n.expr[":"].mcsInSight||function(t,i,r){var e=n(t),o,s=e.parents(".mCSB_container"),u,h,c,l=r[3]==="exact"?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(s.length)return o=[e.outerHeight(!1),e.outerWidth(!1)],h=[s[0].offsetTop+f(e)[0],s[0].offsetLeft+f(e)[1]],u=[s.parent()[0].offsetHeight,s.parent()[0].offsetWidth],c=[o[0]<u[0]?l[0]:l[1],o[1]<u[1]?l[0]:l[1]],h[0]-u[0]*c[0][0]<0&&h[0]+o[0]-u[0]*c[0][1]>=0&&h[1]-u[1]*c[1][0]<0&&h[1]+o[1]-u[1]*c[1][1]>=0},mcsOverflow:n.expr[":"].mcsOverflow||function(i){var r=n(i).data(t);if(r)return r.overflowed[0]||r.overflowed[1]}})})})}),function(n){var t;window.UIkit&&(t=n(UIkit));typeof define=="function"&&define.amd&&define("uikit-sticky",["uikit"],function(){return t||n(UIkit)})}(function(n){"use strict";function r(){var c=arguments.length?arguments:t,h,a,v;if(c.length&&!(i.scrollTop()<0)){var e=i.scrollTop(),o=f.height(),p=i.height(),y=o-p,w=e>y?y-e:0,u,l,s,r;for(h=0;h<c.length;h++)(r=c[h],r.element.is(":visible")&&!r.animate)&&(r.check()?(r.top<0?u=0:(s=r.element.outerHeight(),u=o-s-r.top-r.options.bottom-e-w,u=u<0?u+r.top:r.top),r.boundary&&r.boundary.length&&(a=r.boundary.offset().top,l=r.boundtoparent?o-(a+r.boundary.outerHeight())+parseInt(r.boundary.css("padding-bottom")):o-a,u=e+s>o-l-(r.top<0?0:r.top)?o-l-(e+s):u),r.currentTop!=u&&(r.element.css({position:"fixed",top:u,width:r.getWidthFrom.length?r.getWidthFrom.width():r.element.width()}),r.init||(r.element.addClass(r.options.clsinit),location.hash&&e>0&&r.options.target&&(v=n.$(location.hash),v.length&&setTimeout(function(n,t){return function(){t.element.width();var i=n.offset(),f=i.top+n.outerHeight(),r=t.element.offset(),u=t.element.outerHeight(),o=r.top+u;r.top<f&&i.top<o&&(e=i.top-u-t.options.target,window.scrollTo(0,e))}}(v,r),0))),r.element.addClass(r.options.clsactive).removeClass(r.options.clsinactive),r.element.trigger("active.uk.sticky"),r.element.css("margin",""),r.options.animation&&r.init&&!n.Utils.isInView(r.wrapper)&&r.element.addClass(r.options.animation),r.currentTop=u)):r.currentTop!==null&&r.reset(),r.init=!0)}}var i=n.$win,f=n.$doc,t=[],u=1;return n.component("sticky",{defaults:{top:0,bottom:0,animation:"",clsinit:"uk-sticky-init",clsactive:"uk-active",clsinactive:"",getWidthFrom:"",showup:!1,boundary:!1,media:!1,target:!1,disabled:!1},boot:function(){n.$doc.on("scrolling.uk.document",function(n,t){t&&t.dir&&(u=t.dir.y,r())});n.$win.on("resize orientationchange",n.Utils.debounce(function(){if(t.length){for(var n=0;n<t.length;n++)t[n].reset(!0);r()}},100));n.ready(function(t){setTimeout(function(){n.$("[data-uk-sticky]",t).each(function(){var t=n.$(this);t.data("sticky")||n.sticky(t,n.Utils.options(t.attr("data-uk-sticky")))});r()},0)})},init:function(){var r=this.options.boundary,e;this.wrapper=this.element.wrap('<div class="uk-sticky-placeholder"><\/div>').parent();this.computeWrapper();this.element.css("margin",0);r&&(r===!0||r[0]==="!"?(r=r===!0?this.wrapper.parent():this.wrapper.closest(r.substr(1)),e=!0):typeof r=="string"&&(r=n.$(r)));this.sticky={self:this,options:this.options,element:this.element,currentTop:null,wrapper:this.wrapper,init:!1,getWidthFrom:n.$(this.options.getWidthFrom||this.wrapper),boundary:r,boundtoparent:e,top:0,calcTop:function(){var i=this.options.top,t;this.options.top&&typeof this.options.top=="string"&&(this.options.top.match(/^(-|)(\d+)vh$/)?i=window.innerHeight*parseInt(this.options.top,10)/100:(t=n.$(this.options.top).first(),t.length&&t.is(":visible")&&(i=-1*(t.offset().top+t.outerHeight()-this.wrapper.offset().top))));this.top=i},reset:function(t){this.calcTop();var i=function(){this.element.css({position:"",top:"",width:"",left:"",margin:"0"});this.element.removeClass([this.options.animation,"uk-animation-reverse",this.options.clsactive].join(" "));this.element.addClass(this.options.clsinactive);this.element.trigger("inactive.uk.sticky");this.currentTop=null;this.animate=!1}.bind(this);!t&&this.options.animation&&n.support.animation&&!n.Utils.isInView(this.wrapper)?(this.animate=!0,this.element.removeClass(this.options.animation).one(n.support.animation.end,function(){i()}).width(),this.element.addClass(this.options.animation+" uk-animation-reverse")):i()},check:function(){if(this.options.disabled)return!1;if(this.options.media)switch(typeof this.options.media){case"number":if(window.innerWidth<this.options.media)return!1;break;case"string":if(window.matchMedia&&!window.matchMedia(this.options.media).matches)return!1}var r=i.scrollTop(),o=f.height(),e=o-window.innerHeight,s=r>e?e-r:0,h=this.wrapper.offset().top,c=h-this.top-s,t=r>=c;return t&&this.options.showup&&(u==1&&(t=!1),u==-1&&!this.element.hasClass(this.options.clsactive)&&n.Utils.isInView(this.wrapper)&&(t=!1)),t}};this.sticky.calcTop();t.push(this.sticky)},update:function(){r(this.sticky)},enable:function(){this.options.disabled=!1;this.update()},disable:function(n){this.options.disabled=!0;this.sticky.reset(n)},computeWrapper:function(){this.wrapper.css({height:["absolute","fixed"].indexOf(this.element.css("position"))==-1?this.element.outerHeight():"",float:this.element.css("float")!="none"?this.element.css("float"):"",margin:this.element.css("margin")});this.element.css("position")=="fixed"&&this.element.css({width:this.sticky.getWidthFrom.length?this.sticky.getWidthFrom.width():this.element.width()})}}),n.sticky});getCorrectTimeIntervalText=function(n){return n?n.replace("-","–"):""},function(n){var t=function(t,i){var r=this,u;r.options=t;r.$element=n(i);u=r.$element.val();r.$element.removeAttr("multiple");r.select2=r.$element.select2({allowClear:!0,minimumResultsForSearch:t.minimumResultsForSearch,placeholder:t.placeholder,theme:"bootstrap",closeOnSelect:!1,templateSelection:function(){return r.options.templateSelection(r.$element.val()||[],n("option",r.$element).length)},templateResult:function(t){return t.loading!==undefined?t.text:n("<div>").text(t.text).addClass(r.options.wrapClass)},matcher:function(t,i){var f=n.fn.select2.defaults.defaults.matcher,u=f(t,i);return u&&r.options.searchMatchOptGroups&&i.children&&u.children&&i.children.length!=u.children.length&&(u.children=i.children),u}}).data("select2");r.select2.$results.off("mouseup").on("mouseup",".select2-results__option[aria-selected]",function(t){return function(i){var r=n(this),u=r.data("data");if(r.attr("aria-selected")==="true"){t.trigger("unselect",{originalEvent:i,data:u});return}t.trigger("select",{originalEvent:i,data:u})}}(r.select2));r.$element.attr("multiple","multiple").val(u).trigger("change.select2")};n.fn.extend({select2MultiCheckboxes:function(){var i=n.extend({placeholder:"Choose elements",templateSelection:function(n,t){return n.length+" > "+t+" total"},wrapClass:"wrap",minimumResultsForSearch:-1,searchMatchOptGroups:!0},arguments[0]);this.each(function(){new t(i,this)})}})}(jQuery),function(n,t){typeof exports=="object"&&typeof module=="object"?module.exports=t():typeof define=="function"&&define.amd?define([],t):typeof exports=="object"?exports.Handlebars=t():n.Handlebars=t()}(this,function(){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={exports:{},id:r,loaded:!1};return n[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var i={};return t.m=n,t.c=i,t.p="",t(0)}([function(n,t,i){"use strict";function o(){var n=k();return n.compile=function(t,i){return f.compile(t,i,n)},n.precompile=function(t,i){return f.precompile(t,i,n)},n.AST=l["default"],n.Compiler=f.Compiler,n.JavaScriptCompiler=v["default"],n.Parser=e.parser,n.parse=e.parse,n}var u=i(1)["default"],r;t.__esModule=!0;var s=i(2),h=u(s),c=i(35),l=u(c),e=i(36),f=i(41),a=i(42),v=u(a),y=i(39),p=u(y),w=i(34),b=u(w),k=h["default"].create;r=o();r.create=o;b["default"](r);r.Visitor=p["default"];r["default"]=r;t["default"]=r;n.exports=t["default"]},function(n,t){"use strict";t["default"]=function(n){return n&&n.__esModule?n:{"default":n}};t.__esModule=!0},function(n,t,i){"use strict";function h(){var n=new o.HandlebarsEnvironment;return e.extend(n,o),n.SafeString=a["default"],n.Exception=y["default"],n.Utils=e,n.escapeExpression=e.escapeExpression,n.VM=s,n.template=function(t){return s.template(t,n)},n}var u=i(3)["default"],f=i(1)["default"],r;t.__esModule=!0;var c=i(4),o=u(c),l=i(21),a=f(l),v=i(6),y=f(v),p=i(5),e=u(p),w=i(22),s=u(w),b=i(34),k=f(b);r=h();r.create=h;k["default"](r);r["default"]=r;t["default"]=r;n.exports=t["default"]},function(n,t){"use strict";t["default"]=function(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t};t.__esModule=!0},function(n,t,i){"use strict";function o(n,t,i){this.helpers=n||{};this.partials=t||{};this.decorators=i||{};v.registerDefaultHelpers(this);y.registerDefaultDecorators(this)}var s=i(1)["default"],h,c,f,l;t.__esModule=!0;t.HandlebarsEnvironment=o;var r=i(5),a=i(6),e=s(a),v=i(10),y=i(18),p=i(20),u=s(p);t.VERSION="4.0.12";h=7;t.COMPILER_REVISION=h;c={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0"};t.REVISION_CHANGES=c;f="[object Object]";o.prototype={constructor:o,logger:u["default"],log:u["default"].log,registerHelper:function(n,t){if(r.toString.call(n)===f){if(t)throw new e["default"]("Arg not supported with multiple helpers");r.extend(this.helpers,n)}else this.helpers[n]=t},unregisterHelper:function(n){delete this.helpers[n]},registerPartial:function(n,t){if(r.toString.call(n)===f)r.extend(this.partials,n);else{if(typeof t=="undefined")throw new e["default"]('Attempting to register a partial called "'+n+'" as undefined');this.partials[n]=t}},unregisterPartial:function(n){delete this.partials[n]},registerDecorator:function(n,t){if(r.toString.call(n)===f){if(t)throw new e["default"]("Arg not supported with multiple decorators");r.extend(this.decorators,n)}else this.decorators[n]=t},unregisterDecorator:function(n){delete this.decorators[n]}};l=u["default"].log;t.log=l;t.createFrame=r.createFrame;t.logger=u["default"]},function(n,t){"use strict";function h(n){return e[n]}function f(n){for(var i,t=1;t<arguments.length;t++)for(i in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],i)&&(n[i]=arguments[t][i]);return n}function c(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1}function l(n){if(typeof n!="string"){if(n&&n.toHTML)return n.toHTML();if(n==null)return"";if(!n)return n+"";n=""+n}return s.test(n)?n.replace(o,h):n}function a(n){return n||n===0?u(n)&&n.length===0?!0:!1:!0}function v(n){var t=f({},n);return t._parent=n,t}function y(n,t){return n.path=t,n}function p(n,t){return(n?n+".":"")+t}var i,r,u;t.__esModule=!0;t.extend=f;t.indexOf=c;t.escapeExpression=l;t.isEmpty=a;t.createFrame=v;t.blockParams=y;t.appendContextPath=p;var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},o=/[&<>"'`=]/g,s=/[&<>"'`=]/;i=Object.prototype.toString;t.toString=i;r=function(n){return typeof n=="function"};r(/x/)&&(t.isFunction=r=function(n){return typeof n=="function"&&i.call(n)==="[object Function]"});t.isFunction=r;u=Array.isArray||function(n){return n&&typeof n=="object"?i.call(n)==="[object Array]":!1};t.isArray=u},function(n,t,i){"use strict";function u(n,t){var e=t&&t.loc,s=undefined,o=undefined,h,i;for(e&&(s=e.start.line,o=e.start.column,n+=" - "+s+":"+o),h=Error.prototype.constructor.call(this,n),i=0;i<r.length;i++)this[r[i]]=h[r[i]];Error.captureStackTrace&&Error.captureStackTrace(this,u);try{e&&(this.lineNumber=s,f?Object.defineProperty(this,"column",{value:o,enumerable:!0}):this.column=o)}catch(c){}}var f=i(7)["default"],r;t.__esModule=!0;r=["description","fileName","lineNumber","message","name","number","stack"];u.prototype=new Error;t["default"]=u;n.exports=t["default"]},function(n,t,i){n.exports={"default":i(8),__esModule:!0}},function(n,t,i){var r=i(9);n.exports=function(n,t,i){return r.setDesc(n,t,i)}},function(n){var t=Object;n.exports={create:t.create,getProto:t.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:t.getOwnPropertyDescriptor,setDesc:t.defineProperty,setDescs:t.defineProperties,getKeys:t.keys,getNames:t.getOwnPropertyNames,getSymbols:t.getOwnPropertySymbols,each:[].forEach}},function(n,t,i){"use strict";function k(n){f["default"](n);o["default"](n);h["default"](n);l["default"](n);v["default"](n);p["default"](n);b["default"](n)}var r=i(1)["default"];t.__esModule=!0;t.registerDefaultHelpers=k;var u=i(11),f=r(u),e=i(12),o=r(e),s=i(13),h=r(s),c=i(14),l=r(c),a=i(15),v=r(a),y=i(16),p=r(y),w=i(17),b=r(w)},function(n,t,i){"use strict";t.__esModule=!0;var r=i(5);t["default"]=function(n){n.registerHelper("blockHelperMissing",function(t,i){var f=i.inverse,e=i.fn,u;return t===!0?e(this):t===!1||t==null?f(this):r.isArray(t)?t.length>0?(i.ids&&(i.ids=[i.name]),n.helpers.each(t,i)):f(this):(i.data&&i.ids&&(u=r.createFrame(i.data),u.contextPath=r.appendContextPath(i.data.contextPath,i.name),i={data:u}),e(t,i))})};n.exports=t["default"]},function(n,t,i){"use strict";var u=i(1)["default"];t.__esModule=!0;var r=i(5),f=i(6),e=u(f);t["default"]=function(n){n.registerHelper("each",function(n,t){function h(t,i,f){u&&(u.key=t,u.index=i,u.first=i===0,u.last=!!f,s&&(u.contextPath=s+t));o=o+a(n[t],{data:u,blockParams:r.blockParams([n[t],t],[s+t,null])})}var l,f,c;if(!t)throw new e["default"]("Must pass iterator to #each");var a=t.fn,v=t.inverse,i=0,o="",u=undefined,s=undefined;if(t.data&&t.ids&&(s=r.appendContextPath(t.data.contextPath,t.ids[0])+"."),r.isFunction(n)&&(n=n.call(this)),t.data&&(u=r.createFrame(t.data)),n&&typeof n=="object")if(r.isArray(n))for(l=n.length;i<l;i++)i in n&&h(i,i,i===n.length-1);else{f=undefined;for(c in n)n.hasOwnProperty(c)&&(f!==undefined&&h(f,i-1),f=c,i++);f!==undefined&&h(f,i-1,!0)}return i===0&&(o=v(this)),o})};n.exports=t["default"]},function(n,t,i){"use strict";var f=i(1)["default"],r,u;t.__esModule=!0;r=i(6);u=f(r);t["default"]=function(n){n.registerHelper("helperMissing",function(){if(arguments.length===1)return undefined;throw new u["default"]('Missing helper: "'+arguments[arguments.length-1].name+'"');})};n.exports=t["default"]},function(n,t,i){"use strict";t.__esModule=!0;var r=i(5);t["default"]=function(n){n.registerHelper("if",function(n,t){return r.isFunction(n)&&(n=n.call(this)),(t.hash.includeZero||n)&&!r.isEmpty(n)?t.fn(this):t.inverse(this)});n.registerHelper("unless",function(t,i){return n.helpers["if"].call(this,t,{fn:i.inverse,inverse:i.fn,hash:i.hash})})};n.exports=t["default"]},function(n,t){"use strict";t.__esModule=!0;t["default"]=function(n){n.registerHelper("log",function(){for(var i,r=[undefined],t=arguments[arguments.length-1],u=0;u<arguments.length-1;u++)r.push(arguments[u]);i=1;t.hash.level!=null?i=t.hash.level:t.data&&t.data.level!=null&&(i=t.data.level);r[0]=i;n.log.apply(n,r)})};n.exports=t["default"]},function(n,t){"use strict";t.__esModule=!0;t["default"]=function(n){n.registerHelper("lookup",function(n,t){return n&&n[t]})};n.exports=t["default"]},function(n,t,i){"use strict";t.__esModule=!0;var r=i(5);t["default"]=function(n){n.registerHelper("with",function(n,t){var u,i;return r.isFunction(n)&&(n=n.call(this)),u=t.fn,r.isEmpty(n)?t.inverse(this):(i=t.data,t.data&&t.ids&&(i=r.createFrame(t.data),i.contextPath=r.appendContextPath(t.data.contextPath,t.ids[0])),u(n,{data:i,blockParams:r.blockParams([n],[i&&i.contextPath])}))})};n.exports=t["default"]},function(n,t,i){"use strict";function e(n){u["default"](n)}var f=i(1)["default"],r,u;t.__esModule=!0;t.registerDefaultDecorators=e;r=i(19);u=f(r)},function(n,t,i){"use strict";t.__esModule=!0;var r=i(5);t["default"]=function(n){n.registerDecorator("inline",function(n,t,i,u){var f=n;return t.partials||(t.partials={},f=function(u,f){var e=i.partials,o;return i.partials=r.extend({},e,t.partials),o=n(u,f),i.partials=e,o}),t.partials[u.args[0]]=u.fn,f})};n.exports=t["default"]},function(n,t,i){"use strict";t.__esModule=!0;var u=i(5),r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(n){if(typeof n=="string"){var t=u.indexOf(r.methodMap,n.toLowerCase());n=t>=0?t:parseInt(n,10)}return n},log:function(n){var t;if(n=r.lookupLevel(n),typeof console!="undefined"&&r.lookupLevel(r.level)<=n){t=r.methodMap[n];console[t]||(t="log");for(var u=arguments.length,f=Array(u>1?u-1:0),i=1;i<u;i++)f[i-1]=arguments[i];console[t].apply(console,f)}}};t["default"]=r;n.exports=t["default"]},function(n,t){"use strict";function i(n){this.string=n}t.__esModule=!0;i.prototype.toString=i.prototype.toHTML=function(){return""+this.string};t["default"]=i;n.exports=t["default"]},function(n,t,i){"use strict";function y(n){var t=n&&n[0]||1,i=u.COMPILER_REVISION,f,e;if(t!==i)if(t<i){f=u.REVISION_CHANGES[i];e=u.REVISION_CHANGES[t];throw new r["default"]("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+f+") or downgrade your runtime to an older version ("+e+").");}else throw new r["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+n[1]+").");}function p(n,t){function o(i,u,e){var o,h,s,c;if(e.hash&&(u=f.extend({},u,e.hash),e.ids&&(e.ids[0]=!0)),i=t.VM.resolvePartial.call(this,i,u,e),o=t.VM.invokePartial.call(this,i,u,e),o==null&&t.compile&&(e.partials[e.name]=t.compile(i,n.compilerOptions,t),o=e.partials[e.name](u,e)),o!=null){if(e.indent){for(h=o.split("\n"),s=0,c=h.length;s<c;s++){if(!h[s]&&s+1===c)break;h[s]=e.indent+h[s]}o=h.join("\n")}return o}throw new r["default"]("The partial "+e.name+" could not be compiled when running in runtime-only mode");}function u(t){function h(t){return""+n.main(i,t,i.helpers,i.partials,f,o,e)}var r=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],f=r.data,e,o;return u._setup(r),!r.partial&&n.useData&&(f=k(t,f)),e=undefined,o=n.useBlockParams?[]:undefined,n.useDepths&&(e=r.depths?t!=r.depths[0]?[t].concat(r.depths):r.depths:[t]),h=s(n.main,h,i,r.depths||[],f,o),h(t,r)}if(!t)throw new r["default"]("No environment passed to template");if(!n||!n.main)throw new r["default"]("Unknown template object: "+typeof n);n.main.decorator=n.main_d;t.VM.checkRevision(n.compiler);var i={strict:function(n,t){if(!(t in n))throw new r["default"]('"'+t+'" not defined in '+n);return n[t]},lookup:function(n,t){for(var r=n.length,i=0;i<r;i++)if(n[i]&&n[i][t]!=null)return n[i][t]},lambda:function(n,t){return typeof n=="function"?n.call(t):n},escapeExpression:f.escapeExpression,invokePartial:o,fn:function(t){var i=n[t];return i.decorator=n[t+"_d"],i},programs:[],program:function(n,t,i,r,u){var f=this.programs[n],o=this.fn(n);return t||u||r||i?f=e(this,n,o,t,i,r,u):f||(f=this.programs[n]=e(this,n,o)),f},data:function(n,t){while(n&&t--)n=n._parent;return n},merge:function(n,t){var i=n||t;return n&&t&&n!==t&&(i=f.extend({},t,n)),i},nullContext:h({}),noop:t.VM.noop,compilerInfo:n.compiler};return u.isTop=!0,u._setup=function(r){r.partial?(i.helpers=r.helpers,i.partials=r.partials,i.decorators=r.decorators):(i.helpers=i.merge(r.helpers,t.helpers),n.usePartial&&(i.partials=i.merge(r.partials,t.partials)),(n.usePartial||n.useDecorators)&&(i.decorators=i.merge(r.decorators,t.decorators)))},u._child=function(t,u,f,o){if(n.useBlockParams&&!f)throw new r["default"]("must pass block params");if(n.useDepths&&!o)throw new r["default"]("must pass parent depths");return e(i,t,n[t],u,0,f,o)},u}function e(n,t,i,r,u,f,e){function o(t){var u=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],o=e;return!e||t==e[0]||t===n.nullContext&&e[0]===null||(o=[t].concat(e)),i(n,t,n.helpers,n.partials,u.data||r,f&&[u.blockParams].concat(f),o)}return o=s(i,o,n,e,r,f),o.program=t,o.depth=e?e.length:0,o.blockParams=u||0,o}function w(n,t,i){return n?n.call||i.name||(i.name=n,n=i.partials[n]):n=i.name==="@partial-block"?i.data["partial-block"]:i.partials[i.name],n}function b(n,t,i){var s=i.data&&i.data["partial-block"],e;if(i.partial=!0,i.ids&&(i.data.contextPath=i.ids[0]||i.data.contextPath),e=undefined,i.fn&&i.fn!==o&&function(){i.data=u.createFrame(i.data);var n=i.fn;e=i.data["partial-block"]=function(t){var i=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];return i.data=u.createFrame(i.data),i.data["partial-block"]=s,n(t,i)};n.partials&&(i.partials=f.extend({},i.partials,n.partials))}(),n===undefined&&e&&(n=e),n===undefined)throw new r["default"]("The partial "+i.name+" could not be found");else if(n instanceof Function)return n(t,i)}function o(){return""}function k(n,t){return t&&"root"in t||(t=t?u.createFrame(t):{},t.root=n),t}function s(n,t,i,r,u,e){if(n.decorator){var o={};t=n.decorator(t,o,i,r&&r[0],u,e,r);f.extend(t,o)}return t}var h=i(23)["default"],c=i(3)["default"],l=i(1)["default"];t.__esModule=!0;t.checkRevision=y;t.template=p;t.wrapProgram=e;t.resolvePartial=w;t.invokePartial=b;t.noop=o;var a=i(5),f=c(a),v=i(6),r=l(v),u=i(4)},function(n,t,i){n.exports={"default":i(24),__esModule:!0}},function(n,t,i){i(25);n.exports=i(30).Object.seal},function(n,t,i){var r=i(26);i(27)("seal",function(n){return function(t){return n&&r(t)?n(t):t}})},function(n){n.exports=function(n){return typeof n=="object"?n!==null:typeof n=="function"}},function(n,t,i){var r=i(28),u=i(30),f=i(33);n.exports=function(n,t){var i=(u.Object||{})[n]||Object[n],e={};e[n]=t(i);r(r.S+r.F*f(function(){i(1)}),"Object",e)}},function(n,t,i){var f=i(29),e=i(30),o=i(31),u="prototype",r=function(n,t,i){var p=n&r.F,l=n&r.G,w=n&r.S,y=n&r.P,b=n&r.B,k=n&r.W,a=l?e:e[t]||(e[t]={}),c=l?f:w?f[t]:(f[t]||{})[u],s,v,h;l&&(i=t);for(s in i)(v=!p&&c&&s in c,v&&s in a)||(h=v?c[s]:i[s],a[s]=l&&typeof c[s]!="function"?i[s]:b&&v?o(h,f):k&&c[s]==h?function(n){var t=function(t){return this instanceof n?new n(t):n(t)};return t[u]=n[u],t}(h):y&&typeof h=="function"?o(Function.call,h):h,y&&((a[u]||(a[u]={}))[s]=h))};r.F=1;r.G=2;r.S=4;r.P=8;r.B=16;r.W=32;n.exports=r},function(n){var t=n.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=t)},function(n){var t=n.exports={version:"1.2.6"};typeof __e=="number"&&(__e=t)},function(n,t,i){var r=i(32);n.exports=function(n,t,i){if(r(n),t===undefined)return n;switch(i){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)}}return function(){return n.apply(t,arguments)}}},function(n){n.exports=function(n){if(typeof n!="function")throw TypeError(n+" is not a function!");return n}},function(n){n.exports=function(n){try{return!!n()}catch(t){return!0}}},function(n,t){(function(i){"use strict";t.__esModule=!0;t["default"]=function(n){var t=typeof i!="undefined"?i:window,r=t.Handlebars;n.noConflict=function(){return t.Handlebars===n&&(t.Handlebars=r),n}};n.exports=t["default"]}).call(t,function(){return this}())},function(n,t){"use strict";t.__esModule=!0;var i={helpers:{helperExpression:function(n){return n.type==="SubExpression"||(n.type==="MustacheStatement"||n.type==="BlockStatement")&&!!(n.params&&n.params.length||n.hash)},scopedId:function(n){return/^\.|this\b/.test(n.original)},simpleId:function(n){return n.parts.length===1&&!i.helpers.scopedId(n)&&!n.depth}}};t["default"]=i;n.exports=t["default"]},function(n,t,i){"use strict";function v(n,t){if(n.type==="Program")return n;u["default"].yy=r;r.locInfo=function(n){return new r.SourceLocation(t&&t.srcName,n)};var i=new h["default"](t);return i.accept(u["default"].parse(n))}var f=i(1)["default"],e=i(3)["default"],r;t.__esModule=!0;t.parse=v;var o=i(37),u=f(o),s=i(38),h=f(s),c=i(40),l=e(c),a=i(5);t.parser=u["default"];r={};a.extend(r,l)},function(n,t){"use strict";t.__esModule=!0;var i=function(){function t(){this.yy={}}var n={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition_plus0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,1],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(n,t,i,r,u,f){var e=f.length-1,s,o;switch(u){case 1:return f[e-1];case 2:this.$=r.prepareProgram(f[e]);break;case 3:this.$=f[e];break;case 4:this.$=f[e];break;case 5:this.$=f[e];break;case 6:this.$=f[e];break;case 7:this.$=f[e];break;case 8:this.$=f[e];break;case 9:this.$={type:"CommentStatement",value:r.stripComment(f[e]),strip:r.stripFlags(f[e],f[e]),loc:r.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:f[e],value:f[e],loc:r.locInfo(this._$)};break;case 11:this.$=r.prepareRawBlock(f[e-2],f[e-1],f[e],this._$);break;case 12:this.$={path:f[e-3],params:f[e-2],hash:f[e-1]};break;case 13:this.$=r.prepareBlock(f[e-3],f[e-2],f[e-1],f[e],!1,this._$);break;case 14:this.$=r.prepareBlock(f[e-3],f[e-2],f[e-1],f[e],!0,this._$);break;case 15:this.$={open:f[e-5],path:f[e-4],params:f[e-3],hash:f[e-2],blockParams:f[e-1],strip:r.stripFlags(f[e-5],f[e])};break;case 16:this.$={path:f[e-4],params:f[e-3],hash:f[e-2],blockParams:f[e-1],strip:r.stripFlags(f[e-5],f[e])};break;case 17:this.$={path:f[e-4],params:f[e-3],hash:f[e-2],blockParams:f[e-1],strip:r.stripFlags(f[e-5],f[e])};break;case 18:this.$={strip:r.stripFlags(f[e-1],f[e-1]),program:f[e]};break;case 19:s=r.prepareBlock(f[e-2],f[e-1],f[e],f[e],!1,this._$);o=r.prepareProgram([s],f[e-1].loc);o.chained=!0;this.$={strip:f[e-2].strip,program:o,chain:!0};break;case 20:this.$=f[e];break;case 21:this.$={path:f[e-1],strip:r.stripFlags(f[e-2],f[e])};break;case 22:this.$=r.prepareMustache(f[e-3],f[e-2],f[e-1],f[e-4],r.stripFlags(f[e-4],f[e]),this._$);break;case 23:this.$=r.prepareMustache(f[e-3],f[e-2],f[e-1],f[e-4],r.stripFlags(f[e-4],f[e]),this._$);break;case 24:this.$={type:"PartialStatement",name:f[e-3],params:f[e-2],hash:f[e-1],indent:"",strip:r.stripFlags(f[e-4],f[e]),loc:r.locInfo(this._$)};break;case 25:this.$=r.preparePartialBlock(f[e-2],f[e-1],f[e],this._$);break;case 26:this.$={path:f[e-3],params:f[e-2],hash:f[e-1],strip:r.stripFlags(f[e-4],f[e])};break;case 27:this.$=f[e];break;case 28:this.$=f[e];break;case 29:this.$={type:"SubExpression",path:f[e-3],params:f[e-2],hash:f[e-1],loc:r.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:f[e],loc:r.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:r.id(f[e-2]),value:f[e],loc:r.locInfo(this._$)};break;case 32:this.$=r.id(f[e-1]);break;case 33:this.$=f[e];break;case 34:this.$=f[e];break;case 35:this.$={type:"StringLiteral",value:f[e],original:f[e],loc:r.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(f[e]),original:Number(f[e]),loc:r.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:f[e]==="true",original:f[e]==="true",loc:r.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:undefined,value:undefined,loc:r.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:r.locInfo(this._$)};break;case 40:this.$=f[e];break;case 41:this.$=f[e];break;case 42:this.$=r.preparePath(!0,f[e],this._$);break;case 43:this.$=r.preparePath(!1,f[e],this._$);break;case 44:f[e-2].push({part:r.id(f[e]),original:f[e],separator:f[e-1]});this.$=f[e-2];break;case 45:this.$=[{part:r.id(f[e]),original:f[e]}];break;case 46:this.$=[];break;case 47:f[e-1].push(f[e]);break;case 48:this.$=[f[e]];break;case 49:f[e-1].push(f[e]);break;case 50:this.$=[];break;case 51:f[e-1].push(f[e]);break;case 58:this.$=[];break;case 59:f[e-1].push(f[e]);break;case 64:this.$=[];break;case 65:f[e-1].push(f[e]);break;case 70:this.$=[];break;case 71:f[e-1].push(f[e]);break;case 78:this.$=[];break;case 79:f[e-1].push(f[e]);break;case 82:this.$=[];break;case 83:f[e-1].push(f[e]);break;case 86:this.$=[];break;case 87:f[e-1].push(f[e]);break;case 90:this.$=[];break;case 91:f[e-1].push(f[e]);break;case 94:this.$=[];break;case 95:f[e-1].push(f[e]);break;case 98:this.$=[f[e]];break;case 99:f[e-1].push(f[e]);break;case 100:this.$=[f[e]];break;case 101:f[e-1].push(f[e])}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{13:40,15:[1,20],17:39},{20:42,56:41,64:43,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:45,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:48,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:42,56:49,64:43,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:50,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,51]},{72:[1,35],86:52},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:53,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:54,38:56,39:[1,58],43:57,44:[1,59],45:55,47:[2,54]},{28:60,43:61,44:[1,59],47:[2,56]},{13:63,15:[1,20],18:[1,62]},{15:[2,48],18:[2,48]},{33:[2,86],57:64,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:65,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:66,47:[1,67]},{30:68,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:69,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:70,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:71,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:75,33:[2,80],50:72,63:73,64:76,65:[1,44],69:74,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,80]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,51]},{20:75,53:81,54:[2,84],63:82,64:76,65:[1,44],69:83,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:84,47:[1,67]},{47:[2,55]},{4:85,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:86,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:87,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:88,47:[1,67]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:75,33:[2,88],58:89,63:90,64:76,65:[1,44],69:91,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:92,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:93,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,31:94,33:[2,60],63:95,64:76,65:[1,44],69:96,70:77,71:78,72:[1,79],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,33:[2,66],36:97,63:98,64:76,65:[1,44],69:99,70:77,71:78,72:[1,79],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,22:100,23:[2,52],63:101,64:76,65:[1,44],69:102,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,33:[2,92],62:103,63:104,64:76,65:[1,44],69:105,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,106]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:107,72:[1,108],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,109],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,110]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:56,39:[1,58],43:57,44:[1,59],45:112,46:111,47:[2,76]},{33:[2,70],40:113,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,114]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:75,63:116,64:76,65:[1,44],67:115,68:[2,96],69:117,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,118]},{32:119,33:[2,62],74:120,75:[1,121]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:122,74:123,75:[1,121]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,124]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,125]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,109]},{20:75,63:126,64:76,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:75,33:[2,72],41:127,63:128,64:76,65:[1,44],69:129,70:77,71:78,72:[1,79],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,130]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,131]},{33:[2,63]},{72:[1,133],76:132},{33:[1,134]},{33:[2,69]},{15:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:135,74:136,75:[1,121]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,138],77:[1,137]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,139]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],55:[2,55],57:[2,20],61:[2,57],74:[2,81],83:[2,85],87:[2,18],91:[2,89],102:[2,53],105:[2,93],111:[2,19],112:[2,77],117:[2,97],120:[2,63],123:[2,69],124:[2,12],136:[2,75],137:[2,32]},parseError:function(n){throw new Error(n);},parse:function(n){function it(){var n;return n=k.lexer.lex()||1,typeof n!="number"&&(n=k.symbols_[n]||n),n}var k=this,r=[0],f=[null],t=[],h=this.table,d="",c=0,g=0,y=0,l,nt,i,p,o,u,w,s,a,e,tt,v,b;for(this.lexer.setInput(n),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc=="undefined"&&(this.lexer.yylloc={}),l=this.lexer.yylloc,t.push(l),nt=this.lexer.options&&this.lexer.options.ranges,typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError),s={};;){if(o=r[r.length-1],this.defaultActions[o]?u=this.defaultActions[o]:((i===null||typeof i=="undefined")&&(i=it()),u=h[o]&&h[o][i]),(typeof u=="undefined"||!u.length||!u[0])&&(b="",!y)){v=[];for(a in h[o])this.terminals_[a]&&a>2&&v.push("'"+this.terminals_[a]+"'");b=this.lexer.showPosition?"Parse error on line "+(c+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+v.join(", ")+", got '"+(this.terminals_[i]||i)+"'":"Parse error on line "+(c+1)+": Unexpected "+(i==1?"end of input":"'"+(this.terminals_[i]||i)+"'");this.parseError(b,{text:this.lexer.match,token:this.terminals_[i]||i,line:this.lexer.yylineno,loc:l,expected:v})}if(u[0]instanceof Array&&u.length>1)throw new Error("Parse Error: multiple actions possible at state: "+o+", token: "+i);switch(u[0]){case 1:r.push(i);f.push(this.lexer.yytext);t.push(this.lexer.yylloc);r.push(u[1]);i=null;p?(i=p,p=null):(g=this.lexer.yyleng,d=this.lexer.yytext,c=this.lexer.yylineno,l=this.lexer.yylloc,y>0&&y--);break;case 2:if(e=this.productions_[u[1]][1],s.$=f[f.length-e],s._$={first_line:t[t.length-(e||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(e||1)].first_column,last_column:t[t.length-1].last_column},nt&&(s._$.range=[t[t.length-(e||1)].range[0],t[t.length-1].range[1]]),w=this.performAction.call(s,d,g,c,this.yy,u[1],f,t),typeof w!="undefined")return w;e&&(r=r.slice(0,-2*e),f=f.slice(0,-1*e),t=t.slice(0,-1*e));r.push(this.productions_[u[1]][0]);f.push(s.$);t.push(s._$);tt=h[r[r.length-2]][r[r.length-1]];r.push(tt);break;case 3:return!0}}return!0}},i=function(){var n={EOF:1,parseError:function(n,t){if(this.yy.parser)this.yy.parser.parseError(n,t);else throw new Error(n);},setInput:function(n){return this._input=n,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0],t;return this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n,t=n.match(/(?:\r\n?|\n).*/g),t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var i=n.length,t=n.split(/(?:\r\n?|\n)/g),r,u;return this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i-1),this.offset-=i,r=this.match.split(/(?:\r\n?|\n)/g),this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),t.length-1&&(this.yylineno-=t.length-1),u=this.yylloc.range,this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:t?(t.length===r.length?this.yylloc.first_column:0)+r[r.length-t.length].length-t[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-i]),this},more:function(){return this._more=!0,this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),t=new Array(n.length+1).join("-");return n+this.upcomingInput()+"\n"+t+"^"},next:function(){var f,n,r,e,t,u,i;if(this.done)return this.EOF;for(this._input||(this.done=!0),this._more||(this.yytext="",this.match=""),u=this._currentRules(),i=0;i<u.length;i++)if(r=this._input.match(this.rules[u[i]]),r&&(!n||r[0].length>n[0].length)&&(n=r,e=i,!this.options.flex))break;return n?(t=n[0].match(/(?:\r\n?|\n).*/g),t&&(this.yylineno+=t.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:t?t[t.length-1].length-t[t.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],f=this.performAction.call(this,this.yy,this,u[e],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)?f:void 0:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return typeof n!="undefined"?n:this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(n){this.begin(n)}};return n.options={},n.performAction=function(n,t,i,r){function u(n,i){return t.yytext=t.yytext.substr(n,t.yyleng-i)}var f=r;switch(i){case 0:if(t.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):t.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(t.yytext=t.yytext.substr(5,t.yyleng-9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(t.yytext);this.popState();this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=u(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=u(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();return n.lexer=i,t.prototype=n,n.Parser=t,new t}();t["default"]=i;n.exports=t["default"]},function(n,t,i){"use strict";function r(){var n=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];this.options=n}function e(n,t,i){t===undefined&&(t=n.length);var r=n[t-1],u=n[t-2];return r?r.type==="ContentStatement"?(u||!i?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(r.original):void 0:i}function o(n,t,i){t===undefined&&(t=-1);var r=n[t+1],u=n[t+2];return r?r.type==="ContentStatement"?(u||!i?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(r.original):void 0:i}function f(n,t,i){var r=n[t==null?0:t+1],u;r&&r.type==="ContentStatement"&&(i||!r.rightStripped)&&(u=r.value,r.value=r.value.replace(i?/^\s+/:/^[ \t]*\r?\n?/,""),r.rightStripped=r.value!==u)}function u(n,t,i){var r=n[t==null?n.length-1:t-1],u;if(r&&r.type==="ContentStatement"&&(i||!r.leftStripped))return u=r.value,r.value=r.value.replace(i?/\s+$/:/[ \t]+$/,""),r.leftStripped=r.value!==u,r.leftStripped}var c=i(1)["default"],s,h;t.__esModule=!0;s=i(39);h=c(s);r.prototype=new h["default"];r.prototype.Program=function(n){var h=!this.options.ignoreStandalone,c=!this.isRootSeen,i,t,l,r,s;for(this.isRootSeen=!0,i=n.body,t=0,l=i.length;t<l;t++)if(r=i[t],s=this.accept(r),s){var a=e(i,t,c),v=o(i,t,c),y=s.openStandalone&&a,p=s.closeStandalone&&v,w=s.inlineStandalone&&a&&v;s.close&&f(i,t,!0);s.open&&u(i,t,!0);h&&w&&(f(i,t),u(i,t)&&r.type==="PartialStatement"&&(r.indent=/([ \t]+$)/.exec(i[t-1].original)[1]));h&&y&&(f((r.program||r.inverse).body),u(i,t));h&&p&&(f(i,t),u((r.inverse||r.program).body))}return n};r.prototype.BlockStatement=r.prototype.DecoratorBlock=r.prototype.PartialBlockStatement=function(n){var c,h;this.accept(n.program);this.accept(n.inverse);var t=n.program||n.inverse,i=n.program&&n.inverse,r=i,s=i;if(i&&i.chained)for(r=i.body[0].program;s.chained;)s=s.body[s.body.length-1].program;return c={open:n.openStrip.open,close:n.closeStrip.close,openStandalone:o(t.body),closeStandalone:e((r||t).body)},n.openStrip.close&&f(t.body,null,!0),i?(h=n.inverseStrip,h.open&&u(t.body,null,!0),h.close&&f(r.body,null,!0),n.closeStrip.open&&u(s.body,null,!0),!this.options.ignoreStandalone&&e(t.body)&&o(r.body)&&(u(t.body),f(r.body))):n.closeStrip.open&&u(t.body,null,!0),c};r.prototype.Decorator=r.prototype.MustacheStatement=function(n){return n.strip};r.prototype.PartialStatement=r.prototype.CommentStatement=function(n){var t=n.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};t["default"]=r;n.exports=t["default"]},function(n,t,i){"use strict";function u(){this.parents=[]}function f(n){this.acceptRequired(n,"path");this.acceptArray(n.params);this.acceptKey(n,"hash")}function o(n){f.call(this,n);this.acceptKey(n,"program");this.acceptKey(n,"inverse")}function s(n){this.acceptRequired(n,"name");this.acceptArray(n.params);this.acceptKey(n,"hash")}var h=i(1)["default"],e,r;t.__esModule=!0;e=i(6);r=h(e);u.prototype={constructor:u,mutating:!1,acceptKey:function(n,t){var i=this.accept(n[t]);if(this.mutating){if(i&&!u.prototype[i.type])throw new r["default"]('Unexpected node type "'+i.type+'" found when accepting '+t+" on "+n.type);n[t]=i}},acceptRequired:function(n,t){if(this.acceptKey(n,t),!n[t])throw new r["default"](n.type+" requires "+t);},acceptArray:function(n){for(var t=0,i=n.length;t<i;t++)this.acceptKey(n,t),n[t]||(n.splice(t,1),t--,i--)},accept:function(n){if(n){if(!this[n.type])throw new r["default"]("Unknown type: "+n.type,n);this.current&&this.parents.unshift(this.current);this.current=n;var t=this[n.type](n);return(this.current=this.parents.shift(),!this.mutating||t)?t:t!==!1?n:void 0}},Program:function(n){this.acceptArray(n.body)},MustacheStatement:f,Decorator:f,BlockStatement:o,DecoratorBlock:o,PartialStatement:s,PartialBlockStatement:function(n){s.call(this,n);this.acceptKey(n,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:f,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(n){this.acceptArray(n.pairs)},HashPair:function(n){this.acceptRequired(n,"value")}};t["default"]=u;n.exports=t["default"]},function(n,t,i){"use strict";function u(n,t){if(t=t.path?t.path.original:t,n.path.original!==t){var i={loc:n.path.loc};throw new r["default"](n.path.original+" doesn't match "+t,i);}}function o(n,t){this.source=n;this.start={line:t.first_line,column:t.first_column};this.end={line:t.last_line,column:t.last_column}}function s(n){return/^\[.*\]$/.test(n)?n.substr(1,n.length-2):n}function h(n,t){return{open:n.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function c(n){return n.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function l(n,t,i){var f,h,u,c;i=this.locInfo(i);var e=n?"@":"",o=[],s=0;for(f=0,h=t.length;f<h;f++)if(u=t[f].part,c=t[f].original!==u,e+=(t[f].separator||"")+u,c||u!==".."&&u!=="."&&u!=="this")o.push(u);else if(o.length>0)throw new r["default"]("Invalid path: "+e,{loc:i});else u===".."&&s++;return{type:"PathExpression",data:n,depth:s,parts:o,original:e,loc:i}}function a(n,t,i,r,u,f){var e=r.charAt(3)||r.charAt(2),o=e!=="{"&&e!=="&",s=/\*/.test(r);return{type:s?"Decorator":"MustacheStatement",path:n,params:t,hash:i,escaped:o,strip:u,loc:this.locInfo(f)}}function v(n,t,i,r){u(n,i);r=this.locInfo(r);var f={type:"Program",body:t,strip:{},loc:r};return{type:"BlockStatement",path:n.path,params:n.params,hash:n.hash,program:f,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}}function y(n,t,i,f,e,o){var h,s,c;if(f&&f.path&&u(n,f),h=/\*/.test(n.open),t.blockParams=n.blockParams,s=undefined,c=undefined,i){if(h)throw new r["default"]("Unexpected inverse block on decorator",i);i.chain&&(i.program.body[0].closeStrip=f.strip);c=i.strip;s=i.program}return e&&(e=s,s=t,t=e),{type:h?"DecoratorBlock":"BlockStatement",path:n.path,params:n.params,hash:n.hash,program:t,inverse:s,openStrip:n.strip,inverseStrip:c,closeStrip:f&&f.strip,loc:this.locInfo(o)}}function p(n,t){if(!t&&n.length){var i=n[0].loc,r=n[n.length-1].loc;i&&r&&(t={source:i.source,start:{line:i.start.line,column:i.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:n,strip:{},loc:t}}function w(n,t,i,r){return u(n,i),{type:"PartialBlockStatement",name:n.path,params:n.params,hash:n.hash,program:t,openStrip:n.strip,closeStrip:i&&i.strip,loc:this.locInfo(r)}}var e=i(1)["default"],f,r;t.__esModule=!0;t.SourceLocation=o;t.id=s;t.stripFlags=h;t.stripComment=c;t.preparePath=l;t.prepareMustache=a;t.prepareRawBlock=v;t.prepareBlock=y;t.prepareProgram=p;t.preparePartialBlock=w;f=i(6);r=e(f)},function(n,t,i){"use strict";function e(){}function v(n,t,i){if(n==null||typeof n!="string"&&n.type!=="Program")throw new r["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+n);t=t||{};"data"in t||(t.data=!0);t.compat&&(t.useDepths=!0);var u=i.parse(n,t),f=(new i.Compiler).compile(u,t);return(new i.JavaScriptCompiler).compile(f,t)}function y(n,t,i){function e(){var r=i.parse(n,t),u=(new i.Compiler).compile(r,t),f=(new i.JavaScriptCompiler).compile(u,t,undefined,!0);return i.template(f)}function o(n,t){return u||(u=e()),u.call(this,n,t)}if(t===undefined&&(t={}),n==null||typeof n!="string"&&n.type!=="Program")throw new r["default"]("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+n);t=f.extend({},t);"data"in t||(t.data=!0);t.compat&&(t.useDepths=!0);var u=undefined;return o._setup=function(n){return u||(u=e()),u._setup(n)},o._child=function(n,t,i,r){return u||(u=e()),u._child(n,t,i,r)},o}function s(n,t){if(n===t)return!0;if(f.isArray(n)&&f.isArray(t)&&n.length===t.length){for(var i=0;i<n.length;i++)if(!s(n[i],t[i]))return!1;return!0}}function h(n){if(!n.path.parts){var t=n.path;n.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}var o=i(1)["default"];t.__esModule=!0;t.Compiler=e;t.precompile=v;t.compile=y;var c=i(6),r=o(c),f=i(5),l=i(35),u=o(l),a=[].slice;e.prototype={compiler:e,equals:function(n){var i=this.opcodes.length,r,u,t;if(n.opcodes.length!==i)return!1;for(t=0;t<i;t++)if(r=this.opcodes[t],u=n.opcodes[t],r.opcode!==u.opcode||!s(r.args,u.args))return!1;for(i=this.children.length,t=0;t<i;t++)if(!this.children[t].equals(n.children[t]))return!1;return!0},guid:0,compile:function(n,t){var i,r;if(this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[],i=t.knownHelpers,t.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,"if":!0,unless:!0,"with":!0,log:!0,lookup:!0},i)for(r in i)this.options.knownHelpers[r]=i[r];return this.accept(n)},compileProgram:function(n){var r=new this.compiler,t=r.compile(n,this.options),i=this.guid++;return this.usePartial=this.usePartial||t.usePartial,this.children[i]=t,this.useDepths=this.useDepths||t.useDepths,i},accept:function(n){if(!this[n.type])throw new r["default"]("Unknown type: "+n.type,n);this.sourceNode.unshift(n);var t=this[n.type](n);return this.sourceNode.shift(),t},Program:function(n){var i,r,t;for(this.options.blockParams.unshift(n.blockParams),i=n.body,r=i.length,t=0;t<r;t++)this.accept(i[t]);return this.options.blockParams.shift(),this.isSimple=r===1,this.blockParams=n.blockParams?n.blockParams.length:0,this},BlockStatement:function(n){var t,i,r;h(n);t=n.program;i=n.inverse;t=t&&this.compileProgram(t);i=i&&this.compileProgram(i);r=this.classifySexpr(n);r==="helper"?this.helperSexpr(n,t,i):r==="simple"?(this.simpleSexpr(n),this.opcode("pushProgram",t),this.opcode("pushProgram",i),this.opcode("emptyHash"),this.opcode("blockValue",n.path.original)):(this.ambiguousSexpr(n,t,i),this.opcode("pushProgram",t),this.opcode("pushProgram",i),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue"));this.opcode("append")},DecoratorBlock:function(n){var t=n.program&&this.compileProgram(n.program),i=this.setupFullMustacheParams(n,t,undefined),r=n.path;this.useDecorators=!0;this.opcode("registerDecorator",i.length,r.original)},PartialStatement:function(n){var u,t,e,f,i;if(this.usePartial=!0,u=n.program,u&&(u=this.compileProgram(n.program)),t=n.params,t.length>1)throw new r["default"]("Unsupported number of partial arguments: "+t.length,n);else t.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):t.push({type:"PathExpression",parts:[],depth:0}));e=n.name.original;f=n.name.type==="SubExpression";f&&this.accept(n.name);this.setupFullMustacheParams(n,u,undefined,!0);i=n.indent||"";this.options.preventIndent&&i&&(this.opcode("appendContent",i),i="");this.opcode("invokePartial",f,e,i);this.opcode("append")},PartialBlockStatement:function(n){this.PartialStatement(n)},MustacheStatement:function(n){this.SubExpression(n);n.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(n){this.DecoratorBlock(n)},ContentStatement:function(n){n.value&&this.opcode("appendContent",n.value)},CommentStatement:function(){},SubExpression:function(n){h(n);var t=this.classifySexpr(n);t==="simple"?this.simpleSexpr(n):t==="helper"?this.helperSexpr(n):this.ambiguousSexpr(n)},ambiguousSexpr:function(n,t,i){var r=n.path,u=r.parts[0],f=t!=null||i!=null;this.opcode("getContext",r.depth);this.opcode("pushProgram",t);this.opcode("pushProgram",i);r.strict=!0;this.accept(r);this.opcode("invokeAmbiguous",u,f)},simpleSexpr:function(n){var t=n.path;t.strict=!0;this.accept(t);this.opcode("resolvePossibleLambda")},helperSexpr:function(n,t,i){var o=this.setupFullMustacheParams(n,t,i),f=n.path,e=f.parts[0];if(this.options.knownHelpers[e])this.opcode("invokeKnownHelper",o.length,e);else if(this.options.knownHelpersOnly)throw new r["default"]("You specified knownHelpersOnly, but used the unknown helper "+e,n);else f.strict=!0,f.falsy=!0,this.accept(f),this.opcode("invokeHelper",o.length,f.original,u["default"].helpers.simpleId(f))},PathExpression:function(n){this.addDepth(n.depth);this.opcode("getContext",n.depth);var t=n.parts[0],i=u["default"].helpers.scopedId(n),r=!n.depth&&!i&&this.blockParamIndex(t);r?this.opcode("lookupBlockParam",r,n.parts):t?n.data?(this.options.data=!0,this.opcode("lookupData",n.depth,n.parts,n.strict)):this.opcode("lookupOnContext",n.parts,n.falsy,n.strict,i):this.opcode("pushContext")},StringLiteral:function(n){this.opcode("pushString",n.value)},NumberLiteral:function(n){this.opcode("pushLiteral",n.value)},BooleanLiteral:function(n){this.opcode("pushLiteral",n.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(n){var i=n.pairs,t=0,r=i.length;for(this.opcode("pushHash");t<r;t++)this.pushParam(i[t].value);while(t--)this.opcode("assignToHash",i[t].key);this.opcode("popHash")},opcode:function(n){this.opcodes.push({opcode:n,args:a.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(n){n&&(this.useDepths=!0)},classifySexpr:function(n){var f=u["default"].helpers.simpleId(n.path),e=f&&!!this.blockParamIndex(n.path.parts[0]),t=!e&&u["default"].helpers.helperExpression(n),i=!e&&(t||f),o,r;return i&&!t&&(o=n.path.parts[0],r=this.options,r.knownHelpers[o]?t=!0:r.knownHelpersOnly&&(i=!1)),t?"helper":i?"ambiguous":"simple"},pushParams:function(n){for(var t=0,i=n.length;t<i;t++)this.pushParam(n[t])},pushParam:function(n){var t=n.value!=null?n.value:n.original||"",i,r;this.stringParams?(t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),n.depth&&this.addDepth(n.depth),this.opcode("getContext",n.depth||0),this.opcode("pushStringParam",t,n.type),n.type==="SubExpression"&&this.accept(n)):(this.trackIds&&(i=undefined,!n.parts||u["default"].helpers.scopedId(n)||n.depth||(i=this.blockParamIndex(n.parts[0])),i?(r=n.parts.slice(1).join("."),this.opcode("pushId","BlockParam",i,r)):(t=n.original||t,t.replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",n.type,t))),this.accept(n))},setupFullMustacheParams:function(n,t,i,r){var u=n.params;return this.pushParams(u),this.opcode("pushProgram",t),this.opcode("pushProgram",i),n.hash?this.accept(n.hash):this.opcode("emptyHash",r),u},blockParamIndex:function(n){for(var i,r,t=0,u=this.options.blockParams.length;t<u;t++)if(i=this.options.blockParams[t],r=i&&f.indexOf(i,n),i&&r>=0)return[t,r]}}},function(n,t,i){"use strict";function u(n){this.value=n}function r(){}function a(n,t,i,r){var u=t.popStack(),f=0,e=i.length;for(n&&e--;f<e;f++)u=t.nameLookup(u,i[f],r);return n?[t.aliasable("container.strict"),"(",u,", ",t.quotedString(i[f]),")"]:u}var e=i(1)["default"];t.__esModule=!0;var o=i(4),h=i(6),f=e(h),c=i(5),l=i(43),s=e(l);r.prototype={nameLookup:function(n,t){return r.isValidJavaScriptVariableName(t)?[n,".",t]:[n,"[",JSON.stringify(t),"]"]},depthedLookup:function(n){return[this.aliasable("container.lookup"),'(depths, "',n,'")']},compilerInfo:function(){var n=o.COMPILER_REVISION,t=o.REVISION_CHANGES[n];return[n,t]},appendToBuffer:function(n,t,i){return c.isArray(n)||(n=[n]),n=this.source.wrap(n,t),this.environment.isSimple?["return ",n,";"]:i?["buffer += ",n,";"]:(n.appendToBuffer=!0,n)},initializeBuffer:function(){return this.quotedString("")},compile:function(n,t,i,r){var c,u;this.environment=n;this.options=t;this.stringParams=this.options.stringParams;this.trackIds=this.options.trackIds;this.precompile=!r;this.name=this.environment.name;this.isChild=!!i;this.context=i||{decorators:[],programs:[],environments:[]};this.preamble();this.stackSlot=0;this.stackVars=[];this.aliases={};this.registers={list:[]};this.hashes=[];this.compileStack=[];this.inlineStack=[];this.blockParams=[];this.compileChildren(n,t);this.useDepths=this.useDepths||n.useDepths||n.useDecorators||this.options.compat;this.useBlockParams=this.useBlockParams||n.useBlockParams;for(var a=n.opcodes,o=undefined,h=undefined,e=undefined,s=undefined,e=0,s=a.length;e<s;e++)o=a[e],this.source.currentLocation=o.loc,h=h||o.loc,this[o.opcode].apply(this,o.args);if(this.source.currentLocation=h,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new f["default"]("Compile completed with content left on stack");if(this.decorators.isEmpty()?this.decorators=undefined:(this.useDecorators=!0,this.decorators.prepend("var decorators = container.decorators;\n"),this.decorators.push("return fn;"),r?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge())),c=this.createFunctionContext(r),this.isChild)return c;u={compiler:this.compilerInfo(),main:c};this.decorators&&(u.main_d=this.decorators,u.useDecorators=!0);var v=this.context,l=v.programs,y=v.decorators;for(e=0,s=l.length;e<s;e++)l[e]&&(u[e]=l[e],y[e]&&(u[e+"_d"]=y[e],u.useDecorators=!0));return this.environment.usePartial&&(u.usePartial=!0),this.options.data&&(u.useData=!0),this.useDepths&&(u.useDepths=!0),this.useBlockParams&&(u.useBlockParams=!0),this.options.compat&&(u.compat=!0),r?u.compilerOptions=this.options:(u.compiler=JSON.stringify(u.compiler),this.source.currentLocation={start:{line:1,column:0}},u=this.objectLiteral(u),t.srcName?(u=u.toStringWithSourceMap({file:t.destName}),u.map=u.map&&u.map.toString()):u=u.toString()),u},preamble:function(){this.lastContext=0;this.source=new s["default"](this.options.srcName);this.decorators=new s["default"](this.options.srcName)},createFunctionContext:function(n){var u="",o=this.stackVars.concat(this.registers.list),f,i,r,t,e;o.length>0&&(u+=", "+o.join(", "));f=0;for(i in this.aliases)r=this.aliases[i],this.aliases.hasOwnProperty(i)&&r.children&&r.referenceCount>1&&(u+=", alias"+ ++f+"="+i,r.children[0]="alias"+f);return t=["container","depth0","helpers","partials","data"],(this.useBlockParams||this.useDepths)&&t.push("blockParams"),this.useDepths&&t.push("depths"),e=this.mergeSource(u),n?(t.push(e),Function.apply(this,t)):this.source.wrap(["function(",t.join(","),") {\n  ",e,"}"])},mergeSource:function(n){var e=this.environment.isSimple,f=!this.forceBuffer,r=undefined,u=undefined,t=undefined,i=undefined;return this.source.each(function(n){n.appendToBuffer?(t?n.prepend("  + "):t=n,i=n):(t&&(u?t.prepend("buffer += "):r=!0,i.add(";"),t=i=undefined),u=!0,e||(f=!1))}),f?t?(t.prepend("return "),i.add(";")):u||this.source.push('return "";'):(n+=", buffer = "+(r?"":this.initializeBuffer()),t?(t.prepend("return buffer + "),i.add(";")):this.source.push("return buffer;")),n&&this.source.prepend("var "+n.substring(2)+(r?"":";\n")),this.source.merge()},blockValue:function(n){var r=this.aliasable("helpers.blockHelperMissing"),t=[this.contextName(0)],i;this.setupHelperArgs(n,0,t);i=this.popStack();t.splice(1,0,i);this.push(this.source.functionCall(r,"call",t))},ambiguousBlockValue:function(){var i=this.aliasable("helpers.blockHelperMissing"),n=[this.contextName(0)],t;this.setupHelperArgs("",0,n,!0);this.flushInline();t=this.topStack();n.splice(1,0,t);this.pushSource(["if (!",this.lastHelper,") { ",t," = ",this.source.functionCall(i,"call",n),"}"])},appendContent:function(n){this.pendingContent?n=this.pendingContent+n:this.pendingLocation=this.source.currentLocation;this.pendingContent=n},append:function(){if(this.isInline())this.replaceStack(function(n){return[" != null ? ",n,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var n=this.popStack();this.pushSource(["if (",n," != null) { ",this.appendToBuffer(n,undefined,!0)," }"]);this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",undefined,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(n){this.lastContext=n},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(n,t,i,r){var u=0;r||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(n[u++]));this.resolvePath("context",n,u,t,i)},lookupBlockParam:function(n,t){this.useBlockParams=!0;this.push(["blockParams[",n[0],"][",n[1],"]"]);this.resolvePath("context",t,1)},lookupData:function(n,t,i){n?this.pushStackLiteral("container.data(data, "+n+")"):this.pushStackLiteral("data");this.resolvePath("data",t,0,!0,i)},resolvePath:function(n,t,i,r,u){var e=this,f;if(this.options.strict||this.options.assumeObjects){this.push(a(this.options.strict&&u,this,t,n));return}for(f=t.length;i<f;i++)this.replaceStack(function(u){var f=e.nameLookup(u,t[i],n);return r?[" && ",f]:[" != null ? ",f," : ",u]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(n,t){this.pushContext();this.pushString(t);t!=="SubExpression"&&(typeof n=="string"?this.pushString(n):this.pushStackLiteral(n))},emptyHash:function(n){this.trackIds&&this.push("{}");this.stringParams&&(this.push("{}"),this.push("{}"));this.pushStackLiteral(n?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash);this.hash={values:[],types:[],contexts:[],ids:[]}},popHash:function(){var n=this.hash;this.hash=this.hashes.pop();this.trackIds&&this.push(this.objectLiteral(n.ids));this.stringParams&&(this.push(this.objectLiteral(n.contexts)),this.push(this.objectLiteral(n.types)));this.push(this.objectLiteral(n.values))},pushString:function(n){this.pushStackLiteral(this.quotedString(n))},pushLiteral:function(n){this.pushStackLiteral(n)},pushProgram:function(n){n!=null?this.pushStackLiteral(this.programExpression(n)):this.pushStackLiteral(null)},registerDecorator:function(n,t){var i=this.nameLookup("decorators",t,"decorator"),r=this.setupHelperArgs(t,n);this.decorators.push(["fn = ",this.decorators.functionCall(i,"",["fn","props","container",r])," || fn;"])},invokeHelper:function(n,t,i){var f=this.popStack(),u=this.setupHelper(n,t),e=i?[u.name," || "]:"",r=["("].concat(e,f);this.options.strict||r.push(" || ",this.aliasable("helpers.helperMissing"));r.push(")");this.push(this.source.functionCall(r,"call",u.callParams))},invokeKnownHelper:function(n,t){var i=this.setupHelper(n,t);this.push(this.source.functionCall(i.name,"call",i.callParams))},invokeAmbiguous:function(n,t){var u;this.useRegister("helper");u=this.popStack();this.emptyHash();var i=this.setupHelper(0,n,t),f=this.lastHelper=this.nameLookup("helpers",n,"helper"),r=["(","(helper = ",f," || ",u,")"];this.options.strict||(r[0]="(helper = ",r.push(" != null ? helper : ",this.aliasable("helpers.helperMissing")));this.push(["(",r,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},invokePartial:function(n,t,i){var u=[],r=this.setupParams(t,1,u);n&&(t=this.popStack(),delete r.name);i&&(r.indent=JSON.stringify(i));r.helpers="helpers";r.partials="partials";r.decorators="container.decorators";n?u.unshift(t):u.unshift(this.nameLookup("partials",t,"partial"));this.options.compat&&(r.depths="depths");r=this.objectLiteral(r);u.push(r);this.push(this.source.functionCall("container.invokePartial","",u))},assignToHash:function(n){var f=this.popStack(),i=undefined,r=undefined,u=undefined,t;this.trackIds&&(u=this.popStack());this.stringParams&&(r=this.popStack(),i=this.popStack());t=this.hash;i&&(t.contexts[n]=i);r&&(t.types[n]=r);u&&(t.ids[n]=u);t.values[n]=f},pushId:function(n,t,i){n==="BlockParam"?this.pushStackLiteral("blockParams["+t[0]+"].path["+t[1]+"]"+(i?" + "+JSON.stringify("."+i):"")):n==="PathExpression"?this.pushString(t):n==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:r,compileChildren:function(n,t){for(var r,u,o=n.children,i=undefined,f=undefined,e=0,s=o.length;e<s;e++)i=o[e],f=new this.compiler,r=this.matchExistingProgram(i),r==null?(this.context.programs.push(""),u=this.context.programs.length,i.index=u,i.name="program"+u,this.context.programs[u]=f.compile(i,t,this.context,!this.precompile),this.context.decorators[u]=f.decorators,this.context.environments[u]=i,this.useDepths=this.useDepths||f.useDepths,this.useBlockParams=this.useBlockParams||f.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams):(i.index=r.index,i.name="program"+r.index,this.useDepths=this.useDepths||r.useDepths,this.useBlockParams=this.useBlockParams||r.useBlockParams)},matchExistingProgram:function(n){for(var i,t=0,r=this.context.environments.length;t<r;t++)if(i=this.context.environments[t],i&&i.equals(n))return i},programExpression:function(n){var i=this.environment.children[n],t=[i.index,"data",i.blockParams];return(this.useBlockParams||this.useDepths)&&t.push("blockParams"),this.useDepths&&t.push("depths"),"container.program("+t.join(", ")+")"},useRegister:function(n){this.registers[n]||(this.registers[n]=!0,this.registers.list.push(n))},push:function(n){return n instanceof u||(n=this.source.wrap(n)),this.inlineStack.push(n),n},pushStackLiteral:function(n){this.push(new u(n))},pushSource:function(n){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=undefined);n&&this.source.push(n)},replaceStack:function(n){var r=["("],t=undefined,e=undefined,o=undefined,i,s,h;if(!this.isInline())throw new f["default"]("replaceStack on non-inline");i=this.popStack(!0);i instanceof u?(t=[i.value],r=["(",t],o=!0):(e=!0,s=this.incrStack(),r=["((",this.push(s)," = ",i,")"],t=this.topStack());h=n.call(this,t);o||this.popStack();e&&this.stackSlot--;this.push(r.concat(h,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var r=this.inlineStack,n,f,t,i;for(this.inlineStack=[],n=0,f=r.length;n<f;n++)t=r[n],t instanceof u?this.compileStack.push(t):(i=this.incrStack(),this.pushSource([i," = ",t,";"]),this.compileStack.push(i))},isInline:function(){return this.inlineStack.length},popStack:function(n){var i=this.isInline(),t=(i?this.inlineStack:this.compileStack).pop();if(!n&&t instanceof u)return t.value;if(!i){if(!this.stackSlot)throw new f["default"]("Invalid stack pop");this.stackSlot--}return t},topStack:function(){var t=this.isInline()?this.inlineStack:this.compileStack,n=t[t.length-1];return n instanceof u?n.value:n},contextName:function(n){return this.useDepths&&n?"depths["+n+"]":"depth"+n},quotedString:function(n){return this.source.quotedString(n)},objectLiteral:function(n){return this.source.objectLiteral(n)},aliasable:function(n){var t=this.aliases[n];return t?(t.referenceCount++,t):(t=this.aliases[n]=this.source.wrap(n),t.aliasable=!0,t.referenceCount=1,t)},setupHelper:function(n,t,i){var r=[],u=this.setupHelperArgs(t,n,r,i),f=this.nameLookup("helpers",t,"helper"),e=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:r,paramsInit:u,name:f,callParams:[e].concat(r)}},setupParams:function(n,t,i){var r={},o=[],s=[],h=[],c=!i,l=undefined,f,e,u;for(c&&(i=[]),r.name=this.quotedString(n),r.hash=this.popStack(),this.trackIds&&(r.hashIds=this.popStack()),this.stringParams&&(r.hashTypes=this.popStack(),r.hashContexts=this.popStack()),f=this.popStack(),e=this.popStack(),(e||f)&&(r.fn=e||"container.noop",r.inverse=f||"container.noop"),u=t;u--;)l=this.popStack(),i[u]=l,this.trackIds&&(h[u]=this.popStack()),this.stringParams&&(s[u]=this.popStack(),o[u]=this.popStack());return c&&(r.args=this.source.generateArray(i)),this.trackIds&&(r.ids=this.source.generateArray(h)),this.stringParams&&(r.types=this.source.generateArray(s),r.contexts=this.source.generateArray(o)),this.options.data&&(r.data="data"),this.useBlockParams&&(r.blockParams="blockParams"),r},setupHelperArgs:function(n,t,i,r){var u=this.setupParams(n,t,i);return u=this.objectLiteral(u),r?(this.useRegister("options"),i.push("options"),["options=",u]):i?(i.push(u),""):u}},function(){for(var t="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),i=r.RESERVED_WORDS={},n=0,u=t.length;n<u;n++)i[t[n]]=!0}();r.isValidJavaScriptVariableName=function(n){return!r.RESERVED_WORDS[n]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(n)};t["default"]=r;n.exports=t["default"]},function(n,t,i){"use strict";function f(n,t,i){var f,r,e;if(u.isArray(n)){for(f=[],r=0,e=n.length;r<e;r++)f.push(t.wrap(n[r],i));return f}return typeof n=="boolean"||typeof n=="number"?n+"":n}function o(n){this.srcFile=n;this.source=[]}var u,r,e;t.__esModule=!0;u=i(5);r=undefined;try{!1&&(e=require("source-map"),r=e.SourceNode)}catch(s){}r||(r=function(n,t,i,r){this.src="";r&&this.add(r)},r.prototype={add:function(n){u.isArray(n)&&(n=n.join(""));this.src+=n},prepend:function(n){u.isArray(n)&&(n=n.join(""));this.src=n+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});o.prototype={isEmpty:function(){return!this.source.length},prepend:function(n,t){this.source.unshift(this.wrap(n,t))},push:function(n,t){this.source.push(this.wrap(n,t))},merge:function(){var n=this.empty();return this.each(function(t){n.add(["  ",t,"\n"])}),n},each:function(n){for(var t=0,i=this.source.length;t<i;t++)n(this.source[t])},empty:function(){var n=this.currentLocation||{start:{}};return new r(n.start.line,n.start.column,this.srcFile)},wrap:function(n){var t=arguments.length<=1||arguments[1]===undefined?this.currentLocation||{start:{}}:arguments[1];return n instanceof r?n:(n=f(n,this,t),new r(t.start.line,t.start.column,this.srcFile,n))},functionCall:function(n,t,i){return i=this.generateList(i),this.wrap([n,t?"."+t+"(":"(",i,")"])},quotedString:function(n){return'"'+(n+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(n){var u=[],t,r,i;for(t in n)n.hasOwnProperty(t)&&(r=f(n[t],this),r!=="undefined"&&u.push([this.quotedString(t),":",r]));return i=this.generateList(u),i.prepend("{"),i.add("}"),i},generateList:function(n){for(var i=this.empty(),t=0,r=n.length;t<r;t++)t&&i.add(","),i.add(f(n[t],this));return i},generateArray:function(n){var t=this.generateList(n);return t.prepend("["),t.add("]"),t}};t["default"]=o;n.exports=t["default"]}])});Handlebars&&typeof Handlebars.registerHelper=="function"&&Handlebars.registerHelper("isArrayNotEmpty",function(n,t){return!!n&&n.length?t.fn(this):t.inverse(this)});var mappedPromotedEventsAll=[],filteredPromotedEvents=[],showPromotedEvents=!0;$(document).ready(function(){showLoader();var n=PromotedEventsUtils.getPromotedEventsForLandingAsync();n.done(function(n){promotedEventsAll=[];n&&n.success&&n.data&&(promotedEventsAll=n.data);initPromotedEvents();window.promotedEventsLoadingComplete=!0;hideLoaderSafe()})});Handlebars.registerHelper("greaterThan",function(n,t,i){return n>t?i.fn(this):i.inverse(this)});Handlebars.registerHelper("promotedEventsAny",function(n,t){return n&&(n.fixed||n.scrollable&&n.scrollable.length>0)?t.fn(this):t.inverse(this)});Handlebars.registerHelper("escapeQuotes",function(n){return n.replace(/(['"])/g,"\\$1")});$(window).resize(function(){doResize($("#landing-top-banner"),$("#landing-top-banner-scale"))});$(window).load(function(){doResize($("#landing-top-banner"),$("#landing-top-banner-scale"))});$(document).ready(function(){$("#mapVerticalTab").easyResponsiveTabs({type:"vertical",width:"auto",fit:!0,closed:"accordion",tabidentify:"hor_1",closed:!0});var n=[];window.locationSlidersId.forEach(function(t){var i=$("#"+t).bxSlider({pager:!1,slideMargin:0,speed:1e3,hideControlOnEnd:!0,infiniteLoop:!1,autoReload:!0,breaks:[{screen:0,slides:1}]});n.push(i)})});String.prototype.toUnderscore=function(){return this.replace(/([A-Z])/g,function(n){return"_"+n.toLowerCase()})};var slidesOnPage=7,monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"],firstLoadedMonth,allEvents={},filteredEvents={},notUpdateDateDropdown=!1,sliderInstance=null,sliderConfig={minSlides:7,maxSlides:7,moveSlides:7,pager:!1,slideMargin:0,speed:1e3,hideControlOnEnd:!0,infiniteLoop:!1,autoReload:!0,breaks:[{screen:0,slides:7}],onSlideAfter:afterSliderChangedBx,onSlideBefore:beforSliderChangedBx},displayedSelectedLocation=[],displayedSelectedFormats=[],selectedDate=null,isNeedSetFilterUrl=!1;$("#lablel001").textillate({autoStart:!1,loop:!1,"in":{delayScale:1,delay:50,effect:"flash-label-text"},type:"char"});$(document).ready(function(){var n,t,i;initCalendarUI();SPAvailable&&bindOnChangeSelectorEvents();n=getEventDateFromLink();t=n?new Date(n.year,n.month-1,n.day):new Date;selectedDate=t;i=getEncodedEventIdFromLink();initDropdowns(t.getMonth()+1,t.getFullYear());SPAvailable?(initSliderBx(t,i),$(window).load(function(){var t,r;n&&i?t=setInterval(function(){var r=0,n;$("html, body").width()>=992&&(r=60);n=$("#event_"+i);n&&n.length>0&&($("html, body").animate({scrollTop:n.offset().top-r},500),clearInterval(t))}.bind(this),500):n&&(r=$("#calendar-events-section").first(),$("html, body").animate({scrollTop:r.offset().top-0},500))})):(window.calendarLoadingComplete=!0,hideLoaderSafe());window.isConsentGivenOrNotRequired?initHtml5LightboxScript():document.addEventListener("cookies-consent",function(){console.log("cookies-consent event handler");initHtml5LightboxScript()},!1)});selectedLocations=[];selectedFormats=[];extractYoutubeVideoId=function(n){var t=n.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return t&&t[7].length==11?t[7]:null};$(document).ready(function(){getTweetsAsync().done(function(n){var t=[],i,r;n&&n.Success&&n.Data&&(t=n.Data);t&&t.length?(i=$(".wrapper-tweets .slider"),r=createHtml(t,"tweets-template"),i.html(r),initTweetsslider()):$(".wrapper-tweets").hide()})});document.addEventListener("cookies-consent",function(){onConsentCookiesonLanding()},!1)