!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(jQuery)}((function(t,e){function i(){return new Date(Date.UTC.apply(Date,arguments))}function a(){var t=new Date;return i(t.getFullYear(),t.getMonth(),t.getDate())}function s(t,e){return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCDate()===e.getUTCDate()}function n(i,a){return function(){return a!==e&&t.fn.bootstrapDatepicker.deprecated(a),this[i].apply(this,arguments)}}function o(){return document.documentElement.lang||document.lang||"en"}function r(t,e){var i=o(),a=new Date(e,t,1);try{return new Intl.DateTimeFormat(i,{month:"long",year:"numeric"}).format(a)}catch(t){return new Intl.DateTimeFormat("en",{month:"long",year:"numeric"}).format(a)}}function h(t){var e=o(),i=new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate());try{return new Intl.DateTimeFormat(e,{weekday:"long",year:"numeric",month:"long",day:"numeric"}).format(i)}catch(t){return new Intl.DateTimeFormat("en",{weekday:"long",year:"numeric",month:"long",day:"numeric"}).format(i)}}var l,d=(l={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),i=0,a=this.length;i<a;i++)if(0<=this[i].valueOf()-e&&this[i].valueOf()-e<864e5)return i;return-1},remove:function(t){this.splice(t,1)},replace:function(t){t&&(Array.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.length=0},copy:function(){var t=new d;return t.replace(this),t}},function(){var e=[];return e.push.apply(e,arguments),t.extend(e,l),e}),u=function(e,i){t.data(e,"datepicker",this),this._events=[],this._secondaryEvents=[],this._process_options(i),this.dates=new d,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=t(e),this.isInput=this.element.is("input"),this.inputField=this.isInput?this.element:this.element.find("input"),this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .input-group-append, .input-group-prepend, .btn"),this.component&&0===this.component.length&&(this.component=!1),null===this.o.isInline?this.isInline=!this.component&&!this.isInput:this.isInline=this.o.isInline,this.picker=t(y.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find("button.prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find("button.next").html(this.o.templates.rightArrow),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.o.calendarWeeks&&(this.picker.find("thead .datepicker-title").attr("colspan",(function(t,e){return Number(e)+1})),this.picker.find(".datepicker-days button.datepicker-switch").parent().attr("colspan",(function(t,e){return Number(e)+1})),this.picker.find("tfoot button.today, tfoot button.clear").parent().attr("colspan",(function(t,e){return Number(e)+1}))),this._process_options({startDate:this._o.startDate,endDate:this._o.endDate,daysOfWeekDisabled:this.o.daysOfWeekDisabled,daysOfWeekHighlighted:this.o.daysOfWeekHighlighted,datesDisabled:this.o.datesDisabled}),this._allow_update=!1,this.setViewMode(this.o.startView),this._allow_update=!0,this.fillDow(),this.fillMonths(),this.update(),this.isInline&&this.show()};u.prototype={constructor:u,_resolveViewName:function(e){return t.each(y.viewModes,(function(i,a){if(e===i||-1!==t.inArray(e,a.names))return e=i,!1})),e},_resolveDaysOfWeek:function(e){return Array.isArray(e)||(e=e.split(/[,\s]*/)),t.map(e,Number)},_check_template:function(i){try{return i!==e&&""!==i&&((i.match(/[<>]/g)||[]).length<=0||t(i).length>0)}catch(t){return!1}},_process_options:function(e){this._o=t.extend({},this._o,e);var s=this.o=t.extend({},this._o),n=s.language;v[n]||(n=n.split("-")[0],v[n]||(n=g.language)),s.language=n,s.startView=this._resolveViewName(s.startView),s.minViewMode=this._resolveViewName(s.minViewMode),s.maxViewMode=this._resolveViewName(s.maxViewMode),s.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,s.startView)),!0!==s.multidate&&(s.multidate=Number(s.multidate)||!1,!1!==s.multidate&&(s.multidate=Math.max(0,s.multidate))),s.multidateSeparator=String(s.multidateSeparator),s.weekStart%=7,s.weekEnd=(s.weekStart+6)%7;var o=y.parseFormat(s.format);s.startDate!==-1/0&&(s.startDate?s.startDate instanceof Date?s.startDate=this._local_to_utc(this._zero_time(s.startDate)):s.startDate=y.parseDate(s.startDate,o,s.language,s.assumeNearbyYear):s.startDate=-1/0),s.endDate!==1/0&&(s.endDate?s.endDate instanceof Date?s.endDate=this._local_to_utc(this._zero_time(s.endDate)):s.endDate=y.parseDate(s.endDate,o,s.language,s.assumeNearbyYear):s.endDate=1/0),s.daysOfWeekDisabled=this._resolveDaysOfWeek(s.daysOfWeekDisabled||[]),s.daysOfWeekHighlighted=this._resolveDaysOfWeek(s.daysOfWeekHighlighted||[]),s.datesDisabled=s.datesDisabled||[],Array.isArray(s.datesDisabled)||(s.datesDisabled=s.datesDisabled.split(",")),s.datesDisabled=t.map(s.datesDisabled,(function(t){return y.parseDate(t,o,s.language,s.assumeNearbyYear)}));var r=String(s.orientation).toLowerCase().split(/\s+/g),h=s.orientation.toLowerCase();if(r=t.grep(r,(function(t){return/^auto|left|right|top|bottom$/.test(t)})),s.orientation={x:"auto",y:"auto"},h&&"auto"!==h)if(1===r.length)switch(r[0]){case"top":case"bottom":s.orientation.y=r[0];break;case"left":case"right":s.orientation.x=r[0]}else h=t.grep(r,(function(t){return/^left|right$/.test(t)})),s.orientation.x=h[0]||"auto",h=t.grep(r,(function(t){return/^top|bottom$/.test(t)})),s.orientation.y=h[0]||"auto";else;if(s.defaultViewDate instanceof Date||"string"==typeof s.defaultViewDate)s.defaultViewDate=y.parseDate(s.defaultViewDate,o,s.language,s.assumeNearbyYear);else if(s.defaultViewDate){var l=s.defaultViewDate.year||(new Date).getFullYear(),d=s.defaultViewDate.month||0,u=s.defaultViewDate.day||1;s.defaultViewDate=i(l,d,u)}else s.defaultViewDate=a()},_applyEvents:function(t){for(var i,a,s,n=0;n<t.length;n++)i=t[n][0],2===t[n].length?(a=e,s=t[n][1]):3===t[n].length&&(a=t[n][1],s=t[n][2]),i.on(s,a)},_unapplyEvents:function(t){for(var i,a,s,n=0;n<t.length;n++)i=t[n][0],2===t[n].length?(s=e,a=t[n][1]):3===t[n].length&&(s=t[n][1],a=t[n][2]),i.off(a,s)},_buildEvents:function(){var e={keyup:t.proxy((function(e){-1===t.inArray(e.keyCode,[27,37,39,38,40,32,13,9])&&this.update()}),this),keydown:t.proxy(this.keydown,this),paste:t.proxy(this.paste,this)};!0===this.o.showOnFocus&&(e.focus=t.proxy(this.show,this)),this.isInput?this._events=[[this.element,e]]:this.component&&this.inputField.length?this._events=[[this.inputField,e],[this.component,{click:t.proxy(this.show,this)}]]:this._events=[[this.element,{click:t.proxy(this.show,this),keydown:t.proxy(this.keydown,this)}]],this._events.push([this.element,"*",{blur:t.proxy((function(t){this._focused_from=t.target}),this)}],[this.element,{blur:t.proxy((function(t){this._focused_from=t.target}),this)}]),this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":t.proxy((function(t){this.update(t.date)}),this)}]),this._secondaryEvents=[[this.picker,{click:t.proxy(this.click,this),keydown:t.proxy(this.pickerKeydown,this)}],[this.picker,"button.day:not([disabled])",{click:t.proxy(this.dayCellClick,this)}],[t(window),{resize:t.proxy(this.place,this)}],[t(document),{"mousedown touchstart":t.proxy((function(t){this.element.is(t.target)||this.element.find(t.target).length||this.picker.is(t.target)||this.picker.find(t.target).length||this.isInline||this.hide()}),this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(e,i){var a=i||this.dates.get(-1),s=this._utc_to_local(a);this.element.trigger({type:e,date:s,viewMode:this.viewMode,dates:t.map(this.dates,this._utc_to_local),format:t.proxy((function(t,e){0===arguments.length?(t=this.dates.length-1,e=this.o.format):"string"==typeof t&&(e=t,t=this.dates.length-1),e=e||this.o.format;var i=this.dates.get(t);return y.formatDate(i,e,this.o.language)}),this)})},show:function(){if(!(this.inputField.is(":disabled")||this.inputField.prop("readonly")&&!1===this.o.enableOnReadonly))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&t(this.element).blur(),this._triggerElement=this.element[0],this._focusActiveElement(),this},hide:function(){return this.isInline||!this.picker.is(":visible")||(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.setViewMode(this.o.startView),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide")),this},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(e){var i;if(e.originalEvent.clipboardData&&e.originalEvent.clipboardData.types&&-1!==t.inArray("text/plain",e.originalEvent.clipboardData.types))i=e.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;i=window.clipboardData.getData("Text")}this.setDate(i),this.update(),e.preventDefault()},_utc_to_local:function(t){if(!t)return t;var e=new Date(t.getTime()+6e4*t.getTimezoneOffset());return e.getTimezoneOffset()!==t.getTimezoneOffset()&&(e=new Date(t.getTime()+6e4*e.getTimezoneOffset())),e},_local_to_utc:function(t){return t&&new Date(t.getTime()-6e4*t.getTimezoneOffset())},_zero_time:function(t){return t&&new Date(t.getFullYear(),t.getMonth(),t.getDate())},_zero_utc_time:function(t){return t&&i(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())},getDates:function(){return t.map(this.dates,this._utc_to_local)},getUTCDates:function(){return t.map(this.dates,(function(t){return new Date(t)}))},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var t=this.dates.get(-1);return t!==e?new Date(t):null},clearDates:function(){this.inputField.val(""),this._trigger("changeDate"),this.update(),this.o.autoclose&&this.hide()},setDates:function(){var t=Array.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var e=Array.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,t.map(e,this._utc_to_local)),this},setDate:n("setDates"),setUTCDate:n("setUTCDates"),remove:n("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var t=this.getFormattedDate();return this.inputField.val(t),this},getFormattedDate:function(i){i===e&&(i=this.o.format);var a=this.o.language;return t.map(this.dates,(function(t){return y.formatDate(t,i,a)})).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(t){return this._process_options({startDate:t}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(t){return this._process_options({endDate:t}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(t){return this._process_options({daysOfWeekDisabled:t}),this.update(),this},setDaysOfWeekHighlighted:function(t){return this._process_options({daysOfWeekHighlighted:t}),this.update(),this},setDatesDisabled:function(t){return this._process_options({datesDisabled:t}),this.update(),this},place:function(){if(this.isInline)return this;var e=this.picker.outerWidth(),i=this.picker.outerHeight(),a=t(this.o.container),s=a.width(),n="body"===this.o.container?t(document).scrollTop():a.scrollTop(),o=a.offset(),r=[0];this.element.parents().each((function(){var e=t(this).css("z-index");"auto"!==e&&0!==Number(e)&&r.push(Number(e))}));var h=Math.max.apply(Math,r)+this.o.zIndexOffset,l=this.component?this.component.parent().offset():this.element.offset(),d=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),u=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),c=l.left-o.left,p=l.top-o.top;"body"!==this.o.container&&(p+=n),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(c-=e-u)):l.left<0?(this.picker.addClass("datepicker-orient-left"),c-=l.left-10):c+e>s?(this.picker.addClass("datepicker-orient-right"),c+=u-e):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var f=this.o.orientation.y;if("auto"===f&&(f=-n+p-i<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+f),"top"===f?p-=i+parseInt(this.picker.css("padding-top")):p+=d,this.o.rtl){var g=s-(c+u);this.picker.css({top:p,right:g,zIndex:h})}else this.picker.css({top:p,left:c,zIndex:h});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var e=this.dates.copy(),i=[],a=!1;return arguments.length?(t.each(arguments,t.proxy((function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),i.push(e)}),this)),a=!0):(i=(i=this.isInput?this.element.val():this.element.data("date")||this.inputField.val())&&this.o.multidate?i.split(this.o.multidateSeparator):[i],delete this.element.data().date),i=t.map(i,t.proxy((function(t){return y.parseDate(t,this.o.format,this.o.language,this.o.assumeNearbyYear)}),this)),i=t.grep(i,t.proxy((function(t){return!this.dateWithinRange(t)||!t}),this),!0),this.dates.replace(i),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),a?(this.setValue(),this.element.change()):this.dates.length&&String(e)!==String(this.dates)&&a&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&e.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var e=this.o.weekStart,i="<tr>";for(this.o.calendarWeeks&&(i+='<th class="cw">&#160;</th>');e<this.o.weekStart+7;){var a=e%7,s=v[this.o.language].days[a],n=v[this.o.language].daysMin[a];i+='<th class="dow',-1!==t.inArray(e,this.o.daysOfWeekDisabled)&&(i+=" disabled"),i+='" scope="col" aria-label="'+s+'" title="'+s+'">',i+='<abbr title="'+s+'">'+n+"</abbr></th>",e++}i+="</tr>",this.picker.find(".datepicker-days thead").append(i)}},fillMonths:function(){for(var t=this._utc_to_local(this.viewDate),e=this.viewDate.getUTCFullYear(),i='<div class="datepicker-grid">',a=0;a<12;a++)i+='<button type="button" class="month'+(t&&t.getMonth()===a?" focused":"")+'" aria-label="'+r(a,e)+'">'+v[this.o.language].monthsShort[a]+"</button>";i+="</div>",this.picker.find(".datepicker-months td").html(i)},setRange:function(e){e&&e.length?this.range=t.map(e,(function(t){return t.valueOf()})):delete this.range,this.fill()},getClassNames:function(e){var i=[],n=this.viewDate.getUTCFullYear(),o=this.viewDate.getUTCMonth(),r=a();return e.getUTCFullYear()<n||e.getUTCFullYear()===n&&e.getUTCMonth()<o?i.push("old"):(e.getUTCFullYear()>n||e.getUTCFullYear()===n&&e.getUTCMonth()>o)&&i.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&s(e,r)&&i.push("today"),-1!==this.dates.contains(e)&&i.push("active"),this.dateWithinRange(e)||i.push("disabled"),this.dateIsDisabled(e)&&i.push("disabled","disabled-date"),-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekHighlighted)&&i.push("highlighted"),this.range&&(e>this.range[0]&&e<this.range[this.range.length-1]&&i.push("range"),-1!==t.inArray(e.valueOf(),this.range)&&i.push("selected"),e.valueOf()===this.range[0]&&i.push("range-start"),e.valueOf()===this.range[this.range.length-1]&&i.push("range-end")),i},_fill_yearsView:function(i,a,s,n,o,r,h){for(var l,d,u,c,p,f,g='<div class="datepicker-grid">',m=s/10,v=this.picker.find(i),y=Math.floor(n/s)*s,D=y+9*m,w=Math.floor(this.viewDate.getFullYear()/m)*m,b=t.map(this.dates,(function(t){return Math.floor(t.getUTCFullYear()/m)*m})),k=y-m;k<=D+m;k+=m){l=[a],d=null,k===y-m?l.push("old"):k===D+m&&l.push("new"),-1!==t.inArray(k,b)&&l.push("active"),(k<o||k>r)&&l.push("disabled"),k===w&&l.push("focused"),h!==t.noop&&((u=h(new Date(k,0,1)))===e?u={}:"boolean"==typeof u?u={enabled:u}:"string"==typeof u&&(u={classes:u}),!1===u.enabled&&l.push("disabled"),u.classes&&(l=l.concat(u.classes.split(/\s+/))),u.tooltip&&(d=u.tooltip)),p=k,c="year"===(f=a)?String(p):"decade"===f?p+" - "+(p+9):"century"===f?p+" - "+(p+99):String(p);var _=-1!==t.inArray("disabled",l),C=['type="button"','class="'+l.join(" ")+'"','aria-label="'+c+'"'];_&&C.push("disabled"),d&&C.push('title="'+d+'"'),g+="<button "+C.join(" ")+">"+k+"</button>"}g+="</div>",v.find("button.datepicker-switch").text(y+"-"+D),v.find("td").html(g)},fill:function(){var s,n,o=new Date(this.viewDate),r=o.getUTCFullYear(),l=o.getUTCMonth(),d=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,u=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,c=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,p=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,f=v[this.o.language].today||v.en.today||"",g=v[this.o.language].clear||v.en.clear||"",m=v[this.o.language].titleFormat||v.en.titleFormat,D=a(),w=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&D>=this.o.startDate&&D<=this.o.endDate&&!this.weekOfDateIsDisabled(D);if(!isNaN(r)&&!isNaN(l)){this.picker.find(".datepicker-days button.datepicker-switch").text(y.formatDate(o,m,this.o.language)),this.picker.find("tfoot button.today").text(f).closest("tr").css("display",w?"":"none"),this.picker.find("tfoot button.clear").text(g).closest("tr").css("display",!0===this.o.clearBtn?"":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var b=i(r,l,0),k=b.getUTCDate();b.setUTCDate(k-(b.getUTCDay()-this.o.weekStart+7)%7);var _=new Date(b);b.getUTCFullYear()<100&&_.setUTCFullYear(b.getUTCFullYear()),_.setUTCDate(_.getUTCDate()+42),_=_.valueOf();for(var C,T,M=[];b.valueOf()<_;){if((C=b.getUTCDay())===this.o.weekStart&&(M.push("<tr>"),this.o.calendarWeeks)){var U=new Date(+b+(this.o.weekStart-C-7)%7*864e5),x=new Date(Number(U)+(11-U.getUTCDay())%7*864e5),A=new Date(Number(A=i(x.getUTCFullYear(),0,1))+(11-A.getUTCDay())%7*864e5),S=(x-A)/864e5/7+1;M.push('<td class="cw">'+S+"</td>")}(T=this.getClassNames(b)).push("day");var F=b.getUTCDate();this.o.beforeShowDay!==t.noop&&((n=this.o.beforeShowDay(this._utc_to_local(b)))===e?n={}:"boolean"==typeof n?n={enabled:n}:"string"==typeof n&&(n={classes:n}),!1===n.enabled&&T.push("disabled"),n.classes&&(T=T.concat(n.classes.split(/\s+/))),n.tooltip&&(s=n.tooltip),n.content&&(F=n.content)),T="function"==typeof t.uniqueSort?t.uniqueSort(T):t.unique(T);var V=-1!==t.inArray("disabled",T),N=-1!==t.inArray("active",T),E=-1!==t.inArray("today",T),O=h(b),Y=['type="button"','class="'+T.join(" ")+'"','data-date="'+b.getTime().toString()+'"','aria-label="'+O+'"'];V&&Y.push("disabled"),N&&Y.push('aria-selected="true"'),E&&Y.push('aria-current="date"'),s&&Y.push('title="'+s+'"'),M.push("<td><button "+Y.join(" ")+">"+F+"</button></td>"),s=null,C===this.o.weekEnd&&M.push("</tr>"),b.setUTCDate(b.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(M.join(""));var W=v[this.o.language].monthsTitle||v.en.monthsTitle||"Months",I=this.picker.find(".datepicker-months").find("button.datepicker-switch").text(this.o.maxViewMode<2?W:r).end().find("tbody .month").removeClass("active");if(t.each(this.dates,(function(t,e){e.getUTCFullYear()===r&&I.eq(e.getUTCMonth()).addClass("active")})),(r<d||r>c)&&I.addClass("disabled").prop("disabled",!0),r===d&&I.slice(0,u).addClass("disabled").prop("disabled",!0),r===c&&I.slice(p+1).addClass("disabled").prop("disabled",!0),this.o.beforeShowMonth!==t.noop){var z=this;t.each(I,(function(i,a){var s=new Date(r,i,1),n=z.o.beforeShowMonth(s);n===e?n={}:"boolean"==typeof n?n={enabled:n}:"string"==typeof n&&(n={classes:n}),!1!==n.enabled||t(a).hasClass("disabled")||t(a).addClass("disabled").prop("disabled",!0),n.classes&&t(a).addClass(n.classes),n.tooltip&&t(a).prop("title",n.tooltip)}))}if(this._fill_yearsView(".datepicker-years","year",10,r,d,c,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,r,d,c,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,r,d,c,this.o.beforeShowCentury),this.picker.is(":visible")){var P=y.formatDate(o,m,this.o.language);this._announce(P)}}},updateNavArrows:function(){if(this._allow_update){var t,e,i=new Date(this.viewDate),a=i.getUTCFullYear(),s=i.getUTCMonth(),n=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,o=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,r=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,l=1;switch(this.viewMode){case 4:l*=10;case 3:l*=10;case 2:l*=10;case 1:t=Math.floor(a/l)*l<=n,e=Math.floor(a/l)*l+l>r;break;case 0:t=a<=n&&s<=o,e=a>=r&&s>=h}this.picker.find("button.prev").toggleClass("disabled",t).prop("disabled",t),this.picker.find("button.next").toggleClass("disabled",e).prop("disabled",e)}},click:function(e){var s,n,o,r;e.preventDefault(),e.stopPropagation();var h=(s=t(e.target)).closest("button.prev, button.next");if(h.length){if(h.hasClass("disabled")||h.prop("disabled"))return;return n=h.hasClass("prev")?-1:1,0!==this.viewMode&&(n*=12*y.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,n),this._trigger(y.viewModes[this.viewMode].e,this.viewDate),this.fill(),void this._focusNavButton(h.hasClass("prev")?"prev":"next")}s.hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&(this.setViewMode(this.viewMode+1),this._focusActiveElement()),s.hasClass("today")&&!s.hasClass("day")&&(this.setViewMode(0),this._setDate(a(),"linked"===this.o.todayBtn?null:"view")),s.hasClass("clear")&&this.clearDates(),s.hasClass("disabled")||s.prop("disabled")||(s.hasClass("month")||s.hasClass("year")||s.hasClass("decade")||s.hasClass("century"))&&(this.viewDate.setUTCDate(1),1===this.viewMode?(r=s.parent().find(".month").index(s),o=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(r)):(r=0,o=Number(s.text()),this.viewDate.setUTCFullYear(o)),this._trigger(y.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(i(o,r,1)):(this.setViewMode(this.viewMode-1),this.fill(),this._focusActiveElement())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(e){var i=t(e.currentTarget).data("date"),a=new Date(i);this.o.updateViewDate&&(a.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),a.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(a)},navArrowsClick:function(e){var i=t(e.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(i*=12*y.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,i),this._trigger(y.viewModes[this.viewMode].e,this.viewDate),this.fill(),this._focusNavButton(-1===i?"prev":"next")},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),-1!==e?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(e):!1===this.o.multidate?(this.dates.clear(),this.dates.push(t)):this.dates.push(t),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),(!e&&this.o.updateViewDate||"view"===e)&&(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||e&&"date"!==e||this.hide()},moveDay:function(t,e){var i=new Date(t);return i.setUTCDate(t.getUTCDate()+e),i},moveWeek:function(t,e){return this.moveDay(t,7*e)},moveMonth:function(t,e){if(!(i=t)||isNaN(i.getTime()))return this.o.defaultViewDate;var i;if(!e)return t;var a,s,n=new Date(t.valueOf()),o=n.getUTCDate(),r=n.getUTCMonth(),h=Math.abs(e);if(e=e>0?1:-1,1===h)s=-1===e?function(){return n.getUTCMonth()===r}:function(){return n.getUTCMonth()!==a},a=r+e,n.setUTCMonth(a),a=(a+12)%12;else{for(var l=0;l<h;l++)n=this.moveMonth(n,e);a=n.getUTCMonth(),n.setUTCDate(o),s=function(){return a!==n.getUTCMonth()}}for(;s();)n.setUTCDate(--o),n.setUTCMonth(a);return n},moveYear:function(t,e){return this.moveMonth(t,12*e)},moveAvailableDate:function(t,e,i){do{if(t=this[i](t,e),!this.dateWithinRange(t))return!1;i="moveDay"}while(this.dateIsDisabled(t));return t},weekOfDateIsDisabled:function(e){return-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekDisabled)},dateIsDisabled:function(e){return this.weekOfDateIsDisabled(e)||t.grep(this.o.datesDisabled,(function(t){return s(e,t)})).length>0},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(e){if(this.picker.is(":visible")){var i,a,s=!1,n=this.focusDate||this.viewDate;switch(e.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):(this.hide(),this._triggerElement&&t(this._triggerElement).trigger("focus")),e.preventDefault(),e.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;i=37===e.keyCode||38===e.keyCode?-1:1,0===this.viewMode?e.ctrlKey?(a=this.moveAvailableDate(n,i,"moveYear"))&&this._trigger("changeYear",this.viewDate):e.shiftKey?(a=this.moveAvailableDate(n,i,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===e.keyCode||39===e.keyCode?a=this.moveAvailableDate(n,i,"moveDay"):this.weekOfDateIsDisabled(n)||(a=this.moveAvailableDate(n,i,"moveWeek")):1===this.viewMode?(38!==e.keyCode&&40!==e.keyCode||(i*=4),a=this.moveAvailableDate(n,i,"moveMonth")):2===this.viewMode&&(38!==e.keyCode&&40!==e.keyCode||(i*=4),a=this.moveAvailableDate(n,i,"moveYear")),a&&(this.focusDate=this.viewDate=a,this.setValue(),this.fill(),this._focusActiveElement(),e.preventDefault());break;case 13:if(!this.o.forceParse)break;n=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(n),s=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(e.preventDefault(),e.stopPropagation(),this.o.autoclose&&this.hide())}s&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==e.keyCode&&27!==e.keyCode||(this.show(),e.stopPropagation())},setViewMode:function(t){this.viewMode=t,this.picker.children("div").hide().filter(".datepicker-"+y.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))},pickerKeydown:function(e){var i=e.key||e.keyCode,a=t(e.target);return!a.is("button")||"Enter"!==i&&13!==i&&" "!==i&&"Space"!==i&&32!==i?"Escape"===i||27===i?(e.preventDefault(),e.stopPropagation(),void(this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):(this.hide(),this._triggerElement&&t(this._triggerElement).trigger("focus")))):void((a.hasClass("day")||a.hasClass("month")||a.hasClass("year")||a.hasClass("decade")||a.hasClass("century"))&&this._handleGridArrowKeys(e,a)):(e.preventDefault(),void a.trigger("click"))},_handleGridArrowKeys:function(e,i){var a=e.keyCode;if(-1!==t.inArray(a,[37,38,39,40])){e.preventDefault();var s,n=i.closest("td").parent().parent().find("button:not([disabled])").filter(":visible"),o=n.index(i),r=i.hasClass("day")?7:4;switch(a){case 37:s=o-1;break;case 38:s=o-r;break;case 39:s=o+1;break;case 40:s=o+r}if(s>=0&&s<n.length&&(n.eq(s).trigger("focus"),i.hasClass("day"))){var h=n.eq(s).data("date");h&&(this.focusDate=new Date(h))}}},_focusActiveElement:function(){var t=this;setTimeout((function(){if(t.picker.is(":visible")){var e,i=t.picker.find(".datepicker-"+y.viewModes[t.viewMode].clsName);(e=i.find("button.focused:not([disabled])").first()).length||(e=i.find("button.active:not([disabled])").first()),e.length||(e=i.find("button.day:not([disabled]), button.month:not([disabled]), button.year:not([disabled])").first()),e.length&&e.trigger("focus")}}),0)},_focusNavButton:function(t){var e=this;setTimeout((function(){var i=e.picker.find(".datepicker-"+y.viewModes[e.viewMode].clsName).find("button."+t);!i.length||i.hasClass("disabled")||i.prop("disabled")||i.trigger("focus")}),0)},_announce:function(t){var e=this.picker.find(".datepicker-live-region");e.length&&e.text(t)}};var c=function(e,i){t.data(e,"datepicker",this),this.element=t(e),this.inputs=t.map(i.inputs,(function(t){return t.jquery?t[0]:t})),delete i.inputs,this.keepEmptyValues=i.keepEmptyValues,delete i.keepEmptyValues,f.call(t(this.inputs),i).on("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,(function(e){return t.data(e,"datepicker")})),this.updateDates()};c.prototype={updateDates:function(){this.dates=t.map(this.pickers,(function(t){return t.getUTCDate()})),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,(function(t){return t.valueOf()}));t.each(this.pickers,(function(t,i){i.setRange(e)}))},clearDates:function(){t.each(this.pickers,(function(t,e){e.clearDates()}))},dateUpdated:function(i){if(!this.updating){this.updating=!0;var a=t.data(i.target,"datepicker");if(a!==e){var s=a.getUTCDate(),n=this.keepEmptyValues,o=t.inArray(i.target,this.inputs),r=o-1,h=o+1,l=this.inputs.length;if(-1!==o){if(t.each(this.pickers,(function(t,e){e.getUTCDate()||e!==a&&n||e.setUTCDate(s)})),s<this.dates[r])for(;r>=0&&s<this.dates[r]&&(this.pickers[r].element.val()||"").length>0;)this.pickers[r--].setUTCDate(s);else if(s>this.dates[h])for(;h<l&&s>this.dates[h]&&(this.pickers[h].element.val()||"").length>0;)this.pickers[h++].setUTCDate(s);this.updateDates(),delete this.updating}}}},destroy:function(){t.map(this.pickers,(function(t){t.destroy()})),t(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:n("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var p=t.fn.bootstrapDatepicker,f=function(i){var a,s=Array.apply(null,arguments);if(s.shift(),this.each((function(){var e=t(this),n=e.data("datepicker"),o="object"==typeof i&&i;if(!n){var r=function(e,i){var a,s=t(e).data(),n={},o=new RegExp("^"+i.toLowerCase()+"([A-Z])");function r(t,e){return e.toLowerCase()}for(var h in i=new RegExp("^"+i.toLowerCase()),s)if(i.test(h)){if("templates"===(a=h.replace(o,r)))continue;n[a]=s[h]}return n}(this,"date"),h=function(e){var i={};if(v[e]||(e=e.split("-")[0],v[e])){var a=v[e];return t.each(m,(function(t,e){e in a&&(i[e]=a[e])})),i}}(t.extend({},g,r,o).language),l=t.extend({},g,h,r,o);e.hasClass("input-daterange")||l.inputs?(t.extend(l,{inputs:l.inputs||e.find("input").toArray()}),n=new c(this,l)):n=new u(this,l),e.data("datepicker",n)}"string"==typeof i&&"function"==typeof n[i]&&(a=n[i].apply(n,s))})),a===e||a instanceof u||a instanceof c)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+i+" function)");return a};t.fn.bootstrapDatepicker=f;var g=t.fn.bootstrapDatepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:t.noop,beforeShowMonth:t.noop,beforeShowYear:t.noop,beforeShowDecade:t.noop,beforeShowCentury:t.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",isInline:null,keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"&#x00AB;",rightArrow:"&#x00BB;"},showWeekDays:!0},m=t.fn.bootstrapDatepicker.locale_opts=["format","rtl","weekStart"];t.fn.bootstrapDatepicker.Constructor=u;var v=t.fn.bootstrapDatepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},y={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(t){if("function"==typeof t.toValue&&"function"==typeof t.toDisplay)return t;var e=t.replace(this.validParts,"\0").split("\0"),i=t.match(this.validParts);if(!e||!e.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:e,parts:i}},parseDate:function(i,s,n,o){if(!i)return e;if(i instanceof Date)return i;if("string"==typeof s&&(s=y.parseFormat(s)),s.toValue)return s.toValue(i,s,n);var r,h,l,d,c,p={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},f={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(i in f&&(i=f[i]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(i)){for(r=i.match(/([\-+]\d+)([dmwy])/gi),i=new Date,d=0;d<r.length;d++)h=r[d].match(/([\-+]\d+)([dmwy])/i),l=Number(h[1]),c=p[h[2].toLowerCase()],i=u.prototype[c](i,l);return u.prototype._zero_utc_time(i)}r=i&&i.match(this.nonpunctuation)||[];var g,m,D={},w=["yyyy","yy","M","MM","m","mm","d","dd"],b={yyyy:function(t,e){return t.setUTCFullYear(o?(!0===(a=o)&&(a=10),(i=e)<100&&(i+=2e3)>(new Date).getFullYear()+a&&(i-=100),i):e);var i,a},m:function(t,e){if(isNaN(t))return t;for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};b.yy=b.yyyy,b.M=b.MM=b.mm=b.m,b.dd=b.d,i=a();var k=s.parts.slice();function _(){var t=this.slice(0,r[d].length),e=r[d].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(r.length!==k.length&&(k=t(k).filter((function(e,i){return-1!==t.inArray(i,w)})).toArray()),r.length===k.length){var C,T,M;for(d=0,C=k.length;d<C;d++){if(g=parseInt(r[d],10),h=k[d],isNaN(g))switch(h){case"MM":m=t(v[n].months).filter(_),g=t.inArray(m[0],v[n].months)+1;break;case"M":m=t(v[n].monthsShort).filter(_),g=t.inArray(m[0],v[n].monthsShort)+1}D[h]=g}for(d=0;d<w.length;d++)(M=w[d])in D&&!isNaN(D[M])&&(T=new Date(i),b[M](T,D[M]),isNaN(T)||(i=T))}return i},formatDate:function(e,i,a){if(!e)return"";if("string"==typeof i&&(i=y.parseFormat(i)),i.toDisplay)return i.toDisplay(e,i,a);var s={d:e.getUTCDate(),D:v[a].daysShort[e.getUTCDay()],DD:v[a].days[e.getUTCDay()],m:e.getUTCMonth()+1,M:v[a].monthsShort[e.getUTCMonth()],MM:v[a].months[e.getUTCMonth()],yy:e.getUTCFullYear().toString().substring(2),yyyy:e.getUTCFullYear()};s.dd=(s.d<10?"0":"")+s.d,s.mm=(s.m<10?"0":"")+s.m,e=[];for(var n=t.extend([],i.separators),o=0,r=i.parts.length;o<=r;o++)n.length&&e.push(n.shift()),e.push(s[i.parts[o]]);return e.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"></th></tr><tr><th><button type="button" class="prev" aria-label="Previous">'+g.templates.leftArrow+'</button></th><th colspan="5"><button type="button" class="datepicker-switch"></button></th><th><button type="button" class="next" aria-label="Next">'+g.templates.rightArrow+"</button></th></tr></thead>",contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7"><button type="button" class="today"></button></th></tr><tr><th colspan="7"><button type="button" class="clear"></button></th></tr></tfoot>'};y.template='<div class="datepicker" role="application" aria-label="Calendar"><div class="sr-only datepicker-live-region" aria-live="polite" aria-atomic="true"></div><div class="datepicker-days"><table class="table-condensed" role="grid">'+y.headTemplate+"<tbody></tbody>"+y.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed" role="grid">'+y.headTemplate+y.contTemplate+y.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed" role="grid">'+y.headTemplate+y.contTemplate+y.footTemplate+'</table></div><div class="datepicker-decades"><table class="table-condensed" role="grid">'+y.headTemplate+y.contTemplate+y.footTemplate+'</table></div><div class="datepicker-centuries"><table class="table-condensed" role="grid">'+y.headTemplate+y.contTemplate+y.footTemplate+"</table></div></div>",t.fn.bootstrapDatepicker.DPGlobal=y,t.fn.bootstrapDatepicker.noConflict=function(){return t.fn.bootstrapDatepicker=p,this},t.fn.bootstrapDatepicker.version="1.7.0",t.fn.bootstrapDatepicker.deprecated=function(t){var e=window.console;e&&e.warn&&e.warn("DEPRECATED: "+t)},t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',(function(e){var i=t(this);i.data("datepicker")||(e.preventDefault(),f.call(i,"show"))})),t((function(){f.call(t('[data-provide="datepicker-inline"]'))}))}));
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.viewport={},function(e,t){"use strict";const n=e(window),i=e(document);t.options={MOBILE_BREAKPOINT:tribe.events.views.breakpoints.breakpoints.medium||768},t.setViewport=function(e){let n=e.data("tribeEventsState");n||(n={}),n.isMobile=e.outerWidth()<t.options.MOBILE_BREAKPOINT,e.data("tribeEventsState",n)},t.handleResize=function(e){const n=e.data.container;t.setViewport(n),n.trigger("resize.tribeEvents")},t.unbindEvents=function(e){n.off("resize",t.handleResize)},t.bindEvents=function(e){n.on("resize",{container:e},t.handleResize)},t.deinit=function(e,n,i){const s=e.data.container;t.unbindEvents(s),s.off("beforeAjaxSuccess.tribeEvents",t.deinit)},t.init=function(e,n,i,s){t.bindEvents(i),t.setViewport(i),i.on("beforeAjaxSuccess.tribeEvents",{container:i},t.deinit)},t.ready=function(){i.on("afterSetup.tribeEvents",tribe.events.views.manager.selectors.container,t.init)},e(t.ready)}(jQuery,tribe.events.views.viewport),window.tec=window.tec||{},window.tec.events=window.tec.events||{},window.tec.events.views=window.tec.events.views||{},window.tec.events.views.viewport={};
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.accordion={},function(n,e){"use strict";const t=n(document);e.selectors={accordionTrigger:'[data-js~="tribe-events-accordion-trigger"]'},e.setOpenAccordionA11yAttrs=function(n,e){n.attr("aria-expanded","true"),e.attr("aria-hidden","false")},e.setCloseAccordionA11yAttrs=function(n,e){n.attr("aria-expanded","false"),e.attr("aria-hidden","true")},e.closeAllAccordions=function(i){i.find(e.selectors.accordionTrigger).each((function(i,o){const r=n(o),c=r.attr("aria-controls"),a=t.find("#"+c);e.closeAccordion(r,a)}))},e.openAccordion=function(n,t){e.setOpenAccordionA11yAttrs(n,t),t.css("display","block")},e.closeAccordion=function(n,t){e.setCloseAccordionA11yAttrs(n,t),t.css("display","")},e.toggleAccordion=function(t){t.preventDefault(),t.stopPropagation();var i=t.data.container,o=n(t.data.target),r=o.attr("aria-controls"),c=i.find("#"+r);"true"===o.attr("aria-expanded")?e.closeAccordion(o,c):e.openAccordion(o,c)},e.deinitAccordionA11yAttrs=function(n,e){n.removeAttr("aria-expanded").removeAttr("aria-controls"),e.removeAttr("aria-hidden")},e.initAccordionA11yAttrs=function(n,e){n.attr("aria-expanded","false").attr("aria-controls",e.attr("id")),e.attr("aria-hidden","true")},e.deinitAccordion=function(t,i){n(i).off("click",e.toggleAccordion)},e.initAccordion=function(t){return function(i,o){n(o).on("click",{target:o,container:t},e.toggleAccordion),n(o).on("keydown",(function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),e.stopPropagation(),n(o).trigger("click"))})),n(o).attr("tabindex")||n(o).attr("tabindex","0")}},e.unbindAccordionEvents=function(n){n.find(e.selectors.accordionTrigger).each(e.deinitAccordion)},e.bindAccordionEvents=function(n){n.find(e.selectors.accordionTrigger).each(e.initAccordion(n))},e.unbindEvents=function(n,t,i){const o=n.data.container;e.unbindAccordionEvents(o),o.off("beforeAjaxSuccess.tribeEvents",e.unbindEvents)},e.bindEvents=function(n,t,i,o){e.bindAccordionEvents(i),i.on("beforeAjaxSuccess.tribeEvents",{container:i},e.unbindEvents)},e.ready=function(){tribe.events.views.manager&&t.on("afterSetup.tribeEvents",tribe.events.views.manager.selectors.container,e.bindEvents)},n(e.ready)}(jQuery,tribe.events.views.accordion),window.tec=window.tec||{},window.tec.events=window.tec.events||{},window.tec.events.views=window.tec.events.views||{},window.tec.events.views.accordion={};
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.viewSelector={},function(e,t){"use strict";const i=e(document);t.selectors={viewSelector:'[data-js="tribe-events-view-selector"]',viewSelectorTabsClass:".tribe-events-c-view-selector--tabs",viewSelectorButton:'[data-js="tribe-events-view-selector-button"]',viewSelectorButtonActiveClass:".tribe-events-c-view-selector__button--active",viewSelectorListContainer:'[data-js="tribe-events-view-selector-list-container"]'},t.deinitAccordion=function(e,t){tribe.events.views.accordion.deinitAccordion(0,e),tribe.events.views.accordion.deinitAccordionA11yAttrs(e,t),t.css("display","")},t.initAccordion=function(e,t,i){tribe.events.views.accordion.initAccordion(e)(0,t),tribe.events.views.accordion.initAccordionA11yAttrs(t,i)},t.deinitViewSelectorAccordion=function(e){const i=e.find(t.selectors.viewSelectorButton),n=e.find(t.selectors.viewSelectorListContainer);t.deinitAccordion(i,n),i.removeClass(t.selectors.viewSelectorButtonActiveClass.className())},t.initViewSelectorAccordion=function(e){const i=e.find(t.selectors.viewSelectorButton),n=e.find(t.selectors.viewSelectorListContainer);t.initAccordion(e,i,n)},t.initState=function(e){e.find(t.selectors.viewSelector).data("tribeEventsState",{mobileInitialized:!1,desktopInitialized:!1})},t.deinitViewSelector=function(e){t.deinitViewSelectorAccordion(e)},t.initViewSelector=function(e){const i=e.find(t.selectors.viewSelector);if(i.length){const n=i.data("tribeEventsState");if(i.hasClass(t.selectors.viewSelectorTabsClass.className())){const o=e.data("tribeEventsState").isMobile;o&&!n.mobileInitialized?(t.initViewSelectorAccordion(e),n.desktopInitialized=!1,n.mobileInitialized=!0,i.data("tribeEventsState",n)):o||n.desktopInitialized||(t.deinitViewSelectorAccordion(e),n.mobileInitialized=!1,n.desktopInitialized=!0,i.data("tribeEventsState",n))}else n.mobileInitialized||n.desktopInitialized||(t.initViewSelectorAccordion(e),n.desktopInitialized=!0,n.mobileInitialized=!0,i.data("tribeEventsState",n))}},t.handleViewSelectorButtonClick=function(e){e.data.target.toggleClass(t.selectors.viewSelectorButtonActiveClass.className())},t.handleClick=function(i){if(!Boolean(e(i.target).closest(t.selectors.viewSelector).length)){const e=i.data.container.find(t.selectors.viewSelector),n=e.find(t.selectors.viewSelectorButton);if(n.hasClass(t.selectors.viewSelectorButtonActiveClass.className())){const i=e.find(t.selectors.viewSelectorListContainer);n.removeClass(t.selectors.viewSelectorButtonActiveClass.className()),tribe.events.views.accordion.closeAccordion(n,i)}}},t.handleResize=function(e){t.initViewSelector(e.data.container)},t.unbindEvents=function(e){i.off("click",t.handleClick),e.off("resize.tribeEvents",t.handleResize).find(t.selectors.viewSelectorButton).off("click",t.handleViewSelectorButtonClick)},t.bindEvents=function(e){const n=e.find(t.selectors.viewSelectorButton);i.on("click",{container:e},t.handleClick),e.on("resize.tribeEvents",{container:e},t.handleResize),n.on("click",{target:n},t.handleViewSelectorButtonClick)},t.deinit=function(e,i,n){const o=e.data.container;t.deinitViewSelector(o),t.unbindEvents(o),o.off("beforeAjaxSuccess.tribeEvents",t.deinit)},t.init=function(e,i,n,o){n.find(t.selectors.viewSelector).length&&(t.initState(n),t.initViewSelector(n),t.bindEvents(n),n.on("beforeAjaxSuccess.tribeEvents",{container:n},t.deinit))},t.ready=function(){i.on("afterSetup.tribeEvents",tribe.events.views.manager.selectors.container,t.init)},e(t.ready)}(jQuery,tribe.events.views.viewSelector),window.tec=window.tec||{},window.tec.events=window.tec.events||{},window.tec.events.views=window.tec.events.views||{},window.tec.events.views.viewSelector={};
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.icalLinks={},function(e,n){"use strict";n.selectors={icalLinks:".tribe-events-c-subscribe-dropdown",icalLinksButton:".tribe-events-c-subscribe-dropdown__button",icalLinksButtonText:".tribe-events-c-subscribe-dropdown__button-text",icalLinksButtonActiveClass:"tribe-events-c-subscribe-dropdown__button--active",icalLinksListContainer:".tribe-events-c-subscribe-dropdown__content",icalLinksListContainerShow:"tribe-events-c-subscribe-dropdown__content--show",icalLinksIcon:".tribe-events-c-subscribe-dropdown__button-icon",icalLinksIconRotate:"tribe-events-c-subscribe-dropdown__button-icon--rotate"},n.handleIcalLinksButtonClick=function(t){t.stopPropagation();const i=e(t.target).closest(n.selectors.icalLinksButton),s=i.siblings(n.selectors.icalLinksListContainer),c=i.find(n.selectors.icalLinksIcon);n.handleAccordionToggle(t),e(n.selectors.icalLinksListContainer).not(s).hide(),e(n.selectors.icalLinksIcon).not(c).removeClass(n.selectors.icalLinksIconRotate),c.toggleClass(n.selectors.icalLinksIconRotate),s.toggle()},n.handleAccordionToggle=function(t){const i=e(t.target).closest(n.selectors.icalLinksButton),s=i.find(n.selectors.icalLinksButtonText);i&&s&&n.handleToggleAccordionExpanded(s)},n.handleToggleAccordionExpanded=function(t){"true"===t.attr("aria-expanded")?(t.attr("aria-expanded",!1),e(n.selectors.icalLinksIcon).removeClass(n.selectors.icalLinksIconRotate)):(t.attr("aria-expanded",!0),e(n.selectors.icalLinksIcon).addClass(n.selectors.icalLinksIconRotate))},n.resetAccordions=function(){e(n.selectors.icalLinksListContainer).hide(),e(n.selectors.icalLinksButtonText).attr("aria-expanded",!1),e(n.selectors.icalLinksIcon).removeClass(n.selectors.icalLinksIconRotate)},n.handleClickOutside=function(t){e(t.target).closest(n.selectors.icalLinks).length||n.resetAccordions()},n.bindEvents=function(t){e(document).on("click",n.selectors.icalLinksButton,n.handleIcalLinksButtonClick),e(document).on("click, focusin",n.handleClickOutside)},n.unbindEvents=function(t){t.find(n.selectors.icalLinksButton).off("click",n.handleIcalLinksButtonClick),e(document).off("click",n.handleClickOutside)},n.deinit=function(e,t,i){const s=e.data.container;n.unbindEvents(s),s.off("beforeAjaxSuccess.tribeEvents",n.deinit)},n.init=function(e,t,i,s){i.find(n.selectors.icalLinks).length&&(n.bindEvents(i),i.on("beforeAjaxSuccess.tribeEvents",{container:i},n.deinit))},e(document).ready((function(){n.init(null,0,e("body"),{})})),e(n.ready)}(jQuery,tribe.events.views.icalLinks),window.tec=window.tec||{},window.tec.events=window.tec.events||{},window.tec.events.views=window.tec.events.views||{},window.tec.events.views.icalLinks={};
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.navigationScroll={},function(e,t){"use strict";const n=e(document),i=e(window);t.scrollUp=function(t,n,s,o){const c=e(t.target),r=i.scrollTop(),v=c.offset();.75*r>v.top&&i.scrollTop(v.top)},t.ready=function(){n.on("afterAjaxSuccess.tribeEvents",tribe.events.views.manager.selectors.container,t.scrollUp)},e(t.ready)}(jQuery,tribe.events.views.navigationScroll),window.tec=window.tec||{},window.tec.events=window.tec.events||{},window.tec.events.views=window.tec.events.views||{},window.tec.events.views.navigationScroll={};
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.multidayEvents={},function(e,t){"use strict";const n=e(document);t.selectors={},t.selectorPrefixes={month:".tribe-events-calendar-month__"},t.selectorSuffixes={multidayEvent:"multiday-event",hiddenMultidayEvent:"multiday-event-hidden",multidayEventBarInner:"multiday-event-bar-inner",multidayEventBarInnerFocus:"multiday-event-bar-inner--focus",multidayEventBarInnerHover:"multiday-event-bar-inner--hover"},t.findVisibleMultidayEvents=function(e,n){const i=n.closest(t.selectors.multidayEvent).data("event-id");return e.find(t.selectors.multidayEvent+"[data-event-id="+i+"]")},t.toggleHoverClass=function(e){e.data.target.toggleClass(t.selectors.multidayEventBarInnerHover.className())},t.toggleFocusClass=function(e){e.data.target.toggleClass(t.selectors.multidayEventBarInnerFocus.className())},t.unbindMultidayEvents=function(n){n.find(t.selectors.hiddenMultidayEvent).each((function(t,n){e(n).off()}))},t.bindMultidayEvents=function(n){n.find(t.selectors.hiddenMultidayEvent).each((function(i,s){const o=e(s);t.findVisibleMultidayEvents(n,o).each((function(n,i){const s=e(i).find(t.selectors.multidayEventBarInner);o.on("mouseenter mouseleave",{target:s},t.toggleHoverClass).on("focus blur",{target:s},t.toggleFocusClass)}))}))},t.deinitSelectors=function(){t.selectors={}},t.initSelectors=function(e){const n=t.selectorPrefixes[e];Object.keys(t.selectorSuffixes).forEach((function(e){t.selectors[e]=n+t.selectorSuffixes[e]}))},t.unbindEvents=function(e,n,i){const s=e.data.container;t.deinitSelectors(),t.unbindMultidayEvents(s),s.off("beforeAjaxSuccess.tribeEvents",t.unbindEvents)},t.bindEvents=function(e,n){const i=n.slug;-1!==e.data("tribeEventsMultidayEventsAllowedViews").indexOf(i)&&(t.initSelectors(i),t.bindMultidayEvents(e),e.on("beforeAjaxSuccess.tribeEvents",{container:e},t.unbindEvents))},t.initAllowedViews=function(e){e.trigger("beforeMultidayEventsInitAllowedViews.tribeEvents",[e]),e.data("tribeEventsMultidayEventsAllowedViews",["month"]),e.trigger("afterMultidayEventsInitAllowedViews.tribeEvents",[e])},t.init=function(e,n,i,s){t.initAllowedViews(i),t.bindEvents(i,s)},t.ready=function(){n.on("afterSetup.tribeEvents",tribe.events.views.manager.selectors.container,t.init)},e(t.ready)}(jQuery,tribe.events.views.multidayEvents),window.tec=window.tec||{},window.tec.events=window.tec.events||{},window.tec.events.views=window.tec.events.views||{},window.tec.events.views.multidayEvents={};
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.monthMobileEvents={},function(e,t){"use strict";const n=e(document);t.selectors={calendar:'[data-js="tribe-events-month-grid"]',calendarDay:'[data-js="tribe-events-calendar-month-day-cell-mobile"]',calendarDaySelectedClass:".tribe-events-calendar-month__day-cell--selected",mobileEvents:'[data-js="tribe-events-calendar-month-mobile-events"]',mobileEventsMobileDayShowClass:".tribe-events-calendar-month-mobile-events__mobile-day--show",mobileEventsDefaultNotices:".tribe-events-header__messages--mobile:not(.tribe-events-header__messages--day)"},t.closeAllEvents=function(n){n.find(t.selectors.calendarDay).each((function(s,i){const a=e(i),o=a.attr("aria-controls");let l=e("");o&&(l=n.find("#"+o),tribe.events.views.accordion.closeAccordion(a,l)),t.closeMobileEvents(a,l)}))},t.handleMobileDayClick=function(e,n){const s=e.find(t.selectors.mobileEventsDefaultNotices),i=e.find(t.selectors.mobileEventsMobileDayShowClass).length>0;n&&!i?s.removeClass("tribe-common-a11y-hidden"):s.addClass("tribe-common-a11y-hidden")},t.openMobileEvents=function(e,n){e.attr("aria-controls")&&tribe.events.views.accordion.openAccordion(e,n),e.addClass(t.selectors.calendarDaySelectedClass.className()),n.addClass(t.selectors.mobileEventsMobileDayShowClass.className()),t.focusPanel(n),t.setupTabExit(e,n)},t.closeMobileEvents=function(e,n){e.attr("aria-controls")&&tribe.events.views.accordion.closeAccordion(e,n),e.removeClass(t.selectors.calendarDaySelectedClass.className()),n.removeClass(t.selectors.mobileEventsMobileDayShowClass.className()),n.find("*").off("keydown.tribeEvents")},t.toggleMobileEvents=function(n){const s=n.data.container,i=e(n.data.target),a=i.attr("aria-controls");let o=e("");a&&(o=s.find("#"+a)),i.hasClass(t.selectors.calendarDaySelectedClass.className())?(t.closeMobileEvents(i,o),t.handleMobileDayClick(s,!0)):(t.closeAllEvents(s),t.handleMobileDayClick(s,!1),t.openMobileEvents(i,o))},t.unbindCalendarEvents=function(n){n.find(t.selectors.calendar).find(t.selectors.calendarDay).each((function(n,s){e(s).off("click",t.toggleMobileEvents)}))},t.bindCalendarEvents=function(n){const s=n.find(t.selectors.calendar);s.find(t.selectors.calendarDay).each((function(i,a){e(a).on("click",{target:a,container:n,calendar:s},t.toggleMobileEvents)}))},t.initState=function(e){const n=e.find(t.selectors.mobileEvents),s={desktopInitialized:!e.data("tribeEventsState").isMobile};n.data("tribeEventsState",s)},t.handleResize=function(e){const n=e.data.container,s=n.find(t.selectors.mobileEvents),i=s.data("tribeEventsState");n.data("tribeEventsState").isMobile?(t.handleMobileDayClick(n,!0),i.desktopInitialized&&(i.desktopInitialized=!1)):i.desktopInitialized||(t.closeAllEvents(n),i.desktopInitialized=!0),s.data("tribeEventsState",i)},t.focusPanel=function(e){e.length&&(e.attr("tabindex")||e.attr("tabindex","-1"),requestAnimationFrame((function(){try{e[0].focus({preventScroll:!0})}catch(t){e.trigger("focus")}e[0]&&e[0].scrollIntoView&&e[0].scrollIntoView({behavior:"smooth",block:"start"})})))},t.focusNextDay=function(e){const n=e.closest(t.selectors.calendar).find(t.selectors.calendarDay),s=n.index(e),i=n.eq(s+1);i.length?i.focus():document.activeElement.blur()},t.setupTabExit=function(n,s){const i=s.find('a, button, [tabindex]:not([tabindex="-1"])');(i.length?e(i.get(i.length-1)):s).off("keydown.tribeEvents").on("keydown.tribeEvents",(function(e){"Tab"!==e.key||e.shiftKey||(e.preventDefault(),t.focusNextDay(n))}))},t.deinit=function(e,n,s){const i=e.data.container;t.unbindCalendarEvents(i),i.off("resize.tribeEvents",t.handleResize).off("beforeAjaxSuccess.tribeEvents",t.deinit)},t.init=function(e,n,s,i){s.find(t.selectors.mobileEvents).length&&(t.handleMobileDayClick(s,!0),t.initState(s),t.bindCalendarEvents(s),s.on("resize.tribeEvents",{container:s},t.handleResize).on("beforeAjaxSuccess.tribeEvents",{container:s},t.deinit))},t.ready=function(){n.on("afterSetup.tribeEvents",tribe.events.views.manager.selectors.container,t.init)},e(t.ready)}(jQuery,tribe.events.views.monthMobileEvents),window.tec=window.tec||{},window.tec.events=window.tec.events||{},window.tec.events.views=window.tec.events.views||{},window.tec.events.views.monthMobileEvents={};
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.monthGrid={},function(e,t){"use strict";const n=e(document);t.selectors={grid:'[data-js="tribe-events-month-grid"]',row:'[data-js="tribe-events-month-grid-row"]',cell:'[data-js="tribe-events-month-grid-cell"]',focusable:"[tabindex]",focused:'[tabindex="0"]'},t.keyCode={END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40},t.isValidCell=function(e,t,n){return!isNaN(t)&&!isNaN(n)&&t>=0&&n>=0&&e&&e.length&&t<e.length&&n<e[t].length},t.getNextCell=function(e,n,r,i,o){const s=n+o,c=r+i;return t.isValidCell(e,s,c)?{row:s,col:c}:{row:n,col:r}},t.setFocusPointer=function(e,n,r){const i=e.data("tribeEventsState");return!!t.isValidCell(i.grid,n,r)&&(i.grid[i.currentRow][i.currentCol].attr("tabindex","-1"),i.grid[n][r].attr("tabindex","0"),i.currentRow=n,i.currentCol=r,e.data("tribeEventsState",i),!0)},t.focusCell=function(e,n,r){t.setFocusPointer(e,n,r)&&e.data("tribeEventsState").grid[n][r].focus()},t.handleKeydown=function(e){const n=e.data.grid,r=n.data("tribeEventsState"),i=e.which||e.keyCode;let o,s=r.currentRow,c=r.currentCol;switch(i){case t.keyCode.UP:o=t.getNextCell(r.grid,s,c,0,-1),s=o.row,c=o.col;break;case t.keyCode.DOWN:o=t.getNextCell(r.grid,s,c,0,1),s=o.row,c=o.col;break;case t.keyCode.LEFT:o=t.getNextCell(r.grid,s,c,-1,0),s=o.row,c=o.col;break;case t.keyCode.RIGHT:o=t.getNextCell(r.grid,s,c,1,0),s=o.row,c=o.col;break;case t.keyCode.HOME:e.ctrlKey&&(s=0),c=0;break;case t.keyCode.END:e.ctrlKey&&(s=r.grid.length-1),c=r.grid[r.currentRow].length-1;break;default:return}t.focusCell(n,s,c),e.preventDefault()},t.handleClick=function(n){const r=n.data.grid,i=r.data("tribeEventsState"),o=e(n.target).closest(t.selectors.focusable);for(let e=0;e<i.grid.length;e++)for(let n=0;n<i.grid[e].length;n++)if(i.grid[e][n].is(o))return void t.focusCell(r,e,n)},t.initState=function(e){e.data("tribeEventsState",{grid:[],currentRow:0,currentCol:0})},t.setupGrid=function(n){const r=n.data("tribeEventsState");n.find(t.selectors.row).each((function(n,i){const o=[];e(i).find(t.selectors.cell).each((function(n,i){const s=e(i);if(s.is(t.selectors.focusable))s.is(t.selectors.focused)&&(r.currentRow=r.grid.length,r.currentCol=o.length),o.push(s);else{const e=s.find(t.selectors.focusable);e.is(t.selectors.focusable)&&(s.is(t.selectors.focused)&&(r.currentRow=r.grid.length,r.currentCol=o.length),o.push(e))}})),o.length&&r.grid.push(o)})),n.data("tribeEventsState",r)},t.unbindEvents=function(e){e.off()},t.bindEvents=function(e){e.on("keydown",{grid:e},t.handleKeydown).on("click",{grid:e},t.handleClick)},t.deinit=function(e,n,r){const i=e.data.container,o=i.find(t.selectors.grid);t.unbindEvents(o),i.off("beforeAjaxSuccess.tribeEvents",t.deinit)},t.init=function(e,n,r,i){const o=r.find(t.selectors.grid);if(!o.length)return;t.initState(o),t.setupGrid(o);const s=o.data("tribeEventsState");t.setFocusPointer(o,s.currentRow,s.currentCol),t.bindEvents(o),r.on("beforeAjaxSuccess.tribeEvents",{container:r},t.deinit)},t.ready=function(){n.on("afterSetup.tribeEvents",tribe.events.views.manager.selectors.container,t.init)},e(t.ready)}(jQuery,tribe.events.views.monthGrid),window.tec=window.tec||{},window.tec.events=window.tec.events||{},window.tec.events.views=window.tec.events.views||{},window.tec.events.views.monthGrid={};
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){function b(a){this.$container,this.constraints=null,this.__$tooltip,this.__init(a)}function c(b,c){var d=!0;return a.each(b,function(a,e){return void 0===c[a]||b[a]!==c[a]?(d=!1,!1):void 0}),d}function d(b){var c=b.attr("id"),d=c?h.window.document.getElementById(c):null;return d?d===b[0]:a.contains(h.window.document.body,b[0])}function e(){if(!g)return!1;var a=g.document.body||g.document.documentElement,b=a.style,c="transition",d=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof b[c])return!0;c=c.charAt(0).toUpperCase()+c.substr(1);for(var e=0;e<d.length;e++)if("string"==typeof b[d[e]+c])return!0;return!1}var f={animation:"fade",animationDuration:350,content:null,contentAsHTML:!1,contentCloning:!1,debug:!0,delay:300,delayTouch:[300,500],functionInit:null,functionBefore:null,functionReady:null,functionAfter:null,functionFormat:null,IEmin:6,interactive:!1,multiple:!1,parent:null,plugins:["sideTip"],repositionOnScroll:!1,restoration:"none",selfDestruction:!0,theme:[],timer:0,trackerInterval:500,trackOrigin:!1,trackTooltip:!1,trigger:"hover",triggerClose:{click:!1,mouseleave:!1,originClick:!1,scroll:!1,tap:!1,touchleave:!1},triggerOpen:{click:!1,mouseenter:!1,tap:!1,touchstart:!1},updateAnimation:"rotate",zIndex:9999999},g="undefined"!=typeof window?window:null,h={hasTouchCapability:!(!g||!("ontouchstart"in g||g.DocumentTouch&&g.document instanceof g.DocumentTouch||g.navigator.maxTouchPoints)),hasTransitions:e(),IE:!1,semVer:"4.2.6",window:g},i=function(){this.__$emitterPrivate=a({}),this.__$emitterPublic=a({}),this.__instancesLatestArr=[],this.__plugins={},this._env=h};i.prototype={__bridge:function(b,c,d){if(!c[d]){var e=function(){};e.prototype=b;var g=new e;g.__init&&g.__init(c),a.each(b,function(a,b){0!=a.indexOf("__")&&(c[a]?f.debug&&console.log("The "+a+" method of the "+d+" plugin conflicts with another plugin or native methods"):(c[a]=function(){return g[a].apply(g,Array.prototype.slice.apply(arguments))},c[a].bridged=g))}),c[d]=g}return this},__setWindow:function(a){return h.window=a,this},_getRuler:function(a){return new b(a)},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_plugin:function(b){var c=this;if("string"==typeof b){var d=b,e=null;return d.indexOf(".")>0?e=c.__plugins[d]:a.each(c.__plugins,function(a,b){return b.name.substring(b.name.length-d.length-1)=="."+d?(e=b,!1):void 0}),e}if(b.name.indexOf(".")<0)throw new Error("Plugins must be namespaced");return c.__plugins[b.name]=b,b.core&&c.__bridge(b.core,c,b.name),this},_trigger:function(){var a=Array.prototype.slice.apply(arguments);return"string"==typeof a[0]&&(a[0]={type:a[0]}),this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,a),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,a),this},instances:function(b){var c=[],d=b||".tooltipstered";return a(d).each(function(){var b=a(this),d=b.data("tooltipster-ns");d&&a.each(d,function(a,d){c.push(b.data(d))})}),c},instancesLatest:function(){return this.__instancesLatestArr},off:function(){return this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},origins:function(b){var c=b?b+" ":"";return a(c+".tooltipstered").toArray()},setDefaults:function(b){return a.extend(f,b),this},triggerHandler:function(){return this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},a.tooltipster=new i,a.Tooltipster=function(b,c){this.__callbacks={close:[],open:[]},this.__closingTime,this.__Content,this.__contentBcr,this.__destroyed=!1,this.__$emitterPrivate=a({}),this.__$emitterPublic=a({}),this.__enabled=!0,this.__garbageCollector,this.__Geometry,this.__lastPosition,this.__namespace="tooltipster-"+Math.round(1e6*Math.random()),this.__options,this.__$originParents,this.__pointerIsOverOrigin=!1,this.__previousThemes=[],this.__state="closed",this.__timeouts={close:[],open:null},this.__touchEvents=[],this.__tracker=null,this._$origin,this._$tooltip,this.__init(b,c)},a.Tooltipster.prototype={__init:function(b,c){var d=this;if(d._$origin=a(b),d.__options=a.extend(!0,{},f,c),d.__optionsFormat(),!h.IE||h.IE>=d.__options.IEmin){var e=null;if(void 0===d._$origin.data("tooltipster-initialTitle")&&(e=d._$origin.attr("title"),void 0===e&&(e=null),d._$origin.data("tooltipster-initialTitle",e)),null!==d.__options.content)d.__contentSet(d.__options.content);else{var g,i=d._$origin.attr("data-tooltip-content");i&&(g=a(i)),g&&g[0]?d.__contentSet(g.first()):d.__contentSet(e)}d._$origin.removeAttr("title").addClass("tooltipstered"),d.__prepareOrigin(),d.__prepareGC(),a.each(d.__options.plugins,function(a,b){d._plug(b)}),h.hasTouchCapability&&a(h.window.document.body).on("touchmove."+d.__namespace+"-triggerOpen",function(a){d._touchRecordEvent(a)}),d._on("created",function(){d.__prepareTooltip()})._on("repositioned",function(a){d.__lastPosition=a.position})}else d.__options.disabled=!0},__contentInsert:function(){var a=this,b=a._$tooltip.find(".tooltipster-content"),c=a.__Content,d=function(a){c=a};return a._trigger({type:"format",content:a.__Content,format:d}),a.__options.functionFormat&&(c=a.__options.functionFormat.call(a,a,{origin:a._$origin[0]},a.__Content)),"string"!=typeof c||a.__options.contentAsHTML?b.empty().append(c):b.text(c),a},__contentSet:function(b){return b instanceof a&&this.__options.contentCloning&&(b=b.clone(!0)),this.__Content=b,this._trigger({type:"updated",content:b}),this},__destroyError:function(){throw new Error("This tooltip has been destroyed and cannot execute your method call.")},__geometry:function(){var b=this,c=b._$origin,d=b._$origin.is("area");if(d){var e=b._$origin.parent().attr("name");c=a('img[usemap="#'+e+'"]')}var f=c[0].getBoundingClientRect(),g=a(h.window.document),i=a(h.window),j=c,k={available:{document:null,window:null},document:{size:{height:g.height(),width:g.width()}},window:{scroll:{left:h.window.scrollX||h.window.document.documentElement.scrollLeft,top:h.window.scrollY||h.window.document.documentElement.scrollTop},size:{height:i.height(),width:i.width()}},origin:{fixedLineage:!1,offset:{},size:{height:f.bottom-f.top,width:f.right-f.left},usemapImage:d?c[0]:null,windowOffset:{bottom:f.bottom,left:f.left,right:f.right,top:f.top}}};if(d){var l=b._$origin.attr("shape"),m=b._$origin.attr("coords");if(m&&(m=m.split(","),a.map(m,function(a,b){m[b]=parseInt(a)})),"default"!=l)switch(l){case"circle":var n=m[0],o=m[1],p=m[2],q=o-p,r=n-p;k.origin.size.height=2*p,k.origin.size.width=k.origin.size.height,k.origin.windowOffset.left+=r,k.origin.windowOffset.top+=q;break;case"rect":var s=m[0],t=m[1],u=m[2],v=m[3];k.origin.size.height=v-t,k.origin.size.width=u-s,k.origin.windowOffset.left+=s,k.origin.windowOffset.top+=t;break;case"poly":for(var w=0,x=0,y=0,z=0,A="even",B=0;B<m.length;B++){var C=m[B];"even"==A?(C>y&&(y=C,0===B&&(w=y)),w>C&&(w=C),A="odd"):(C>z&&(z=C,1==B&&(x=z)),x>C&&(x=C),A="even")}k.origin.size.height=z-x,k.origin.size.width=y-w,k.origin.windowOffset.left+=w,k.origin.windowOffset.top+=x}}var D=function(a){k.origin.size.height=a.height,k.origin.windowOffset.left=a.left,k.origin.windowOffset.top=a.top,k.origin.size.width=a.width};for(b._trigger({type:"geometry",edit:D,geometry:{height:k.origin.size.height,left:k.origin.windowOffset.left,top:k.origin.windowOffset.top,width:k.origin.size.width}}),k.origin.windowOffset.right=k.origin.windowOffset.left+k.origin.size.width,k.origin.windowOffset.bottom=k.origin.windowOffset.top+k.origin.size.height,k.origin.offset.left=k.origin.windowOffset.left+k.window.scroll.left,k.origin.offset.top=k.origin.windowOffset.top+k.window.scroll.top,k.origin.offset.bottom=k.origin.offset.top+k.origin.size.height,k.origin.offset.right=k.origin.offset.left+k.origin.size.width,k.available.document={bottom:{height:k.document.size.height-k.origin.offset.bottom,width:k.document.size.width},left:{height:k.document.size.height,width:k.origin.offset.left},right:{height:k.document.size.height,width:k.document.size.width-k.origin.offset.right},top:{height:k.origin.offset.top,width:k.document.size.width}},k.available.window={bottom:{height:Math.max(k.window.size.height-Math.max(k.origin.windowOffset.bottom,0),0),width:k.window.size.width},left:{height:k.window.size.height,width:Math.max(k.origin.windowOffset.left,0)},right:{height:k.window.size.height,width:Math.max(k.window.size.width-Math.max(k.origin.windowOffset.right,0),0)},top:{height:Math.max(k.origin.windowOffset.top,0),width:k.window.size.width}};"html"!=j[0].tagName.toLowerCase();){if("fixed"==j.css("position")){k.origin.fixedLineage=!0;break}j=j.parent()}return k},__optionsFormat:function(){return"number"==typeof this.__options.animationDuration&&(this.__options.animationDuration=[this.__options.animationDuration,this.__options.animationDuration]),"number"==typeof this.__options.delay&&(this.__options.delay=[this.__options.delay,this.__options.delay]),"number"==typeof this.__options.delayTouch&&(this.__options.delayTouch=[this.__options.delayTouch,this.__options.delayTouch]),"string"==typeof this.__options.theme&&(this.__options.theme=[this.__options.theme]),null===this.__options.parent?this.__options.parent=a(h.window.document.body):"string"==typeof this.__options.parent&&(this.__options.parent=a(this.__options.parent)),"hover"==this.__options.trigger?(this.__options.triggerOpen={mouseenter:!0,touchstart:!0},this.__options.triggerClose={mouseleave:!0,originClick:!0,touchleave:!0}):"click"==this.__options.trigger&&(this.__options.triggerOpen={click:!0,tap:!0},this.__options.triggerClose={click:!0,tap:!0}),this._trigger("options"),this},__prepareGC:function(){var b=this;return b.__options.selfDestruction?b.__garbageCollector=setInterval(function(){var c=(new Date).getTime();b.__touchEvents=a.grep(b.__touchEvents,function(a,b){return c-a.time>6e4}),d(b._$origin)||b.close(function(){b.destroy()})},2e4):clearInterval(b.__garbageCollector),b},__prepareOrigin:function(){var a=this;if(a._$origin.off("."+a.__namespace+"-triggerOpen"),h.hasTouchCapability&&a._$origin.on("touchstart."+a.__namespace+"-triggerOpen touchend."+a.__namespace+"-triggerOpen touchcancel."+a.__namespace+"-triggerOpen",function(b){a._touchRecordEvent(b)}),a.__options.triggerOpen.click||a.__options.triggerOpen.tap&&h.hasTouchCapability){var b="";a.__options.triggerOpen.click&&(b+="click."+a.__namespace+"-triggerOpen "),a.__options.triggerOpen.tap&&h.hasTouchCapability&&(b+="touchend."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){a._touchIsMeaningfulEvent(b)&&a._open(b)})}if(a.__options.triggerOpen.mouseenter||a.__options.triggerOpen.touchstart&&h.hasTouchCapability){var b="";a.__options.triggerOpen.mouseenter&&(b+="mouseenter."+a.__namespace+"-triggerOpen "),a.__options.triggerOpen.touchstart&&h.hasTouchCapability&&(b+="touchstart."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){!a._touchIsTouchEvent(b)&&a._touchIsEmulatedEvent(b)||(a.__pointerIsOverOrigin=!0,a._openShortly(b))})}if(a.__options.triggerClose.mouseleave||a.__options.triggerClose.touchleave&&h.hasTouchCapability){var b="";a.__options.triggerClose.mouseleave&&(b+="mouseleave."+a.__namespace+"-triggerOpen "),a.__options.triggerClose.touchleave&&h.hasTouchCapability&&(b+="touchend."+a.__namespace+"-triggerOpen touchcancel."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){a._touchIsMeaningfulEvent(b)&&(a.__pointerIsOverOrigin=!1)})}return a},__prepareTooltip:function(){var b=this,c=b.__options.interactive?"auto":"";return b._$tooltip.attr("id",b.__namespace).css({"pointer-events":c,zIndex:b.__options.zIndex}),a.each(b.__previousThemes,function(a,c){b._$tooltip.removeClass(c)}),a.each(b.__options.theme,function(a,c){b._$tooltip.addClass(c)}),b.__previousThemes=a.merge([],b.__options.theme),b},__scrollHandler:function(b){var c=this;if(c.__options.triggerClose.scroll)c._close(b);else if(d(c._$origin)&&d(c._$tooltip)){var e=null;if(b.target===h.window.document)c.__Geometry.origin.fixedLineage||c.__options.repositionOnScroll&&c.reposition(b);else{e=c.__geometry();var f=!1;if("fixed"!=c._$origin.css("position")&&c.__$originParents.each(function(b,c){var d=a(c),g=d.css("overflow-x"),h=d.css("overflow-y");if("visible"!=g||"visible"!=h){var i=c.getBoundingClientRect();if("visible"!=g&&(e.origin.windowOffset.left<i.left||e.origin.windowOffset.right>i.right))return f=!0,!1;if("visible"!=h&&(e.origin.windowOffset.top<i.top||e.origin.windowOffset.bottom>i.bottom))return f=!0,!1}return"fixed"==d.css("position")?!1:void 0}),f)c._$tooltip.css("visibility","hidden");else if(c._$tooltip.css("visibility","visible"),c.__options.repositionOnScroll)c.reposition(b);else{var g=e.origin.offset.left-c.__Geometry.origin.offset.left,i=e.origin.offset.top-c.__Geometry.origin.offset.top;c._$tooltip.css({left:c.__lastPosition.coord.left+g,top:c.__lastPosition.coord.top+i})}}c._trigger({type:"scroll",event:b,geo:e})}return c},__stateSet:function(a){return this.__state=a,this._trigger({type:"state",state:a}),this},__timeoutsClear:function(){return clearTimeout(this.__timeouts.open),this.__timeouts.open=null,a.each(this.__timeouts.close,function(a,b){clearTimeout(b)}),this.__timeouts.close=[],this},__trackerStart:function(){var a=this,b=a._$tooltip.find(".tooltipster-content");return a.__options.trackTooltip&&(a.__contentBcr=b[0].getBoundingClientRect()),a.__tracker=setInterval(function(){if(d(a._$origin)&&d(a._$tooltip)){if(a.__options.trackOrigin){var e=a.__geometry(),f=!1;c(e.origin.size,a.__Geometry.origin.size)&&(a.__Geometry.origin.fixedLineage?c(e.origin.windowOffset,a.__Geometry.origin.windowOffset)&&(f=!0):c(e.origin.offset,a.__Geometry.origin.offset)&&(f=!0)),f||(a.__options.triggerClose.mouseleave?a._close():a.reposition())}if(a.__options.trackTooltip){var g=b[0].getBoundingClientRect();g.height===a.__contentBcr.height&&g.width===a.__contentBcr.width||(a.reposition(),a.__contentBcr=g)}}else a._close()},a.__options.trackerInterval),a},_close:function(b,c,d){var e=this,f=!0;if(e._trigger({type:"close",event:b,stop:function(){f=!1}}),f||d){c&&e.__callbacks.close.push(c),e.__callbacks.open=[],e.__timeoutsClear();var g=function(){a.each(e.__callbacks.close,function(a,c){c.call(e,e,{event:b,origin:e._$origin[0]})}),e.__callbacks.close=[]};if("closed"!=e.__state){var i=!0,j=new Date,k=j.getTime(),l=k+e.__options.animationDuration[1];if("disappearing"==e.__state&&l>e.__closingTime&&e.__options.animationDuration[1]>0&&(i=!1),i){e.__closingTime=l,"disappearing"!=e.__state&&e.__stateSet("disappearing");var m=function(){clearInterval(e.__tracker),e._trigger({type:"closing",event:b}),e._$tooltip.off("."+e.__namespace+"-triggerClose").removeClass("tooltipster-dying"),a(h.window).off("."+e.__namespace+"-triggerClose"),e.__$originParents.each(function(b,c){a(c).off("scroll."+e.__namespace+"-triggerClose")}),e.__$originParents=null,a(h.window.document.body).off("."+e.__namespace+"-triggerClose"),e._$origin.off("."+e.__namespace+"-triggerClose"),e._off("dismissable"),e.__stateSet("closed"),e._trigger({type:"after",event:b}),e.__options.functionAfter&&e.__options.functionAfter.call(e,e,{event:b,origin:e._$origin[0]}),g()};h.hasTransitions?(e._$tooltip.css({"-moz-animation-duration":e.__options.animationDuration[1]+"ms","-ms-animation-duration":e.__options.animationDuration[1]+"ms","-o-animation-duration":e.__options.animationDuration[1]+"ms","-webkit-animation-duration":e.__options.animationDuration[1]+"ms","animation-duration":e.__options.animationDuration[1]+"ms","transition-duration":e.__options.animationDuration[1]+"ms"}),e._$tooltip.clearQueue().removeClass("tooltipster-show").addClass("tooltipster-dying"),e.__options.animationDuration[1]>0&&e._$tooltip.delay(e.__options.animationDuration[1]),e._$tooltip.queue(m)):e._$tooltip.stop().fadeOut(e.__options.animationDuration[1],m)}}else g()}return e},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_open:function(b,c){var e=this;if(!e.__destroying&&d(e._$origin)&&e.__enabled){var f=!0;if("closed"==e.__state&&(e._trigger({type:"before",event:b,stop:function(){f=!1}}),f&&e.__options.functionBefore&&(f=e.__options.functionBefore.call(e,e,{event:b,origin:e._$origin[0]}))),f!==!1&&null!==e.__Content){c&&e.__callbacks.open.push(c),e.__callbacks.close=[],e.__timeoutsClear();var g,i=function(){"stable"!=e.__state&&e.__stateSet("stable"),a.each(e.__callbacks.open,function(a,b){b.call(e,e,{origin:e._$origin[0],tooltip:e._$tooltip[0]})}),e.__callbacks.open=[]};if("closed"!==e.__state)g=0,"disappearing"===e.__state?(e.__stateSet("appearing"),h.hasTransitions?(e._$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-show"),e.__options.animationDuration[0]>0&&e._$tooltip.delay(e.__options.animationDuration[0]),e._$tooltip.queue(i)):e._$tooltip.stop().fadeIn(i)):"stable"==e.__state&&i();else{if(e.__stateSet("appearing"),g=e.__options.animationDuration[0],e.__contentInsert(),e.reposition(b,!0),h.hasTransitions?(e._$tooltip.addClass("tooltipster-"+e.__options.animation).addClass("tooltipster-initial").css({"-moz-animation-duration":e.__options.animationDuration[0]+"ms","-ms-animation-duration":e.__options.animationDuration[0]+"ms","-o-animation-duration":e.__options.animationDuration[0]+"ms","-webkit-animation-duration":e.__options.animationDuration[0]+"ms","animation-duration":e.__options.animationDuration[0]+"ms","transition-duration":e.__options.animationDuration[0]+"ms"}),setTimeout(function(){"closed"!=e.__state&&(e._$tooltip.addClass("tooltipster-show").removeClass("tooltipster-initial"),e.__options.animationDuration[0]>0&&e._$tooltip.delay(e.__options.animationDuration[0]),e._$tooltip.queue(i))},0)):e._$tooltip.css("display","none").fadeIn(e.__options.animationDuration[0],i),e.__trackerStart(),a(h.window).on("resize."+e.__namespace+"-triggerClose",function(b){var c=a(document.activeElement);(c.is("input")||c.is("textarea"))&&a.contains(e._$tooltip[0],c[0])||e.reposition(b)}).on("scroll."+e.__namespace+"-triggerClose",function(a){e.__scrollHandler(a)}),e.__$originParents=e._$origin.parents(),e.__$originParents.each(function(b,c){a(c).on("scroll."+e.__namespace+"-triggerClose",function(a){e.__scrollHandler(a)})}),e.__options.triggerClose.mouseleave||e.__options.triggerClose.touchleave&&h.hasTouchCapability){e._on("dismissable",function(a){a.dismissable?a.delay?(m=setTimeout(function(){e._close(a.event)},a.delay),e.__timeouts.close.push(m)):e._close(a):clearTimeout(m)});var j=e._$origin,k="",l="",m=null;e.__options.interactive&&(j=j.add(e._$tooltip)),e.__options.triggerClose.mouseleave&&(k+="mouseenter."+e.__namespace+"-triggerClose ",l+="mouseleave."+e.__namespace+"-triggerClose "),e.__options.triggerClose.touchleave&&h.hasTouchCapability&&(k+="touchstart."+e.__namespace+"-triggerClose",l+="touchend."+e.__namespace+"-triggerClose touchcancel."+e.__namespace+"-triggerClose"),j.on(l,function(a){if(e._touchIsTouchEvent(a)||!e._touchIsEmulatedEvent(a)){var b="mouseleave"==a.type?e.__options.delay:e.__options.delayTouch;e._trigger({delay:b[1],dismissable:!0,event:a,type:"dismissable"})}}).on(k,function(a){!e._touchIsTouchEvent(a)&&e._touchIsEmulatedEvent(a)||e._trigger({dismissable:!1,event:a,type:"dismissable"})})}e.__options.triggerClose.originClick&&e._$origin.on("click."+e.__namespace+"-triggerClose",function(a){e._touchIsTouchEvent(a)||e._touchIsEmulatedEvent(a)||e._close(a)}),(e.__options.triggerClose.click||e.__options.triggerClose.tap&&h.hasTouchCapability)&&setTimeout(function(){if("closed"!=e.__state){var b="",c=a(h.window.document.body);e.__options.triggerClose.click&&(b+="click."+e.__namespace+"-triggerClose "),e.__options.triggerClose.tap&&h.hasTouchCapability&&(b+="touchend."+e.__namespace+"-triggerClose"),c.on(b,function(b){e._touchIsMeaningfulEvent(b)&&(e._touchRecordEvent(b),e.__options.interactive&&a.contains(e._$tooltip[0],b.target)||e._close(b))}),e.__options.triggerClose.tap&&h.hasTouchCapability&&c.on("touchstart."+e.__namespace+"-triggerClose",function(a){e._touchRecordEvent(a)})}},0),e._trigger("ready"),e.__options.functionReady&&e.__options.functionReady.call(e,e,{origin:e._$origin[0],tooltip:e._$tooltip[0]})}if(e.__options.timer>0){var m=setTimeout(function(){e._close()},e.__options.timer+g);e.__timeouts.close.push(m)}}}return e},_openShortly:function(a){var b=this,c=!0;if("stable"!=b.__state&&"appearing"!=b.__state&&!b.__timeouts.open&&(b._trigger({type:"start",event:a,stop:function(){c=!1}}),c)){var d=0==a.type.indexOf("touch")?b.__options.delayTouch:b.__options.delay;d[0]?b.__timeouts.open=setTimeout(function(){b.__timeouts.open=null,b.__pointerIsOverOrigin&&b._touchIsMeaningfulEvent(a)?(b._trigger("startend"),b._open(a)):b._trigger("startcancel")},d[0]):(b._trigger("startend"),b._open(a))}return b},_optionsExtract:function(b,c){var d=this,e=a.extend(!0,{},c),f=d.__options[b];return f||(f={},a.each(c,function(a,b){var c=d.__options[a];void 0!==c&&(f[a]=c)})),a.each(e,function(b,c){void 0!==f[b]&&("object"!=typeof c||c instanceof Array||null==c||"object"!=typeof f[b]||f[b]instanceof Array||null==f[b]?e[b]=f[b]:a.extend(e[b],f[b]))}),e},_plug:function(b){var c=a.tooltipster._plugin(b);if(!c)throw new Error('The "'+b+'" plugin is not defined');return c.instance&&a.tooltipster.__bridge(c.instance,this,c.name),this},_touchIsEmulatedEvent:function(a){for(var b=!1,c=(new Date).getTime(),d=this.__touchEvents.length-1;d>=0;d--){var e=this.__touchEvents[d];if(!(c-e.time<500))break;e.target===a.target&&(b=!0)}return b},_touchIsMeaningfulEvent:function(a){return this._touchIsTouchEvent(a)&&!this._touchSwiped(a.target)||!this._touchIsTouchEvent(a)&&!this._touchIsEmulatedEvent(a)},_touchIsTouchEvent:function(a){return 0==a.type.indexOf("touch")},_touchRecordEvent:function(a){return this._touchIsTouchEvent(a)&&(a.time=(new Date).getTime(),this.__touchEvents.push(a)),this},_touchSwiped:function(a){for(var b=!1,c=this.__touchEvents.length-1;c>=0;c--){var d=this.__touchEvents[c];if("touchmove"==d.type){b=!0;break}if("touchstart"==d.type&&a===d.target)break}return b},_trigger:function(){var b=Array.prototype.slice.apply(arguments);return"string"==typeof b[0]&&(b[0]={type:b[0]}),b[0].instance=this,b[0].origin=this._$origin?this._$origin[0]:null,b[0].tooltip=this._$tooltip?this._$tooltip[0]:null,this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,b),a.tooltipster._trigger.apply(a.tooltipster,b),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,b),this},_unplug:function(b){var c=this;if(c[b]){var d=a.tooltipster._plugin(b);d.instance&&a.each(d.instance,function(a,d){c[a]&&c[a].bridged===c[b]&&delete c[a]}),c[b].__destroy&&c[b].__destroy(),delete c[b]}return c},close:function(a){return this.__destroyed?this.__destroyError():this._close(null,a),this},content:function(a){var b=this;if(void 0===a)return b.__Content;if(b.__destroyed)b.__destroyError();else if(b.__contentSet(a),null!==b.__Content){if("closed"!==b.__state&&(b.__contentInsert(),b.reposition(),b.__options.updateAnimation))if(h.hasTransitions){var c=b.__options.updateAnimation;b._$tooltip.addClass("tooltipster-update-"+c),setTimeout(function(){"closed"!=b.__state&&b._$tooltip.removeClass("tooltipster-update-"+c)},1e3)}else b._$tooltip.fadeTo(200,.5,function(){"closed"!=b.__state&&b._$tooltip.fadeTo(200,1)})}else b._close();return b},destroy:function(){var b=this;if(b.__destroyed)b.__destroyError();else{"closed"!=b.__state?b.option("animationDuration",0)._close(null,null,!0):b.__timeoutsClear(),b._trigger("destroy"),b.__destroyed=!0,b._$origin.removeData(b.__namespace).off("."+b.__namespace+"-triggerOpen"),a(h.window.document.body).off("."+b.__namespace+"-triggerOpen");var c=b._$origin.data("tooltipster-ns");if(c)if(1===c.length){var d=null;"previous"==b.__options.restoration?d=b._$origin.data("tooltipster-initialTitle"):"current"==b.__options.restoration&&(d="string"==typeof b.__Content?b.__Content:a("<div></div>").append(b.__Content).html()),d&&b._$origin.attr("title",d),b._$origin.removeClass("tooltipstered"),b._$origin.removeData("tooltipster-ns").removeData("tooltipster-initialTitle")}else c=a.grep(c,function(a,c){return a!==b.__namespace}),b._$origin.data("tooltipster-ns",c);b._trigger("destroyed"),b._off(),b.off(),b.__Content=null,b.__$emitterPrivate=null,b.__$emitterPublic=null,b.__options.parent=null,b._$origin=null,b._$tooltip=null,a.tooltipster.__instancesLatestArr=a.grep(a.tooltipster.__instancesLatestArr,function(a,c){return b!==a}),clearInterval(b.__garbageCollector)}return b},disable:function(){return this.__destroyed?(this.__destroyError(),this):(this._close(),this.__enabled=!1,this)},elementOrigin:function(){return this.__destroyed?void this.__destroyError():this._$origin[0]},elementTooltip:function(){return this._$tooltip?this._$tooltip[0]:null},enable:function(){return this.__enabled=!0,this},hide:function(a){return this.close(a)},instance:function(){return this},off:function(){return this.__destroyed||this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},open:function(a){return this.__destroyed?this.__destroyError():this._open(null,a),this},option:function(b,c){return void 0===c?this.__options[b]:(this.__destroyed?this.__destroyError():(this.__options[b]=c,this.__optionsFormat(),a.inArray(b,["trigger","triggerClose","triggerOpen"])>=0&&this.__prepareOrigin(),"selfDestruction"===b&&this.__prepareGC()),this)},reposition:function(a,b){var c=this;return c.__destroyed?c.__destroyError():"closed"!=c.__state&&d(c._$origin)&&(b||d(c._$tooltip))&&(b||c._$tooltip.detach(),c.__Geometry=c.__geometry(),c._trigger({type:"reposition",event:a,helper:{geo:c.__Geometry}})),c},show:function(a){return this.open(a)},status:function(){return{destroyed:this.__destroyed,enabled:this.__enabled,open:"closed"!==this.__state,state:this.__state}},triggerHandler:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},a.fn.tooltipster=function(){var b=Array.prototype.slice.apply(arguments),c="You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE.";if(0===this.length)return this;if("string"==typeof b[0]){var d="#*$~&";return this.each(function(){var e=a(this).data("tooltipster-ns"),f=e?a(this).data(e[0]):null;if(!f)throw new Error("You called Tooltipster's \""+b[0]+'" method on an uninitialized element');if("function"!=typeof f[b[0]])throw new Error('Unknown method "'+b[0]+'"');this.length>1&&"content"==b[0]&&(b[1]instanceof a||"object"==typeof b[1]&&null!=b[1]&&b[1].tagName)&&!f.__options.contentCloning&&f.__options.debug&&console.log(c);var g=f[b[0]](b[1],b[2]);return g!==f||"instance"===b[0]?(d=g,!1):void 0}),"#*$~&"!==d?d:this}a.tooltipster.__instancesLatestArr=[];var e=b[0]&&void 0!==b[0].multiple,g=e&&b[0].multiple||!e&&f.multiple,h=b[0]&&void 0!==b[0].content,i=h&&b[0].content||!h&&f.content,j=b[0]&&void 0!==b[0].contentCloning,k=j&&b[0].contentCloning||!j&&f.contentCloning,l=b[0]&&void 0!==b[0].debug,m=l&&b[0].debug||!l&&f.debug;return this.length>1&&(i instanceof a||"object"==typeof i&&null!=i&&i.tagName)&&!k&&m&&console.log(c),this.each(function(){var c=!1,d=a(this),e=d.data("tooltipster-ns"),f=null;e?g?c=!0:m&&(console.log("Tooltipster: one or more tooltips are already attached to the element below. Ignoring."),console.log(this)):c=!0,c&&(f=new a.Tooltipster(this,b[0]),e||(e=[]),e.push(f.__namespace),d.data("tooltipster-ns",e),d.data(f.__namespace,f),f.__options.functionInit&&f.__options.functionInit.call(f,f,{origin:this}),f._trigger("init")),a.tooltipster.__instancesLatestArr.push(f)}),this},b.prototype={__init:function(b){this.__$tooltip=b,this.__$tooltip.css({left:0,overflow:"hidden",position:"absolute",top:0}).find(".tooltipster-content").css("overflow","auto"),this.$container=a('<div class="tooltipster-ruler"></div>').append(this.__$tooltip).appendTo(h.window.document.body)},__forceRedraw:function(){var a=this.__$tooltip.parent();this.__$tooltip.detach(),this.__$tooltip.appendTo(a)},constrain:function(a,b){return this.constraints={width:a,height:b},this.__$tooltip.css({display:"block",height:"",overflow:"auto",width:a}),this},destroy:function(){this.__$tooltip.detach().find(".tooltipster-content").css({display:"",overflow:""}),this.$container.remove()},free:function(){return this.constraints=null,this.__$tooltip.css({display:"",height:"",overflow:"visible",width:""}),this},measure:function(){this.__forceRedraw();var a=this.__$tooltip[0].getBoundingClientRect(),b={size:{height:a.height||a.bottom-a.top,width:a.width||a.right-a.left}};if(this.constraints){var c=this.__$tooltip.find(".tooltipster-content"),d=this.__$tooltip.outerHeight(),e=c[0].getBoundingClientRect(),f={height:d<=this.constraints.height,width:a.width<=this.constraints.width&&e.width>=c[0].scrollWidth-1};b.fits=f.height&&f.width}return h.IE&&h.IE<=11&&b.size.width!==h.window.document.documentElement.clientWidth&&(b.size.width=Math.ceil(b.size.width)+1),b}};var j=navigator.userAgent.toLowerCase();-1!=j.indexOf("msie")?h.IE=parseInt(j.split("msie")[1]):-1!==j.toLowerCase().indexOf("trident")&&-1!==j.indexOf(" rv:11")?h.IE=11:-1!=j.toLowerCase().indexOf("edge/")&&(h.IE=parseInt(j.toLowerCase().split("edge/")[1]));var k="tooltipster.sideTip";return a.tooltipster._plugin({name:k,instance:{__defaults:function(){return{arrow:!0,distance:6,functionPosition:null,maxWidth:null,minIntersection:16,minWidth:0,position:null,side:"top",viewportAware:!0}},__init:function(a){var b=this;b.__instance=a,b.__namespace="tooltipster-sideTip-"+Math.round(1e6*Math.random()),b.__previousState="closed",b.__options,b.__optionsFormat(),b.__instance._on("state."+b.__namespace,function(a){"closed"==a.state?b.__close():"appearing"==a.state&&"closed"==b.__previousState&&b.__create(),b.__previousState=a.state}),b.__instance._on("options."+b.__namespace,function(){b.__optionsFormat()}),b.__instance._on("reposition."+b.__namespace,function(a){b.__reposition(a.event,a.helper)})},__close:function(){this.__instance.content()instanceof a&&this.__instance.content().detach(),this.__instance._$tooltip.remove(),this.__instance._$tooltip=null},__create:function(){var b=a('<div class="tooltipster-base tooltipster-sidetip"><div class="tooltipster-box"><div class="tooltipster-content"></div></div><div class="tooltipster-arrow"><div class="tooltipster-arrow-uncropped"><div class="tooltipster-arrow-border"></div><div class="tooltipster-arrow-background"></div></div></div></div>');this.__options.arrow||b.find(".tooltipster-box").css("margin",0).end().find(".tooltipster-arrow").hide(),this.__options.minWidth&&b.css("min-width",this.__options.minWidth+"px"),this.__options.maxWidth&&b.css("max-width",this.__options.maxWidth+"px"),
this.__instance._$tooltip=b,this.__instance._trigger("created")},__destroy:function(){this.__instance._off("."+self.__namespace)},__optionsFormat:function(){var b=this;if(b.__options=b.__instance._optionsExtract(k,b.__defaults()),b.__options.position&&(b.__options.side=b.__options.position),"object"!=typeof b.__options.distance&&(b.__options.distance=[b.__options.distance]),b.__options.distance.length<4&&(void 0===b.__options.distance[1]&&(b.__options.distance[1]=b.__options.distance[0]),void 0===b.__options.distance[2]&&(b.__options.distance[2]=b.__options.distance[0]),void 0===b.__options.distance[3]&&(b.__options.distance[3]=b.__options.distance[1]),b.__options.distance={top:b.__options.distance[0],right:b.__options.distance[1],bottom:b.__options.distance[2],left:b.__options.distance[3]}),"string"==typeof b.__options.side){var c={top:"bottom",right:"left",bottom:"top",left:"right"};b.__options.side=[b.__options.side,c[b.__options.side]],"left"==b.__options.side[0]||"right"==b.__options.side[0]?b.__options.side.push("top","bottom"):b.__options.side.push("right","left")}6===a.tooltipster._env.IE&&b.__options.arrow!==!0&&(b.__options.arrow=!1)},__reposition:function(b,c){var d,e=this,f=e.__targetFind(c),g=[];e.__instance._$tooltip.detach();var h=e.__instance._$tooltip.clone(),i=a.tooltipster._getRuler(h),j=!1,k=e.__instance.option("animation");switch(k&&h.removeClass("tooltipster-"+k),a.each(["window","document"],function(d,k){var l=null;if(e.__instance._trigger({container:k,helper:c,satisfied:j,takeTest:function(a){l=a},results:g,type:"positionTest"}),1==l||0!=l&&0==j&&("window"!=k||e.__options.viewportAware))for(var d=0;d<e.__options.side.length;d++){var m={horizontal:0,vertical:0},n=e.__options.side[d];"top"==n||"bottom"==n?m.vertical=e.__options.distance[n]:m.horizontal=e.__options.distance[n],e.__sideChange(h,n),a.each(["natural","constrained"],function(a,d){if(l=null,e.__instance._trigger({container:k,event:b,helper:c,mode:d,results:g,satisfied:j,side:n,takeTest:function(a){l=a},type:"positionTest"}),1==l||0!=l&&0==j){var h={container:k,distance:m,fits:null,mode:d,outerSize:null,side:n,size:null,target:f[n],whole:null},o="natural"==d?i.free():i.constrain(c.geo.available[k][n].width-m.horizontal,c.geo.available[k][n].height-m.vertical),p=o.measure();if(h.size=p.size,h.outerSize={height:p.size.height+m.vertical,width:p.size.width+m.horizontal},"natural"==d?c.geo.available[k][n].width>=h.outerSize.width&&c.geo.available[k][n].height>=h.outerSize.height?h.fits=!0:h.fits=!1:h.fits=p.fits,"window"==k&&(h.fits?"top"==n||"bottom"==n?h.whole=c.geo.origin.windowOffset.right>=e.__options.minIntersection&&c.geo.window.size.width-c.geo.origin.windowOffset.left>=e.__options.minIntersection:h.whole=c.geo.origin.windowOffset.bottom>=e.__options.minIntersection&&c.geo.window.size.height-c.geo.origin.windowOffset.top>=e.__options.minIntersection:h.whole=!1),g.push(h),h.whole)j=!0;else if("natural"==h.mode&&(h.fits||h.size.width<=c.geo.available[k][n].width))return!1}})}}),e.__instance._trigger({edit:function(a){g=a},event:b,helper:c,results:g,type:"positionTested"}),g.sort(function(a,b){if(a.whole&&!b.whole)return-1;if(!a.whole&&b.whole)return 1;if(a.whole&&b.whole){var c=e.__options.side.indexOf(a.side),d=e.__options.side.indexOf(b.side);return d>c?-1:c>d?1:"natural"==a.mode?-1:1}if(a.fits&&!b.fits)return-1;if(!a.fits&&b.fits)return 1;if(a.fits&&b.fits){var c=e.__options.side.indexOf(a.side),d=e.__options.side.indexOf(b.side);return d>c?-1:c>d?1:"natural"==a.mode?-1:1}return"document"==a.container&&"bottom"==a.side&&"natural"==a.mode?-1:1}),d=g[0],d.coord={},d.side){case"left":case"right":d.coord.top=Math.floor(d.target-d.size.height/2);break;case"bottom":case"top":d.coord.left=Math.floor(d.target-d.size.width/2)}switch(d.side){case"left":d.coord.left=c.geo.origin.windowOffset.left-d.outerSize.width;break;case"right":d.coord.left=c.geo.origin.windowOffset.right+d.distance.horizontal;break;case"top":d.coord.top=c.geo.origin.windowOffset.top-d.outerSize.height;break;case"bottom":d.coord.top=c.geo.origin.windowOffset.bottom+d.distance.vertical}"window"==d.container?"top"==d.side||"bottom"==d.side?d.coord.left<0?c.geo.origin.windowOffset.right-this.__options.minIntersection>=0?d.coord.left=0:d.coord.left=c.geo.origin.windowOffset.right-this.__options.minIntersection-1:d.coord.left>c.geo.window.size.width-d.size.width&&(c.geo.origin.windowOffset.left+this.__options.minIntersection<=c.geo.window.size.width?d.coord.left=c.geo.window.size.width-d.size.width:d.coord.left=c.geo.origin.windowOffset.left+this.__options.minIntersection+1-d.size.width):d.coord.top<0?c.geo.origin.windowOffset.bottom-this.__options.minIntersection>=0?d.coord.top=0:d.coord.top=c.geo.origin.windowOffset.bottom-this.__options.minIntersection-1:d.coord.top>c.geo.window.size.height-d.size.height&&(c.geo.origin.windowOffset.top+this.__options.minIntersection<=c.geo.window.size.height?d.coord.top=c.geo.window.size.height-d.size.height:d.coord.top=c.geo.origin.windowOffset.top+this.__options.minIntersection+1-d.size.height):(d.coord.left>c.geo.window.size.width-d.size.width&&(d.coord.left=c.geo.window.size.width-d.size.width),d.coord.left<0&&(d.coord.left=0)),e.__sideChange(h,d.side),c.tooltipClone=h[0],c.tooltipParent=e.__instance.option("parent").parent[0],c.mode=d.mode,c.whole=d.whole,c.origin=e.__instance._$origin[0],c.tooltip=e.__instance._$tooltip[0],delete d.container,delete d.fits,delete d.mode,delete d.outerSize,delete d.whole,d.distance=d.distance.horizontal||d.distance.vertical;var l=a.extend(!0,{},d);if(e.__instance._trigger({edit:function(a){d=a},event:b,helper:c,position:l,type:"position"}),e.__options.functionPosition){var m=e.__options.functionPosition.call(e,e.__instance,c,l);m&&(d=m)}i.destroy();var n,o;"top"==d.side||"bottom"==d.side?(n={prop:"left",val:d.target-d.coord.left},o=d.size.width-this.__options.minIntersection):(n={prop:"top",val:d.target-d.coord.top},o=d.size.height-this.__options.minIntersection),n.val<this.__options.minIntersection?n.val=this.__options.minIntersection:n.val>o&&(n.val=o);var p;p=c.geo.origin.fixedLineage?c.geo.origin.windowOffset:{left:c.geo.origin.windowOffset.left+c.geo.window.scroll.left,top:c.geo.origin.windowOffset.top+c.geo.window.scroll.top},d.coord={left:p.left+(d.coord.left-c.geo.origin.windowOffset.left),top:p.top+(d.coord.top-c.geo.origin.windowOffset.top)},e.__sideChange(e.__instance._$tooltip,d.side),c.geo.origin.fixedLineage?e.__instance._$tooltip.css("position","fixed"):e.__instance._$tooltip.css("position",""),e.__instance._$tooltip.css({left:d.coord.left,top:d.coord.top,height:d.size.height,width:d.size.width}).find(".tooltipster-arrow").css({left:"",top:""}).css(n.prop,n.val),e.__instance._$tooltip.appendTo(e.__instance.option("parent")),e.__instance._trigger({type:"repositioned",event:b,position:d})},__sideChange:function(a,b){a.removeClass("tooltipster-bottom").removeClass("tooltipster-left").removeClass("tooltipster-right").removeClass("tooltipster-top").addClass("tooltipster-"+b)},__targetFind:function(a){var b={},c=this.__instance._$origin[0].getClientRects();if(c.length>1){var d=this.__instance._$origin.css("opacity");1==d&&(this.__instance._$origin.css("opacity",.99),c=this.__instance._$origin[0].getClientRects(),this.__instance._$origin.css("opacity",1))}if(c.length<2)b.top=Math.floor(a.geo.origin.windowOffset.left+a.geo.origin.size.width/2),b.bottom=b.top,b.left=Math.floor(a.geo.origin.windowOffset.top+a.geo.origin.size.height/2),b.right=b.left;else{var e=c[0];b.top=Math.floor(e.left+(e.right-e.left)/2),e=c.length>2?c[Math.ceil(c.length/2)-1]:c[0],b.right=Math.floor(e.top+(e.bottom-e.top)/2),e=c[c.length-1],b.bottom=Math.floor(e.left+(e.right-e.left)/2),e=c.length>2?c[Math.ceil((c.length+1)/2)-1]:c[c.length-1],b.left=Math.floor(e.top+(e.bottom-e.top)/2)}return b}}}),a});
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.tooltip={},function(e,t){"use strict";const o=e(document);t.config={delayHoverIn:300,delayHoverOut:300},t.selectors={tooltipTrigger:'[data-js~="tribe-events-tooltip"]',tribeEventsTooltipTriggerHoverClass:".tribe-events-tooltip-trigger--hover",tribeEventsTooltipThemeClass:".tribe-events-tooltip-theme",tribeEventsTooltipThemeHoverClass:".tribe-events-tooltip-theme--hover",tribeCommonClass:".tribe-common",tribeEventsClass:".tribe-events"},t.handleOriginFocus=function(e){setTimeout((function(){(e.data.target.is(":focus")||e.data.target.hasClass(t.selectors.tribeEventsTooltipTriggerHoverClass.className()))&&e.data.target.tooltipster("open")}),t.config.delayHoverIn)},t.handleOriginBlur=function(e){e.data.target.tooltipster("close")},t.handleOriginHoverIn=function(e){e.data.target.addClass(t.selectors.tribeEventsTooltipTriggerHoverClass.className())},t.handleOriginHoverOut=function(e){e.data.target.removeClass(t.selectors.tribeEventsTooltipTriggerHoverClass.className())},t.handleTooltipHoverIn=function(e){e.data.target.addClass(t.selectors.tribeEventsTooltipThemeHoverClass.className())},t.handleTooltipHoverOut=function(e){e.data.target.removeClass(t.selectors.tribeEventsTooltipThemeHoverClass.className())},t.isEscapeKey=function(e){return 27===e.keyCode||"Esc"===e.key},t.handleOriginKeydown=function(e){t.isEscapeKey(e)&&(e.data.target.blur(),e.data.target.tooltipster("close"),e.preventDefault())},t.handleInstanceClose=function(o){const n=o.data.origin,i=e(o.tooltip);(n.is(":focus")||n.hasClass(t.selectors.tribeEventsTooltipTriggerHoverClass.className())||i.hasClass(t.selectors.tribeEventsTooltipThemeHoverClass.className()))&&o.stop()},t.handleInstanceClosing=function(o){e(o.tooltip).off("mouseenter touchstart",t.handleTooltipHoverIn).off("mouseleave touchleave",t.handleTooltipHoverOut)},t.onFunctionInit=function(o,n){const i=e(n.origin);i.on("focus",{target:i},t.handleOriginFocus).on("blur",{target:i},t.handleOriginBlur).on("mouseenter touchstart",{target:i},t.handleOriginHoverIn).on("mouseleave touchleave",{target:i},t.handleOriginHoverOut).on("keydown",{target:i},t.handleOriginKeydown),o.on("close",{origin:i},t.handleInstanceClose).on("closing",{origin:i},t.handleInstanceClosing)},t.onFunctionReady=function(o,n){const i=e(n.tooltip);i.on("mouseenter touchstart",{target:i},t.handleTooltipHoverIn).on("mouseleave touchleave",{target:i},t.handleTooltipHoverOut)},t.deinitTooltips=function(o){o.find(t.selectors.tooltipTrigger).each((function(t,o){e(o).off().tooltipster("instance").off()}))},t.initTooltips=function(o){const n=o.data("tribeEventsTooltipTheme");o.find(t.selectors.tooltipTrigger).each((function(o,i){e(i).tooltipster({animationDuration:0,interactive:!0,delay:[t.config.delayHoverIn,t.config.delayHoverOut],delayTouch:[t.config.delayHoverIn,t.config.delayHoverOut],theme:n,functionInit:t.onFunctionInit,functionReady:t.onFunctionReady})}))},t.initTheme=function(e){e.trigger("beforeTooltipInitTheme.tribeEvents",[e]);const o=[t.selectors.tribeEventsTooltipThemeClass.className(),t.selectors.tribeCommonClass.className(),t.selectors.tribeEventsClass.className()];e.data("tribeEventsTooltipTheme",o),e.trigger("afterTooltipInitTheme.tribeEvents",[e])},t.deinit=function(e,o,n){const i=e.data.container;t.deinitTooltips(i),i.off("beforeAjaxSuccess.tribeEvents",t.deinit)},t.init=function(e,o,n,i){t.initTheme(n),t.initTooltips(n),n.on("beforeAjaxSuccess.tribeEvents",{container:n},t.deinit)},t.ready=function(){o.on("afterSetup.tribeEvents",tribe.events.views.manager.selectors.container,t.init)},e(t.ready)}(jQuery,tribe.events.views.tooltip),window.tec=window.tec||{},window.tec.events=window.tec.events||{},window.tec.events.views=window.tec.events.views||{},window.tec.events.views.tooltip={};
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.eventsBar={},function(e,t){"use strict";const n=e(document);t.selectors={eventsBar:'[data-js="tribe-events-events-bar"]',searchButton:'[data-js="tribe-events-search-button"]',searchButtonActiveClass:".tribe-events-c-events-bar__search-button--active",searchContainer:'[data-js="tribe-events-search-container"]'},t.keyCode={END:35,HOME:36,LEFT:37,RIGHT:39},t.deinitAccordion=function(e,t){tribe.events.views.accordion.deinitAccordion(0,e),tribe.events.views.accordion.deinitAccordionA11yAttrs(e,t),t.css("display","")},t.initAccordion=function(e,t,n){tribe.events.views.accordion.initAccordion(e)(0,t),tribe.events.views.accordion.initAccordionA11yAttrs(t,n)},t.handleSearchButtonClick=function(e){e.data.target.toggleClass(t.selectors.searchButtonActiveClass.className())},t.deinitSearchAccordion=function(e){const n=e.find(t.selectors.searchButton);n.removeClass(t.selectors.searchButtonActiveClass.className());const i=e.find(t.selectors.searchContainer);t.deinitAccordion(n,i),n.off("click",t.handleSearchButtonClick)},t.initSearchAccordion=function(e){const n=e.find(t.selectors.searchButton),i=e.find(t.selectors.searchContainer);t.initAccordion(e,n,i),n.on("click",{target:n},t.handleSearchButtonClick)},t.initState=function(e){e.find(t.selectors.eventsBar).data("tribeEventsState",{mobileInitialized:!1,desktopInitialized:!1})},t.deinitEventsBar=function(e){t.deinitSearchAccordion(e)},t.initEventsBar=function(e){const n=e.find(t.selectors.eventsBar);if(n.length){const i=n.data("tribeEventsState"),s=e.data("tribeEventsState").isMobile;s&&!i.mobileInitialized?(t.initSearchAccordion(e),i.desktopInitialized=!1,i.mobileInitialized=!0,n.data("tribeEventsState",i)):s||i.desktopInitialized||(t.deinitSearchAccordion(e),i.mobileInitialized=!1,i.desktopInitialized=!0,n.data("tribeEventsState",i))}},t.handleResize=function(e){t.initEventsBar(e.data.container)},t.handleClick=function(n){const i=e(n.target),s=Boolean(i.closest(t.selectors.searchButton).length),o=Boolean(i.closest(t.selectors.searchContainer).length);if(!s&&!o){const e=n.data.container.find(t.selectors.eventsBar),i=e.find(t.selectors.searchButton);if(i.hasClass(t.selectors.searchButtonActiveClass.className())){const n=e.find(t.selectors.searchContainer);i.removeClass(t.selectors.searchButtonActiveClass.className()),tribe.events.views.accordion.closeAccordion(i,n)}}},t.unbindEvents=function(e){e.off("resize.tribeEvents",t.handleResize),n.off("click",t.handleClick)},t.bindEvents=function(e){e.on("resize.tribeEvents",{container:e},t.handleResize),n.on("click",{container:e},t.handleClick)},t.deinit=function(e,n,i){const s=e.data.container;t.deinitEventsBar(s),t.unbindEvents(s),s.off("beforeAjaxSuccess.tribeEvents",t.deinit)},t.init=function(e,n,i,s){i.find(t.selectors.eventsBar).length&&(t.initState(i),t.initEventsBar(i),t.bindEvents(i),i.on("beforeAjaxSuccess.tribeEvents",{container:i},t.deinit))},t.ready=function(){n.on("afterSetup.tribeEvents",tribe.events.views.manager.selectors.container,t.init)},e(t.ready),t.viewSelector={container:'[data-js="tribe-events-view-selector"]',button:'[data-js="tribe-events-view-selector-button"]',listContainer:'[data-js="tribe-events-view-selector-list-container"]',activeClass:"tribe-events-c-view-selector__button--active",ariaExpanded:"aria-expanded"},t.closeViewSelector=function(e){const n=e.find(t.viewSelector.button),i=e.find(t.viewSelector.listContainer);n.removeClass(t.viewSelector.activeClass),n.attr(t.viewSelector.ariaExpanded,"false"),i.hide().attr("aria-hidden","true")},t.openViewSelector=function(e){const n=e.find(t.viewSelector.button),i=e.find(t.viewSelector.listContainer);n.addClass(t.viewSelector.activeClass),n.attr(t.viewSelector.ariaExpanded,"true"),i.show().attr("aria-hidden","false")},t.initViewSelectorA11y=function(){const n=e(t.viewSelector.container);if(!n.length)return;const i=n.find(t.viewSelector.button),s=n.find(t.viewSelector.listContainer);n.on("keydown",(function(e){"Escape"!==e.key&&27!==e.keyCode||(t.closeViewSelector(n),i.focus())})),s.on("focusout",(function(e){setTimeout((function(){const e=document.activeElement;s[0].contains(e)||e===i[0]||t.closeViewSelector(n)}),10)})),s.on("keydown",(function(e){if("Tab"===e.key||9===e.keyCode){const i=s.find("a:visible"),o=i[0],c=i[i.length-1];e.shiftKey||document.activeElement!==c||t.closeViewSelector(n),e.shiftKey&&document.activeElement===o&&t.closeViewSelector(n)}}))},e(t.initViewSelectorA11y)}(jQuery,tribe.events.views.eventsBar),window.tec=window.tec||{},window.tec.events=window.tec.events||{},window.tec.events.views=window.tec.events.views||{},window.tec.events.views.eventsBar={};
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.eventsBarInputs={},function(e,n){"use strict";const t=e(document);n.selectors={input:'[data-js="tribe-events-events-bar-input-control-input"]',inputWrapper:'[data-js="tribe-events-events-bar-input-control"]'},n.handleInputChange=function(e){const n=e.data.target;e.data.wrapper.toggleClass(e.data.inputClassFocus,""!==n.val().trim())},n.unbindInputEvents=function(t){t.find(n.selectors.inputWrapper).each((function(t,s){const i=e(s).find(n.selectors.input);i.length&&i.off()}))},n.bindInputEvents=function(t){t.find(n.selectors.inputWrapper).each((function(t,s){const i=s.className.match(/tribe-events-c-search__input-control--[a-z]+/);if(!i)return;const r=i[0]+"-focus",a=e(s),c=a.find(n.selectors.input);c.length&&(a.toggleClass(r,""!==c.val().trim()),c.on("change",{target:c,wrapper:a,inputClassFocus:r},n.handleInputChange))}))},n.unbindEvents=function(e,t,s){const i=e.data.container;n.unbindInputEvents(i),i.off("beforeAjaxSuccess.tribeEvents",n.unbindEvents)},n.bindEvents=function(e,t,s,i){s.find(n.selectors.inputWrapper).length&&(n.bindInputEvents(s),s.on("beforeAjaxSuccess.tribeEvents",{container:s},n.unbindEvents))},n.ready=function(){t.on("afterSetup.tribeEvents",tribe.events.views.manager.selectors.container,n.bindEvents)},e(n.ready)}(jQuery,tribe.events.views.eventsBarInputs),window.tec=window.tec||{},window.tec.events=window.tec.events||{},window.tec.events.views=window.tec.events.views||{},window.tec.events.views.eventsBarInputs={};
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.datepicker={},function(e,t){"use strict";const a=e(document);t.selectors={datepickerFormClass:".tribe-events-c-top-bar__datepicker-form",datepickerContainer:'[data-js="tribe-events-top-bar-datepicker-container"]',datepickerDaysBody:".datepicker-days tbody",input:'[data-js="tribe-events-top-bar-date"]',button:'[data-js="tribe-events-top-bar-datepicker-button"]',buttonOpenClass:".tribe-events-c-top-bar__datepicker-button--open",dateInput:'[name="tribe-events-views[tribe-bar-date]"]',prevIconTemplate:".tribe-events-c-top-bar__datepicker-template-prev-icon",nextIconTemplate:".tribe-events-c-top-bar__datepicker-template-next-icon"},t.state={initialized:!1},t.options={container:null,daysOfWeekDisabled:[],maxViewMode:"decade",minViewMode:"month",orientation:"bottom left",showOnFocus:!1,templates:{leftArrow:"",rightArrow:""}},t.keyCode={ENTER:13},t.today=null,t.dateFormatMap={d:"dd",j:"d",m:"mm",n:"m",Y:"yyyy"},t.observer=null,t.padNumber=function(e){const t=e+"";return(t.length>1?"":"0")+t},t.request=function(e,t){const a={view_data:e};tribe.events.views.manager.request(a,t)},t.createDateInputObj=function(t){const a=e("<input>");return a.attr({type:"hidden",name:"tribe-events-views[tribe-bar-date]",value:t}),a},t.submitRequest=function(e,a){const n={};n["tribe-bar-date"]=a,t.request(n,e)},t.handleChangeDate=function(e){const a=e.data.container,n=e.date.getDate(),o=e.date.getMonth()+1,r=e.date.getFullYear(),i=t.padNumber(n),s=[r,t.padNumber(o),i].join("-");t.submitRequest(a,s)},t.handleChangeMonth=function(e){const a=e.data.container;let n,o;if(e.date)n=e.date.getMonth()+1,o=e.date.getFullYear();else{const e=a.find(t.selectors.input).bootstrapDatepicker("getDate");n=e.getMonth()+1,o=e.getFullYear()}const r=[o,t.padNumber(n)].join("-");t.submitRequest(a,r)},t.handleKeyDown=function(e){e.keyCode===t.keyCode.ENTER&&e.data.input.bootstrapDatepicker().trigger("changeMonth")},t.handleShow=function(e){e.data.datepickerButton.addClass(t.selectors.buttonOpenClass.className())},t.handleHide=function(e){const a=e.data.datepickerButton,n=a.data("tribeEventsState");e.data.observer.disconnect(),n.isTarget?e.data.input.bootstrapDatepicker("show"):a.removeClass(t.selectors.buttonOpenClass.className()).trigger("focus")},t.handleMousedown=function(e){const a=e.data.target,n=a.data("tribeEventsState");if("touchstart"===e.type){const e="hide"==(a.hasClass(t.selectors.buttonOpenClass.className())?"hide":"show");return n.isTarget=!1,void a.data("tribeTapHide",e).data("tribeEventsState",n).off("mousedown",t.handleMousedown)}n.isTarget=!0,a.data("tribeEventsState",n)},t.handleClick=function(e){const a=e.data.input,n=e.data.target,o=n.data("tribeEventsState"),r=n.hasClass(t.selectors.buttonOpenClass.className())?"hide":"show";n.data("tribeTapHide")||(o.isTarget=!1,n.data("tribeEventsState",o),a.bootstrapDatepicker(r),"show"===r&&a.trigger("focus"))},t.handleMutation=function(e){const a=e.container;return function(e,n){e.forEach((function(e){"childList"===e.type&&a.find(t.selectors.datepickerDaysBody).is(e.target)&&e.addedNodes.length&&a.trigger("handleMutationMonthChange.tribeEvents")}))}},t.setToday=function(e){let a=e;e.indexOf(" ")>=0&&(a=e.split(" ")[0]),t.today=new Date(a)},t.isSameAsToday=function(e,a){switch(a){case"year":return e.getFullYear()===t.today.getUTCFullYear();case"month":return t.isSameAsToday(e,"year")&&e.getMonth()===t.today.getUTCMonth();case"day":return t.isSameAsToday(e,"month")&&e.getDate()===t.today.getUTCDate();default:return!1}},t.isBeforeToday=function(e,a){switch(a){case"year":return e.getFullYear()<t.today.getUTCFullYear();case"month":return t.isBeforeToday(e,"year")||t.isSameAsToday(e,"year")&&e.getMonth()<t.today.getUTCMonth();case"day":return t.isBeforeToday(e,"month")||t.isSameAsToday(e,"month")&&e.getDate()<t.today.getUTCDate();default:return!1}},t.filterDayCells=function(e){return t.isBeforeToday(e,"day")?"past":t.isSameAsToday(e,"day")?"current":void 0},t.filterMonthCells=function(e){return t.isBeforeToday(e,"month")?"past":t.isSameAsToday(e,"month")?"current":void 0},t.filterYearCells=function(e){return t.isBeforeToday(e,"year")?"past":t.isSameAsToday(e,"year")?"current":void 0},t.convertDateFormat=function(e){let a=e;return Object.keys(t.dateFormatMap).forEach((function(e){a=a.replace(e,t.dateFormatMap[e])})),a},t.initDateFormat=function(e){const a=(e.date_formats||{}).compact,n=t.convertDateFormat(a);t.options.format=n},t.deinit=function(e,a,n){const o=e.data.container;o.trigger("beforeDatepickerDeinit.tribeEvents",[a,n]);const r=o.find(t.selectors.input),i=o.find(t.selectors.button);r.bootstrapDatepicker("destroy").off(),i.off(),o.off("beforeAjaxSuccess.tribeEvents",t.deinit),o.trigger("afterDatepickerDeinit.tribeEvents",[a,n])},t.init=function(e,a,n,o){n.trigger("beforeDatepickerInit.tribeEvents",[a,n,o]);const r=n.find(t.selectors.input),i=n.find(t.selectors.button),s=n.find(t.selectors.prevIconTemplate).html(),d=n.find(t.selectors.nextIconTemplate).html(),c=o.slug,l="month"===c,p=l?"changeMonth":"changeDate",u=l?t.handleChangeMonth:t.handleChangeDate;t.observer=new MutationObserver(t.handleMutation({container:n})),t.setToday(o.today),t.initDateFormat(o),t.options.weekStart=o.start_of_week,t.options.container=n.find(t.selectors.datepickerContainer),t.options.minViewMode=l?"year":"month";const b=(window.tribe_l10n_datatables||{}).datepicker||{},h=b.nextText||"Next",f=b.prevText||"Prev";t.options.templates.leftArrow=s+'<span class="tribe-common-a11y-visual-hide">'+f+"</span>",t.options.templates.rightArrow=d+'<span class="tribe-common-a11y-visual-hide">'+h+"</span>",t.options.beforeShowDay=t.filterDayCells,t.options.beforeShowMonth=t.filterMonthCells,t.options.beforeShowYear=t.filterYearCells,document.dir&&"rtl"===document.dir&&(t.options.rtl=!0),document.lang&&(t.options.language=document.lang),r.bootstrapDatepicker(t.options).on(p,{container:n},u).on("show",{datepickerButton:i},t.handleShow).on("hide",{datepickerButton:i,input:r,observer:t.observer},t.handleHide),l&&r.bootstrapDatepicker().on("keydown",{input:r},t.handleKeyDown),i.on("touchstart mousedown",{target:i},t.handleMousedown).on("click",{target:i,input:r},t.handleClick).data("tribeEventsState",{isTarget:!1}),n.on("beforeAjaxSuccess.tribeEvents",{container:n,viewSlug:c},t.deinit),n.trigger("afterDatepickerInit.tribeEvents",[a,n,o])},t.initDatepickerI18n=function(){const t=(window.tribe_l10n_datatables||{}).datepicker||{};t.dayNames&&(e.fn.bootstrapDatepicker.dates.en.days=t.dayNames),t.dayNamesShort&&(e.fn.bootstrapDatepicker.dates.en.daysShort=t.dayNamesShort),t.dayNamesMin&&(e.fn.bootstrapDatepicker.dates.en.daysMin=t.dayNamesMin),t.monthNames&&(e.fn.bootstrapDatepicker.dates.en.months=t.monthNames),t.monthNamesMin&&(e.fn.bootstrapDatepicker.dates.en.monthsShort=t.monthNamesMin),t.today&&(e.fn.bootstrapDatepicker.dates.en.today=t.today),t.clear&&(e.fn.bootstrapDatepicker.dates.en.clear=t.clear)},t.initDatepicker=function(){t.initDatepickerI18n(),t.state.initialized=!0},t.ready=function(){t.initDatepicker(),t.state.initialized&&a.on("afterSetup.tribeEvents",tribe.events.views.manager.selectors.container,t.init)},e(t.ready)}(jQuery,tribe.events.views.datepicker),window.tec=window.tec||{},window.tec.events=window.tec.events||{},window.tec.events.views=window.tec.events.views||{},window.tec.events.views.datepicker={};
!function(){const o=window.navigator.userAgent;Object.entries({android:/android/i,iphone:/iPhone/i,ipad:/iPad/i}).forEach((([n,i])=>{o.match(i)&&document.body.classList.add(`tec-is-${n}`)}))}(),window.tec=window.tec||{},window.tec.common=window.tec.common||{},window.tec.common.userAgent={};
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";var t,e,i,n,W,C,o,s,r,l,a,h,u;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function L(t,e){return parseInt(x.css(t,e),10)||0}function N(t){return null!=t&&t===t.window}x.ui=x.ui||{},x.ui.version="1.13.3",
x.extend(x.expr.pseudos,{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}),
x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),
x.ui.focusable=function(t,e){var i,n,o,s=t.nodeName.toLowerCase();return"area"===s?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+o+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(n=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===s&&t.href||e,n&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(x(t)))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)},
x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),
x.expr.pseudos||(x.expr.pseudos=x.expr[":"]),x.uniqueSort||(x.uniqueSort=x.unique),x.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,i=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},x.escapeSelector=function(t){return(t+"").replace(e,i)}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}),
x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},
x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o<s.length;o++)t.options[s[o][0]]&&s[o][1].apply(t.element,i)}},
W=Math.max,C=Math.abs,o=/left|center|right/,s=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,a=/%$/,h=x.fn.position,x.position={scrollbarWidth:function(){var t,e,i;return void 0!==n?n:(i=(e=x("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=N(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:!i&&!n?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(f){var c,d,p,g,m,v,y,w,b,_,t,e;return f&&f.of?(v="string"==typeof(f=x.extend({},f)).of?x(document).find(f.of):x(f.of),y=x.position.getWithinInfo(f.within),w=x.position.getScrollInfo(y),b=(f.collision||"flip").split(" "),_={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:N(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},v[0].preventDefault&&(f.at="left top"),d=e.width,p=e.height,m=x.extend({},g=e.offset),x.each(["my","at"],function(){var t,e,i=(f[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):s.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=s.test(i[1])?i[1]:"center",t=r.exec(i[0]),e=r.exec(i[1]),_[this]=[t?t[0]:0,e?e[0]:0],f[this]=[l.exec(i[0])[0],l.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===f.at[0]?m.left+=d:"center"===f.at[0]&&(m.left+=d/2),"bottom"===f.at[1]?m.top+=p:"center"===f.at[1]&&(m.top+=p/2),c=E(_.at,d,p),m.left+=c[0],m.top+=c[1],this.each(function(){var i,t,r=x(this),l=r.outerWidth(),a=r.outerHeight(),e=L(this,"marginLeft"),n=L(this,"marginTop"),o=l+e+L(this,"marginRight")+w.width,s=a+n+L(this,"marginBottom")+w.height,h=x.extend({},m),u=E(_.my,r.outerWidth(),r.outerHeight());"right"===f.my[0]?h.left-=l:"center"===f.my[0]&&(h.left-=l/2),"bottom"===f.my[1]?h.top-=a:"center"===f.my[1]&&(h.top-=a/2),h.left+=u[0],h.top+=u[1],i={marginLeft:e,marginTop:n},x.each(["left","top"],function(t,e){x.ui.position[b[t]]&&x.ui.position[b[t]][e](h,{targetWidth:d,targetHeight:p,elemWidth:l,elemHeight:a,collisionPosition:i,collisionWidth:o,collisionHeight:s,offset:[c[0]+u[0],c[1]+u[1]],my:f.my,at:f.at,within:y,elem:r})}),f.using&&(t=function(t){var e=g.left-h.left,i=e+d-l,n=g.top-h.top,o=n+p-a,s={target:{element:v,left:g.left,top:g.top,width:d,height:p},element:{element:r,left:h.left,top:h.top,width:l,height:a},horizontal:i<0?"left":0<e?"right":"center",vertical:o<0?"top":0<n?"bottom":"middle"};d<l&&C(e+i)<d&&(s.horizontal="center"),p<a&&C(n+o)<p&&(s.vertical="middle"),W(C(e),C(i))>W(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):h.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;n<e.collisionWidth?0<r&&l<=0?(i=t.left+r+e.collisionWidth-n-o,t.left+=r-i):t.left=!(0<l&&r<=0)&&l<r?o+n-e.collisionWidth:o:0<r?t.left+=r:0<l?t.left-=l:t.left=W(t.left-s,t.left)},top:function(t,e){var i,n=e.within,n=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,s=t.top-e.collisionPosition.marginTop,r=n-s,l=s+e.collisionHeight-o-n;o<e.collisionHeight?0<r&&l<=0?(i=t.top+r+e.collisionHeight-o-n,t.top+=r-i):t.top=!(0<l&&r<=0)&&l<r?n+o-e.collisionHeight:n:0<r?t.top+=r:0<l?t.top-=l:t.top=W(t.top-s,t.top)}},flip:{left:function(t,e){var i=e.within,n=i.offset.left+i.scrollLeft,o=i.width,i=i.isWindow?i.scrollLeft:i.offset.left,s=t.left-e.collisionPosition.marginLeft,r=s-i,s=s+e.collisionWidth-o-i,l="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,a="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];r<0?((o=t.left+l+a+h+e.collisionWidth-o-n)<0||o<C(r))&&(t.left+=l+a+h):0<s&&(0<(n=t.left-e.collisionPosition.marginLeft+l+a+h-i)||C(n)<s)&&(t.left+=l+a+h)},top:function(t,e){var i=e.within,n=i.offset.top+i.scrollTop,o=i.height,i=i.isWindow?i.scrollTop:i.offset.top,s=t.top-e.collisionPosition.marginTop,r=s-i,s=s+e.collisionHeight-o-i,l="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,a="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];r<0?((o=t.top+l+a+h+e.collisionHeight-o-n)<0||o<C(r))&&(t.top+=l+a+h):0<s&&(0<(n=t.top-e.collisionPosition.marginTop+l+a+h-i)||C(n)<s)&&(t.top+=l+a+h)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}},x.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=(i=i||e.body).nodeName?i:e.body},x.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&x(t).trigger("blur")},
x.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)},
x.extend(x.expr.pseudos,{tabbable:function(t){var e=x.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&x.ui.focusable(t,i)}}),
x.fn.extend({uniqueId:(u=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++u)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}});
var f,c=0,d=Array.prototype.hasOwnProperty,p=Array.prototype.slice;x.cleanData=(f=x.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove");f(t)}),x.widget=function(t,i,e){var n,o,s,r={},l=t.split(".")[0],a=l+"-"+(t=t.split(".")[1]);return e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[a.toLowerCase()]=function(t){return!!x.data(t,a)},x[l]=x[l]||{},n=x[l][t],o=x[l][t]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},x.extend(o,n,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(s=new i).options=x.widget.extend({},s.options),x.each(e,function(e,n){function o(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}r[e]="function"!=typeof n?n:function(){var t,e=this._super,i=this._superApply;return this._super=o,this._superApply=s,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}}),o.prototype=x.widget.extend(s,{widgetEventPrefix:n&&s.widgetEventPrefix||t},r,{constructor:o,namespace:l,widgetName:t,widgetFullName:a}),n?(x.each(n._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete n._childConstructors):i._childConstructors.push(o),x.widget.bridge(t,o),o},x.widget.extend=function(t){for(var e,i,n=p.call(arguments,1),o=0,s=n.length;o<s;o++)for(e in n[o])i=n[o][e],d.call(n[o],e)&&void 0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(s,e){var r=e.prototype.widgetFullName||s;x.fn[s]=function(i){var t="string"==typeof i,n=p.call(arguments,1),o=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,r);return"instance"===i?(o=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?x.error("no such method '"+i+"' for "+s+" widget instance"):(t=e[i].apply(e,n))!==e&&void 0!==t?(o=t&&t.jquery?o.pushStack(t.get()):t,!1):void 0:x.error("cannot call methods on "+s+" prior to initialization; attempted to call method '"+i+"'")}):o=void 0:(n.length&&(i=x.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=x.data(this,r);t?(t.option(i||{}),t._init&&t._init()):x.data(this,r,new e(i,this))})),o}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)n[i[o]]=n[i[o]]||{},n=n[i[o]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=e}return this._setOptions(s),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=x(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){var s=[],r=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=r.classesElementLookup[t[n]]||x(),i=o.add?(function(){var i=[];o.element.each(function(t,e){x.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on(x(i),{remove:"_untrackClassesElement"})}(),x(x.uniqueSort(i.get().concat(o.element.get())))):x(i.not(o.element).get()),r.classesElementLookup[t[n]]=i,s.push(t[n]),e&&o.classes[t[n]]&&s.push(o.classes[t[n]])}return(o=x.extend({element:this.element,classes:this.options.classes||{}},o)).keys&&t(o.keys.match(/\S+/g)||[],!0),o.extra&&t(o.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(i){var n=this;x.each(n.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(n.classesElementLookup[t]=x(e.not(i.target).get()))}),this._off(x(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var o="string"==typeof t||null===t,e={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n="boolean"==typeof n?n:i};return e.element.toggleClass(this._classes(e),n),this},_on:function(o,s,t){var r,l=this;"boolean"!=typeof o&&(t=s,s=o,o=!1),t?(s=r=x(s),this.bindings=this.bindings.add(s)):(t=s,s=this.element,r=this.widget()),x.each(t,function(t,e){function i(){if(o||!0!==l.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?l[e]:e).apply(l,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),n=t[1]+l.eventNamespace,t=t[2];t?r.on(n,t,i):s.on(n,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,o,s=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],o=e.originalEvent)for(n in o)n in e||(e[n]=o[n]);return this.element.trigger(e,i),!("function"==typeof s&&!1===s.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(s,r){x.Widget.prototype["_"+s]=function(e,t,i){var n,o=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:s;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),n=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&x.effects&&x.effects.effect[o]?e[s](t):o!==s&&e[o]?e[o](t.duration,t.easing,i):e.queue(function(t){x(this)[s](),i&&i.call(e[0]),t()})}})});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../ie","../version","../widget"],e):e(jQuery)}(function(o){"use strict";var n=!1;return o(document).on("mouseup",function(){n=!1}),o.widget("ui.mouse",{version:"1.13.3",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(e){if(!0===o.data(e.target,t.widgetName+".preventClickEvent"))return o.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){var t,i,s;if(!n)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),i=1===(this._mouseDownEvent=e).which,s=!("string"!=typeof(t=this).options.cancel||!e.target.nodeName)&&o(e.target).closest(this.options.cancel).length,i&&!s&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?e.preventDefault():(!0===o.data(e.target,this.widgetName+".preventClickEvent")&&o.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),n=!0)),!0},_mouseMove:function(e){if(this._mouseMoved){if(o.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&o.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,n=!1,e.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})});
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../data","../plugin","../safe-active-element","../safe-blur","../scroll-parent","../version","../widget"],t):t(jQuery)}(function(P){"use strict";return P.widget("ui.draggable",P.ui.mouse,{version:"1.13.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var e=this.options;return!(this.helper||e.disabled||0<P(t.target).closest(".ui-resizable-handle").length||(this.handle=this._getHandle(t),!this.handle)||(this._blurActiveElement(t),this._blockFrames(!0===e.iframeFix?"iframe":e.iframeFix),0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=P(this);return P("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var e=P.ui.safeActiveElement(this.document[0]);P(t.target).closest(e).length||P.ui.safeBlur(e)},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),P.ui.ddmanager&&(P.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===P(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),P.ui.ddmanager&&!e.dropBehaviour&&P.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),P.ui.ddmanager&&P.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(t,e){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!e){e=this._uiHash();if(!1===this._trigger("drag",t,e))return this._mouseUp(new P.Event("mouseup",t)),!1;this.position=e.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",P.ui.ddmanager&&P.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,s=!1;return P.ui.ddmanager&&!this.options.dropBehaviour&&(s=P.ui.ddmanager.drop(this,t)),this.dropped&&(s=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,s)?P(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==e._trigger("stop",t)&&e._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),P.ui.ddmanager&&P.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),P.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new P.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!P(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var e=this.options,s="function"==typeof e.helper,t=s?P(e.helper.apply(this.element[0],[t])):"clone"===e.helper?this.element.clone().removeAttr("id"):this.element;return t.parents("body").length||t.appendTo("parent"===e.appendTo?this.element[0].parentNode:e.appendTo),s&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),e=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==e&&P.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t,e;return"relative"!==this.cssPosition?{top:0,left:0}:(t=this.element.position(),e=this._isRootNode(this.scrollParent[0]),{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())})},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e=this.options,s=this.document[0];this.relativeContainer=null,e.containment?"window"===e.containment?this.containment=[P(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,P(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,P(window).scrollLeft()+P(window).width()-this.helperProportions.width-this.margins.left,P(window).scrollTop()+(P(window).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:"document"===e.containment?this.containment=[0,0,P(s).width()-this.helperProportions.width-this.margins.left,(P(s).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:e.containment.constructor===Array?this.containment=e.containment:("parent"===e.containment&&(e.containment=this.helper[0].parentNode),(e=(s=P(e.containment))[0])&&(t=/(scroll|auto)/.test(s.css("overflow")),this.containment=[(parseInt(s.css("borderLeftWidth"),10)||0)+(parseInt(s.css("paddingLeft"),10)||0),(parseInt(s.css("borderTopWidth"),10)||0)+(parseInt(s.css("paddingTop"),10)||0),(t?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(s.css("borderRightWidth"),10)||0)-(parseInt(s.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(s.css("borderBottomWidth"),10)||0)-(parseInt(s.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=s)):this.containment=null},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,s=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top)*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)*t}},_generatePosition:function(t,e){var s,i=this.options,o=this._isRootNode(this.scrollParent[0]),n=t.pageX,r=t.pageY;return o&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),{top:(r=e&&(this.containment&&(s=this.relativeContainer?(e=this.relativeContainer.offset(),[this.containment[0]+e.left,this.containment[1]+e.top,this.containment[2]+e.left,this.containment[3]+e.top]):this.containment,t.pageX-this.offset.click.left<s[0]&&(n=s[0]+this.offset.click.left),t.pageY-this.offset.click.top<s[1]&&(r=s[1]+this.offset.click.top),t.pageX-this.offset.click.left>s[2]&&(n=s[2]+this.offset.click.left),t.pageY-this.offset.click.top>s[3])&&(r=s[3]+this.offset.click.top),i.grid&&(e=i.grid[1]?this.originalPageY+Math.round((r-this.originalPageY)/i.grid[1])*i.grid[1]:this.originalPageY,r=!s||e-this.offset.click.top>=s[1]||e-this.offset.click.top>s[3]?e:e-this.offset.click.top>=s[1]?e-i.grid[1]:e+i.grid[1],t=i.grid[0]?this.originalPageX+Math.round((n-this.originalPageX)/i.grid[0])*i.grid[0]:this.originalPageX,n=!s||t-this.offset.click.left>=s[0]||t-this.offset.click.left>s[2]?t:t-this.offset.click.left>=s[0]?t-i.grid[0]:t+i.grid[0]),"y"===i.axis&&(n=this.originalPageX),"x"===i.axis)?this.originalPageY:r)-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top),left:n-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:o?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,e,s){return s=s||this._uiHash(),P.ui.plugin.call(this,t,[e,s,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),s.offset=this.positionAbs),P.Widget.prototype._trigger.call(this,t,e,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),P.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,s){var i=P.extend({},t,{item:s.element});s.sortables=[],P(s.options.connectToSortable).each(function(){var t=P(this).sortable("instance");t&&!t.options.disabled&&(s.sortables.push(t),t.refreshPositions(),t._trigger("activate",e,i))})},stop:function(e,t,s){var i=P.extend({},t,{item:s.element});s.cancelHelperRemoval=!1,P.each(s.sortables,function(){var t=this;t.isOver?(t.isOver=0,s.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,i))})},drag:function(s,i,o){P.each(o.sortables,function(){var t=!1,e=this;e.positionAbs=o.positionAbs,e.helperProportions=o.helperProportions,e.offset.click=o.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,P.each(o.sortables,function(){return this.positionAbs=o.positionAbs,this.helperProportions=o.helperProportions,this.offset.click=o.offset.click,t=this!==e&&this._intersectsWith(this.containerCache)&&P.contains(e.element[0],this.element[0])?!1:t})),t?(e.isOver||(e.isOver=1,o._parent=i.helper.parent(),e.currentItem=i.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return i.helper[0]},s.target=e.currentItem[0],e._mouseCapture(s,!0),e._mouseStart(s,!0,!0),e.offset.click.top=o.offset.click.top,e.offset.click.left=o.offset.click.left,e.offset.parent.left-=o.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=o.offset.parent.top-e.offset.parent.top,o._trigger("toSortable",s),o.dropped=e.element,P.each(o.sortables,function(){this.refreshPositions()}),o.currentItem=o.element,e.fromOutside=o),e.currentItem&&(e._mouseDrag(s),i.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",s,e._uiHash(e)),e._mouseStop(s,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),i.helper.appendTo(o._parent),o._refreshOffsets(s),i.position=o._generatePosition(s,!0),o._trigger("fromSortable",s),o.dropped=!1,P.each(o.sortables,function(){this.refreshPositions()}))})}}),P.ui.plugin.add("draggable","cursor",{start:function(t,e,s){var i=P("body"),s=s.options;i.css("cursor")&&(s._cursor=i.css("cursor")),i.css("cursor",s.cursor)},stop:function(t,e,s){s=s.options;s._cursor&&P("body").css("cursor",s._cursor)}}),P.ui.plugin.add("draggable","opacity",{start:function(t,e,s){e=P(e.helper),s=s.options;e.css("opacity")&&(s._opacity=e.css("opacity")),e.css("opacity",s.opacity)},stop:function(t,e,s){s=s.options;s._opacity&&P(e.helper).css("opacity",s._opacity)}}),P.ui.plugin.add("draggable","scroll",{start:function(t,e,s){s.scrollParentNotHidden||(s.scrollParentNotHidden=s.helper.scrollParent(!1)),s.scrollParentNotHidden[0]!==s.document[0]&&"HTML"!==s.scrollParentNotHidden[0].tagName&&(s.overflowOffset=s.scrollParentNotHidden.offset())},drag:function(t,e,s){var i=s.options,o=!1,n=s.scrollParentNotHidden[0],r=s.document[0];n!==r&&"HTML"!==n.tagName?(i.axis&&"x"===i.axis||(s.overflowOffset.top+n.offsetHeight-t.pageY<i.scrollSensitivity?n.scrollTop=o=n.scrollTop+i.scrollSpeed:t.pageY-s.overflowOffset.top<i.scrollSensitivity&&(n.scrollTop=o=n.scrollTop-i.scrollSpeed)),i.axis&&"y"===i.axis||(s.overflowOffset.left+n.offsetWidth-t.pageX<i.scrollSensitivity?n.scrollLeft=o=n.scrollLeft+i.scrollSpeed:t.pageX-s.overflowOffset.left<i.scrollSensitivity&&(n.scrollLeft=o=n.scrollLeft-i.scrollSpeed))):(i.axis&&"x"===i.axis||(t.pageY-P(r).scrollTop()<i.scrollSensitivity?o=P(r).scrollTop(P(r).scrollTop()-i.scrollSpeed):P(window).height()-(t.pageY-P(r).scrollTop())<i.scrollSensitivity&&(o=P(r).scrollTop(P(r).scrollTop()+i.scrollSpeed))),i.axis&&"y"===i.axis||(t.pageX-P(r).scrollLeft()<i.scrollSensitivity?o=P(r).scrollLeft(P(r).scrollLeft()-i.scrollSpeed):P(window).width()-(t.pageX-P(r).scrollLeft())<i.scrollSensitivity&&(o=P(r).scrollLeft(P(r).scrollLeft()+i.scrollSpeed)))),!1!==o&&P.ui.ddmanager&&!i.dropBehaviour&&P.ui.ddmanager.prepareOffsets(s,t)}}),P.ui.plugin.add("draggable","snap",{start:function(t,e,s){var i=s.options;s.snapElements=[],P(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var t=P(this),e=t.offset();this!==s.element[0]&&s.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:e.top,left:e.left})})},drag:function(t,e,s){for(var i,o,n,r,l,a,h,p,c,f=s.options,d=f.snapTolerance,g=e.offset.left,u=g+s.helperProportions.width,m=e.offset.top,v=m+s.helperProportions.height,_=s.snapElements.length-1;0<=_;_--)a=(l=s.snapElements[_].left-s.margins.left)+s.snapElements[_].width,p=(h=s.snapElements[_].top-s.margins.top)+s.snapElements[_].height,u<l-d||a+d<g||v<h-d||p+d<m||!P.contains(s.snapElements[_].item.ownerDocument,s.snapElements[_].item)?(s.snapElements[_].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,t,P.extend(s._uiHash(),{snapItem:s.snapElements[_].item})),s.snapElements[_].snapping=!1):("inner"!==f.snapMode&&(i=Math.abs(h-v)<=d,o=Math.abs(p-m)<=d,n=Math.abs(l-u)<=d,r=Math.abs(a-g)<=d,i&&(e.position.top=s._convertPositionTo("relative",{top:h-s.helperProportions.height,left:0}).top),o&&(e.position.top=s._convertPositionTo("relative",{top:p,left:0}).top),n&&(e.position.left=s._convertPositionTo("relative",{top:0,left:l-s.helperProportions.width}).left),r)&&(e.position.left=s._convertPositionTo("relative",{top:0,left:a}).left),c=i||o||n||r,"outer"!==f.snapMode&&(i=Math.abs(h-m)<=d,o=Math.abs(p-v)<=d,n=Math.abs(l-g)<=d,r=Math.abs(a-u)<=d,i&&(e.position.top=s._convertPositionTo("relative",{top:h,left:0}).top),o&&(e.position.top=s._convertPositionTo("relative",{top:p-s.helperProportions.height,left:0}).top),n&&(e.position.left=s._convertPositionTo("relative",{top:0,left:l}).left),r)&&(e.position.left=s._convertPositionTo("relative",{top:0,left:a-s.helperProportions.width}).left),!s.snapElements[_].snapping&&(i||o||n||r||c)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,t,P.extend(s._uiHash(),{snapItem:s.snapElements[_].item})),s.snapElements[_].snapping=i||o||n||r||c)}}),P.ui.plugin.add("draggable","stack",{start:function(t,e,s){var i,s=s.options,s=P.makeArray(P(s.stack)).sort(function(t,e){return(parseInt(P(t).css("zIndex"),10)||0)-(parseInt(P(e).css("zIndex"),10)||0)});s.length&&(i=parseInt(P(s[0]).css("zIndex"),10)||0,P(s).each(function(t){P(this).css("zIndex",i+t)}),this.css("zIndex",i+s.length))}}),P.ui.plugin.add("draggable","zIndex",{start:function(t,e,s){e=P(e.helper),s=s.options;e.css("zIndex")&&(s._zIndex=e.css("zIndex")),e.css("zIndex",s.zIndex)},stop:function(t,e,s){s=s.options;s._zIndex&&P(e.helper).css("zIndex",s._zIndex)}}),P.ui.draggable});
!function(a){return"function"==typeof define&&define.amd?define(["jquery"],function(b){return a(b,window,document)}):a(jQuery,window,document)}(function(a,b,c){"use strict";var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H;z={paneClass:"nano-pane",sliderClass:"nano-slider",contentClass:"nano-content",iOSNativeScrolling:!1,preventPageScrolling:!1,disableResize:!1,alwaysVisible:!1,flashDelay:1500,sliderMinHeight:20,sliderMaxHeight:null,documentContext:null,windowContext:null},u="scrollbar",t="scroll",l="mousedown",m="mouseenter",n="mousemove",p="mousewheel",o="mouseup",s="resize",h="drag",i="enter",w="up",r="panedown",f="DOMMouseScroll",g="down",x="wheel",j="keydown",k="keyup",v="touchmove",d="Microsoft Internet Explorer"===b.navigator.appName&&/msie 7./i.test(b.navigator.appVersion)&&b.ActiveXObject,e=null,D=b.requestAnimationFrame,y=b.cancelAnimationFrame,F=c.createElement("div").style,H=function(){var a,b,c,d,e,f;for(d=["t","webkitT","MozT","msT","OT"],a=e=0,f=d.length;f>e;a=++e)if(c=d[a],b=d[a]+"ransform",b in F)return d[a].substr(0,d[a].length-1);return!1}(),G=function(a){return H===!1?!1:""===H?a:H+a.charAt(0).toUpperCase()+a.substr(1)},E=G("transform"),B=E!==!1,A=function(){var a,b,d;return a=c.createElement("div"),b=a.style,b.position="absolute",b.width="100px",b.height="100px",b.overflow=t,b.top="-9999px",c.body.appendChild(a),d=a.offsetWidth-a.clientWidth,c.body.removeChild(a),d},C=function(){var a,c,d;return c=b.navigator.userAgent,(a=/(?=.+Mac OS X)(?=.+Firefox)/.test(c))?(d=/Firefox\/\d{2}\./.exec(c),d&&(d=d[0].replace(/\D+/g,"")),a&&+d>23):!1},q=function(){function j(d,f){this.el=d,this.options=f,e||(e=A()),this.$el=a(this.el),this.doc=a(this.options.documentContext||c),this.win=a(this.options.windowContext||b),this.body=this.doc.find("body"),this.$content=this.$el.children("."+f.contentClass),this.$content.attr("tabindex",this.options.tabIndex||0),this.content=this.$content[0],this.previousPosition=0,this.options.iOSNativeScrolling&&null!=this.el.style.WebkitOverflowScrolling?this.nativeScrolling():this.generate(),this.createEvents(),this.addEvents(),this.reset()}return j.prototype.preventScrolling=function(a,b){if(this.isActive)if(a.type===f)(b===g&&a.originalEvent.detail>0||b===w&&a.originalEvent.detail<0)&&a.preventDefault();else if(a.type===p){if(!a.originalEvent||!a.originalEvent.wheelDelta)return;(b===g&&a.originalEvent.wheelDelta<0||b===w&&a.originalEvent.wheelDelta>0)&&a.preventDefault()}},j.prototype.nativeScrolling=function(){this.$content.css({WebkitOverflowScrolling:"touch"}),this.iOSNativeScrolling=!0,this.isActive=!0},j.prototype.updateScrollValues=function(){var a,b;a=this.content,this.maxScrollTop=a.scrollHeight-a.clientHeight,this.prevScrollTop=this.contentScrollTop||0,this.contentScrollTop=a.scrollTop,b=this.contentScrollTop>this.previousPosition?"down":this.contentScrollTop<this.previousPosition?"up":"same",this.previousPosition=this.contentScrollTop,"same"!==b&&this.$el.trigger("update",{position:this.contentScrollTop,maximum:this.maxScrollTop,direction:b}),this.iOSNativeScrolling||(this.maxSliderTop=this.paneHeight-this.sliderHeight,this.sliderTop=0===this.maxScrollTop?0:this.contentScrollTop*this.maxSliderTop/this.maxScrollTop)},j.prototype.setOnScrollStyles=function(){var a;B?(a={},a[E]="translate(0, "+this.sliderTop+"px)"):a={top:this.sliderTop},D?(y&&this.scrollRAF&&y(this.scrollRAF),this.scrollRAF=D(function(b){return function(){return b.scrollRAF=null,b.slider.css(a)}}(this))):this.slider.css(a)},j.prototype.createEvents=function(){this.events={down:function(a){return function(b){return a.isBeingDragged=!0,a.offsetY=b.pageY-a.slider.offset().top,a.slider.is(b.target)||(a.offsetY=0),a.pane.addClass("active"),a.doc.bind(n,a.events[h]).bind(o,a.events[w]),a.body.bind(m,a.events[i]),!1}}(this),drag:function(a){return function(b){return a.sliderY=b.pageY-a.$el.offset().top-a.paneTop-(a.offsetY||.5*a.sliderHeight),a.scroll(),a.contentScrollTop>=a.maxScrollTop&&a.prevScrollTop!==a.maxScrollTop?a.$el.trigger("scrollend"):0===a.contentScrollTop&&0!==a.prevScrollTop&&a.$el.trigger("scrolltop"),!1}}(this),up:function(a){return function(){return a.isBeingDragged=!1,a.pane.removeClass("active"),a.doc.unbind(n,a.events[h]).unbind(o,a.events[w]),a.body.unbind(m,a.events[i]),!1}}(this),resize:function(a){return function(){a.reset()}}(this),panedown:function(a){return function(b){return a.sliderY=(b.offsetY||b.originalEvent.layerY)-.5*a.sliderHeight,a.scroll(),a.events.down(b),!1}}(this),scroll:function(a){return function(b){a.updateScrollValues(),a.isBeingDragged||(a.iOSNativeScrolling||(a.sliderY=a.sliderTop,a.setOnScrollStyles()),null!=b&&(a.contentScrollTop>=a.maxScrollTop?(a.options.preventPageScrolling&&a.preventScrolling(b,g),a.prevScrollTop!==a.maxScrollTop&&a.$el.trigger("scrollend")):0===a.contentScrollTop&&(a.options.preventPageScrolling&&a.preventScrolling(b,w),0!==a.prevScrollTop&&a.$el.trigger("scrolltop"))))}}(this),wheel:function(a){return function(b){var c;if(null!=b)return c=b.delta||b.wheelDelta||b.originalEvent&&b.originalEvent.wheelDelta||-b.detail||b.originalEvent&&-b.originalEvent.detail,c&&(a.sliderY+=-c/3),a.scroll(),!1}}(this),enter:function(a){return function(b){var c;if(a.isBeingDragged)return 1!==(b.buttons||b.which)?(c=a.events)[w].apply(c,arguments):void 0}}(this)}},j.prototype.addEvents=function(){var a;this.removeEvents(),a=this.events,this.options.disableResize||this.win.bind(s,a[s]),this.iOSNativeScrolling||(this.slider.bind(l,a[g]),this.pane.bind(l,a[r]).bind(""+p+" "+f,a[x])),this.$content.bind(""+t+" "+p+" "+f+" "+v,a[t])},j.prototype.removeEvents=function(){var a;a=this.events,this.win.unbind(s,a[s]),this.iOSNativeScrolling||(this.slider.unbind(),this.pane.unbind()),this.$content.unbind(""+t+" "+p+" "+f+" "+v,a[t])},j.prototype.generate=function(){var a,c,d,f,g,h,i;return f=this.options,h=f.paneClass,i=f.sliderClass,a=f.contentClass,(g=this.$el.children("."+h)).length||g.children("."+i).length||this.$el.append('<div class="'+h+'"><div class="'+i+'" /></div>'),this.pane=this.$el.children("."+h),this.slider=this.pane.find("."+i),0===e&&C()?(d=b.getComputedStyle(this.content,null).getPropertyValue("padding-right").replace(/[^0-9.]+/g,""),c={right:-14,paddingRight:+d+14}):e&&(c={right:-e},this.$el.addClass("has-scrollbar")),null!=c&&this.$content.css(c),this},j.prototype.restore=function(){this.stopped=!1,this.iOSNativeScrolling||this.pane.show(),this.addEvents()},j.prototype.reset=function(){var a,b,c,f,g,h,i,j,k,l,m,n;return this.iOSNativeScrolling?void(this.contentHeight=this.content.scrollHeight):(this.$el.find("."+this.options.paneClass).length||this.generate().stop(),this.stopped&&this.restore(),a=this.content,f=a.style,g=f.overflowY,d&&this.$content.css({height:this.$content.height()}),b=a.scrollHeight+e,l=parseInt(this.$el.css("max-height"),10),l>0&&(this.$el.height(""),this.$el.height(a.scrollHeight>l?l:a.scrollHeight)),i=this.pane.outerHeight(!1),k=parseInt(this.pane.css("top"),10),h=parseInt(this.pane.css("bottom"),10),j=i+k+h,n=Math.round(j/b*j),n<this.options.sliderMinHeight?n=this.options.sliderMinHeight:null!=this.options.sliderMaxHeight&&n>this.options.sliderMaxHeight&&(n=this.options.sliderMaxHeight),g===t&&f.overflowX!==t&&(n+=e),this.maxSliderTop=j-n,this.contentHeight=b,this.paneHeight=i,this.paneOuterHeight=j,this.sliderHeight=n,this.paneTop=k,this.slider.height(n),this.events.scroll(),this.pane.show(),this.isActive=!0,a.scrollHeight===a.clientHeight||this.pane.outerHeight(!0)>=a.scrollHeight&&g!==t?(this.pane.hide(),this.isActive=!1):this.el.clientHeight===a.scrollHeight&&g===t?this.slider.hide():this.slider.show(),this.pane.css({opacity:this.options.alwaysVisible?1:"",visibility:this.options.alwaysVisible?"visible":""}),c=this.$content.css("position"),("static"===c||"relative"===c)&&(m=parseInt(this.$content.css("right"),10),m&&this.$content.css({right:"",marginRight:m})),this)},j.prototype.scroll=function(){return this.isActive?(this.sliderY=Math.max(0,this.sliderY),this.sliderY=Math.min(this.maxSliderTop,this.sliderY),this.$content.scrollTop(this.maxScrollTop*this.sliderY/this.maxSliderTop),this.iOSNativeScrolling||(this.updateScrollValues(),this.setOnScrollStyles()),this):void 0},j.prototype.scrollBottom=function(a){return this.isActive?(this.$content.scrollTop(this.contentHeight-this.$content.height()-a).trigger(p),this.stop().restore(),this):void 0},j.prototype.scrollTop=function(a){return this.isActive?(this.$content.scrollTop(+a).trigger(p),this.stop().restore(),this):void 0},j.prototype.scrollTo=function(a){return this.isActive?(this.scrollTop(this.$el.find(a).get(0).offsetTop),this):void 0},j.prototype.stop=function(){return y&&this.scrollRAF&&(y(this.scrollRAF),this.scrollRAF=null),this.stopped=!0,this.removeEvents(),this.iOSNativeScrolling||this.pane.hide(),this},j.prototype.destroy=function(){return this.stopped||this.stop(),!this.iOSNativeScrolling&&this.pane.length&&this.pane.remove(),d&&this.$content.height(""),this.$content.removeAttr("tabindex"),this.$el.hasClass("has-scrollbar")&&(this.$el.removeClass("has-scrollbar"),this.$content.css({right:""})),this},j.prototype.flash=function(){return!this.iOSNativeScrolling&&this.isActive?(this.reset(),this.pane.addClass("flashed"),setTimeout(function(a){return function(){a.pane.removeClass("flashed")}}(this),this.options.flashDelay),this):void 0},j}(),a.fn.nanoScroller=function(b){return this.each(function(){var c,d;if((d=this.nanoscroller)||(c=a.extend({},z,b),this.nanoscroller=d=new q(this,c)),b&&"object"==typeof b){if(a.extend(d.options,b),null!=b.scrollBottom)return d.scrollBottom(b.scrollBottom);if(null!=b.scrollTop)return d.scrollTop(b.scrollTop);if(b.scrollTo)return d.scrollTo(b.scrollTo);if("bottom"===b.scroll)return d.scrollBottom(0);if("top"===b.scroll)return d.scrollTop(0);if(b.scroll&&b.scroll instanceof a)return d.scrollTo(b.scroll);if(b.stop)return d.stop();if(b.destroy)return d.destroy();if(b.flash)return d.flash()}return d.reset()})},a.fn.nanoScroller.Constructor=q});
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.weekGridScroller={},function(e,r){"use strict";var t=e(document);r.selectors={weekGridEventsRowOuterWrapper:'[data-js="tribe-events-pro-week-grid-events-row-outer-wrapper"]',weekGridEventsRowWrapper:'[data-js="tribe-events-pro-week-grid-events-row-wrapper"]',weekGridEventsRowWrapperClass:".tribe-events-pro-week-grid__events-row-wrapper",weekGridEventsRowWrapperActiveClass:".tribe-events-pro-week-grid__events-row-wrapper--active",weekGridEventsPaneClass:".tribe-events-pro-week-grid__events-row-scroll-pane",weekGridEventsSliderClass:".tribe-events-pro-week-grid__events-row-scroll-slider",weekGridEvent:'[data-js="tribe-events-pro-week-grid-event"]'},r.getFirstEventPosition=function(t){var s=null,i=0,n=0;return t.find(r.selectors.weekGridEvent).each((function(r,t){var n=e(t),o=n.data("start-time");(!s||s&&o<i)&&(s=n,i=o)})),(n=s?s.position().top:n)-16>0?n-=16:n=0,n},r.deinitScroller=function(e){e.find(r.selectors.weekGridEventsRowOuterWrapper).nanoScroller({destroy:!0})},r.initScroller=function(e){var t=r.getFirstEventPosition(e);e.find(r.selectors.weekGridEventsRowOuterWrapper).nanoScroller({paneClass:r.selectors.weekGridEventsPaneClass.className(),sliderClass:r.selectors.weekGridEventsSliderClass.className(),contentClass:r.selectors.weekGridEventsRowWrapperClass.className(),iOSNativeScrolling:!0,alwaysVisible:!1,scrollTop:t}).find(r.selectors.weekGridEventsRowWrapper).addClass(r.selectors.weekGridEventsRowWrapperActiveClass.className())},r.deinit=function(e,t,s){var i=e.data.container;r.deinitScroller(i),i.off("beforeAjaxSuccess.tribeEvents",r.deinit)},r.init=function(e,t,s,i){"week"===i.slug&&(r.initScroller(s),s.find('.tribe-events-pro-week-grid__events-row-wrapper[tabindex="0"]').attr("tabindex","-1"),s.on("beforeAjaxSuccess.tribeEvents",{container:s},r.deinit))},r.ready=function(){t.on("afterSetup.tribeEvents",tribe.events.views.manager.selectors.container,r.init)},e(r.ready)}(jQuery,tribe.events.views.weekGridScroller),window.tec=window.tec||{},window.tec.eventsPro=window.tec.eventsPro||{},window.tec.eventsPro.views=window.tec.eventsPro.views||{},window.tec.eventsPro.views.weekGridScroller={};
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.weekDaySelector={},function(e,t){"use strict";var n=e(document);t.selectors={daySelectorDay:'[data-js="tribe-events-pro-week-day-selector-day"]',daySelectorDayActiveClass:".tribe-events-pro-week-day-selector__day--active",mobileEventsDayActiveClass:".tribe-events-pro-week-mobile-events__day--active"},t.setOpenTabA11yAttrs=function(e,t){e.attr("aria-selected","true"),t.attr("aria-hidden","false")},t.setCloseTabA11yAttrs=function(e,t){e.attr("aria-selected","false"),t.attr("aria-hidden","true")},t.getEventCountLabel=function(e){return window.wp.i18n?0===e?window.wp.i18n.__("No events","tribe-events-calendar-pro"):window.wp.i18n.sprintf(
window.wp.i18n._n("%d event","%d events",e,"tribe-events-calendar-pro"),e):0===e?"No events":1===e?"1 event":e+" events"},t.openDay=function(e,n){if(e.attr("aria-controls")){t.setOpenTabA11yAttrs(e,n),n.css("display","block");var a=n.find(".tribe-events-pro-week-mobile-events__event").length,s=t.getEventCountLabel(a);n.attr("tabindex")||n.attr("tabindex","-1"),n.attr("aria-label",s),setTimeout((function(){n.focus()}),0)}e.addClass(t.selectors.daySelectorDayActiveClass.className()),n.addClass(t.selectors.mobileEventsDayActiveClass.className())},t.closeDay=function(e,n){e.attr("aria-controls")&&(t.setCloseTabA11yAttrs(e,n),n.css("display","")),e.removeClass(t.selectors.daySelectorDayActiveClass.className()),n.removeClass(t.selectors.mobileEventsDayActiveClass.className())},t.closeAllDays=function(n){n.find(t.selectors.daySelectorDay).each((function(a,s){var i=e(s),r=i.attr("aria-controls"),o=e("");r&&(o=n.find("#"+r)),t.closeDay(i,o)}))},t.handleClick=function(n){var a=n.data.container,s=e(n.data.target),i=s.attr("aria-controls"),r=e("");i&&(r=a.find("#"+i)),t.closeAllDays(a),t.openDay(s,r)},t.deinitDaySelector=function(n){n.find(t.selectors.daySelector).find(t.selectors.daySelectorDay).each((function(n,a){e(a).off("click",t.handleClick)}))},t.initDaySelector=function(n){n.find(t.selectors.daySelectorDay).each((function(a,s){e(s).on("click",{target:s,container:n},t.handleClick)}))},t.deinit=function(e,n,a){var s=e.data.container;t.deinitDaySelector(s),s.off("beforeAjaxSuccess.tribeEvents",t.deinit)},t.init=function(e,n,a,s){"week"!==s.slug&&"widget-week"!==s.slug||(t.initDaySelector(a),a.on("beforeAjaxSuccess.tribeEvents",{container:a},t.deinit))},t.ready=function(){n.on("afterSetup.tribeEvents",tribe.events.views.manager.selectors.container,t.init)},e(t.ready)}(jQuery,tribe.events.views.weekDaySelector),window.tec=window.tec||{},window.tec.eventsPro=window.tec.eventsPro||{},window.tec.eventsPro.views=window.tec.eventsPro.views||{},window.tec.eventsPro.views.weekDaySelector={};
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.weekMultidayToggle={},function(e,t){"use strict";var n=e(document);t.selectors={weekMultidayRow:'[data-js="tribe-events-pro-week-multiday-events-row"]',weekMultidayToggleButton:'[data-js="tribe-events-pro-week-multiday-toggle-button"]',weekMultidayToggleButtonOpenClass:".tribe-events-pro-week-grid__multiday-toggle-button--open",weekMultidayMoreButtonWrapper:'[data-js="tribe-events-pro-week-multiday-more-events-wrapper"]',weekMultidayMoreButton:'[data-js="tribe-events-pro-week-multiday-more-events"]',tribeCommonA11yHiddenClass:".tribe-common-a11y-hidden"},t.toggleMultidayEvents=function(n){var o=n.data.toggleButton,i=n.data.togglesAndContainers;"true"===o.attr("aria-expanded")?(tribe.events.views.accordion.closeAccordion(o,e("")),o.removeClass(t.selectors.weekMultidayToggleButtonOpenClass.className())):(tribe.events.views.accordion.openAccordion(o,e("")),o.addClass(t.selectors.weekMultidayToggleButtonOpenClass.className())),i.forEach((function(e){var n=e.headerWrapper,o=e.header,i=e.content;"true"===o.attr("aria-expanded")?(tribe.events.views.accordion.closeAccordion(o,i),n.removeClass(t.selectors.tribeCommonA11yHiddenClass.className())):(tribe.events.views.accordion.openAccordion(o,i),n.addClass(t.selectors.tribeCommonA11yHiddenClass.className()))}))},t.getTogglesAndContainers=function(e,n){var o=[];return n.forEach((function(n){var i=e.find("#"+n),s=i.siblings(t.selectors.weekMultidayMoreButtonWrapper),r=s.find(t.selectors.weekMultidayMoreButton);o.push({headerWrapper:s,header:r,content:i})})),o},t.initToggle=function(e){var n=e.find(t.selectors.weekMultidayRow),o=n.find(t.selectors.weekMultidayToggleButton),i=o.attr("aria-controls").split(" "),s=t.getTogglesAndContainers(n,i);o.on("click",{toggleButton:o,togglesAndContainers:s},t.toggleMultidayEvents),s.forEach((function(e){e.header.on("click",{toggleButton:o,togglesAndContainers:s},t.toggleMultidayEvents)}))},t.deinitToggle=function(n){var o=n.find(t.selectors.weekMultidayRow);o.find(t.selectors.weekMultidayToggleButton).off("click",t.toggleMultidayEvents),o.find(t.selectors.weekMultidayMoreButton).each((function(n,o){e(o).off("click",t.toggleMultidayEvents)}))},t.deinit=function(e,n,o){var i=e.data.container;t.deinitToggle(i),i.off("beforeAjaxSuccess.tribeEvents",t.deinit)},t.init=function(e,n,o,i){o.find(t.selectors.weekMultidayToggleButton).length&&(t.initToggle(o),o.on("beforeAjaxSuccess.tribeEvents",{container:o},t.deinit))},t.ready=function(){n.on("afterSetup.tribeEvents",tribe.events.views.manager.selectors.container,t.init)},e(t.ready)}(jQuery,tribe.events.views.weekMultidayToggle),window.tec=window.tec||{},window.tec.eventsPro=window.tec.eventsPro||{},window.tec.eventsPro.views=window.tec.eventsPro.views||{},window.tec.eventsPro.views.weekMultidayToggle={};
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.weekEventLink={},function(e,n){"use strict";var t=e(document);n.config={delayHoverIn:600},n.selectors={weekEventLink:'[data-js~="tribe-events-pro-week-grid-event-link"]',weekEventLinkHoverClass:".tribe-events-pro-week-grid__event-link--hover",weekEventLinkIntendedClass:".tribe-events-pro-week-grid__event-link--intended"},n.addIntendedClass=function(e){setTimeout((function(){(e.is(":focus")||e.hasClass(n.selectors.weekEventLinkHoverClass.className()))&&e.addClass(n.selectors.weekEventLinkIntendedClass.className())}),n.config.delayHoverIn)},n.removeIntendedClass=function(e){e.is(":focus")||e.hasClass(n.selectors.weekEventLinkHoverClass.className())||e.removeClass(n.selectors.weekEventLinkIntendedClass.className())},n.handleMouseEnter=function(e){var t=e.data.target;t.addClass(n.selectors.weekEventLinkHoverClass.className()),n.addIntendedClass(t)},n.handleMouseLeave=function(e){var t=e.data.target;t.removeClass(n.selectors.weekEventLinkHoverClass.className()),n.removeIntendedClass(t)},n.handleFocus=function(e){var t=e.data.target;n.addIntendedClass(t)},n.handleBlur=function(e){var t=e.data.target;n.removeIntendedClass(t)},n.handleKeydown=function(n){if(13===n.keyCode||32===n.keyCode){var t=e(n.currentTarget).data("event-url");t&&(n.preventDefault(),window.location.href=t)}},n.deinitEventLink=function(t){t.find(n.selectors.weekEventLink).each((function(n,t){e(t).off()}))},n.initEventLink=function(t){t.find(n.selectors.weekEventLink).each((function(t,s){var a=e(s);a.on("mouseenter touchstart",{target:a},n.handleMouseEnter).on("mouseleave touchstart",{target:a},n.handleMouseLeave).on("focus",{target:a},n.handleFocus).on("blur",{target:a},n.handleBlur),a.data("event-url")&&a.on("keydown",n.handleKeydown)}))},n.deinit=function(e,t,s){var a=e.data.container;n.deinitEventLink(a),a.off("beforeAjaxSuccess.tribeEvents",n.deinit)},n.init=function(e,t,s,a){"week"===a.slug&&(n.initEventLink(s),s.on("beforeAjaxSuccess.tribeEvents",{container:s},n.deinit))},n.ready=function(){t.on("afterSetup.tribeEvents",tribe.events.views.manager.selectors.container,n.init)},e(n.ready)}(jQuery,tribe.events.views.weekEventLink),window.tec=window.tec||{},window.tec.eventsPro=window.tec.eventsPro||{},window.tec.eventsPro.views=window.tec.eventsPro.views||{},window.tec.eventsPro.views.weekEventLink={};
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.mapEventsScroller={},function(e,s){"use strict";var t=e(document);s.selectors={mapEventCardsOuterWrapper:'[data-js="tribe-events-pro-map-event-cards-wrapper"]',mapEventCardsWrapper:'[data-js="tribe-events-pro-map-event-cards"]',mapEventCardsWrapperClass:".tribe-events-pro-map__event-cards",mapEventCardsWrapperActiveClass:".tribe-events-pro-map__event-cards--active",mapEventCardsPaneClass:".tribe-events-pro-map__event-cards-scroll-pane",mapEventCardsSliderClass:".tribe-events-pro-map__event-cards-scroll-slider"},s.scrollTo=function(e,t){var r=e.find(s.selectors.mapEventCardsWrapperClass),a=t.offset().top-r.offset().top+r.scrollTop();r.animate({scrollTop:a},"fast")},s.isWithinScrollView=function(e,t){var r=e.find(s.selectors.mapEventCardsWrapperClass),a=t.offset().top-r.offset().top,n=r.offset().top+r.height()-t.offset().top-t.height();return 0<=a&&0<=n},s.deinitScroller=function(e){e.find(s.selectors.mapEventCardsOuterWrapper).nanoScroller({destroy:!0})},s.initScroller=function(e){e.find(s.selectors.mapEventCardsOuterWrapper).nanoScroller({paneClass:s.selectors.mapEventCardsPaneClass.className(),sliderClass:s.selectors.mapEventCardsSliderClass.className(),contentClass:s.selectors.mapEventCardsWrapperClass.className(),iOSNativeScrolling:!0,alwaysVisible:!1}).find(s.selectors.mapEventCardsWrapper).addClass(s.selectors.mapEventCardsWrapperActiveClass.className())},s.deinit=function(e,t,r){var a=e.data.container;s.deinitScroller(a),a.off("beforeAjaxSuccess.tribeEvents",s.deinit)},s.init=function(e,t,r,a){"map"===a.slug&&(s.initScroller(r),r.on("beforeAjaxSuccess.tribeEvents",{container:r},s.deinit))},s.ready=function(){t.on("afterSetup.tribeEvents",tribe.events.views.manager.selectors.container,s.init)},e(s.ready)}(jQuery,tribe.events.views.mapEventsScroller),window.tec=window.tec||{},window.tec.eventsPro=window.tec.eventsPro||{},window.tec.eventsPro.views=window.tec.eventsPro.views||{},window.tec.eventsPro.views.mapEventsScroller={};
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Swiper=t()}(this,(function(){"use strict";var e="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,t="undefined"==typeof window?{document:e,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,i=function(e){for(var t=0;t<e.length;t+=1)this[t]=e[t];return this.length=e.length,this};function s(s,a){var r=[],n=0;if(s&&!a&&s instanceof i)return s;if(s)if("string"==typeof s){var o,l,d=s.trim();if(d.indexOf("<")>=0&&d.indexOf(">")>=0){var h="div";for(0===d.indexOf("<li")&&(h="ul"),0===d.indexOf("<tr")&&(h="tbody"),0!==d.indexOf("<td")&&0!==d.indexOf("<th")||(h="tr"),0===d.indexOf("<tbody")&&(h="table"),0===d.indexOf("<option")&&(h="select"),(l=e.createElement(h)).innerHTML=d,n=0;n<l.childNodes.length;n+=1)r.push(l.childNodes[n])}else for(o=a||"#"!==s[0]||s.match(/[ .<>:~]/)?(a||e).querySelectorAll(s.trim()):[e.getElementById(s.trim().split("#")[1])],n=0;n<o.length;n+=1)o[n]&&r.push(o[n])}else if(s.nodeType||s===t||s===e)r.push(s);else if(s.length>0&&s[0].nodeType)for(n=0;n<s.length;n+=1)r.push(s[n]);return new i(r)}function a(e){for(var t=[],i=0;i<e.length;i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}s.fn=i.prototype,s.Class=i,s.Dom7=i;var r={addClass:function(e){if(void 0===e)return this;for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var s=0;s<this.length;s+=1)void 0!==this[s]&&void 0!==this[s].classList&&this[s].classList.add(t[i]);return this},removeClass:function(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var s=0;s<this.length;s+=1)void 0!==this[s]&&void 0!==this[s].classList&&this[s].classList.remove(t[i]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var s=0;s<this.length;s+=1)void 0!==this[s]&&void 0!==this[s].classList&&this[s].classList.toggle(t[i]);return this},attr:function(e,t){var i=arguments;if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var s=0;s<this.length;s+=1)if(2===i.length)this[s].setAttribute(e,t);else for(var a in e)this[s][a]=e[a],this[s].setAttribute(a,e[a]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},data:function(e,t){var i;if(void 0!==t){for(var s=0;s<this.length;s+=1)(i=this[s]).dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[e]=t;return this}if(i=this[0]){if(i.dom7ElementDataStorage&&e in i.dom7ElementDataStorage)return i.dom7ElementDataStorage[e];var a=i.getAttribute("data-"+e);return a||void 0}},transform:function(e){for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransform=e,i.transform=e}return this},transition:function(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransitionDuration=e,i.transitionDuration=e}return this},on:function(){for(var e,t=[],i=arguments.length;i--;)t[i]=arguments[i];var a=t[0],r=t[1],n=t[2],o=t[3];function l(e){var t=e.target;if(t){var i=e.target.dom7EventData||[];if(i.indexOf(e)<0&&i.unshift(e),s(t).is(r))n.apply(t,i);else for(var a=s(t).parents(),o=0;o<a.length;o+=1)s(a[o]).is(r)&&n.apply(a[o],i)}}function d(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),n.apply(this,t)}"function"==typeof t[1]&&(a=(e=t)[0],n=e[1],o=e[2],r=void 0),o||(o=!1);for(var h,p=a.split(" "),c=0;c<this.length;c+=1){var u=this[c];if(r)for(h=0;h<p.length;h+=1){var v=p[h];u.dom7LiveListeners||(u.dom7LiveListeners={}),u.dom7LiveListeners[v]||(u.dom7LiveListeners[v]=[]),u.dom7LiveListeners[v].push({listener:n,proxyListener:l}),u.addEventListener(v,l,o)}else for(h=0;h<p.length;h+=1){var f=p[h];u.dom7Listeners||(u.dom7Listeners={}),u.dom7Listeners[f]||(u.dom7Listeners[f]=[]),u.dom7Listeners[f].push({listener:n,proxyListener:d}),u.addEventListener(f,d,o)}}return this},off:function(){for(var e,t=[],i=arguments.length;i--;)t[i]=arguments[i];var s=t[0],a=t[1],r=t[2],n=t[3];"function"==typeof t[1]&&(s=(e=t)[0],r=e[1],n=e[2],a=void 0),n||(n=!1);for(var o=s.split(" "),l=0;l<o.length;l+=1)for(var d=o[l],h=0;h<this.length;h+=1){var p=this[h],c=void 0;if(!a&&p.dom7Listeners?c=p.dom7Listeners[d]:a&&p.dom7LiveListeners&&(c=p.dom7LiveListeners[d]),c&&c.length)for(var u=c.length-1;u>=0;u-=1){var v=c[u];r&&v.listener===r?(p.removeEventListener(d,v.proxyListener,n),c.splice(u,1)):r&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===r?(p.removeEventListener(d,v.proxyListener,n),c.splice(u,1)):r||(p.removeEventListener(d,v.proxyListener,n),c.splice(u,1))}}return this},trigger:function(){for(var i=[],s=arguments.length;s--;)i[s]=arguments[s];for(var a=i[0].split(" "),r=i[1],n=0;n<a.length;n+=1)for(var o=a[n],l=0;l<this.length;l+=1){var d=this[l],h=void 0;try{h=new t.CustomEvent(o,{detail:r,bubbles:!0,cancelable:!0})}catch(t){(h=e.createEvent("Event")).initEvent(o,!0,!0),h.detail=r}d.dom7EventData=i.filter((function(e,t){return t>0})),d.dispatchEvent(h),d.dom7EventData=[],delete d.dom7EventData}return this},transitionEnd:function(e){var t,i=["webkitTransitionEnd","transitionend"],s=this;function a(r){if(r.target===this)for(e.call(this,r),t=0;t<i.length;t+=1)s.off(i[t],a)}if(e)for(t=0;t<i.length;t+=1)s.on(i[t],a);return this},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){var i=this[0],s=i.getBoundingClientRect(),a=e.body,r=i.clientTop||a.clientTop||0,n=i.clientLeft||a.clientLeft||0,o=i===t?t.scrollY:i.scrollTop,l=i===t?t.scrollX:i.scrollLeft;return{top:s.top+o-r,left:s.left+l-n}}return null},css:function(e,i){var s;if(1===arguments.length){if("string"!=typeof e){for(s=0;s<this.length;s+=1)for(var a in e)this[s].style[a]=e[a];return this}if(this[0])return t.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(s=0;s<this.length;s+=1)this[s].style[e]=i;return this}return this},each:function(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(a){var r,n,o=this[0];if(!o||void 0===a)return!1;if("string"==typeof a){if(o.matches)return o.matches(a);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(a);if(o.msMatchesSelector)return o.msMatchesSelector(a);for(r=s(a),n=0;n<r.length;n+=1)if(r[n]===o)return!0;return!1}if(a===e)return o===e;if(a===t)return o===t;if(a.nodeType||a instanceof i){for(r=a.nodeType?[a]:a,n=0;n<r.length;n+=1)if(r[n]===o)return!0;return!1}return!1},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t,s=this.length;return new i(e>s-1?[]:e<0?(t=s+e)<0?[]:[this[t]]:[this[e]])},append:function(){for(var t,s=[],a=arguments.length;a--;)s[a]=arguments[a];for(var r=0;r<s.length;r+=1){t=s[r];for(var n=0;n<this.length;n+=1)if("string"==typeof t){var o=e.createElement("div");for(o.innerHTML=t;o.firstChild;)this[n].appendChild(o.firstChild)}else if(t instanceof i)for(var l=0;l<t.length;l+=1)this[n].appendChild(t[l]);else this[n].appendChild(t)}return this},prepend:function(t){var s,a;for(s=0;s<this.length;s+=1)if("string"==typeof t){var r=e.createElement("div");for(r.innerHTML=t,a=r.childNodes.length-1;a>=0;a-=1)this[s].insertBefore(r.childNodes[a],this[s].childNodes[0])}else if(t instanceof i)for(a=0;a<t.length;a+=1)this[s].insertBefore(t[a],this[s].childNodes[0]);else this[s].insertBefore(t,this[s].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&s(this[0].nextElementSibling).is(e)?new i([this[0].nextElementSibling]):new i([]):this[0].nextElementSibling?new i([this[0].nextElementSibling]):new i([]):new i([])},nextAll:function(e){var t=[],a=this[0];if(!a)return new i([]);for(;a.nextElementSibling;){var r=a.nextElementSibling;e?s(r).is(e)&&t.push(r):t.push(r),a=r}return new i(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&s(t.previousElementSibling).is(e)?new i([t.previousElementSibling]):new i([]):t.previousElementSibling?new i([t.previousElementSibling]):new i([])}return new i([])},prevAll:function(e){var t=[],a=this[0];if(!a)return new i([]);for(;a.previousElementSibling;){var r=a.previousElementSibling;e?s(r).is(e)&&t.push(r):t.push(r),a=r}return new i(t)},parent:function(e){for(var t=[],i=0;i<this.length;i+=1)null!==this[i].parentNode&&(e?s(this[i].parentNode).is(e)&&t.push(this[i].parentNode):t.push(this[i].parentNode));return s(a(t))},parents:function(e){for(var t=[],i=0;i<this.length;i+=1)for(var r=this[i].parentNode;r;)e?s(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return s(a(t))},closest:function(e){var t=this;return void 0===e?new i([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=[],s=0;s<this.length;s+=1)for(var a=this[s].querySelectorAll(e),r=0;r<a.length;r+=1)t.push(a[r]);return new i(t)},children:function(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].childNodes,o=0;o<n.length;o+=1)e?1===n[o].nodeType&&s(n[o]).is(e)&&t.push(n[o]):1===n[o].nodeType&&t.push(n[o]);return new i(a(t))},filter:function(e){for(var t=[],s=0;s<this.length;s+=1)e.call(this[s],s,this[s])&&t.push(this[s]);return new i(t)},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var i,a;for(i=0;i<e.length;i+=1){var r=s(e[i]);for(a=0;a<r.length;a+=1)this[this.length]=r[a],this.length+=1}return this},styles:function(){return this[0]?t.getComputedStyle(this[0],null):{}}};Object.keys(r).forEach((function(e){s.fn[e]=s.fn[e]||r[e]}));var n={deleteProps:function(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,i){var s,a,r;void 0===i&&(i="x");var n=t.getComputedStyle(e,null);return t.WebKitCSSMatrix?((a=n.transform||n.webkitTransform).split(",").length>6&&(a=a.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),r=new t.WebKitCSSMatrix("none"===a?"":a)):s=(r=n.MozTransform||n.OTransform||n.MsTransform||n.msTransform||n.transform||n.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===i&&(a=t.WebKitCSSMatrix?r.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===i&&(a=t.WebKitCSSMatrix?r.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),a||0},parseUrlQuery:function(e){var i,s,a,r,n={},o=e||t.location.href;if("string"==typeof o&&o.length)for(r=(s=(o=o.indexOf("?")>-1?o.replace(/\S*\?/,""):"").split("&").filter((function(e){return""!==e}))).length,i=0;i<r;i+=1)a=s[i].replace(/#\S+/g,"").split("="),n[decodeURIComponent(a[0])]=void 0===a[1]?void 0:decodeURIComponent(a[1])||"";return n},isObject:function(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=Object(e[0]),s=1;s<e.length;s+=1){var a=e[s];if(null!=a)for(var r=Object.keys(Object(a)),o=0,l=r.length;o<l;o+=1){var d=r[o],h=Object.getOwnPropertyDescriptor(a,d);void 0!==h&&h.enumerable&&(n.isObject(i[d])&&n.isObject(a[d])?n.extend(i[d],a[d]):!n.isObject(i[d])&&n.isObject(a[d])?(i[d]={},n.extend(i[d],a[d])):i[d]=a[d])}}return i}},o={touch:t.Modernizr&&!0===t.Modernizr.touch||!!(t.navigator.maxTouchPoints>0||"ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),pointerEvents:!!t.PointerEvent&&"maxTouchPoints"in t.navigator&&t.navigator.maxTouchPoints>0,observer:"MutationObserver"in t||"WebkitMutationObserver"in t,passiveListener:function(){var e=!1;try{var i=Object.defineProperty({},"passive",{get:function(){e=!0}});t.addEventListener("testPassiveListener",null,i)}catch(e){}return e}(),gestures:"ongesturestart"in t},l=function(e){void 0===e&&(e={});var t=this;t.params=e,t.eventsListeners={},t.params&&t.params.on&&Object.keys(t.params.on).forEach((function(e){t.on(e,t.params.on[e])}))},d={components:{configurable:!0}};l.prototype.on=function(e,t,i){var s=this;if("function"!=typeof t)return s;var a=i?"unshift":"push";return e.split(" ").forEach((function(e){s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][a](t)})),s},l.prototype.once=function(e,t,i){var s=this;if("function"!=typeof t)return s;function a(){for(var i=[],r=arguments.length;r--;)i[r]=arguments[r];s.off(e,a),a.f7proxy&&delete a.f7proxy,t.apply(s,i)}return a.f7proxy=t,s.on(e,a,i)},l.prototype.off=function(e,t){var i=this;return i.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].length&&i.eventsListeners[e].forEach((function(s,a){(s===t||s.f7proxy&&s.f7proxy===t)&&i.eventsListeners[e].splice(a,1)}))})),i):i},l.prototype.emit=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var i,s,a,r=this;if(!r.eventsListeners)return r;"string"==typeof e[0]||Array.isArray(e[0])?(i=e[0],s=e.slice(1,e.length),a=r):(i=e[0].events,s=e[0].data,a=e[0].context||r);var n=Array.isArray(i)?i:i.split(" ");return n.forEach((function(e){if(r.eventsListeners&&r.eventsListeners[e]){var t=[];r.eventsListeners[e].forEach((function(e){t.push(e)})),t.forEach((function(e){e.apply(a,s)}))}})),r},l.prototype.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach((function(i){var s=t.modules[i];s.params&&n.extend(e,s.params)}))},l.prototype.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach((function(i){var s=t.modules[i],a=e[i]||{};s.instance&&Object.keys(s.instance).forEach((function(e){var i=s.instance[e];t[e]="function"==typeof i?i.bind(t):i})),s.on&&t.on&&Object.keys(s.on).forEach((function(e){t.on(e,s.on[e])})),s.create&&s.create.bind(t)(a)}))},d.components.set=function(e){this.use&&this.use(e)},l.installModule=function(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];var s=this;s.prototype.modules||(s.prototype.modules={});var a=e.name||Object.keys(s.prototype.modules).length+"_"+n.now();return s.prototype.modules[a]=e,e.proto&&Object.keys(e.proto).forEach((function(t){s.prototype[t]=e.proto[t]})),e.static&&Object.keys(e.static).forEach((function(t){s[t]=e.static[t]})),e.install&&e.install.apply(s,t),s},l.use=function(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];var s=this;return Array.isArray(e)?(e.forEach((function(e){return s.installModule(e)})),s):s.installModule.apply(s,[e].concat(t))},Object.defineProperties(l,d);var h={updateSize:function(){var e,t,i=this.$el;e=void 0!==this.params.width?this.params.width:i[0].clientWidth,t=void 0!==this.params.height?this.params.height:i[0].clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(i.css("padding-left"),10)-parseInt(i.css("padding-right"),10),t=t-parseInt(i.css("padding-top"),10)-parseInt(i.css("padding-bottom"),10),n.extend(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){var e=this.params,i=this.$wrapperEl,s=this.size,a=this.rtlTranslate,r=this.wrongRTL,o=this.virtual&&e.virtual.enabled,l=o?this.virtual.slides.length:this.slides.length,d=i.children("."+this.params.slideClass),h=o?this.virtual.slides.length:d.length,p=[],c=[],u=[];function v(t){return!e.cssMode||t!==d.length-1}var f=e.slidesOffsetBefore;"function"==typeof f&&(f=e.slidesOffsetBefore.call(this));var m=e.slidesOffsetAfter;"function"==typeof m&&(m=e.slidesOffsetAfter.call(this));var g=this.snapGrid.length,b=this.snapGrid.length,w=e.spaceBetween,y=-f,x=0,T=0;if(void 0!==s){var E,S;"string"==typeof w&&w.indexOf("%")>=0&&(w=parseFloat(w.replace("%",""))/100*s),this.virtualSize=-w,a?d.css({marginLeft:"",marginTop:""}):d.css({marginRight:"",marginBottom:""}),e.slidesPerColumn>1&&(E=Math.floor(h/e.slidesPerColumn)===h/this.params.slidesPerColumn?h:Math.ceil(h/e.slidesPerColumn)*e.slidesPerColumn,"auto"!==e.slidesPerView&&"row"===e.slidesPerColumnFill&&(E=Math.max(E,e.slidesPerView*e.slidesPerColumn)));for(var C,M=e.slidesPerColumn,P=E/M,z=Math.floor(h/e.slidesPerColumn),k=0;k<h;k+=1){S=0;var $=d.eq(k);if(e.slidesPerColumn>1){var L=void 0,I=void 0,D=void 0;if("row"===e.slidesPerColumnFill&&e.slidesPerGroup>1){var O=Math.floor(k/(e.slidesPerGroup*e.slidesPerColumn)),A=k-e.slidesPerColumn*e.slidesPerGroup*O,G=0===O?e.slidesPerGroup:Math.min(Math.ceil((h-O*M*e.slidesPerGroup)/M),e.slidesPerGroup);L=(I=A-(D=Math.floor(A/G))*G+O*e.slidesPerGroup)+D*E/M,$.css({"-webkit-box-ordinal-group":L,"-moz-box-ordinal-group":L,"-ms-flex-order":L,"-webkit-order":L,order:L})}else"column"===e.slidesPerColumnFill?(D=k-(I=Math.floor(k/M))*M,(I>z||I===z&&D===M-1)&&(D+=1)>=M&&(D=0,I+=1)):I=k-(D=Math.floor(k/P))*P;$.css("margin-"+(this.isHorizontal()?"top":"left"),0!==D&&e.spaceBetween&&e.spaceBetween+"px")}if("none"!==$.css("display")){if("auto"===e.slidesPerView){var H=t.getComputedStyle($[0],null),B=$[0].style.transform,N=$[0].style.webkitTransform;if(B&&($[0].style.transform="none"),N&&($[0].style.webkitTransform="none"),e.roundLengths)S=this.isHorizontal()?$.outerWidth(!0):$.outerHeight(!0);else if(this.isHorizontal()){var X=parseFloat(H.getPropertyValue("width")),V=parseFloat(H.getPropertyValue("padding-left")),Y=parseFloat(H.getPropertyValue("padding-right")),F=parseFloat(H.getPropertyValue("margin-left")),W=parseFloat(H.getPropertyValue("margin-right")),R=H.getPropertyValue("box-sizing");S=R&&"border-box"===R?X+F+W:X+V+Y+F+W}else{var q=parseFloat(H.getPropertyValue("height")),j=parseFloat(H.getPropertyValue("padding-top")),K=parseFloat(H.getPropertyValue("padding-bottom")),U=parseFloat(H.getPropertyValue("margin-top")),_=parseFloat(H.getPropertyValue("margin-bottom")),Z=H.getPropertyValue("box-sizing");S=Z&&"border-box"===Z?q+U+_:q+j+K+U+_}B&&($[0].style.transform=B),N&&($[0].style.webkitTransform=N),e.roundLengths&&(S=Math.floor(S))}else S=(s-(e.slidesPerView-1)*w)/e.slidesPerView,e.roundLengths&&(S=Math.floor(S)),d[k]&&(this.isHorizontal()?d[k].style.width=S+"px":d[k].style.height=S+"px");d[k]&&(d[k].swiperSlideSize=S),u.push(S),e.centeredSlides?(y=y+S/2+x/2+w,0===x&&0!==k&&(y=y-s/2-w),0===k&&(y=y-s/2-w),Math.abs(y)<.001&&(y=0),e.roundLengths&&(y=Math.floor(y)),T%e.slidesPerGroup==0&&p.push(y),c.push(y)):(e.roundLengths&&(y=Math.floor(y)),(T-Math.min(this.params.slidesPerGroupSkip,T))%this.params.slidesPerGroup==0&&p.push(y),c.push(y),y=y+S+w),this.virtualSize+=S+w,x=S,T+=1}}if(this.virtualSize=Math.max(this.virtualSize,s)+m,a&&r&&("slide"===e.effect||"coverflow"===e.effect)&&i.css({width:this.virtualSize+e.spaceBetween+"px"}),e.setWrapperSize&&(this.isHorizontal()?i.css({width:this.virtualSize+e.spaceBetween+"px"}):i.css({height:this.virtualSize+e.spaceBetween+"px"})),e.slidesPerColumn>1&&(this.virtualSize=(S+e.spaceBetween)*E,this.virtualSize=Math.ceil(this.virtualSize/e.slidesPerColumn)-e.spaceBetween,this.isHorizontal()?i.css({width:this.virtualSize+e.spaceBetween+"px"}):i.css({height:this.virtualSize+e.spaceBetween+"px"}),e.centeredSlides)){C=[];for(var Q=0;Q<p.length;Q+=1){var J=p[Q];e.roundLengths&&(J=Math.floor(J)),p[Q]<this.virtualSize+p[0]&&C.push(J)}p=C}if(!e.centeredSlides){C=[];for(var ee=0;ee<p.length;ee+=1){var te=p[ee];e.roundLengths&&(te=Math.floor(te)),p[ee]<=this.virtualSize-s&&C.push(te)}p=C,Math.floor(this.virtualSize-s)-Math.floor(p[p.length-1])>1&&p.push(this.virtualSize-s)}if(0===p.length&&(p=[0]),0!==e.spaceBetween&&(this.isHorizontal()?a?d.filter(v).css({marginLeft:w+"px"}):d.filter(v).css({marginRight:w+"px"}):d.filter(v).css({marginBottom:w+"px"})),e.centeredSlides&&e.centeredSlidesBounds){var ie=0;u.forEach((function(t){ie+=t+(e.spaceBetween?e.spaceBetween:0)}));var se=(ie-=e.spaceBetween)-s;p=p.map((function(e){return e<0?-f:e>se?se+m:e}))}if(e.centerInsufficientSlides){var ae=0;if(u.forEach((function(t){ae+=t+(e.spaceBetween?e.spaceBetween:0)})),(ae-=e.spaceBetween)<s){var re=(s-ae)/2;p.forEach((function(e,t){p[t]=e-re})),c.forEach((function(e,t){c[t]=e+re}))}}n.extend(this,{slides:d,snapGrid:p,slidesGrid:c,slidesSizesGrid:u}),h!==l&&this.emit("slidesLengthChange"),p.length!==g&&(this.params.watchOverflow&&this.checkOverflow(),this.emit("snapGridLengthChange")),c.length!==b&&this.emit("slidesGridLengthChange"),(e.watchSlidesProgress||e.watchSlidesVisibility)&&this.updateSlidesOffset()}},updateAutoHeight:function(e){var t,i=[],s=0;if("number"==typeof e?this.setTransition(e):!0===e&&this.setTransition(this.params.speed),"auto"!==this.params.slidesPerView&&this.params.slidesPerView>1)if(this.params.centeredSlides)i.push.apply(i,this.visibleSlides);else for(t=0;t<Math.ceil(this.params.slidesPerView);t+=1){var a=this.activeIndex+t;if(a>this.slides.length)break;i.push(this.slides.eq(a)[0])}else i.push(this.slides.eq(this.activeIndex)[0]);for(t=0;t<i.length;t+=1)if(void 0!==i[t]){var r=i[t].offsetHeight;s=r>s?r:s}s&&this.$wrapperEl.css("height",s+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);var t=this.params,i=this.slides,a=this.rtlTranslate;if(0!==i.length){void 0===i[0].swiperSlideOffset&&this.updateSlidesOffset();var r=-e;a&&(r=e),i.removeClass(t.slideVisibleClass),this.visibleSlidesIndexes=[],this.visibleSlides=[];for(var n=0;n<i.length;n+=1){var o=i[n],l=(r+(t.centeredSlides?this.minTranslate():0)-o.swiperSlideOffset)/(o.swiperSlideSize+t.spaceBetween);if(t.watchSlidesVisibility||t.centeredSlides&&t.autoHeight){var d=-(r-o.swiperSlideOffset),h=d+this.slidesSizesGrid[n];(d>=0&&d<this.size-1||h>1&&h<=this.size||d<=0&&h>=this.size)&&(this.visibleSlides.push(o),this.visibleSlidesIndexes.push(n),i.eq(n).addClass(t.slideVisibleClass))}o.progress=a?-l:l}this.visibleSlides=s(this.visibleSlides)}},updateProgress:function(e){if(void 0===e){var t=this.rtlTranslate?-1:1;e=this&&this.translate&&this.translate*t||0}var i=this.params,s=this.maxTranslate()-this.minTranslate(),a=this.progress,r=this.isBeginning,o=this.isEnd,l=r,d=o;0===s?(a=0,r=!0,o=!0):(r=(a=(e-this.minTranslate())/s)<=0,o=a>=1),n.extend(this,{progress:a,isBeginning:r,isEnd:o}),(i.watchSlidesProgress||i.watchSlidesVisibility||i.centeredSlides&&i.autoHeight)&&this.updateSlidesProgress(e),r&&!l&&this.emit("reachBeginning toEdge"),o&&!d&&this.emit("reachEnd toEdge"),(l&&!r||d&&!o)&&this.emit("fromEdge"),this.emit("progress",a)},updateSlidesClasses:function(){var e,t=this.slides,i=this.params,s=this.$wrapperEl,a=this.activeIndex,r=this.realIndex,n=this.virtual&&i.virtual.enabled;t.removeClass(i.slideActiveClass+" "+i.slideNextClass+" "+i.slidePrevClass+" "+i.slideDuplicateActiveClass+" "+i.slideDuplicateNextClass+" "+i.slideDuplicatePrevClass),(e=n?this.$wrapperEl.find("."+i.slideClass+'[data-swiper-slide-index="'+a+'"]'):t.eq(a)).addClass(i.slideActiveClass),i.loop&&(e.hasClass(i.slideDuplicateClass)?s.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+r+'"]').addClass(i.slideDuplicateActiveClass):s.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+r+'"]').addClass(i.slideDuplicateActiveClass));var o=e.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===o.length&&(o=t.eq(0)).addClass(i.slideNextClass);var l=e.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===l.length&&(l=t.eq(-1)).addClass(i.slidePrevClass),i.loop&&(o.hasClass(i.slideDuplicateClass)?s.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass):s.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass),l.hasClass(i.slideDuplicateClass)?s.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass):s.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass))},updateActiveIndex:function(e){var t,i=this.rtlTranslate?this.translate:-this.translate,s=this.slidesGrid,a=this.snapGrid,r=this.params,o=this.activeIndex,l=this.realIndex,d=this.snapIndex,h=e;if(void 0===h){for(var p=0;p<s.length;p+=1)void 0!==s[p+1]?i>=s[p]&&i<s[p+1]-(s[p+1]-s[p])/2?h=p:i>=s[p]&&i<s[p+1]&&(h=p+1):i>=s[p]&&(h=p);r.normalizeSlideIndex&&(h<0||void 0===h)&&(h=0)}if(a.indexOf(i)>=0)t=a.indexOf(i);else{var c=Math.min(r.slidesPerGroupSkip,h);t=c+Math.floor((h-c)/r.slidesPerGroup)}if(t>=a.length&&(t=a.length-1),h!==o){var u=parseInt(this.slides.eq(h).attr("data-swiper-slide-index")||h,10);n.extend(this,{snapIndex:t,realIndex:u,previousIndex:o,activeIndex:h}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),l!==u&&this.emit("realIndexChange"),(this.initialized||this.runCallbacksOnInit)&&this.emit("slideChange")}else t!==d&&(this.snapIndex=t,this.emit("snapIndexChange"))},updateClickedSlide:function(e){var t=this.params,i=s(e.target).closest("."+t.slideClass)[0],a=!1;if(i)for(var r=0;r<this.slides.length;r+=1)this.slides[r]===i&&(a=!0);if(!i||!a)return this.clickedSlide=void 0,void(this.clickedIndex=void 0);this.clickedSlide=i,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(s(i).attr("data-swiper-slide-index"),10):this.clickedIndex=s(i).index(),t.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}};var p={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this.params,i=this.rtlTranslate,s=this.translate,a=this.$wrapperEl;if(t.virtualTranslate)return i?-s:s;if(t.cssMode)return s;var r=n.getTranslate(a[0],e);return i&&(r=-r),r||0},setTranslate:function(e,t){var i=this.rtlTranslate,s=this.params,a=this.$wrapperEl,r=this.wrapperEl,n=this.progress,o=0,l=0;this.isHorizontal()?o=i?-e:e:l=e,s.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),s.cssMode?r[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-o:-l:s.virtualTranslate||a.transform("translate3d("+o+"px, "+l+"px, 0px)"),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?o:l;var d=this.maxTranslate()-this.minTranslate();(0===d?0:(e-this.minTranslate())/d)!==n&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,i,s,a){var r;void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),void 0===s&&(s=!0);var n=this,o=n.params,l=n.wrapperEl;if(n.animating&&o.preventInteractionOnTransition)return!1;var d,h=n.minTranslate(),p=n.maxTranslate();if(d=s&&e>h?h:s&&e<p?p:e,n.updateProgress(d),o.cssMode){var c=n.isHorizontal();return 0===t?l[c?"scrollLeft":"scrollTop"]=-d:l.scrollTo?l.scrollTo(((r={})[c?"left":"top"]=-d,r.behavior="smooth",r)):l[c?"scrollLeft":"scrollTop"]=-d,!0}return 0===t?(n.setTransition(0),n.setTranslate(d),i&&(n.emit("beforeTransitionStart",t,a),n.emit("transitionEnd"))):(n.setTransition(t),n.setTranslate(d),i&&(n.emit("beforeTransitionStart",t,a),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(e){n&&!n.destroyed&&e.target===this&&(n.$wrapperEl[0].removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.$wrapperEl[0].removeEventListener("webkitTransitionEnd",n.onTranslateToWrapperTransitionEnd),n.onTranslateToWrapperTransitionEnd=null,delete n.onTranslateToWrapperTransitionEnd,i&&n.emit("transitionEnd"))}),n.$wrapperEl[0].addEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.$wrapperEl[0].addEventListener("webkitTransitionEnd",n.onTranslateToWrapperTransitionEnd))),!0}};var c={setTransition:function(e,t){this.params.cssMode||this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);var i=this.activeIndex,s=this.params,a=this.previousIndex;if(!s.cssMode){s.autoHeight&&this.updateAutoHeight();var r=t;if(r||(r=i>a?"next":i<a?"prev":"reset"),this.emit("transitionStart"),e&&i!==a){if("reset"===r)return void this.emit("slideResetTransitionStart");this.emit("slideChangeTransitionStart"),"next"===r?this.emit("slideNextTransitionStart"):this.emit("slidePrevTransitionStart")}}},transitionEnd:function(e,t){void 0===e&&(e=!0);var i=this.activeIndex,s=this.previousIndex,a=this.params;if(this.animating=!1,!a.cssMode){this.setTransition(0);var r=t;if(r||(r=i>s?"next":i<s?"prev":"reset"),this.emit("transitionEnd"),e&&i!==s){if("reset"===r)return void this.emit("slideResetTransitionEnd");this.emit("slideChangeTransitionEnd"),"next"===r?this.emit("slideNextTransitionEnd"):this.emit("slidePrevTransitionEnd")}}}};var u={slideTo:function(e,t,i,s){var a;void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var r=this,n=e;n<0&&(n=0);var o=r.params,l=r.snapGrid,d=r.slidesGrid,h=r.previousIndex,p=r.activeIndex,c=r.rtlTranslate,u=r.wrapperEl;if(r.animating&&o.preventInteractionOnTransition)return!1;var v=Math.min(r.params.slidesPerGroupSkip,n),f=v+Math.floor((n-v)/r.params.slidesPerGroup);f>=l.length&&(f=l.length-1),(p||o.initialSlide||0)===(h||0)&&i&&r.emit("beforeSlideChangeStart");var m,g=-l[f];if(r.updateProgress(g),o.normalizeSlideIndex)for(var b=0;b<d.length;b+=1)-Math.floor(100*g)>=Math.floor(100*d[b])&&(n=b);if(r.initialized&&n!==p){if(!r.allowSlideNext&&g<r.translate&&g<r.minTranslate())return!1;if(!r.allowSlidePrev&&g>r.translate&&g>r.maxTranslate()&&(p||0)!==n)return!1}if(m=n>p?"next":n<p?"prev":"reset",c&&-g===r.translate||!c&&g===r.translate)return r.updateActiveIndex(n),o.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==o.effect&&r.setTranslate(g),"reset"!==m&&(r.transitionStart(i,m),r.transitionEnd(i,m)),!1;if(o.cssMode){var w=r.isHorizontal();return 0===t?u[w?"scrollLeft":"scrollTop"]=-g:u.scrollTo?u.scrollTo(((a={})[w?"left":"top"]=-g,a.behavior="smooth",a)):u[w?"scrollLeft":"scrollTop"]=-g,!0}return 0===t?(r.setTransition(0),r.setTranslate(g),r.updateActiveIndex(n),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,s),r.transitionStart(i,m),r.transitionEnd(i,m)):(r.setTransition(t),r.setTranslate(g),r.updateActiveIndex(n),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,s),r.transitionStart(i,m),r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,m))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(e,t,i,s){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var a=e;return this.params.loop&&(a+=this.loopedSlides),this.slideTo(a,t,i,s)},slideNext:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var s=this.params,a=this.animating,r=this.activeIndex<s.slidesPerGroupSkip?1:s.slidesPerGroup;if(s.loop){if(a)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}return this.slideTo(this.activeIndex+r,e,t,i)},slidePrev:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var s=this.params,a=this.animating,r=this.snapGrid,n=this.slidesGrid,o=this.rtlTranslate;if(s.loop){if(a)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}function l(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var d,h=l(o?this.translate:-this.translate),p=r.map((function(e){return l(e)})),c=(n.map((function(e){return l(e)})),r[p.indexOf(h)],r[p.indexOf(h)-1]);return void 0===c&&s.cssMode&&r.forEach((function(e){!c&&h>=e&&(c=e)})),void 0!==c&&(d=n.indexOf(c))<0&&(d=this.activeIndex-1),this.slideTo(d,e,t,i)},slideReset:function(e,t,i){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e,t,i,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===s&&(s=.5);var a=this.activeIndex,r=Math.min(this.params.slidesPerGroupSkip,a),n=r+Math.floor((a-r)/this.params.slidesPerGroup),o=this.rtlTranslate?this.translate:-this.translate;if(o>=this.snapGrid[n]){var l=this.snapGrid[n];o-l>(this.snapGrid[n+1]-l)*s&&(a+=this.params.slidesPerGroup)}else{var d=this.snapGrid[n-1];o-d<=(this.snapGrid[n]-d)*s&&(a-=this.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,this.slidesGrid.length-1),this.slideTo(a,e,t,i)},slideToClickedSlide:function(){var e,t=this,i=t.params,a=t.$wrapperEl,r="auto"===i.slidesPerView?t.slidesPerViewDynamic():i.slidesPerView,o=t.clickedIndex;if(i.loop){if(t.animating)return;e=parseInt(s(t.clickedSlide).attr("data-swiper-slide-index"),10),i.centeredSlides?o<t.loopedSlides-r/2||o>t.slides.length-t.loopedSlides+r/2?(t.loopFix(),o=a.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),n.nextTick((function(){t.slideTo(o)}))):t.slideTo(o):o>t.slides.length-r?(t.loopFix(),o=a.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),n.nextTick((function(){t.slideTo(o)}))):t.slideTo(o)}else t.slideTo(o)}};var v={loopCreate:function(){var t=this,i=t.params,a=t.$wrapperEl;a.children("."+i.slideClass+"."+i.slideDuplicateClass).remove();var r=a.children("."+i.slideClass);if(i.loopFillGroupWithBlank){var n=i.slidesPerGroup-r.length%i.slidesPerGroup;if(n!==i.slidesPerGroup){for(var o=0;o<n;o+=1){var l=s(e.createElement("div")).addClass(i.slideClass+" "+i.slideBlankClass);a.append(l)}r=a.children("."+i.slideClass)}}"auto"!==i.slidesPerView||i.loopedSlides||(i.loopedSlides=r.length),t.loopedSlides=Math.ceil(parseFloat(i.loopedSlides||i.slidesPerView,10)),t.loopedSlides+=i.loopAdditionalSlides,t.loopedSlides>r.length&&(t.loopedSlides=r.length);var d=[],h=[];r.each((function(e,i){var a=s(i);e<t.loopedSlides&&h.push(i),e<r.length&&e>=r.length-t.loopedSlides&&d.push(i),a.attr("data-swiper-slide-index",e)}));for(var p=0;p<h.length;p+=1)a.append(s(h[p].cloneNode(!0)).addClass(i.slideDuplicateClass));for(var c=d.length-1;c>=0;c-=1)a.prepend(s(d[c].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){this.emit("beforeLoopFix");var e,t=this.activeIndex,i=this.slides,s=this.loopedSlides,a=this.allowSlidePrev,r=this.allowSlideNext,n=this.snapGrid,o=this.rtlTranslate;this.allowSlidePrev=!0,this.allowSlideNext=!0;var l=-n[t]-this.getTranslate();if(t<s)e=i.length-3*s+t,e+=s,this.slideTo(e,0,!1,!0)&&0!==l&&this.setTranslate((o?-this.translate:this.translate)-l);else if(t>=i.length-s){e=-i.length+t+s,e+=s,this.slideTo(e,0,!1,!0)&&0!==l&&this.setTranslate((o?-this.translate:this.translate)-l)}this.allowSlidePrev=a,this.allowSlideNext=r,this.emit("loopFix")},loopDestroy:function(){var e=this.$wrapperEl,t=this.params,i=this.slides;e.children("."+t.slideClass+"."+t.slideDuplicateClass+",."+t.slideClass+"."+t.slideBlankClass).remove(),i.removeAttr("data-swiper-slide-index")}};var f={setGrabCursor:function(e){if(!(o.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked||this.params.cssMode)){var t=this.el;t.style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){o.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this.el.style.cursor="")}};var m,g,b,w,y,x,T,E,S,C,M,P,z,k,$,L={appendSlide:function(e){var t=this.$wrapperEl,i=this.params;if(i.loop&&this.loopDestroy(),"object"==typeof e&&"length"in e)for(var s=0;s<e.length;s+=1)e[s]&&t.append(e[s]);else t.append(e);i.loop&&this.loopCreate(),i.observer&&o.observer||this.update()},prependSlide:function(e){var t=this.params,i=this.$wrapperEl,s=this.activeIndex;t.loop&&this.loopDestroy();var a=s+1;if("object"==typeof e&&"length"in e){for(var r=0;r<e.length;r+=1)e[r]&&i.prepend(e[r]);a=s+e.length}else i.prepend(e);t.loop&&this.loopCreate(),t.observer&&o.observer||this.update(),this.slideTo(a,0,!1)},addSlide:function(e,t){var i=this.$wrapperEl,s=this.params,a=this.activeIndex;s.loop&&(a-=this.loopedSlides,this.loopDestroy(),this.slides=i.children("."+s.slideClass));var r=this.slides.length;if(e<=0)this.prependSlide(t);else if(e>=r)this.appendSlide(t);else{for(var n=a>e?a+1:a,l=[],d=r-1;d>=e;d-=1){var h=this.slides.eq(d);h.remove(),l.unshift(h)}if("object"==typeof t&&"length"in t){for(var p=0;p<t.length;p+=1)t[p]&&i.append(t[p]);n=a>e?a+t.length:a}else i.append(t);for(var c=0;c<l.length;c+=1)i.append(l[c]);s.loop&&this.loopCreate(),s.observer&&o.observer||this.update(),s.loop?this.slideTo(n+this.loopedSlides,0,!1):this.slideTo(n,0,!1)}},removeSlide:function(e){var t=this.params,i=this.$wrapperEl,s=this.activeIndex;t.loop&&(s-=this.loopedSlides,this.loopDestroy(),this.slides=i.children("."+t.slideClass));var a,r=s;if("object"==typeof e&&"length"in e){for(var n=0;n<e.length;n+=1)a=e[n],this.slides[a]&&this.slides.eq(a).remove(),a<r&&(r-=1);r=Math.max(r,0)}else a=e,this.slides[a]&&this.slides.eq(a).remove(),a<r&&(r-=1),r=Math.max(r,0);t.loop&&this.loopCreate(),t.observer&&o.observer||this.update(),t.loop?this.slideTo(r+this.loopedSlides,0,!1):this.slideTo(r,0,!1)},removeAllSlides:function(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}},I=(m=t.navigator.platform,g=t.navigator.userAgent,b={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!(!t.cordova&&!t.phonegap),phonegap:!(!t.cordova&&!t.phonegap),electron:!1},w=t.screen.width,y=t.screen.height,x=g.match(/(Android);?[\s\/]+([\d.]+)?/),T=g.match(/(iPad).*OS\s([\d_]+)/),E=g.match(/(iPod)(.*OS\s([\d_]+))?/),S=!T&&g.match(/(iPhone\sOS|iOS)\s([\d_]+)/),C=g.indexOf("MSIE ")>=0||g.indexOf("Trident/")>=0,M=g.indexOf("Edge/")>=0,P=g.indexOf("Gecko/")>=0&&g.indexOf("Firefox/")>=0,z="Win32"===m,k=g.toLowerCase().indexOf("electron")>=0,$="MacIntel"===m,!T&&$&&o.touch&&(1024===w&&1366===y||834===w&&1194===y||834===w&&1112===y||768===w&&1024===y)&&(T=g.match(/(Version)\/([\d.]+)/),$=!1),b.ie=C,b.edge=M,b.firefox=P,x&&!z&&(b.os="android",b.osVersion=x[2],b.android=!0,b.androidChrome=g.toLowerCase().indexOf("chrome")>=0),(T||S||E)&&(b.os="ios",b.ios=!0),S&&!E&&(b.osVersion=S[2].replace(/_/g,"."),b.iphone=!0),T&&(b.osVersion=T[2].replace(/_/g,"."),b.ipad=!0),E&&(b.osVersion=E[3]?E[3].replace(/_/g,"."):null,b.ipod=!0),b.ios&&b.osVersion&&g.indexOf("Version/")>=0&&"10"===b.osVersion.split(".")[0]&&(b.osVersion=g.toLowerCase().split("version/")[1].split(" ")[0]),b.webView=!(!(S||T||E)||!g.match(/.*AppleWebKit(?!.*Safari)/i)&&!t.navigator.standalone)||t.matchMedia&&t.matchMedia("(display-mode: standalone)").matches,b.webview=b.webView,b.standalone=b.webView,b.desktop=!(b.ios||b.android)||k,b.desktop&&(b.electron=k,b.macos=$,b.windows=z,b.macos&&(b.os="macos"),b.windows&&(b.os="windows")),b.pixelRatio=t.devicePixelRatio||1,b);function D(i){var a=this.touchEventsData,r=this.params,o=this.touches;if(!this.animating||!r.preventInteractionOnTransition){var l=i;l.originalEvent&&(l=l.originalEvent);var d=s(l.target);if(("wrapper"!==r.touchEventsTarget||d.closest(this.wrapperEl).length)&&(a.isTouchEvent="touchstart"===l.type,(a.isTouchEvent||!("which"in l)||3!==l.which)&&!(!a.isTouchEvent&&"button"in l&&l.button>0||a.isTouched&&a.isMoved)))if(r.noSwiping&&d.closest(r.noSwipingSelector?r.noSwipingSelector:"."+r.noSwipingClass)[0])this.allowClick=!0;else if(!r.swipeHandler||d.closest(r.swipeHandler)[0]){o.currentX="touchstart"===l.type?l.targetTouches[0].pageX:l.pageX,o.currentY="touchstart"===l.type?l.targetTouches[0].pageY:l.pageY;var h=o.currentX,p=o.currentY,c=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,u=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(!c||!(h<=u||h>=t.screen.width-u)){if(n.extend(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=h,o.startY=p,a.touchStartTime=n.now(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,r.threshold>0&&(a.allowThresholdMove=!1),"touchstart"!==l.type){var v=!0;d.is(a.formElements)&&(v=!1),e.activeElement&&s(e.activeElement).is(a.formElements)&&e.activeElement!==d[0]&&e.activeElement.blur();var f=v&&this.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||f)&&l.preventDefault()}this.emit("touchStart",l)}}}}function O(t){var i=this.touchEventsData,a=this.params,r=this.touches,o=this.rtlTranslate,l=t;if(l.originalEvent&&(l=l.originalEvent),i.isTouched){if(!i.isTouchEvent||"mousemove"!==l.type){var d="touchmove"===l.type&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),h="touchmove"===l.type?d.pageX:l.pageX,p="touchmove"===l.type?d.pageY:l.pageY;if(l.preventedByNestedSwiper)return r.startX=h,void(r.startY=p);if(!this.allowTouchMove)return this.allowClick=!1,void(i.isTouched&&(n.extend(r,{startX:h,startY:p,currentX:h,currentY:p}),i.touchStartTime=n.now()));if(i.isTouchEvent&&a.touchReleaseOnEdges&&!a.loop)if(this.isVertical()){if(p<r.startY&&this.translate<=this.maxTranslate()||p>r.startY&&this.translate>=this.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(h<r.startX&&this.translate<=this.maxTranslate()||h>r.startX&&this.translate>=this.minTranslate())return;if(i.isTouchEvent&&e.activeElement&&l.target===e.activeElement&&s(l.target).is(i.formElements))return i.isMoved=!0,void(this.allowClick=!1);if(i.allowTouchCallbacks&&this.emit("touchMove",l),!(l.targetTouches&&l.targetTouches.length>1)){r.currentX=h,r.currentY=p;var c=r.currentX-r.startX,u=r.currentY-r.startY;if(!(this.params.threshold&&Math.sqrt(Math.pow(c,2)+Math.pow(u,2))<this.params.threshold)){var v;if(void 0===i.isScrolling)this.isHorizontal()&&r.currentY===r.startY||this.isVertical()&&r.currentX===r.startX?i.isScrolling=!1:c*c+u*u>=25&&(v=180*Math.atan2(Math.abs(u),Math.abs(c))/Math.PI,i.isScrolling=this.isHorizontal()?v>a.touchAngle:90-v>a.touchAngle);if(i.isScrolling&&this.emit("touchMoveOpposite",l),void 0===i.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(i.startMoving=!0)),i.isScrolling)i.isTouched=!1;else if(i.startMoving){this.allowClick=!1,a.cssMode||l.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&l.stopPropagation(),i.isMoved||(a.loop&&this.loopFix(),i.startTranslate=this.getTranslate(),this.setTransition(0),this.animating&&this.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!a.grabCursor||!0!==this.allowSlideNext&&!0!==this.allowSlidePrev||this.setGrabCursor(!0),this.emit("sliderFirstMove",l)),this.emit("sliderMove",l),i.isMoved=!0;var f=this.isHorizontal()?c:u;r.diff=f,f*=a.touchRatio,o&&(f=-f),this.swipeDirection=f>0?"prev":"next",i.currentTranslate=f+i.startTranslate;var m=!0,g=a.resistanceRatio;if(a.touchReleaseOnEdges&&(g=0),f>0&&i.currentTranslate>this.minTranslate()?(m=!1,a.resistance&&(i.currentTranslate=this.minTranslate()-1+Math.pow(-this.minTranslate()+i.startTranslate+f,g))):f<0&&i.currentTranslate<this.maxTranslate()&&(m=!1,a.resistance&&(i.currentTranslate=this.maxTranslate()+1-Math.pow(this.maxTranslate()-i.startTranslate-f,g))),m&&(l.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),a.threshold>0){if(!(Math.abs(f)>a.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,i.currentTranslate=i.startTranslate,void(r.diff=this.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}a.followFinger&&!a.cssMode&&((a.freeMode||a.watchSlidesProgress||a.watchSlidesVisibility)&&(this.updateActiveIndex(),this.updateSlidesClasses()),a.freeMode&&(0===i.velocities.length&&i.velocities.push({position:r[this.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:r[this.isHorizontal()?"currentX":"currentY"],time:n.now()})),this.updateProgress(i.currentTranslate),this.setTranslate(i.currentTranslate))}}}}}else i.startMoving&&i.isScrolling&&this.emit("touchMoveOpposite",l)}function A(e){var t=this,i=t.touchEventsData,s=t.params,a=t.touches,r=t.rtlTranslate,o=t.$wrapperEl,l=t.slidesGrid,d=t.snapGrid,h=e;if(h.originalEvent&&(h=h.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",h),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&s.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);s.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var p,c=n.now(),u=c-i.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(h),t.emit("tap click",h),u<300&&c-i.lastClickTime<300&&t.emit("doubleTap doubleClick",h)),i.lastClickTime=n.now(),n.nextTick((function(){t.destroyed||(t.allowClick=!0)})),!i.isTouched||!i.isMoved||!t.swipeDirection||0===a.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,p=s.followFinger?r?t.translate:-t.translate:-i.currentTranslate,!s.cssMode)if(s.freeMode){if(p<-t.minTranslate())return void t.slideTo(t.activeIndex);if(p>-t.maxTranslate())return void(t.slides.length<d.length?t.slideTo(d.length-1):t.slideTo(t.slides.length-1));if(s.freeModeMomentum){if(i.velocities.length>1){var v=i.velocities.pop(),f=i.velocities.pop(),m=v.position-f.position,g=v.time-f.time;t.velocity=m/g,t.velocity/=2,Math.abs(t.velocity)<s.freeModeMinimumVelocity&&(t.velocity=0),(g>150||n.now()-v.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=s.freeModeMomentumVelocityRatio,i.velocities.length=0;var b=1e3*s.freeModeMomentumRatio,w=t.velocity*b,y=t.translate+w;r&&(y=-y);var x,T,E=!1,S=20*Math.abs(t.velocity)*s.freeModeMomentumBounceRatio;if(y<t.maxTranslate())s.freeModeMomentumBounce?(y+t.maxTranslate()<-S&&(y=t.maxTranslate()-S),x=t.maxTranslate(),E=!0,i.allowMomentumBounce=!0):y=t.maxTranslate(),s.loop&&s.centeredSlides&&(T=!0);else if(y>t.minTranslate())s.freeModeMomentumBounce?(y-t.minTranslate()>S&&(y=t.minTranslate()+S),x=t.minTranslate(),E=!0,i.allowMomentumBounce=!0):y=t.minTranslate(),s.loop&&s.centeredSlides&&(T=!0);else if(s.freeModeSticky){for(var C,M=0;M<d.length;M+=1)if(d[M]>-y){C=M;break}y=-(y=Math.abs(d[C]-y)<Math.abs(d[C-1]-y)||"next"===t.swipeDirection?d[C]:d[C-1])}if(T&&t.once("transitionEnd",(function(){t.loopFix()})),0!==t.velocity){if(b=r?Math.abs((-y-t.translate)/t.velocity):Math.abs((y-t.translate)/t.velocity),s.freeModeSticky){var P=Math.abs((r?-y:y)-t.translate),z=t.slidesSizesGrid[t.activeIndex];b=P<z?s.speed:P<2*z?1.5*s.speed:2.5*s.speed}}else if(s.freeModeSticky)return void t.slideToClosest();s.freeModeMomentumBounce&&E?(t.updateProgress(x),t.setTransition(b),t.setTranslate(y),t.transitionStart(!0,t.swipeDirection),t.animating=!0,o.transitionEnd((function(){t&&!t.destroyed&&i.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(s.speed),t.setTranslate(x),o.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))}))):t.velocity?(t.updateProgress(y),t.setTransition(b),t.setTranslate(y),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,o.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(y),t.updateActiveIndex(),t.updateSlidesClasses()}else if(s.freeModeSticky)return void t.slideToClosest();(!s.freeModeMomentum||u>=s.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var k=0,$=t.slidesSizesGrid[0],L=0;L<l.length;L+=L<s.slidesPerGroupSkip?1:s.slidesPerGroup){var I=L<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;void 0!==l[L+I]?p>=l[L]&&p<l[L+I]&&(k=L,$=l[L+I]-l[L]):p>=l[L]&&(k=L,$=l[l.length-1]-l[l.length-2])}var D=(p-l[k])/$,O=k<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(u>s.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(D>=s.longSwipesRatio?t.slideTo(k+O):t.slideTo(k)),"prev"===t.swipeDirection&&(D>1-s.longSwipesRatio?t.slideTo(k+O):t.slideTo(k))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(h.target===t.navigation.nextEl||h.target===t.navigation.prevEl)?h.target===t.navigation.nextEl?t.slideTo(k+O):t.slideTo(k):("next"===t.swipeDirection&&t.slideTo(k+O),"prev"===t.swipeDirection&&t.slideTo(k))}}}function G(){var e=this.params,t=this.el;if(!t||0!==t.offsetWidth){e.breakpoints&&this.setBreakpoint();var i=this.allowSlideNext,s=this.allowSlidePrev,a=this.snapGrid;this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),this.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&this.isEnd&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0),this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=s,this.allowSlideNext=i,this.params.watchOverflow&&a!==this.snapGrid&&this.checkOverflow()}}function H(e){this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function B(){var e=this.wrapperEl;this.previousTranslate=this.translate,this.translate=this.isHorizontal()?-e.scrollLeft:-e.scrollTop,-0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();var t=this.maxTranslate()-this.minTranslate();(0===t?0:(this.translate-this.minTranslate())/t)!==this.progress&&this.updateProgress(this.translate),this.emit("setTranslate",this.translate,!1)}var N=!1;function X(){}var V={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},Y={update:h,translate:p,transition:c,slide:u,loop:v,grabCursor:f,manipulation:L,events:{attachEvents:function(){var t=this.params,i=this.touchEvents,s=this.el,a=this.wrapperEl;this.onTouchStart=D.bind(this),this.onTouchMove=O.bind(this),this.onTouchEnd=A.bind(this),t.cssMode&&(this.onScroll=B.bind(this)),this.onClick=H.bind(this);var r=!!t.nested;if(!o.touch&&o.pointerEvents)s.addEventListener(i.start,this.onTouchStart,!1),e.addEventListener(i.move,this.onTouchMove,r),e.addEventListener(i.end,this.onTouchEnd,!1);else{if(o.touch){var n=!("touchstart"!==i.start||!o.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};s.addEventListener(i.start,this.onTouchStart,n),s.addEventListener(i.move,this.onTouchMove,o.passiveListener?{passive:!1,capture:r}:r),s.addEventListener(i.end,this.onTouchEnd,n),i.cancel&&s.addEventListener(i.cancel,this.onTouchEnd,n),N||(e.addEventListener("touchstart",X),N=!0)}(t.simulateTouch&&!I.ios&&!I.android||t.simulateTouch&&!o.touch&&I.ios)&&(s.addEventListener("mousedown",this.onTouchStart,!1),e.addEventListener("mousemove",this.onTouchMove,r),e.addEventListener("mouseup",this.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&s.addEventListener("click",this.onClick,!0),t.cssMode&&a.addEventListener("scroll",this.onScroll),t.updateOnWindowResize?this.on(I.ios||I.android?"resize orientationchange observerUpdate":"resize observerUpdate",G,!0):this.on("observerUpdate",G,!0)},detachEvents:function(){var t=this.params,i=this.touchEvents,s=this.el,a=this.wrapperEl,r=!!t.nested;if(!o.touch&&o.pointerEvents)s.removeEventListener(i.start,this.onTouchStart,!1),e.removeEventListener(i.move,this.onTouchMove,r),e.removeEventListener(i.end,this.onTouchEnd,!1);else{if(o.touch){var n=!("onTouchStart"!==i.start||!o.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};s.removeEventListener(i.start,this.onTouchStart,n),s.removeEventListener(i.move,this.onTouchMove,r),s.removeEventListener(i.end,this.onTouchEnd,n),i.cancel&&s.removeEventListener(i.cancel,this.onTouchEnd,n)}(t.simulateTouch&&!I.ios&&!I.android||t.simulateTouch&&!o.touch&&I.ios)&&(s.removeEventListener("mousedown",this.onTouchStart,!1),e.removeEventListener("mousemove",this.onTouchMove,r),e.removeEventListener("mouseup",this.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&s.removeEventListener("click",this.onClick,!0),t.cssMode&&a.removeEventListener("scroll",this.onScroll),this.off(I.ios||I.android?"resize orientationchange observerUpdate":"resize observerUpdate",G)}},breakpoints:{setBreakpoint:function(){var e=this.activeIndex,t=this.initialized,i=this.loopedSlides;void 0===i&&(i=0);var s=this.params,a=this.$el,r=s.breakpoints;if(r&&(!r||0!==Object.keys(r).length)){var o=this.getBreakpoint(r);if(o&&this.currentBreakpoint!==o){var l=o in r?r[o]:void 0;l&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach((function(e){var t=l[e];void 0!==t&&(l[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var d=l||this.originalParams,h=s.slidesPerColumn>1,p=d.slidesPerColumn>1;h&&!p?a.removeClass(s.containerModifierClass+"multirow "+s.containerModifierClass+"multirow-column"):!h&&p&&(a.addClass(s.containerModifierClass+"multirow"),"column"===d.slidesPerColumnFill&&a.addClass(s.containerModifierClass+"multirow-column"));var c=d.direction&&d.direction!==s.direction,u=s.loop&&(d.slidesPerView!==s.slidesPerView||c);c&&t&&this.changeDirection(),n.extend(this.params,d),n.extend(this,{allowTouchMove:this.params.allowTouchMove,allowSlideNext:this.params.allowSlideNext,allowSlidePrev:this.params.allowSlidePrev}),this.currentBreakpoint=o,u&&t&&(this.loopDestroy(),this.loopCreate(),this.updateSlides(),this.slideTo(e-i+this.loopedSlides,0,!1)),this.emit("breakpoint",d)}}},getBreakpoint:function(e){if(e){var i=!1,s=Object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexOf("@")){var i=parseFloat(e.substr(1));return{value:t.innerHeight*i,point:e}}return{value:e,point:e}}));s.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var a=0;a<s.length;a+=1){var r=s[a],n=r.point;r.value<=t.innerWidth&&(i=n)}return i||"max"}}},checkOverflow:{checkOverflow:function(){var e=this.params,t=this.isLocked,i=this.slides.length>0&&e.slidesOffsetBefore+e.spaceBetween*(this.slides.length-1)+this.slides[0].offsetWidth*this.slides.length;e.slidesOffsetBefore&&e.slidesOffsetAfter&&i?this.isLocked=i<=this.size:this.isLocked=1===this.snapGrid.length,this.allowSlideNext=!this.isLocked,this.allowSlidePrev=!this.isLocked,t!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock"),t&&t!==this.isLocked&&(this.isEnd=!1,this.navigation.update())}},classes:{addClasses:function(){var e=this.classNames,t=this.params,i=this.rtl,s=this.$el,a=[];a.push("initialized"),a.push(t.direction),t.freeMode&&a.push("free-mode"),t.autoHeight&&a.push("autoheight"),i&&a.push("rtl"),t.slidesPerColumn>1&&(a.push("multirow"),"column"===t.slidesPerColumnFill&&a.push("multirow-column")),I.android&&a.push("android"),I.ios&&a.push("ios"),t.cssMode&&a.push("css-mode"),a.forEach((function(i){e.push(t.containerModifierClass+i)})),s.addClass(e.join(" "))},removeClasses:function(){var e=this.$el,t=this.classNames;e.removeClass(t.join(" "))}},images:{loadImage:function(e,i,s,a,r,n){var o;function l(){n&&n()}e.complete&&r?l():i?((o=new t.Image).onload=l,o.onerror=l,a&&(o.sizes=a),s&&(o.srcset=s),i&&(o.src=i)):l()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var i=0;i<e.imagesToLoad.length;i+=1){var s=e.imagesToLoad[i];e.loadImage(s,s.currentSrc||s.getAttribute("src"),s.srcset||s.getAttribute("srcset"),s.sizes||s.getAttribute("sizes"),!0,t)}}}},F={},W=function(e){function t(){for(var i,a,r,l=[],d=arguments.length;d--;)l[d]=arguments[d];1===l.length&&l[0].constructor&&l[0].constructor===Object?r=l[0]:(a=(i=l)[0],r=i[1]),r||(r={}),r=n.extend({},r),a&&!r.el&&(r.el=a),e.call(this,r),Object.keys(Y).forEach((function(e){Object.keys(Y[e]).forEach((function(i){t.prototype[i]||(t.prototype[i]=Y[e][i])}))}));var h=this;void 0===h.modules&&(h.modules={}),Object.keys(h.modules).forEach((function(e){var t=h.modules[e];if(t.params){var i=Object.keys(t.params)[0],s=t.params[i];if("object"!=typeof s||null===s)return;if(!(i in r&&"enabled"in s))return;!0===r[i]&&(r[i]={enabled:!0}),"object"!=typeof r[i]||"enabled"in r[i]||(r[i].enabled=!0),r[i]||(r[i]={enabled:!1})}}));var p=n.extend({},V);h.useModulesParams(p),h.params=n.extend({},p,F,r),h.originalParams=n.extend({},h.params),h.passedParams=n.extend({},r),h.$=s;var c=s(h.params.el);if(a=c[0]){if(c.length>1){var u=[];return c.each((function(e,i){var s=n.extend({},r,{el:i});u.push(new t(s))})),u}var v,f,m;return a.swiper=h,c.data("swiper",h),a&&a.shadowRoot&&a.shadowRoot.querySelector?(v=s(a.shadowRoot.querySelector("."+h.params.wrapperClass))).children=function(e){return c.children(e)}:v=c.children("."+h.params.wrapperClass),n.extend(h,{$el:c,el:a,$wrapperEl:v,wrapperEl:v[0],classNames:[],slides:s(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===h.params.direction},isVertical:function(){return"vertical"===h.params.direction},rtl:"rtl"===a.dir.toLowerCase()||"rtl"===c.css("direction"),rtlTranslate:"horizontal"===h.params.direction&&("rtl"===a.dir.toLowerCase()||"rtl"===c.css("direction")),wrongRTL:"-webkit-box"===v.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:h.params.allowSlideNext,allowSlidePrev:h.params.allowSlidePrev,touchEvents:(f=["touchstart","touchmove","touchend","touchcancel"],m=["mousedown","mousemove","mouseup"],o.pointerEvents&&(m=["pointerdown","pointermove","pointerup"]),h.touchEventsTouch={start:f[0],move:f[1],end:f[2],cancel:f[3]},h.touchEventsDesktop={start:m[0],move:m[1],end:m[2]},o.touch||!h.params.simulateTouch?h.touchEventsTouch:h.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:n.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:h.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),h.useModules(),h.params.init&&h.init(),h}}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return t.prototype.slidesPerViewDynamic=function(){var e=this.params,t=this.slides,i=this.slidesGrid,s=this.size,a=this.activeIndex,r=1;if(e.centeredSlides){for(var n,o=t[a].swiperSlideSize,l=a+1;l<t.length;l+=1)t[l]&&!n&&(r+=1,(o+=t[l].swiperSlideSize)>s&&(n=!0));for(var d=a-1;d>=0;d-=1)t[d]&&!n&&(r+=1,(o+=t[d].swiperSlideSize)>s&&(n=!0))}else for(var h=a+1;h<t.length;h+=1)i[h]-i[a]<s&&(r+=1);return r},t.prototype.update=function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,i=e.params;i.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(s(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||s(),i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function s(){var t=e.rtlTranslate?-1*e.translate:e.translate,i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i),e.updateActiveIndex(),e.updateSlidesClasses()}},t.prototype.changeDirection=function(e,t){void 0===t&&(t=!0);var i=this.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e?this:(this.$el.removeClass(""+this.params.containerModifierClass+i).addClass(""+this.params.containerModifierClass+e),this.params.direction=e,this.slides.each((function(t,i){"vertical"===e?i.style.width="":i.style.height=""})),this.emit("changeDirection"),t&&this.update(),this)},t.prototype.init=function(){this.initialized||(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit),this.attachEvents(),this.initialized=!0,this.emit("init"))},t.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var i=this,s=i.params,a=i.$el,r=i.$wrapperEl,o=i.slides;return void 0===i.params||i.destroyed?null:(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),a.removeAttr("style"),r.removeAttr("style"),o&&o.length&&o.removeClass([s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((function(e){i.off(e)})),!1!==e&&(i.$el[0].swiper=null,i.$el.data("swiper",null),n.deleteProps(i)),i.destroyed=!0,null)},t.extendDefaults=function(e){n.extend(F,e)},i.extendedDefaults.get=function(){return F},i.defaults.get=function(){return V},i.Class.get=function(){return e},i.$.get=function(){return s},Object.defineProperties(t,i),t}(l),R={name:"device",proto:{device:I},static:{device:I}},q={name:"support",proto:{support:o},static:{support:o}},j={isEdge:!!t.navigator.userAgent.match(/Edge/g),isSafari:function(){var e=t.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)},K={name:"browser",proto:{browser:j},static:{browser:j}},U={name:"resize",create:function(){var e=this;n.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){t.addEventListener("resize",this.resize.resizeHandler),t.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){t.removeEventListener("resize",this.resize.resizeHandler),t.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},_={func:t.MutationObserver||t.WebkitMutationObserver,attach:function(e,i){void 0===i&&(i={});var s=this,a=new(0,_.func)((function(e){if(1!==e.length){var i=function(){s.emit("observerUpdate",e[0])};t.requestAnimationFrame?t.requestAnimationFrame(i):t.setTimeout(i,0)}else s.emit("observerUpdate",e[0])}));a.observe(e,{attributes:void 0===i.attributes||i.attributes,childList:void 0===i.childList||i.childList,characterData:void 0===i.characterData||i.characterData}),s.observer.observers.push(a)},init:function(){if(o.observer&&this.params.observer){if(this.params.observeParents)for(var e=this.$el.parents(),t=0;t<e.length;t+=1)this.observer.attach(e[t]);this.observer.attach(this.$el[0],{childList:this.params.observeSlideChildren}),this.observer.attach(this.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach((function(e){e.disconnect()})),this.observer.observers=[]}},Z={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){n.extend(this,{observer:{init:_.init.bind(this),attach:_.attach.bind(this),destroy:_.destroy.bind(this),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},Q={update:function(e){var t=this,i=t.params,s=i.slidesPerView,a=i.slidesPerGroup,r=i.centeredSlides,o=t.params.virtual,l=o.addSlidesBefore,d=o.addSlidesAfter,h=t.virtual,p=h.from,c=h.to,u=h.slides,v=h.slidesGrid,f=h.renderSlide,m=h.offset;t.updateActiveIndex();var g,b,w,y=t.activeIndex||0;g=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",r?(b=Math.floor(s/2)+a+l,w=Math.floor(s/2)+a+d):(b=s+(a-1)+l,w=a+d);var x=Math.max((y||0)-w,0),T=Math.min((y||0)+b,u.length-1),E=(t.slidesGrid[x]||0)-(t.slidesGrid[0]||0);function S(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(n.extend(t.virtual,{from:x,to:T,offset:E,slidesGrid:t.slidesGrid}),p===x&&c===T&&!e)return t.slidesGrid!==v&&E!==m&&t.slides.css(g,E+"px"),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:E,from:x,to:T,slides:function(){for(var e=[],t=x;t<=T;t+=1)e.push(u[t]);return e}()}),void S();var C=[],M=[];if(e)t.$wrapperEl.find("."+t.params.slideClass).remove();else for(var P=p;P<=c;P+=1)(P<x||P>T)&&t.$wrapperEl.find("."+t.params.slideClass+'[data-swiper-slide-index="'+P+'"]').remove();for(var z=0;z<u.length;z+=1)z>=x&&z<=T&&(void 0===c||e?M.push(z):(z>c&&M.push(z),z<p&&C.push(z)));M.forEach((function(e){t.$wrapperEl.append(f(u[e],e))})),C.sort((function(e,t){return t-e})).forEach((function(e){t.$wrapperEl.prepend(f(u[e],e))})),t.$wrapperEl.children(".swiper-slide").css(g,E+"px"),S()},renderSlide:function(e,t){var i=this.params.virtual;if(i.cache&&this.virtual.cache[t])return this.virtual.cache[t];var a=i.renderSlide?s(i.renderSlide.call(this,e,t)):s('<div class="'+this.params.slideClass+'" data-swiper-slide-index="'+t+'">'+e+"</div>");return a.attr("data-swiper-slide-index")||a.attr("data-swiper-slide-index",t),i.cache&&(this.virtual.cache[t]=a),a},appendSlide:function(e){if("object"==typeof e&&"length"in e)for(var t=0;t<e.length;t+=1)e[t]&&this.virtual.slides.push(e[t]);else this.virtual.slides.push(e);this.virtual.update(!0)},prependSlide:function(e){var t=this.activeIndex,i=t+1,s=1;if(Array.isArray(e)){for(var a=0;a<e.length;a+=1)e[a]&&this.virtual.slides.unshift(e[a]);i=t+e.length,s=e.length}else this.virtual.slides.unshift(e);if(this.params.virtual.cache){var r=this.virtual.cache,n={};Object.keys(r).forEach((function(e){var t=r[e],i=t.attr("data-swiper-slide-index");i&&t.attr("data-swiper-slide-index",parseInt(i,10)+1),n[parseInt(e,10)+s]=t})),this.virtual.cache=n}this.virtual.update(!0),this.slideTo(i,0)},removeSlide:function(e){if(null!=e){var t=this.activeIndex;if(Array.isArray(e))for(var i=e.length-1;i>=0;i-=1)this.virtual.slides.splice(e[i],1),this.params.virtual.cache&&delete this.virtual.cache[e[i]],e[i]<t&&(t-=1),t=Math.max(t,0);else this.virtual.slides.splice(e,1),this.params.virtual.cache&&delete this.virtual.cache[e],e<t&&(t-=1),t=Math.max(t,0);this.virtual.update(!0),this.slideTo(t,0)}},removeAllSlides:function(){this.virtual.slides=[],this.params.virtual.cache&&(this.virtual.cache={}),this.virtual.update(!0),this.slideTo(0,0)}},J={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){n.extend(this,{virtual:{update:Q.update.bind(this),appendSlide:Q.appendSlide.bind(this),prependSlide:Q.prependSlide.bind(this),removeSlide:Q.removeSlide.bind(this),removeAllSlides:Q.removeAllSlides.bind(this),renderSlide:Q.renderSlide.bind(this),slides:this.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){if(this.params.virtual.enabled){this.classNames.push(this.params.containerModifierClass+"virtual");var e={watchSlidesProgress:!0};n.extend(this.params,e),n.extend(this.originalParams,e),this.params.initialSlide||this.virtual.update()}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},ee={handle:function(i){var s=this.rtlTranslate,a=i;a.originalEvent&&(a=a.originalEvent);var r=a.keyCode||a.charCode;if(!this.allowSlideNext&&(this.isHorizontal()&&39===r||this.isVertical()&&40===r||34===r))return!1;if(!this.allowSlidePrev&&(this.isHorizontal()&&37===r||this.isVertical()&&38===r||33===r))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||e.activeElement&&e.activeElement.nodeName&&("input"===e.activeElement.nodeName.toLowerCase()||"textarea"===e.activeElement.nodeName.toLowerCase()))){if(this.params.keyboard.onlyInViewport&&(33===r||34===r||37===r||39===r||38===r||40===r)){var n=!1;if(this.$el.parents("."+this.params.slideClass).length>0&&0===this.$el.parents("."+this.params.slideActiveClass).length)return;var o=t.innerWidth,l=t.innerHeight,d=this.$el.offset();s&&(d.left-=this.$el[0].scrollLeft);for(var h=[[d.left,d.top],[d.left+this.width,d.top],[d.left,d.top+this.height],[d.left+this.width,d.top+this.height]],p=0;p<h.length;p+=1){var c=h[p];c[0]>=0&&c[0]<=o&&c[1]>=0&&c[1]<=l&&(n=!0)}if(!n)return}this.isHorizontal()?(33!==r&&34!==r&&37!==r&&39!==r||(a.preventDefault?a.preventDefault():a.returnValue=!1),(34!==r&&39!==r||s)&&(33!==r&&37!==r||!s)||this.slideNext(),(33!==r&&37!==r||s)&&(34!==r&&39!==r||!s)||this.slidePrev()):(33!==r&&34!==r&&38!==r&&40!==r||(a.preventDefault?a.preventDefault():a.returnValue=!1),34!==r&&40!==r||this.slideNext(),33!==r&&38!==r||this.slidePrev()),this.emit("keyPress",r)}},enable:function(){this.keyboard.enabled||(s(e).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(s(e).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},te={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){n.extend(this,{keyboard:{enabled:!1,enable:ee.enable.bind(this),disable:ee.disable.bind(this),handle:ee.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}};var ie={lastScrollTime:n.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:function(){return t.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var t="onwheel"in e;if(!t){var i=e.createElement("div");i.setAttribute("onwheel","return;"),t="function"==typeof i.onwheel}return!t&&e.implementation&&e.implementation.hasFeature&&!0!==e.implementation.hasFeature("","")&&(t=e.implementation.hasFeature("Events.wheel","3.0")),t}()?"wheel":"mousewheel"},normalize:function(e){var t=0,i=0,s=0,a=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),s=10*t,a=10*i,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(s=e.deltaX),e.shiftKey&&!s&&(s=a,a=0),(s||a)&&e.deltaMode&&(1===e.deltaMode?(s*=40,a*=40):(s*=800,a*=800)),s&&!t&&(t=s<1?-1:1),a&&!i&&(i=a<1?-1:1),{spinX:t,spinY:i,pixelX:s,pixelY:a}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var t=e,i=this,a=i.params.mousewheel;i.params.cssMode&&t.preventDefault();var r=i.$el;if("container"!==i.params.mousewheel.eventsTarged&&(r=s(i.params.mousewheel.eventsTarged)),!i.mouseEntered&&!r[0].contains(t.target)&&!a.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var o=0,l=i.rtlTranslate?-1:1,d=ie.normalize(t);if(a.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(d.pixelX)>Math.abs(d.pixelY)))return!0;o=d.pixelX*l}else{if(!(Math.abs(d.pixelY)>Math.abs(d.pixelX)))return!0;o=d.pixelY}else o=Math.abs(d.pixelX)>Math.abs(d.pixelY)?-d.pixelX*l:-d.pixelY;if(0===o)return!0;if(a.invert&&(o=-o),i.params.freeMode){var h={time:n.now(),delta:Math.abs(o),direction:Math.sign(o)},p=i.mousewheel.lastEventBeforeSnap,c=p&&h.time<p.time+500&&h.delta<=p.delta&&h.direction===p.direction;if(!c){i.mousewheel.lastEventBeforeSnap=void 0,i.params.loop&&i.loopFix();var u=i.getTranslate()+o*a.sensitivity,v=i.isBeginning,f=i.isEnd;if(u>=i.minTranslate()&&(u=i.minTranslate()),u<=i.maxTranslate()&&(u=i.maxTranslate()),i.setTransition(0),i.setTranslate(u),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!v&&i.isBeginning||!f&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky){clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=void 0;var m=i.mousewheel.recentWheelEvents;m.length>=15&&m.shift();var g=m.length?m[m.length-1]:void 0,b=m[0];if(m.push(h),g&&(h.delta>g.delta||h.direction!==g.direction))m.splice(0);else if(m.length>=15&&h.time-b.time<500&&b.delta-h.delta>=1&&h.delta<=6){var w=o>0?.8:.2;i.mousewheel.lastEventBeforeSnap=h,m.splice(0),i.mousewheel.timeout=n.nextTick((function(){i.slideToClosest(i.params.speed,!0,void 0,w)}),0)}i.mousewheel.timeout||(i.mousewheel.timeout=n.nextTick((function(){i.mousewheel.lastEventBeforeSnap=h,m.splice(0),i.slideToClosest(i.params.speed,!0,void 0,.5)}),500))}if(c||i.emit("scroll",t),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),u===i.minTranslate()||u===i.maxTranslate())return!0}}else{var y={time:n.now(),delta:Math.abs(o),direction:Math.sign(o),raw:e},x=i.mousewheel.recentWheelEvents;x.length>=2&&x.shift();var T=x.length?x[x.length-1]:void 0;if(x.push(y),T?(y.direction!==T.direction||y.delta>T.delta)&&i.mousewheel.animateSlider(y):i.mousewheel.animateSlider(y),i.mousewheel.releaseScroll(y))return!0}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},animateSlider:function(e){return e.delta>=6&&n.now()-this.mousewheel.lastScrollTime<60||(e.direction<0?this.isEnd&&!this.params.loop||this.animating||(this.slideNext(),this.emit("scroll",e.raw)):this.isBeginning&&!this.params.loop||this.animating||(this.slidePrev(),this.emit("scroll",e.raw)),this.mousewheel.lastScrollTime=(new t.Date).getTime(),!1)},releaseScroll:function(e){var t=this.params.mousewheel;if(e.direction<0){if(this.isEnd&&!this.params.loop&&t.releaseOnEdges)return!0}else if(this.isBeginning&&!this.params.loop&&t.releaseOnEdges)return!0;return!1},enable:function(){var e=ie.event();if(this.params.cssMode)return this.wrapperEl.removeEventListener(e,this.mousewheel.handle),!0;if(!e)return!1;if(this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=s(this.params.mousewheel.eventsTarged)),t.on("mouseenter",this.mousewheel.handleMouseEnter),t.on("mouseleave",this.mousewheel.handleMouseLeave),t.on(e,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function(){var e=ie.event();if(this.params.cssMode)return this.wrapperEl.addEventListener(e,this.mousewheel.handle),!0;if(!e)return!1;if(!this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=s(this.params.mousewheel.eventsTarged)),t.off(e,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}},se={update:function(){var e=this.params.navigation;if(!this.params.loop){var t=this.navigation,i=t.$nextEl,s=t.$prevEl;s&&s.length>0&&(this.isBeginning?s.addClass(e.disabledClass):s.removeClass(e.disabledClass),s[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass)),i&&i.length>0&&(this.isEnd?i.addClass(e.disabledClass):i.removeClass(e.disabledClass),i[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass))}},onPrevClick:function(e){e.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick:function(e){e.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init:function(){var e,t,i=this.params.navigation;(i.nextEl||i.prevEl)&&(i.nextEl&&(e=s(i.nextEl),this.params.uniqueNavElements&&"string"==typeof i.nextEl&&e.length>1&&1===this.$el.find(i.nextEl).length&&(e=this.$el.find(i.nextEl))),i.prevEl&&(t=s(i.prevEl),this.params.uniqueNavElements&&"string"==typeof i.prevEl&&t.length>1&&1===this.$el.find(i.prevEl).length&&(t=this.$el.find(i.prevEl))),e&&e.length>0&&e.on("click",this.navigation.onNextClick),t&&t.length>0&&t.on("click",this.navigation.onPrevClick),n.extend(this.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this.navigation,t=e.$nextEl,i=e.$prevEl;t&&t.length&&(t.off("click",this.navigation.onNextClick),t.removeClass(this.params.navigation.disabledClass)),i&&i.length&&(i.off("click",this.navigation.onPrevClick),i.removeClass(this.params.navigation.disabledClass))}},ae={update:function(){var e=this.rtl,t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var i,a=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,r=this.pagination.$el,n=this.params.loop?Math.ceil((a-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;if(this.params.loop?((i=Math.ceil((this.activeIndex-this.loopedSlides)/this.params.slidesPerGroup))>a-1-2*this.loopedSlides&&(i-=a-2*this.loopedSlides),i>n-1&&(i-=n),i<0&&"bullets"!==this.params.paginationType&&(i=n+i)):i=void 0!==this.snapIndex?this.snapIndex:this.activeIndex||0,"bullets"===t.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var o,l,d,h=this.pagination.bullets;if(t.dynamicBullets&&(this.pagination.bulletSize=h.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),r.css(this.isHorizontal()?"width":"height",this.pagination.bulletSize*(t.dynamicMainBullets+4)+"px"),t.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=i-this.previousIndex,this.pagination.dynamicBulletIndex>t.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=t.dynamicMainBullets-1:this.pagination.dynamicBulletIndex<0&&(this.pagination.dynamicBulletIndex=0)),o=i-this.pagination.dynamicBulletIndex,d=((l=o+(Math.min(h.length,t.dynamicMainBullets)-1))+o)/2),h.removeClass(t.bulletActiveClass+" "+t.bulletActiveClass+"-next "+t.bulletActiveClass+"-next-next "+t.bulletActiveClass+"-prev "+t.bulletActiveClass+"-prev-prev "+t.bulletActiveClass+"-main"),r.length>1)h.each((function(e,a){var r=s(a),n=r.index();n===i&&r.addClass(t.bulletActiveClass),t.dynamicBullets&&(n>=o&&n<=l&&r.addClass(t.bulletActiveClass+"-main"),n===o&&r.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),n===l&&r.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next"))}));else{var p=h.eq(i),c=p.index();if(p.addClass(t.bulletActiveClass),t.dynamicBullets){for(var u=h.eq(o),v=h.eq(l),f=o;f<=l;f+=1)h.eq(f).addClass(t.bulletActiveClass+"-main");if(this.params.loop)if(c>=h.length-t.dynamicMainBullets){for(var m=t.dynamicMainBullets;m>=0;m-=1)h.eq(h.length-m).addClass(t.bulletActiveClass+"-main");h.eq(h.length-t.dynamicMainBullets-1).addClass(t.bulletActiveClass+"-prev")}else u.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),v.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next");else u.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),v.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next")}}if(t.dynamicBullets){var g=Math.min(h.length,t.dynamicMainBullets+4),b=(this.pagination.bulletSize*g-this.pagination.bulletSize)/2-d*this.pagination.bulletSize,w=e?"right":"left";h.css(this.isHorizontal()?w:"top",b+"px")}}if("fraction"===t.type&&(r.find("."+t.currentClass).text(t.formatFractionCurrent(i+1)),r.find("."+t.totalClass).text(t.formatFractionTotal(n))),"progressbar"===t.type){var y;y=t.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";var x=(i+1)/n,T=1,E=1;"horizontal"===y?T=x:E=x,r.find("."+t.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+T+") scaleY("+E+")").transition(this.params.speed)}"custom"===t.type&&t.renderCustom?(r.html(t.renderCustom(this,i+1,n)),this.emit("paginationRender",this,r[0])):this.emit("paginationUpdate",this,r[0]),r[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass)}},render:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,i=this.pagination.$el,s="";if("bullets"===e.type){for(var a=this.params.loop?Math.ceil((t-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length,r=0;r<a;r+=1)e.renderBullet?s+=e.renderBullet.call(this,r,e.bulletClass):s+="<"+e.bulletElement+' class="'+e.bulletClass+'"></'+e.bulletElement+">";i.html(s),this.pagination.bullets=i.find("."+e.bulletClass)}"fraction"===e.type&&(s=e.renderFraction?e.renderFraction.call(this,e.currentClass,e.totalClass):'<span class="'+e.currentClass+'"></span> / <span class="'+e.totalClass+'"></span>',i.html(s)),"progressbar"===e.type&&(s=e.renderProgressbar?e.renderProgressbar.call(this,e.progressbarFillClass):'<span class="'+e.progressbarFillClass+'"></span>',i.html(s)),"custom"!==e.type&&this.emit("paginationRender",this.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var i=s(t.el);0!==i.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&i.length>1&&1===e.$el.find(t.el).length&&(i=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&i.addClass(t.clickableClass),i.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(i.addClass(""+t.modifierClass+t.type+"-dynamic"),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&i.addClass(t.progressbarOppositeClass),t.clickable&&i.on("click","."+t.bulletClass,(function(t){t.preventDefault();var i=s(this).index()*e.params.slidesPerGroup;e.params.loop&&(i+=e.loopedSlides),e.slideTo(i)})),n.extend(e.pagination,{$el:i,el:i[0]}))}},destroy:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.pagination.$el;t.removeClass(e.hiddenClass),t.removeClass(e.modifierClass+e.type),this.pagination.bullets&&this.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&t.off("click","."+e.bulletClass)}}},re={setTranslate:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=this.rtlTranslate,i=this.progress,s=e.dragSize,a=e.trackSize,r=e.$dragEl,n=e.$el,o=this.params.scrollbar,l=s,d=(a-s)*i;t?(d=-d)>0?(l=s-d,d=0):-d+s>a&&(l=a+d):d<0?(l=s+d,d=0):d+s>a&&(l=a-d),this.isHorizontal()?(r.transform("translate3d("+d+"px, 0, 0)"),r[0].style.width=l+"px"):(r.transform("translate3d(0px, "+d+"px, 0)"),r[0].style.height=l+"px"),o.hide&&(clearTimeout(this.scrollbar.timeout),n[0].style.opacity=1,this.scrollbar.timeout=setTimeout((function(){n[0].style.opacity=0,n.transition(400)}),1e3))}},setTransition:function(e){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(e)},updateSize:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=e.$dragEl,i=e.$el;t[0].style.width="",t[0].style.height="";var s,a=this.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,r=this.size/this.virtualSize,o=r*(a/this.size);s="auto"===this.params.scrollbar.dragSize?a*r:parseInt(this.params.scrollbar.dragSize,10),this.isHorizontal()?t[0].style.width=s+"px":t[0].style.height=s+"px",i[0].style.display=r>=1?"none":"",this.params.scrollbar.hide&&(i[0].style.opacity=0),n.extend(e,{trackSize:a,divider:r,moveDivider:o,dragSize:s}),e.$el[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](this.params.scrollbar.lockClass)}},getPointerPosition:function(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY},setDragPosition:function(e){var t,i=this.scrollbar,s=this.rtlTranslate,a=i.$el,r=i.dragSize,n=i.trackSize,o=i.dragStartPos;t=(i.getPointerPosition(e)-a.offset()[this.isHorizontal()?"left":"top"]-(null!==o?o:r/2))/(n-r),t=Math.max(Math.min(t,1),0),s&&(t=1-t);var l=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*t;this.updateProgress(l),this.setTranslate(l),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart:function(e){var t=this.params.scrollbar,i=this.scrollbar,s=this.$wrapperEl,a=i.$el,r=i.$dragEl;this.scrollbar.isTouched=!0,this.scrollbar.dragStartPos=e.target===r[0]||e.target===r?i.getPointerPosition(e)-e.target.getBoundingClientRect()[this.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),s.transition(100),r.transition(100),i.setDragPosition(e),clearTimeout(this.scrollbar.dragTimeout),a.transition(0),t.hide&&a.css("opacity",1),this.params.cssMode&&this.$wrapperEl.css("scroll-snap-type","none"),this.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this.scrollbar,i=this.$wrapperEl,s=t.$el,a=t.$dragEl;this.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),i.transition(0),s.transition(0),a.transition(0),this.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this.params.scrollbar,i=this.scrollbar,s=this.$wrapperEl,a=i.$el;this.scrollbar.isTouched&&(this.scrollbar.isTouched=!1,this.params.cssMode&&(this.$wrapperEl.css("scroll-snap-type",""),s.transition("")),t.hide&&(clearTimeout(this.scrollbar.dragTimeout),this.scrollbar.dragTimeout=n.nextTick((function(){a.css("opacity",0),a.transition(400)}),1e3)),this.emit("scrollbarDragEnd",e),t.snapOnRelease&&this.slideToClosest())},enableDraggable:function(){if(this.params.scrollbar.el){var t=this.scrollbar,i=this.touchEventsTouch,s=this.touchEventsDesktop,a=this.params,r=t.$el[0],n=!(!o.passiveListener||!a.passiveListeners)&&{passive:!1,capture:!1},l=!(!o.passiveListener||!a.passiveListeners)&&{passive:!0,capture:!1};o.touch?(r.addEventListener(i.start,this.scrollbar.onDragStart,n),r.addEventListener(i.move,this.scrollbar.onDragMove,n),r.addEventListener(i.end,this.scrollbar.onDragEnd,l)):(r.addEventListener(s.start,this.scrollbar.onDragStart,n),e.addEventListener(s.move,this.scrollbar.onDragMove,n),e.addEventListener(s.end,this.scrollbar.onDragEnd,l))}},disableDraggable:function(){if(this.params.scrollbar.el){var t=this.scrollbar,i=this.touchEventsTouch,s=this.touchEventsDesktop,a=this.params,r=t.$el[0],n=!(!o.passiveListener||!a.passiveListeners)&&{passive:!1,capture:!1},l=!(!o.passiveListener||!a.passiveListeners)&&{passive:!0,capture:!1};o.touch?(r.removeEventListener(i.start,this.scrollbar.onDragStart,n),r.removeEventListener(i.move,this.scrollbar.onDragMove,n),r.removeEventListener(i.end,this.scrollbar.onDragEnd,l)):(r.removeEventListener(s.start,this.scrollbar.onDragStart,n),e.removeEventListener(s.move,this.scrollbar.onDragMove,n),e.removeEventListener(s.end,this.scrollbar.onDragEnd,l))}},init:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.$el,i=this.params.scrollbar,a=s(i.el);this.params.uniqueNavElements&&"string"==typeof i.el&&a.length>1&&1===t.find(i.el).length&&(a=t.find(i.el));var r=a.find("."+this.params.scrollbar.dragClass);0===r.length&&(r=s('<div class="'+this.params.scrollbar.dragClass+'"></div>'),a.append(r)),n.extend(e,{$el:a,el:a[0],$dragEl:r,dragEl:r[0]}),i.draggable&&e.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},ne={setTransform:function(e,t){var i=this.rtl,a=s(e),r=i?-1:1,n=a.attr("data-swiper-parallax")||"0",o=a.attr("data-swiper-parallax-x"),l=a.attr("data-swiper-parallax-y"),d=a.attr("data-swiper-parallax-scale"),h=a.attr("data-swiper-parallax-opacity");if(o||l?(o=o||"0",l=l||"0"):this.isHorizontal()?(o=n,l="0"):(l=n,o="0"),o=o.indexOf("%")>=0?parseInt(o,10)*t*r+"%":o*t*r+"px",l=l.indexOf("%")>=0?parseInt(l,10)*t+"%":l*t+"px",null!=h){var p=h-(h-1)*(1-Math.abs(t));a[0].style.opacity=p}if(null==d)a.transform("translate3d("+o+", "+l+", 0px)");else{var c=d-(d-1)*(1-Math.abs(t));a.transform("translate3d("+o+", "+l+", 0px) scale("+c+")")}},setTranslate:function(){var e=this,t=e.$el,i=e.slides,a=e.progress,r=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,i){e.parallax.setTransform(i,a)})),i.each((function(t,i){var n=i.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(n+=Math.ceil(t/2)-a*(r.length-1)),n=Math.min(Math.max(n,-1),1),s(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,i){e.parallax.setTransform(i,n)}))}))},setTransition:function(e){void 0===e&&(e=this.params.speed);this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,i){var a=s(i),r=parseInt(a.attr("data-swiper-parallax-duration"),10)||e;0===e&&(r=0),a.transition(r)}))}},oe={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY,s=e.targetTouches[1].pageX,a=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(s-t,2)+Math.pow(a-i,2))},onGestureStart:function(e){var t=this.params.zoom,i=this.zoom,a=i.gesture;if(i.fakeGestureTouched=!1,i.fakeGestureMoved=!1,!o.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;i.fakeGestureTouched=!0,a.scaleStart=oe.getDistanceBetweenTouches(e)}a.$slideEl&&a.$slideEl.length||(a.$slideEl=s(e.target).closest("."+this.params.slideClass),0===a.$slideEl.length&&(a.$slideEl=this.slides.eq(this.activeIndex)),a.$imageEl=a.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),a.$imageWrapEl=a.$imageEl.parent("."+t.containerClass),a.maxRatio=a.$imageWrapEl.attr("data-swiper-zoom")||t.maxRatio,0!==a.$imageWrapEl.length)?(a.$imageEl.transition(0),this.zoom.isScaling=!0):a.$imageEl=void 0},onGestureChange:function(e){var t=this.params.zoom,i=this.zoom,s=i.gesture;if(!o.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;i.fakeGestureMoved=!0,s.scaleMove=oe.getDistanceBetweenTouches(e)}s.$imageEl&&0!==s.$imageEl.length&&(o.gestures?i.scale=e.scale*i.currentScale:i.scale=s.scaleMove/s.scaleStart*i.currentScale,i.scale>s.maxRatio&&(i.scale=s.maxRatio-1+Math.pow(i.scale-s.maxRatio+1,.5)),i.scale<t.minRatio&&(i.scale=t.minRatio+1-Math.pow(t.minRatio-i.scale+1,.5)),s.$imageEl.transform("translate3d(0,0,0) scale("+i.scale+")"))},onGestureEnd:function(e){var t=this.params.zoom,i=this.zoom,s=i.gesture;if(!o.gestures){if(!i.fakeGestureTouched||!i.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!I.android)return;i.fakeGestureTouched=!1,i.fakeGestureMoved=!1}s.$imageEl&&0!==s.$imageEl.length&&(i.scale=Math.max(Math.min(i.scale,s.maxRatio),t.minRatio),s.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale("+i.scale+")"),i.currentScale=i.scale,i.isScaling=!1,1===i.scale&&(s.$slideEl=void 0))},onTouchStart:function(e){var t=this.zoom,i=t.gesture,s=t.image;i.$imageEl&&0!==i.$imageEl.length&&(s.isTouched||(I.android&&e.preventDefault(),s.isTouched=!0,s.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,s.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this.zoom,i=t.gesture,s=t.image,a=t.velocity;if(i.$imageEl&&0!==i.$imageEl.length&&(this.allowClick=!1,s.isTouched&&i.$slideEl)){s.isMoved||(s.width=i.$imageEl[0].offsetWidth,s.height=i.$imageEl[0].offsetHeight,s.startX=n.getTranslate(i.$imageWrapEl[0],"x")||0,s.startY=n.getTranslate(i.$imageWrapEl[0],"y")||0,i.slideWidth=i.$slideEl[0].offsetWidth,i.slideHeight=i.$slideEl[0].offsetHeight,i.$imageWrapEl.transition(0),this.rtl&&(s.startX=-s.startX,s.startY=-s.startY));var r=s.width*t.scale,o=s.height*t.scale;if(!(r<i.slideWidth&&o<i.slideHeight)){if(s.minX=Math.min(i.slideWidth/2-r/2,0),s.maxX=-s.minX,s.minY=Math.min(i.slideHeight/2-o/2,0),s.maxY=-s.minY,s.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,s.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!s.isMoved&&!t.isScaling){if(this.isHorizontal()&&(Math.floor(s.minX)===Math.floor(s.startX)&&s.touchesCurrent.x<s.touchesStart.x||Math.floor(s.maxX)===Math.floor(s.startX)&&s.touchesCurrent.x>s.touchesStart.x))return void(s.isTouched=!1);if(!this.isHorizontal()&&(Math.floor(s.minY)===Math.floor(s.startY)&&s.touchesCurrent.y<s.touchesStart.y||Math.floor(s.maxY)===Math.floor(s.startY)&&s.touchesCurrent.y>s.touchesStart.y))return void(s.isTouched=!1)}e.preventDefault(),e.stopPropagation(),s.isMoved=!0,s.currentX=s.touchesCurrent.x-s.touchesStart.x+s.startX,s.currentY=s.touchesCurrent.y-s.touchesStart.y+s.startY,s.currentX<s.minX&&(s.currentX=s.minX+1-Math.pow(s.minX-s.currentX+1,.8)),s.currentX>s.maxX&&(s.currentX=s.maxX-1+Math.pow(s.currentX-s.maxX+1,.8)),s.currentY<s.minY&&(s.currentY=s.minY+1-Math.pow(s.minY-s.currentY+1,.8)),s.currentY>s.maxY&&(s.currentY=s.maxY-1+Math.pow(s.currentY-s.maxY+1,.8)),a.prevPositionX||(a.prevPositionX=s.touchesCurrent.x),a.prevPositionY||(a.prevPositionY=s.touchesCurrent.y),a.prevTime||(a.prevTime=Date.now()),a.x=(s.touchesCurrent.x-a.prevPositionX)/(Date.now()-a.prevTime)/2,a.y=(s.touchesCurrent.y-a.prevPositionY)/(Date.now()-a.prevTime)/2,Math.abs(s.touchesCurrent.x-a.prevPositionX)<2&&(a.x=0),Math.abs(s.touchesCurrent.y-a.prevPositionY)<2&&(a.y=0),a.prevPositionX=s.touchesCurrent.x,a.prevPositionY=s.touchesCurrent.y,a.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d("+s.currentX+"px, "+s.currentY+"px,0)")}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,i=e.image,s=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!i.isTouched||!i.isMoved)return i.isTouched=!1,void(i.isMoved=!1);i.isTouched=!1,i.isMoved=!1;var a=300,r=300,n=s.x*a,o=i.currentX+n,l=s.y*r,d=i.currentY+l;0!==s.x&&(a=Math.abs((o-i.currentX)/s.x)),0!==s.y&&(r=Math.abs((d-i.currentY)/s.y));var h=Math.max(a,r);i.currentX=o,i.currentY=d;var p=i.width*e.scale,c=i.height*e.scale;i.minX=Math.min(t.slideWidth/2-p/2,0),i.maxX=-i.minX,i.minY=Math.min(t.slideHeight/2-c/2,0),i.maxY=-i.minY,i.currentX=Math.max(Math.min(i.currentX,i.maxX),i.minX),i.currentY=Math.max(Math.min(i.currentY,i.maxY),i.minY),t.$imageWrapEl.transition(h).transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTransitionEnd:function(){var e=this.zoom,t=e.gesture;t.$slideEl&&this.previousIndex!==this.activeIndex&&(t.$imageEl.transform("translate3d(0,0,0) scale(1)"),t.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,t.$slideEl=void 0,t.$imageEl=void 0,t.$imageWrapEl=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,i,s,a,r,n,o,l,d,h,p,c,u,v,f,m,g=this.zoom,b=this.params.zoom,w=g.gesture,y=g.image;(w.$slideEl||(w.$slideEl=this.slides.eq(this.activeIndex),w.$imageEl=w.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),w.$imageWrapEl=w.$imageEl.parent("."+b.containerClass)),w.$imageEl&&0!==w.$imageEl.length)&&(w.$slideEl.addClass(""+b.zoomedSlideClass),void 0===y.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,i="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=y.touchesStart.x,i=y.touchesStart.y),g.scale=w.$imageWrapEl.attr("data-swiper-zoom")||b.maxRatio,g.currentScale=w.$imageWrapEl.attr("data-swiper-zoom")||b.maxRatio,e?(f=w.$slideEl[0].offsetWidth,m=w.$slideEl[0].offsetHeight,s=w.$slideEl.offset().left+f/2-t,a=w.$slideEl.offset().top+m/2-i,o=w.$imageEl[0].offsetWidth,l=w.$imageEl[0].offsetHeight,d=o*g.scale,h=l*g.scale,u=-(p=Math.min(f/2-d/2,0)),v=-(c=Math.min(m/2-h/2,0)),(r=s*g.scale)<p&&(r=p),r>u&&(r=u),(n=a*g.scale)<c&&(n=c),n>v&&(n=v)):(r=0,n=0),w.$imageWrapEl.transition(300).transform("translate3d("+r+"px, "+n+"px,0)"),w.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+g.scale+")"))},out:function(){var e=this.zoom,t=this.params.zoom,i=e.gesture;i.$slideEl||(i.$slideEl=this.slides.eq(this.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),i.$imageWrapEl=i.$imageEl.parent("."+t.containerClass)),i.$imageEl&&0!==i.$imageEl.length&&(e.scale=1,e.currentScale=1,i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideEl.removeClass(""+t.zoomedSlideClass),i.$slideEl=void 0)},enable:function(){var e=this.zoom;if(!e.enabled){e.enabled=!0;var t=!("touchstart"!==this.touchEvents.start||!o.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1},i=!o.passiveListener||{passive:!1,capture:!0},s="."+this.params.slideClass;o.gestures?(this.$wrapperEl.on("gesturestart",s,e.onGestureStart,t),this.$wrapperEl.on("gesturechange",s,e.onGestureChange,t),this.$wrapperEl.on("gestureend",s,e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.on(this.touchEvents.start,s,e.onGestureStart,t),this.$wrapperEl.on(this.touchEvents.move,s,e.onGestureChange,i),this.$wrapperEl.on(this.touchEvents.end,s,e.onGestureEnd,t),this.touchEvents.cancel&&this.$wrapperEl.on(this.touchEvents.cancel,s,e.onGestureEnd,t)),this.$wrapperEl.on(this.touchEvents.move,"."+this.params.zoom.containerClass,e.onTouchMove,i)}},disable:function(){var e=this.zoom;if(e.enabled){this.zoom.enabled=!1;var t=!("touchstart"!==this.touchEvents.start||!o.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1},i=!o.passiveListener||{passive:!1,capture:!0},s="."+this.params.slideClass;o.gestures?(this.$wrapperEl.off("gesturestart",s,e.onGestureStart,t),this.$wrapperEl.off("gesturechange",s,e.onGestureChange,t),this.$wrapperEl.off("gestureend",s,e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.off(this.touchEvents.start,s,e.onGestureStart,t),this.$wrapperEl.off(this.touchEvents.move,s,e.onGestureChange,i),this.$wrapperEl.off(this.touchEvents.end,s,e.onGestureEnd,t),this.touchEvents.cancel&&this.$wrapperEl.off(this.touchEvents.cancel,s,e.onGestureEnd,t)),this.$wrapperEl.off(this.touchEvents.move,"."+this.params.zoom.containerClass,e.onTouchMove,i)}}},le={loadInSlide:function(e,t){void 0===t&&(t=!0);var i=this,a=i.params.lazy;if(void 0!==e&&0!==i.slides.length){var r=i.virtual&&i.params.virtual.enabled?i.$wrapperEl.children("."+i.params.slideClass+'[data-swiper-slide-index="'+e+'"]'):i.slides.eq(e),n=r.find("."+a.elementClass+":not(."+a.loadedClass+"):not(."+a.loadingClass+")");!r.hasClass(a.elementClass)||r.hasClass(a.loadedClass)||r.hasClass(a.loadingClass)||(n=n.add(r[0])),0!==n.length&&n.each((function(e,n){var o=s(n);o.addClass(a.loadingClass);var l=o.attr("data-background"),d=o.attr("data-src"),h=o.attr("data-srcset"),p=o.attr("data-sizes");i.loadImage(o[0],d||l,h,p,!1,(function(){if(null!=i&&i&&(!i||i.params)&&!i.destroyed){if(l?(o.css("background-image",'url("'+l+'")'),o.removeAttr("data-background")):(h&&(o.attr("srcset",h),o.removeAttr("data-srcset")),p&&(o.attr("sizes",p),o.removeAttr("data-sizes")),d&&(o.attr("src",d),o.removeAttr("data-src"))),o.addClass(a.loadedClass).removeClass(a.loadingClass),r.find("."+a.preloaderClass).remove(),i.params.loop&&t){var e=r.attr("data-swiper-slide-index");if(r.hasClass(i.params.slideDuplicateClass)){var s=i.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+i.params.slideDuplicateClass+")");i.lazy.loadInSlide(s.index(),!1)}else{var n=i.$wrapperEl.children("."+i.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');i.lazy.loadInSlide(n.index(),!1)}}i.emit("lazyImageReady",r[0],o[0]),i.params.autoHeight&&i.updateAutoHeight()}})),i.emit("lazyImageLoad",r[0],o[0])}))}},load:function(){var e=this,t=e.$wrapperEl,i=e.params,a=e.slides,r=e.activeIndex,n=e.virtual&&i.virtual.enabled,o=i.lazy,l=i.slidesPerView;function d(e){if(n){if(t.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(a[e])return!0;return!1}function h(e){return n?s(e).attr("data-swiper-slide-index"):s(e).index()}if("auto"===l&&(l=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children("."+i.slideVisibleClass).each((function(t,i){var a=n?s(i).attr("data-swiper-slide-index"):s(i).index();e.lazy.loadInSlide(a)}));else if(l>1)for(var p=r;p<r+l;p+=1)d(p)&&e.lazy.loadInSlide(p);else e.lazy.loadInSlide(r);if(o.loadPrevNext)if(l>1||o.loadPrevNextAmount&&o.loadPrevNextAmount>1){for(var c=o.loadPrevNextAmount,u=l,v=Math.min(r+u+Math.max(c,u),a.length),f=Math.max(r-Math.max(u,c),0),m=r+l;m<v;m+=1)d(m)&&e.lazy.loadInSlide(m);for(var g=f;g<r;g+=1)d(g)&&e.lazy.loadInSlide(g)}else{var b=t.children("."+i.slideNextClass);b.length>0&&e.lazy.loadInSlide(h(b));var w=t.children("."+i.slidePrevClass);w.length>0&&e.lazy.loadInSlide(h(w))}}},de={LinearSpline:function(e,t){var i,s,a,r,n,o=function(e,t){for(s=-1,i=e.length;i-s>1;)e[a=i+s>>1]<=t?s=a:i=a;return i};return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(n=o(this.x,e),r=n-1,(e-this.x[r])*(this.y[n]-this.y[r])/(this.x[n]-this.x[r])+this.y[r]):0},this},getInterpolateFunction:function(e){this.controller.spline||(this.controller.spline=this.params.loop?new de.LinearSpline(this.slidesGrid,e.slidesGrid):new de.LinearSpline(this.snapGrid,e.snapGrid))},setTranslate:function(e,t){var i,s,a=this,r=a.controller.control;function n(e){var t=a.rtlTranslate?-a.translate:a.translate;"slide"===a.params.controller.by&&(a.controller.getInterpolateFunction(e),s=-a.controller.spline.interpolate(-t)),s&&"container"!==a.params.controller.by||(i=(e.maxTranslate()-e.minTranslate())/(a.maxTranslate()-a.minTranslate()),s=(t-a.minTranslate())*i+e.minTranslate()),a.params.controller.inverse&&(s=e.maxTranslate()-s),e.updateProgress(s),e.setTranslate(s,a),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(r))for(var o=0;o<r.length;o+=1)r[o]!==t&&r[o]instanceof W&&n(r[o]);else r instanceof W&&t!==r&&n(r)},setTransition:function(e,t){var i,s=this,a=s.controller.control;function r(t){t.setTransition(e,s),0!==e&&(t.transitionStart(),t.params.autoHeight&&n.nextTick((function(){t.updateAutoHeight()})),t.$wrapperEl.transitionEnd((function(){a&&(t.params.loop&&"slide"===s.params.controller.by&&t.loopFix(),t.transitionEnd())})))}if(Array.isArray(a))for(i=0;i<a.length;i+=1)a[i]!==t&&a[i]instanceof W&&r(a[i]);else a instanceof W&&t!==a&&r(a)}},he={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this.params.a11y;if(13===e.keyCode){var i=s(e.target);this.navigation&&this.navigation.$nextEl&&i.is(this.navigation.$nextEl)&&(this.isEnd&&!this.params.loop||this.slideNext(),this.isEnd?this.a11y.notify(t.lastSlideMessage):this.a11y.notify(t.nextSlideMessage)),this.navigation&&this.navigation.$prevEl&&i.is(this.navigation.$prevEl)&&(this.isBeginning&&!this.params.loop||this.slidePrev(),this.isBeginning?this.a11y.notify(t.firstSlideMessage):this.a11y.notify(t.prevSlideMessage)),this.pagination&&i.is("."+this.params.pagination.bulletClass)&&i[0].click()}},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){if(!this.params.loop&&this.navigation){var e=this.navigation,t=e.$nextEl,i=e.$prevEl;i&&i.length>0&&(this.isBeginning?this.a11y.disableEl(i):this.a11y.enableEl(i)),t&&t.length>0&&(this.isEnd?this.a11y.disableEl(t):this.a11y.enableEl(t))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(i,a){var r=s(a);e.a11y.makeElFocusable(r),e.a11y.addElRole(r,"button"),e.a11y.addElLabel(r,t.paginationBulletMessage.replace(/{{index}}/,r.index()+1))}))},init:function(){this.$el.append(this.a11y.liveRegion);var e,t,i=this.params.a11y;this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&(this.a11y.makeElFocusable(e),this.a11y.addElRole(e,"button"),this.a11y.addElLabel(e,i.nextSlideMessage),e.on("keydown",this.a11y.onEnterKey)),t&&(this.a11y.makeElFocusable(t),this.a11y.addElRole(t,"button"),this.a11y.addElLabel(t,i.prevSlideMessage),t.on("keydown",this.a11y.onEnterKey)),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.on("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)},destroy:function(){var e,t;this.a11y.liveRegion&&this.a11y.liveRegion.length>0&&this.a11y.liveRegion.remove(),this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&e.off("keydown",this.a11y.onEnterKey),t&&t.off("keydown",this.a11y.onEnterKey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)}},pe={init:function(){if(this.params.history){if(!t.history||!t.history.pushState)return this.params.history.enabled=!1,void(this.params.hashNavigation.enabled=!0);var e=this.history;e.initialized=!0,e.paths=pe.getPathValues(),(e.paths.key||e.paths.value)&&(e.scrollToSlide(0,e.paths.value,this.params.runCallbacksOnInit),this.params.history.replaceState||t.addEventListener("popstate",this.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||t.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){this.history.paths=pe.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function(){var e=t.location.pathname.slice(1).split("/").filter((function(e){return""!==e})),i=e.length;return{key:e[i-2],value:e[i-1]}},setHistory:function(e,i){if(this.history.initialized&&this.params.history.enabled){var s=this.slides.eq(i),a=pe.slugify(s.attr("data-history"));t.location.pathname.includes(e)||(a=e+"/"+a);var r=t.history.state;r&&r.value===a||(this.params.history.replaceState?t.history.replaceState({value:a},null,a):t.history.pushState({value:a},null,a))}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,i){if(t)for(var s=0,a=this.slides.length;s<a;s+=1){var r=this.slides.eq(s);if(pe.slugify(r.attr("data-history"))===t&&!r.hasClass(this.params.slideDuplicateClass)){var n=r.index();this.slideTo(n,e,i)}}else this.slideTo(0,e,i)}},ce={onHashCange:function(){var t=e.location.hash.replace("#","");if(t!==this.slides.eq(this.activeIndex).attr("data-hash")){var i=this.$wrapperEl.children("."+this.params.slideClass+'[data-hash="'+t+'"]').index();if(void 0===i)return;this.slideTo(i)}},setHash:function(){if(this.hashNavigation.initialized&&this.params.hashNavigation.enabled)if(this.params.hashNavigation.replaceState&&t.history&&t.history.replaceState)t.history.replaceState(null,null,"#"+this.slides.eq(this.activeIndex).attr("data-hash")||"");else{var i=this.slides.eq(this.activeIndex),s=i.attr("data-hash")||i.attr("data-history");e.location.hash=s||""}},init:function(){if(!(!this.params.hashNavigation.enabled||this.params.history&&this.params.history.enabled)){this.hashNavigation.initialized=!0;var i=e.location.hash.replace("#","");if(i)for(var a=0,r=this.slides.length;a<r;a+=1){var n=this.slides.eq(a);if((n.attr("data-hash")||n.attr("data-history"))===i&&!n.hasClass(this.params.slideDuplicateClass)){var o=n.index();this.slideTo(o,0,this.params.runCallbacksOnInit,!0)}}this.params.hashNavigation.watchState&&s(t).on("hashchange",this.hashNavigation.onHashCange)}},destroy:function(){this.params.hashNavigation.watchState&&s(t).off("hashchange",this.hashNavigation.onHashCange)}},ue={run:function(){var e=this,t=e.slides.eq(e.activeIndex),i=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(i=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=n.nextTick((function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")),e.params.cssMode&&e.autoplay.running&&e.autoplay.run()}),i)},start:function(){return void 0===this.autoplay.timeout&&(!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0))},stop:function(){return!!this.autoplay.running&&(void 0!==this.autoplay.timeout&&(this.autoplay.timeout&&(clearTimeout(this.autoplay.timeout),this.autoplay.timeout=void 0),this.autoplay.running=!1,this.emit("autoplayStop"),!0))},pause:function(e){this.autoplay.running&&(this.autoplay.paused||(this.autoplay.timeout&&clearTimeout(this.autoplay.timeout),this.autoplay.paused=!0,0!==e&&this.params.autoplay.waitForTransition?(this.$wrapperEl[0].addEventListener("transitionend",this.autoplay.onTransitionEnd),this.$wrapperEl[0].addEventListener("webkitTransitionEnd",this.autoplay.onTransitionEnd)):(this.autoplay.paused=!1,this.autoplay.run())))}},ve={setTranslate:function(){for(var e=this.slides,t=0;t<e.length;t+=1){var i=this.slides.eq(t),s=-i[0].swiperSlideOffset;this.params.virtualTranslate||(s-=this.translate);var a=0;this.isHorizontal()||(a=s,s=0);var r=this.params.fadeEffect.crossFade?Math.max(1-Math.abs(i[0].progress),0):1+Math.min(Math.max(i[0].progress,-1),0);i.css({opacity:r}).transform("translate3d("+s+"px, "+a+"px, 0px)")}},setTransition:function(e){var t=this,i=t.slides,s=t.$wrapperEl;if(i.transition(e),t.params.virtualTranslate&&0!==e){var a=!1;i.transitionEnd((function(){if(!a&&t&&!t.destroyed){a=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)s.trigger(e[i])}}))}}},fe={setTranslate:function(){var e,t=this.$el,i=this.$wrapperEl,a=this.slides,r=this.width,n=this.height,o=this.rtlTranslate,l=this.size,d=this.params.cubeEffect,h=this.isHorizontal(),p=this.virtual&&this.params.virtual.enabled,c=0;d.shadow&&(h?(0===(e=i.find(".swiper-cube-shadow")).length&&(e=s('<div class="swiper-cube-shadow"></div>'),i.append(e)),e.css({height:r+"px"})):0===(e=t.find(".swiper-cube-shadow")).length&&(e=s('<div class="swiper-cube-shadow"></div>'),t.append(e)));for(var u=0;u<a.length;u+=1){var v=a.eq(u),f=u;p&&(f=parseInt(v.attr("data-swiper-slide-index"),10));var m=90*f,g=Math.floor(m/360);o&&(m=-m,g=Math.floor(-m/360));var b=Math.max(Math.min(v[0].progress,1),-1),w=0,y=0,x=0;f%4==0?(w=4*-g*l,x=0):(f-1)%4==0?(w=0,x=4*-g*l):(f-2)%4==0?(w=l+4*g*l,x=l):(f-3)%4==0&&(w=-l,x=3*l+4*l*g),o&&(w=-w),h||(y=w,w=0);var T="rotateX("+(h?0:-m)+"deg) rotateY("+(h?m:0)+"deg) translate3d("+w+"px, "+y+"px, "+x+"px)";if(b<=1&&b>-1&&(c=90*f+90*b,o&&(c=90*-f-90*b)),v.transform(T),d.slideShadows){var E=h?v.find(".swiper-slide-shadow-left"):v.find(".swiper-slide-shadow-top"),S=h?v.find(".swiper-slide-shadow-right"):v.find(".swiper-slide-shadow-bottom");0===E.length&&(E=s('<div class="swiper-slide-shadow-'+(h?"left":"top")+'"></div>'),v.append(E)),0===S.length&&(S=s('<div class="swiper-slide-shadow-'+(h?"right":"bottom")+'"></div>'),v.append(S)),E.length&&(E[0].style.opacity=Math.max(-b,0)),S.length&&(S[0].style.opacity=Math.max(b,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),d.shadow)if(h)e.transform("translate3d(0px, "+(r/2+d.shadowOffset)+"px, "+-r/2+"px) rotateX(90deg) rotateZ(0deg) scale("+d.shadowScale+")");else{var C=Math.abs(c)-90*Math.floor(Math.abs(c)/90),M=1.5-(Math.sin(2*C*Math.PI/360)/2+Math.cos(2*C*Math.PI/360)/2),P=d.shadowScale,z=d.shadowScale/M,k=d.shadowOffset;e.transform("scale3d("+P+", 1, "+z+") translate3d(0px, "+(n/2+k)+"px, "+-n/2/z+"px) rotateX(-90deg)")}var $=j.isSafari||j.isUiWebView?-l/2:0;i.transform("translate3d(0px,0,"+$+"px) rotateX("+(this.isHorizontal()?0:c)+"deg) rotateY("+(this.isHorizontal()?-c:0)+"deg)")},setTransition:function(e){var t=this.$el;this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),this.params.cubeEffect.shadow&&!this.isHorizontal()&&t.find(".swiper-cube-shadow").transition(e)}},me={setTranslate:function(){for(var e=this.slides,t=this.rtlTranslate,i=0;i<e.length;i+=1){var a=e.eq(i),r=a[0].progress;this.params.flipEffect.limitRotation&&(r=Math.max(Math.min(a[0].progress,1),-1));var n=-180*r,o=0,l=-a[0].swiperSlideOffset,d=0;if(this.isHorizontal()?t&&(n=-n):(d=l,l=0,o=-n,n=0),a[0].style.zIndex=-Math.abs(Math.round(r))+e.length,this.params.flipEffect.slideShadows){var h=this.isHorizontal()?a.find(".swiper-slide-shadow-left"):a.find(".swiper-slide-shadow-top"),p=this.isHorizontal()?a.find(".swiper-slide-shadow-right"):a.find(".swiper-slide-shadow-bottom");0===h.length&&(h=s('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"left":"top")+'"></div>'),a.append(h)),0===p.length&&(p=s('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"right":"bottom")+'"></div>'),a.append(p)),h.length&&(h[0].style.opacity=Math.max(-r,0)),p.length&&(p[0].style.opacity=Math.max(r,0))}a.transform("translate3d("+l+"px, "+d+"px, 0px) rotateX("+o+"deg) rotateY("+n+"deg)")}},setTransition:function(e){var t=this,i=t.slides,s=t.activeIndex,a=t.$wrapperEl;if(i.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var r=!1;i.eq(s).transitionEnd((function(){if(!r&&t&&!t.destroyed){r=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)a.trigger(e[i])}}))}}},ge={setTranslate:function(){for(var e=this.width,t=this.height,i=this.slides,a=this.$wrapperEl,r=this.slidesSizesGrid,n=this.params.coverflowEffect,l=this.isHorizontal(),d=this.translate,h=l?e/2-d:t/2-d,p=l?n.rotate:-n.rotate,c=n.depth,u=0,v=i.length;u<v;u+=1){var f=i.eq(u),m=r[u],g=(h-f[0].swiperSlideOffset-m/2)/m*n.modifier,b=l?p*g:0,w=l?0:p*g,y=-c*Math.abs(g),x=n.stretch;"string"==typeof x&&-1!==x.indexOf("%")&&(x=parseFloat(n.stretch)/100*m);var T=l?0:x*g,E=l?x*g:0;Math.abs(E)<.001&&(E=0),Math.abs(T)<.001&&(T=0),Math.abs(y)<.001&&(y=0),Math.abs(b)<.001&&(b=0),Math.abs(w)<.001&&(w=0);var S="translate3d("+E+"px,"+T+"px,"+y+"px)  rotateX("+w+"deg) rotateY("+b+"deg)";if(f.transform(S),f[0].style.zIndex=1-Math.abs(Math.round(g)),n.slideShadows){var C=l?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),M=l?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===C.length&&(C=s('<div class="swiper-slide-shadow-'+(l?"left":"top")+'"></div>'),f.append(C)),0===M.length&&(M=s('<div class="swiper-slide-shadow-'+(l?"right":"bottom")+'"></div>'),f.append(M)),C.length&&(C[0].style.opacity=g>0?g:0),M.length&&(M[0].style.opacity=-g>0?-g:0)}}(o.pointerEvents||o.prefixedPointerEvents)&&(a[0].style.perspectiveOrigin=h+"px 50%")},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},be={init:function(){var e=this.params.thumbs,t=this.constructor;e.swiper instanceof t?(this.thumbs.swiper=e.swiper,n.extend(this.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),n.extend(this.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):n.isObject(e.swiper)&&(this.thumbs.swiper=new t(n.extend({},e.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),this.thumbs.swiperCreated=!0),this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass),this.thumbs.swiper.on("tap",this.thumbs.onThumbClick)},onThumbClick:function(){var e=this.thumbs.swiper;if(e){var t=e.clickedIndex,i=e.clickedSlide;if(!(i&&s(i).hasClass(this.params.thumbs.slideThumbActiveClass)||null==t)){var a;if(a=e.params.loop?parseInt(s(e.clickedSlide).attr("data-swiper-slide-index"),10):t,this.params.loop){var r=this.activeIndex;this.slides.eq(r).hasClass(this.params.slideDuplicateClass)&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,r=this.activeIndex);var n=this.slides.eq(r).prevAll('[data-swiper-slide-index="'+a+'"]').eq(0).index(),o=this.slides.eq(r).nextAll('[data-swiper-slide-index="'+a+'"]').eq(0).index();a=void 0===n?o:void 0===o?n:o-r<r-n?o:n}this.slideTo(a)}}},update:function(e){var t=this.thumbs.swiper;if(t){var i="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():t.params.slidesPerView;if(this.realIndex!==t.realIndex){var s,a=t.activeIndex;if(t.params.loop){t.slides.eq(a).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,a=t.activeIndex);var r=t.slides.eq(a).prevAll('[data-swiper-slide-index="'+this.realIndex+'"]').eq(0).index(),n=t.slides.eq(a).nextAll('[data-swiper-slide-index="'+this.realIndex+'"]').eq(0).index();s=void 0===r?n:void 0===n?r:n-a==a-r?a:n-a<a-r?n:r}else s=this.realIndex;t.visibleSlidesIndexes&&t.visibleSlidesIndexes.indexOf(s)<0&&(t.params.centeredSlides?s=s>a?s-Math.floor(i/2)+1:s+Math.floor(i/2)-1:s>a&&(s=s-i+1),t.slideTo(s,e?0:void 0))}var o=1,l=this.params.thumbs.slideThumbActiveClass;if(this.params.slidesPerView>1&&!this.params.centeredSlides&&(o=this.params.slidesPerView),this.params.thumbs.multipleActiveThumbs||(o=1),o=Math.floor(o),t.slides.removeClass(l),t.params.loop||t.params.virtual&&t.params.virtual.enabled)for(var d=0;d<o;d+=1)t.$wrapperEl.children('[data-swiper-slide-index="'+(this.realIndex+d)+'"]').addClass(l);else for(var h=0;h<o;h+=1)t.slides.eq(this.realIndex+h).addClass(l)}}},we=[R,q,K,U,Z,J,te,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){n.extend(this,{mousewheel:{enabled:!1,enable:ie.enable.bind(this),disable:ie.disable.bind(this),handle:ie.handle.bind(this),handleMouseEnter:ie.handleMouseEnter.bind(this),handleMouseLeave:ie.handleMouseLeave.bind(this),animateSlider:ie.animateSlider.bind(this),releaseScroll:ie.releaseScroll.bind(this),lastScrollTime:n.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[]}})},on:{init:function(){!this.params.mousewheel.enabled&&this.params.cssMode&&this.mousewheel.disable(),this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.params.cssMode&&this.mousewheel.enable(),this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){n.extend(this,{navigation:{init:se.init.bind(this),update:se.update.bind(this),destroy:se.destroy.bind(this),onNextClick:se.onNextClick.bind(this),onPrevClick:se.onPrevClick.bind(this)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(e){var t,i=this.navigation,a=i.$nextEl,r=i.$prevEl;!this.params.navigation.hideOnClick||s(e.target).is(r)||s(e.target).is(a)||(a?t=a.hasClass(this.params.navigation.hiddenClass):r&&(t=r.hasClass(this.params.navigation.hiddenClass)),!0===t?this.emit("navigationShow",this):this.emit("navigationHide",this),a&&a.toggleClass(this.params.navigation.hiddenClass),r&&r.toggleClass(this.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){n.extend(this,{pagination:{init:ae.init.bind(this),render:ae.render.bind(this),update:ae.update.bind(this),destroy:ae.destroy.bind(this),dynamicBulletIndex:0}})},on:{init:function(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange:function(){this.params.loop?this.pagination.update():void 0===this.snapIndex&&this.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){this.params.loop&&(this.pagination.render(),this.pagination.update())},snapGridLengthChange:function(){this.params.loop||(this.pagination.render(),this.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(e){this.params.pagination.el&&this.params.pagination.hideOnClick&&this.pagination.$el.length>0&&!s(e.target).hasClass(this.params.pagination.bulletClass)&&(!0===this.pagination.$el.hasClass(this.params.pagination.hiddenClass)?this.emit("paginationShow",this):this.emit("paginationHide",this),this.pagination.$el.toggleClass(this.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){n.extend(this,{scrollbar:{init:re.init.bind(this),destroy:re.destroy.bind(this),updateSize:re.updateSize.bind(this),setTranslate:re.setTranslate.bind(this),setTransition:re.setTransition.bind(this),enableDraggable:re.enableDraggable.bind(this),disableDraggable:re.disableDraggable.bind(this),setDragPosition:re.setDragPosition.bind(this),getPointerPosition:re.getPointerPosition.bind(this),onDragStart:re.onDragStart.bind(this),onDragMove:re.onDragMove.bind(this),onDragEnd:re.onDragEnd.bind(this),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){n.extend(this,{parallax:{setTransform:ne.setTransform.bind(this),setTranslate:ne.setTranslate.bind(this),setTransition:ne.setTransition.bind(this)}})},on:{beforeInit:function(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(e){this.params.parallax.enabled&&this.parallax.setTransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function(i){t[i]=oe[i].bind(e)})),n.extend(e,{zoom:t});var i=1;Object.defineProperty(e.zoom,"scale",{get:function(){return i},set:function(t){if(i!==t){var s=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,a=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,s,a)}i=t}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(e){this.zoom.enabled&&this.zoom.onTouchStart(e)},touchEnd:function(e){this.zoom.enabled&&this.zoom.onTouchEnd(e)},doubleTap:function(e){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(e)},transitionEnd:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()},slideChange:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.params.cssMode&&this.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){n.extend(this,{lazy:{initialImageLoaded:!1,load:le.load.bind(this),loadInSlide:le.loadInSlide.bind(this)}})},on:{beforeInit:function(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll:function(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){this.params.lazy.enabled&&(this.params.lazy.loadOnTransitionStart||!this.params.lazy.loadOnTransitionStart&&!this.lazy.initialImageLoaded)&&this.lazy.load()},transitionEnd:function(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()},slideChange:function(){this.params.lazy.enabled&&this.params.cssMode&&this.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){n.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:de.getInterpolateFunction.bind(this),setTranslate:de.setTranslate.bind(this),setTransition:de.setTransition.bind(this)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate:function(e,t){this.controller.control&&this.controller.setTranslate(e,t)},setTransition:function(e,t){this.controller.control&&this.controller.setTransition(e,t)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var e=this;n.extend(e,{a11y:{liveRegion:s('<span class="'+e.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(he).forEach((function(t){e.a11y[t]=he[t].bind(e)}))},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){n.extend(this,{history:{init:pe.init.bind(this),setHistory:pe.setHistory.bind(this),setHistoryPopState:pe.setHistoryPopState.bind(this),scrollToSlide:pe.scrollToSlide.bind(this),destroy:pe.destroy.bind(this)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)},slideChange:function(){this.history.initialized&&this.params.cssMode&&this.history.setHistory(this.params.history.key,this.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){n.extend(this,{hashNavigation:{initialized:!1,init:ce.init.bind(this),destroy:ce.destroy.bind(this),setHash:ce.setHash.bind(this),onHashCange:ce.onHashCange.bind(this)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()},slideChange:function(){this.hashNavigation.initialized&&this.params.cssMode&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;n.extend(e,{autoplay:{running:!1,paused:!1,run:ue.run.bind(e),start:ue.start.bind(e),stop:ue.stop.bind(e),pause:ue.pause.bind(e),onVisibilityChange:function(){"hidden"===document.visibilityState&&e.autoplay.running&&e.autoplay.pause(),"visible"===document.visibilityState&&e.autoplay.paused&&(e.autoplay.run(),e.autoplay.paused=!1)},onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&(this.autoplay.start(),document.addEventListener("visibilitychange",this.autoplay.onVisibilityChange))},beforeTransitionStart:function(e,t){this.autoplay.running&&(t||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(e):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},touchEnd:function(){this.params.cssMode&&this.autoplay.paused&&!this.params.autoplay.disableOnInteraction&&this.autoplay.run()},destroy:function(){this.autoplay.running&&this.autoplay.stop(),document.removeEventListener("visibilitychange",this.autoplay.onVisibilityChange)}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){n.extend(this,{fadeEffect:{setTranslate:ve.setTranslate.bind(this),setTransition:ve.setTransition.bind(this)}})},on:{beforeInit:function(){if("fade"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"fade");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};n.extend(this.params,e),n.extend(this.originalParams,e)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){n.extend(this,{cubeEffect:{setTranslate:fe.setTranslate.bind(this),setTransition:fe.setTransition.bind(this)}})},on:{beforeInit:function(){if("cube"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"cube"),this.classNames.push(this.params.containerModifierClass+"3d");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};n.extend(this.params,e),n.extend(this.originalParams,e)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){n.extend(this,{flipEffect:{setTranslate:me.setTranslate.bind(this),setTransition:me.setTransition.bind(this)}})},on:{beforeInit:function(){if("flip"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"flip"),this.classNames.push(this.params.containerModifierClass+"3d");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};n.extend(this.params,e),n.extend(this.originalParams,e)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){n.extend(this,{coverflowEffect:{setTranslate:ge.setTranslate.bind(this),setTransition:ge.setTransition.bind(this)}})},on:{beforeInit:function(){"coverflow"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"coverflow"),this.classNames.push(this.params.containerModifierClass+"3d"),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}},{name:"thumbs",params:{thumbs:{multipleActiveThumbs:!0,swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){n.extend(this,{thumbs:{swiper:null,init:be.init.bind(this),update:be.update.bind(this),onThumbClick:be.onThumbClick.bind(this)}})},on:{beforeInit:function(){var e=this.params.thumbs;e&&e.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(e){var t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy:function(){var e=this.thumbs.swiper;e&&this.thumbs.swiperCreated&&e&&e.destroy()}}}];return void 0===W.use&&(W.use=W.Class.use,W.installModule=W.Class.installModule),W.use(we),W}));
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.mapNoVenueModal={},function(e,n){"use strict";var o=e(document);n.selectors={noVenueModal:'[data-js="tribe-events-pro-map-no-venue-modal"]',noVenueModalClose:'[data-js="tribe-events-pro-map-no-venue-modal-close"]',noVenueModalLink:'[data-js="tribe-events-pro-map-no-venue-modal-link"]',tribeCommonA11yHiddenClass:".tribe-common-a11y-hidden"},n.openNoVenueModal=function(e){e.data.modal.removeClass(n.selectors.tribeCommonA11yHiddenClass.className())},n.closeNoVenueModal=function(e){e.data.modal.addClass(n.selectors.tribeCommonA11yHiddenClass.className())},n.setNoVenueModalLink=function(e,o){e.data.modal.find(n.selectors.noVenueModalLink).attr("href",o)},n.unbindEvents=function(e){e.off("openNoVenueModal.tribeEvents",n.openNoVenueModal).off("closeNoVenueModal.tribeEvents",n.closeNoVenueModal).off("setNoVenueModalLink.tribeEvents",n.setNoVenueModalLink).find(n.selectors.noVenueModalClose).off("click",n.closeNoVenueModal)},n.bindEvents=function(e){var o=e.find(n.selectors.noVenueModal);e.on("openNoVenueModal.tribeEvents",{container:e,modal:o},n.openNoVenueModal).on("closeNoVenueModal.tribeEvents",{container:e,modal:o},n.closeNoVenueModal).on("setNoVenueModalLink.tribeEvents",{container:e,modal:o},n.setNoVenueModalLink).find(n.selectors.noVenueModalClose).on("click",{container:e,modal:o},n.closeNoVenueModal)},n.deinit=function(e,o,t){var s=e.data.container;n.unbindEvents(s),s.off("beforeAjaxSuccess.tribeEvents",n.deinit)},n.init=function(e,o,t,s){"map"===s.slug&&(n.bindEvents(t),t.on("beforeAjaxSuccess.tribeEvents",{container:t},n.deinit))},n.ready=function(){o.on("afterSetup.tribeEvents",tribe.events.views.manager.selectors.container,n.init)},e(n.ready)}(jQuery,tribe.events.views.mapNoVenueModal),window.tec=window.tec||{},window.tec.eventsPro=window.tec.eventsPro||{},window.tec.eventsPro.views=window.tec.eventsPro.views||{},window.tec.eventsPro.views.mapNoVenueModal={};
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.mapProviderGoogleMaps={},function(e,t){"use strict";var i=e(document);t.selectors={map:'[data-js="tribe-events-pro-map-map"]',googleMapsDefault:'[data-js="tribe-events-pro-map-google-maps-default"]',googleMapsPremium:'[data-js="tribe-events-pro-map-google-maps-premium"]',eventCardWrapper:'[data-js="tribe-events-pro-map-event-card-wrapper"]',eventTooltipTemplate:'[data-js="tribe-events-pro-map-event-tooltip-template"]',eventTooltipSlider:'[data-js="tribe-events-pro-map-event-tooltip-slider"]',eventTooltipSlide:'[data-js="tribe-events-pro-map-event-tooltip-slide"]',eventTooltipPrevButton:'[data-js="tribe-events-pro-map-event-tooltip-prev-button"]',eventTooltipNextButton:'[data-js="tribe-events-pro-map-event-tooltip-next-button"]',eventTooltipButtonDisabledClass:".tribe-events-pro-map__event-tooltip-navigation-button--disabled",eventActionLinkDetails:'[data-js="tribe-events-pro-map-event-actions-link-details"]',tribeCommonA11yHiddenClass:".tribe-common-a11y-hidden"},t.state={mapsScriptLoaded:void 0!==window.google&&void 0!==window.google.maps,zoom:10},t.handleTooltipSlideChange=function(t,i){return function(){var n=e(i.slider.slides[i.slider.activeIndex]).attr("data-event-id"),o=tribe.events.views.mapEvents.selectors,a='[data-event-id="'+n+'"]',s=t.find(o.eventCardButton),r=t.find(o.eventCardWrapper+a),l=r.find(o.eventCardButton);tribe.events.views.mapEvents.deselectAllEvents(s),tribe.events.views.mapEvents.selectEvent(l),tribe.events.views.mapEventsScroller.isWithinScrollView(t,r)||tribe.events.views.mapEventsScroller.scrollTo(t,r)}},t.getEventFromState=function(e,t){var i=e.events.filter((function(e){return e.eventId==t}));return!!i.length&&i[0]},t.deinitTooltipSlider=function(e){e&&!e.destroyed&&(e.off("slideChange"),e.destroy())},t.initTooltipSlider=function(e){var i=e.find(t.selectors.googleMapsPremium),n=i.find(t.selectors.eventTooltipSlider);if(n.length){var o=i.data("tribeEventsState"),a='[data-event-id="'+o.activeEventId+'"]',s=n.find(t.selectors.eventTooltipSlide+a);o.slider=new Swiper(n[0],{initialSlide:s.attr("data-slide-index"),speed:0,resistanceRatio:0,allowTouchMove:!1,containerModifierClass:"tribe-swiper-container-",wrapperClass:"tribe-swiper-wrapper",slideClass:"tribe-swiper-slide",navigation:{prevEl:n.find(t.selectors.eventTooltipPrevButton)[0],nextEl:n.find(t.selectors.eventTooltipNextButton)[0],disabledClass:t.selectors.eventTooltipButtonDisabledClass.className()}}),o.slider.on("slideChange",t.handleTooltipSlideChange(e,o))}},t.closeTooltip=function(e){t.deinitTooltipSlider(e.slider),e.tooltip.close()},t.openTooltip=function(e,t,i,n){e.setContent(t),e.open(i,n)},t.handleEventClick=function(e,i,n){var o,a;if(i.find(t.selectors.map).data("tribeEventsState").isPremium){var s=i.find(t.selectors.googleMapsPremium),r=s.data("tribeEventsState"),l=(o=n.closest(t.selectors.eventCardWrapper)).attr("data-event-id"),d=t.getEventFromState(r,l);if(t.closeTooltip(r),i.trigger("closeNoVenueModal.tribeEvents"),d){var p=o.find(t.selectors.eventTooltipTemplate);t.openTooltip(r.tooltip,p[0].textContent,r.map,d.marker),r.activeEventId=l,s.data("tribeEventsState",r),r.map.panTo(d.marker.getPosition())}else a=o.find(t.selectors.eventActionLinkDetails).attr("href"),i.trigger("openNoVenueModal.tribeEvents"),i.trigger("setNoVenueModalLink.tribeEvents",[a])}else{var v=i.find(t.selectors.googleMapsDefault);o=n.closest(t.selectors.eventCardWrapper);var c=v.attr("src"),m=o.attr("data-src");i.trigger("closeNoVenueModal.tribeEvents"),m&&c!==m?v.attr("src",m):m||(a=o.find(t.selectors.eventActionLinkDetails).attr("href"),i.trigger("openNoVenueModal.tribeEvents"),i.trigger("setNoVenueModalLink.tribeEvents",[a]))}},t.handleMarkerClick=function(e,i){return function(){var n=e.find(t.selectors.googleMapsPremium),o=n.data("tribeEventsState"),a=i.get("eventIds"),s=i.getPosition(),r=tribe.events.views.mapEvents.selectors,l='[data-event-id="'+a[0]+'"]',d=e.find(r.eventCardButton),p=e.find(r.eventCardWrapper+l),v=p.find(r.eventCardButton);tribe.events.views.mapEvents.deselectAllEvents(d),tribe.events.views.mapEvents.selectEvent(v),tribe.events.views.mapEventsScroller.isWithinScrollView(e,p)||tribe.events.views.mapEventsScroller.scrollTo(e,p);var c=p.find(t.selectors.eventTooltipTemplate);t.closeTooltip(o),t.openTooltip(o.tooltip,c[0].textContent,o.map,i),o.activeEventId=a[0],n.data("tribeEventsState",o),o.map.panTo(s)}},t.handleMapClick=function(e,i){return function(){var i=e.find(t.selectors.googleMapsPremium),n=i.data("tribeEventsState");t.closeTooltip(n),n.activeEventId=null,i.data("tribeEventsState",n);var o=e.find(tribe.events.views.mapEvents.selectors.eventCardButton);tribe.events.views.mapEvents.deselectAllEvents(o)}},t.handleTooltipCloseClick=function(e){return function(){var i=e.find(t.selectors.googleMapsPremium),n=i.data("tribeEventsState");n.activeEventId=null,i.data("tribeEventsState",n),t.deinitTooltipSlider(n.slider);var o=e.find(tribe.events.views.mapEvents.selectors.eventCardButton);tribe.events.views.mapEvents.deselectAllEvents(o)}},t.handleTooltipDomReady=function(e){return function(){t.initTooltipSlider(e)}},t.unsetMarkers=function(e){var i=e.find(t.selectors.googleMapsPremium),n=i.data("tribeEventsState");n.markers.forEach((function(e){google.maps.event.clearInstanceListeners(e),e.setMap(null)})),n.markers=[],n.events=[],i.data("tribeEventsState",n)},t.setMarkers=function(i,n){var o=i.find(t.selectors.googleMapsPremium),a=o.data("tribeEventsState"),s=new google.maps.LatLngBounds;e.each(n.events_by_venue,(function(e,o){if(o.geolocation){var r=new google.maps.Marker({position:new google.maps.LatLng(o.geolocation.latitude,o.geolocation.longitude),map:a.map,eventIds:o.event_ids,icon:n.map_provider.map_pin_url});r.addListener("click",t.handleMarkerClick(i,r)),s.extend(r.getPosition()),a.markers.push(r),o.event_ids.forEach((function(e,t){a.events.push({eventId:e,marker:r,index:t})}))}})),1===a.markers.length?(a.map.setCenter(a.markers[0].getPosition()),a.map.setZoom(t.state.zoom)):(a.map.fitBounds(s),google.maps.event.addListenerOnce(a.map,"idle",(function(){a.map.getZoom()>t.state.zoom&&a.map.setZoom(t.state.zoom)}))),o.data("tribeEventsState",a)},t.initMapState=function(e){e.data("tribeEventsState",{map:null,tooltip:null,slider:null,activeEventId:null,events:[],markers:[]})},t.deinitTooltip=function(e){google.maps.event.clearInstanceListeners(e.tooltip)},t.initTooltip=function(e){var i=e.find(t.selectors.googleMapsPremium).data("tribeEventsState");i.tooltip.addListener("closeclick",t.handleTooltipCloseClick(e)),i.tooltip.addListener("domready",t.handleTooltipDomReady(e))},t.createTooltip=function(e){var i=e.find(t.selectors.googleMapsPremium),n=i.data("tribeEventsState");n.tooltip=new google.maps.InfoWindow,n.tooltip.addListener("closeclick",t.handleTooltipCloseClick(e)),n.tooltip.addListener("domready",t.handleTooltipDomReady(e)),i.data("tribeEventsState",n)},t.createNewMap=function(e){var i=e.find(t.selectors.googleMapsPremium),n=i.data("tribeEventsState");n.map=new google.maps.Map(i[0],{zoom:t.state.zoom,center:new google.maps.LatLng(0,0)}),n.map.addListener("click",t.handleMapClick(e,n.map)),i.data("tribeEventsState",n)},t.cacheMap=function(e){e.find(t.selectors.googleMapsPremium).addClass(t.selectors.tribeCommonA11yHiddenClass.className()).insertAfter(e)},t.getCachedMap=function(e){var i=e.siblings(t.selectors.googleMapsPremium).removeClass(t.selectors.tribeCommonA11yHiddenClass.className());e.find(t.selectors.googleMapsPremium).replaceWith(i)},t.isMapCached=function(e){return 0!==e.siblings(t.selectors.googleMapsPremium).length},t.deinitMap=function(e){var i=e.find(t.selectors.googleMapsPremium);if(i.length&&"undefined"!=typeof google){var n=i.data("tribeEventsState");t.unsetMarkers(e),t.closeTooltip(n),t.deinitTooltip(n),n.activeEventId=null,i.data("tribeEventsState",n),t.cacheMap(e)}},t.initMap=function(e,i){var n=e.find(t.selectors.googleMapsPremium);n.length&&"undefined"!=typeof google&&(t.isMapCached(e)?(t.getCachedMap(e),t.initTooltip(e)):(t.initMapState(n),t.createTooltip(e),t.createNewMap(e)),t.setMarkers(e,i))},t.handleMapsScriptLoadedSuccess=function(e,i){return function(n,o,a){t.state.mapsScriptLoaded=!0,t.initMap(e,i),e.on("afterMapEventClick.tribeEvents",t.handleEventClick),e.on("mapDeinit.tribeEvents",{container:e},t.deinit)}},t.setIsPremium=function(e,i){var n={isPremium:i.map_provider.is_premium};return e.find(t.selectors.map).data("tribeEventsState",n),n.isPremium},t.deinit=function(e,i,n){var o=e.data.container;t.deinitMap(o),o.off("afterMapEventClick.tribeEvents",t.handleEventClick),o.off("mapDeinit.tribeEvents",t.deinit)},t.init=function(i,n,o,a){if("map"===a.slug)if(t.state.zoom=a.map_provider.zoom,t.setIsPremium(o,a))if(t.state.mapsScriptLoaded)t.initMap(o,a),o.on("afterMapEventClick.tribeEvents",t.handleEventClick),o.on("mapDeinit.tribeEvents",{container:o},t.deinit);else{var s=a.map_provider.javascript_url+"?key="+a.map_provider.api_key+"&callback="+encodeURIComponent(a.map_provider.callback);e.ajax({url:s,dataType:"script",success:t.handleMapsScriptLoadedSuccess(o,a)})}else o.on("afterMapEventClick.tribeEvents",t.handleEventClick),o.on("mapDeinit.tribeEvents",{container:o},t.deinit)},t.ready=function(){i.on("mapInit.tribeEvents",tribe.events.views.manager.selectors.container,t.init)},e(t.ready)}(jQuery,tribe.events.views.mapProviderGoogleMaps),window.tec=window.tec||{},window.tec.eventsPro=window.tec.eventsPro||{},window.tec.eventsPro.views=window.tec.eventsPro.views||{},window.tec.eventsPro.views.mapProviderGoogleMaps={};
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.mapEvents={},function(e,t){"use strict";var n=e(document);t.selectors={eventCardButton:'[data-js="tribe-events-pro-map-event-card-button"]',eventCardWrapper:'[data-js="tribe-events-pro-map-event-card-wrapper"]',eventCardWrapperActiveClass:".tribe-events-pro-map__event-card-wrapper--active"},t.deselectAllEvents=function(n){n.each((function(n,r){t.deselectEvent(e(r))}))},t.deselectEvent=function(e){e.closest(t.selectors.eventCardWrapper).removeClass(t.selectors.eventCardWrapperActiveClass.className());var n=e.attr("aria-controls");if(n){var r=e.closest(t.selectors.eventCardWrapper).find("#"+n);tribe.events.views.accordion.closeAccordion(e,r)}},t.selectEvent=function(e){e.closest(t.selectors.eventCardWrapper).addClass(t.selectors.eventCardWrapperActiveClass.className());var n=e.attr("aria-controls");if(n){var r=e.closest(t.selectors.eventCardWrapper).find("#"+n);tribe.events.views.accordion.openAccordion(e,r)}},t.handleEventClick=function(e){var n=e.data.container,r=e.data.target,i=e.data.buttons;n.trigger("beforeMapEventClick.tribeEvents",[n,r]),t.deselectAllEvents(i),t.selectEvent(r),n.trigger("afterMapEventClick.tribeEvents",[n,r])},t.unbindEvents=function(n){n.trigger("beforeMapUnbindEvents.tribeEvents",[n]),n.find(t.selectors.eventCardButton).each((function(n,r){e(r).off("click",t.handleEventClick)})),n.trigger("afterMapUnbindEvents.tribeEvents",[n])},t.bindEvents=function(n,r,i){r.trigger("beforeMapBindEvents.tribeEvents",[n,r,i]);var s=r.find(t.selectors.eventCardButton);s.each((function(n,i){var a=e(i),v={target:a,buttons:s,container:r};a.on("click",v,t.handleEventClick)})),r.trigger("afterMapBindEvents.tribeEvents",[n,r,i])},t.deinitMap=function(e){e.trigger("beforeMapDeinit.tribeEvents",[e]),e.trigger("mapDeinit.tribeEvents",[e]),e.trigger("afterMapDeinit.tribeEvents",[e])},t.initMap=function(e,t,n){t.trigger("beforeMapInit.tribeEvents",[e,t,n]),t.trigger("mapInit.tribeEvents",[e,t,n]),t.trigger("afterMapInit.tribeEvents",[e,t,n])},t.deinit=function(e,n,r){var i=e.data.container;t.deinitMap(i),t.unbindEvents(i),i.off("beforeAjaxSuccess.tribeEvents",t.deinit)},t.init=function(e,n,r,i){"map"===i.slug&&(t.initMap(n,r,i),t.bindEvents(n,r,i),r.on("beforeAjaxSuccess.tribeEvents",{container:r},t.deinit))},t.ready=function(){n.on("afterSetup.tribeEvents",tribe.events.views.manager.selectors.container,t.init)},e(t.ready)}(jQuery,tribe.events.views.mapEvents),window.tec=window.tec||{},window.tec.eventsPro=window.tec.eventsPro||{},window.tec.eventsPro.views=window.tec.eventsPro.views||{},window.tec.eventsPro.views.mapEvents={};
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.tooltipPro={},function(e,t){"use strict";var i=e(document);t.selectors={tribeEventsProClass:".tribe-events-pro"},t.handleAfterTooltipInitTheme=function(e,i){var o=i.data("tribeEventsTooltipTheme");o.push(t.selectors.tribeEventsProClass.className()),i.data("tribeEventsTooltipTheme",o)},t.ready=function(){i.on("afterTooltipInitTheme.tribeEvents",tribe.events.views.manager.selectors.container,t.handleAfterTooltipInitTheme)},e(t.ready)}(jQuery,tribe.events.views.tooltipPro),window.tec=window.tec||{},window.tec.eventsPro=window.tec.eventsPro||{},window.tec.eventsPro.views=window.tec.eventsPro.views||{},window.tec.eventsPro.views.tooltipPro={};
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.multidayEventsPro={},function(e,t){"use strict";var i=e(document);t.selectorPrefixes={week:".tribe-events-pro-week-grid__"},t.handleAfterMultidayEventsInitAllowedViews=function(e,i){var s=i.data("tribeEventsMultidayEventsAllowedViews");s.push("week"),i.data("tribeEventsMultidayEventsAllowedViews",s),tribe.events.views.multidayEvents.selectorPrefixes.week=t.selectorPrefixes.week},t.ready=function(){i.on("afterMultidayEventsInitAllowedViews.tribeEvents",tribe.events.views.manager.selectors.container,t.handleAfterMultidayEventsInitAllowedViews)},e(t.ready)}(jQuery,tribe.events.views.multidayEventsPro),window.tec=window.tec||{},window.tec.eventsPro=window.tec.eventsPro||{},window.tec.eventsPro.views=window.tec.eventsPro.views||{},window.tec.eventsPro.views.multidayEventsPro={};
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.toggleRecurrence={},function(e,t){"use strict";var n=e(document);t.selectors={toggleInput:'[data-js="tribe-events-pro-top-bar-toggle-recurrence"]'},t.handleChangeInput=function(t){var n=e(t.target).is(":checked"),i=tribe.events.views.manager.getContainer(t.target),r={view_data:{hide_subsequent_recurrences:!!n||null}};tribe.events.views.manager.request(r,i)},t.deinit=function(e,n,i){e.data.container.off("beforeAjaxSuccess.tribeEvents",t.deinit).find(t.selectors.toggleInput).off("change.tribeEvents",t.handleChangeInput)},t.init=function(e,n,i,r){i.on("beforeAjaxSuccess.tribeEvents",{container:i},t.deinit).find(t.selectors.toggleInput).on("change.tribeEvents",t.handleChangeInput)},t.ready=function(){n.on("afterSetup.tribeEvents",tribe.events.views.manager.selectors.container,t.init)},e(t.ready)}(jQuery,tribe.events.views.toggleRecurrence),window.tec=window.tec||{},window.tec.eventsPro=window.tec.eventsPro||{},window.tec.eventsPro.views=window.tec.eventsPro.views||{},window.tec.eventsPro.views.toggleRecurrence={};
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.datepickerPro={},function(e,s){"use strict";var t=e(document);s.selectors={datepickerDays:".datepicker-days",datepickerDaysRow:".datepicker-days tbody tr",datepickerDay:".day",datepickerDayNotDisabled:".day:not(.disabled)",activeClass:".active",disabledClass:".disabled",focusedClass:".focused",hoveredClass:".hovered",currentClass:".current"},s.toggleHoverClass=function(e){e.data.row.toggleClass(s.selectors.hoveredClass.className())},s.handleDisabledDayClick=function(e){e.data.row.find(s.selectors.datepickerDayNotDisabled).click()},s.bindRowEvents=function(t){var a=t.data.container.find(s.selectors.datepickerDays);t.data.container.find(s.selectors.datepickerDaysRow).each((function(t,a){var i=e(a);i.off("mouseenter mouseleave",s.toggleHoverClass).on("mouseenter mouseleave",{row:i},s.toggleHoverClass).find(s.selectors.datepickerDay).each((function(t,a){var r=e(a);r.hasClass(s.selectors.disabledClass.className())&&r.off("click",s.handleDisabledDayClick).on("click",{row:i},s.handleDisabledDayClick),r.hasClass(s.selectors.focusedClass.className())&&i.addClass(s.selectors.focusedClass.className()),r.hasClass(s.selectors.activeClass.className())&&i.addClass(s.selectors.activeClass.className()),r.hasClass(s.selectors.currentClass.className())&&i.addClass(s.selectors.currentClass.className())}))})),t.data.observer.observe(a[0],{attributes:!0,childList:!0,subtree:!0})},s.afterDeinit=function(e,t,a){e.data.container.off("afterDatepickerDeinit.tribeEvents",s.afterDeinit).off("handleMutationMonthChange.tribeEvents",s.bindRowEvents).find(s.selectors.input).off("show",s.bindRowEvents)},s.beforeInit=function(e,s,t,a){var i=[];"week"===a.slug&&[0,1,2,3,4,5,6].forEach((function(e){a.start_of_week!=e&&i.push(e)})),tribe.events.views.datepicker.options.daysOfWeekDisabled=i},s.afterInit=function(e,t,a,i){"week"===i.slug&&a.on("afterDatepickerDeinit.tribeEvents",{container:a,viewSlug:i.slug},s.afterDeinit).on("handleMutationMonthChange.tribeEvents",{container:a,observer:tribe.events.views.datepicker.observer},s.bindRowEvents).find(tribe.events.views.datepicker.selectors.input).on("show",{container:a,observer:tribe.events.views.datepicker.observer},s.bindRowEvents)},s.ready=function(){t.on("beforeDatepickerInit.tribeEvents",tribe.events.views.manager.selectors.container,s.beforeInit),t.on("afterDatepickerInit.tribeEvents",tribe.events.views.manager.selectors.container,s.afterInit)},e(s.ready)}(jQuery,tribe.events.views.datepickerPro),window.tec=window.tec||{},window.tec.eventsPro=window.tec.eventsPro||{},window.tec.eventsPro.views=window.tec.eventsPro.views||{},window.tec.eventsPro.views.datepickerPro={};
(()=>{var e,t;tribe.events=tribe.events||{},tribe.events.virtualSingle=tribe.events.virtualSingle||{},e=jQuery,(t=tribe.events.virtualSingle).GraphVersion="v9.0",t.facebookInit=function(){if("undefined"==typeof FB)return!1;const e=tribe_events_virtual_settings.facebookAppId;!e||e<1||FB.init({appId:e,autoLogAppEvents:!0,xfbml:!0,version:t.GraphVersion})},t.ready=function(){window.facebookAsyncInit=t.facebookInit()},e(t.ready),window.tec=window.tec||{},window.tec.eventsPro=window.tec.eventsPro||{},window.tec.eventsPro.eventsVirtualSingle={}})();
(function(deparam){
if(typeof require==='function'&&typeof exports==='object'&&typeof module==='object'){
try {
var jquery=require('jquery');
} catch (e){
}
module.exports=deparam(jquery);
}else if(typeof define==='function'&&define.amd){
define(['jquery'], function(jquery){
return deparam(jquery);
});
}else{
var global;
try {
global=(false||eval)('this');
} catch (e){
global=window; // fails only if browser (https://developer.mozilla.org/en-US/docs/Web/Security/CSP/CSP_policy_directives)
}
global.deparam=deparam(global.jQuery);
}})(function ($){
var deparam=function(params, coerce){
var obj={},
coerce_types={ 'true': !0, 'false': !1, 'null': null };
params.replace(/\+/g, ' ').split('&').forEach(function(v){
var param=v.split('='),
key=decodeURIComponent(param[0]),
val,
cur=obj,
i=0,
keys=key.split(']['),
keys_last=keys.length - 1;
if(/\[/.test(keys[0])&&/\]$/.test(keys[ keys_last ]) ){
keys[ keys_last ]=keys[ keys_last ].replace(/\]$/, '');
keys=keys.shift().split('[').concat(keys);
keys_last=keys.length - 1;
}else{
keys_last=0;
}
if(param.length===2){
val=decodeURIComponent(param[1]);
if(coerce){
val=val&&!isNaN(val)&&((+val + '')===val) ? +val
: val==='undefined'                       ? undefined
: coerce_types[val]!==undefined           ? coerce_types[val]
: val;
}
if(keys_last){
for(; i <=keys_last; i++){
key=keys[i]==='' ? cur.length:keys[i];
cur=cur[key]=i < keys_last
? cur[key]||(keys[i+1]&&isNaN(keys[i+1]) ? {}:[])
: val;
}}else{
if(Object.prototype.toString.call(obj[key])==='[object Array]'){
obj[key].push(val);
}else if({}.hasOwnProperty.call(obj, key)){
obj[key]=[ obj[key], val ];
}else{
obj[key]=val;
}}
}else if(key){
obj[key]=coerce
? undefined
: '';
}});
return obj;
};
if($){
$.prototype.deparam=$.deparam=deparam;
}
return deparam;
});
(function (factory){
if(typeof define==='function'&&define.amd){
define(['jquery'], factory);
}else if(typeof exports==='object'){
module.exports=factory(require('jquery'));
}else{
factory(jQuery);
}}(function ($){
var pluses=/\+/g;
function encode(s){
return config.raw ? s:encodeURIComponent(s);
}
function decode(s){
return config.raw ? s:decodeURIComponent(s);
}
function stringifyCookieValue(value){
return encode(config.json ? JSON.stringify(value):String(value));
}
function parseCookieValue(s){
if(s.indexOf('"')===0){
s=s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
}
try {
s=decodeURIComponent(s.replace(pluses, ' '));
return config.json ? JSON.parse(s):s;
} catch(e){}}
function read(s, converter){
var value=config.raw ? s:parseCookieValue(s);
return 'function'===typeof converter ? converter(value):value;
}
var config=$.cookie=function (key, value, options){
if(arguments.length > 1&&'function'!==typeof value){
options=$.extend({}, config.defaults, options);
if(typeof options.expires==='number'){
var days=options.expires, t=options.expires=new Date();
t.setMilliseconds(t.getMilliseconds() + days * 864e+5);
}
return (document.cookie=[
encode(key), '=', stringifyCookieValue(value),
options.expires ? '; expires=' + options.expires.toUTCString():'',
options.path    ? '; path=' + options.path:'',
options.domain  ? '; domain=' + options.domain:'',
options.secure  ? '; secure':''
].join(''));
}
var result=key ? undefined:{},
cookies=document.cookie ? document.cookie.split('; '):[],
i=0,
l=cookies.length;
for (; i < l; i++){
var parts=cookies[i].split('='),
name=decode(parts.shift()),
cookie=parts.join('=');
if(key===name){
result=read(cookie, value);
break;
}
if(!key&&(cookie=read(cookie))!==undefined){
result[name]=cookie;
}}
return result;
};
config.defaults={};
$.removeCookie=function (key, options){
$.cookie(key, '', $.extend({}, options, { expires: -1 }));
return !$.cookie(key);
};}));
(()=>{var e=e||{};e.meta=e.meta||{},e.meta.event=e.meta.event||{},function(e,t,i,n){n.selectors={field:{text:".tribe-tickets-meta-text",checkbox:".tribe-tickets-meta-checkbox",select:".tribe-tickets-meta-select",radio:".tribe-tickets-meta-radio",number:".ticket-meta-number-field"},quantity:"input.tribe-tickets-quantity",name:"input.tribe-tickets-full-name",email:"input.tribe-tickets-email",horizontal_datepicker:{container:".tribe_horizontal_datepicker__container",select:".tribe_horizontal_datepicker__container select",day:".tribe_horizontal_datepicker__day",month:".tribe_horizontal_datepicker__month",year:".tribe_horizontal_datepicker__year",value:".tribe_horizontal_datepicker__value"}},n.horizontal_datepicker={},n.init=function(){i(".tribe-list").on("click",".attendee-meta.toggle",(function(){const e=i(this),t=e.hasClass("on")?e.data("view-text"):e.data("hide-text");e.text(t).toggleClass("on").siblings(".attendee-meta-row").slideToggle()})),this.$ticket_form=i(".tribe-events-tickets").closest(".cart"),this.$ticket_form.on("change",".tribe-tickets-order_status-row select",this.event.status_changed).on("change",".quantity input, .quantity select",this.event.quantity_changed).on("keyup input",".quantity input",this.event.quantity_changed),this.$ticket_form.find('.quantity input:not([type="hidden"]), .quantity select').each((function(){n.set_quantity(i(this))})),i(".tribe-event-tickets-plus-meta-fields").on("keydown",".tribe-tickets-meta-number input",this.event.limit_number_field_typing),this.$rsvp_block=i(".tribe-block__rsvp"),this.$rsvp_block.on("change",".tribe-block__rsvp__number-input input",this.event.block_quantity_changed).on("keyup",".tribe-block__rsvp__number-input input",this.event.block_quantity_changed),this.horizontal_datepicker.populateSelects()},n.render_fields=function(e,t){const a=i(".tribe-event-tickets-plus-meta").filter('[data-ticket-id="'+e+'"]'),r=a.find(".tribe-event-tickets-plus-meta-fields-tpl"),o=a.find(".tribe-event-tickets-plus-meta-fields"),s=r.html();if(!n.has_meta_fields(e))return;const c=o.find(".tribe-event-tickets-plus-meta-attendee").length;let l=0;if(c>t)return l=c-t,void o.find(".tribe-event-tickets-plus-meta-attendee:nth-last-child(-n+"+l+")").remove();l=t-c;let d=0;for(;d<l;d++){let t=s;t=s.replace(/tribe-tickets-meta\[\]/g,"tribe-tickets-meta["+e+"]["+(c+d)+"]"),t=t.replace(/tribe-tickets-meta_([a-z0-9-]+)_/g,"tribe-tickets-meta_$1_"+(c+d)+"_"),o.append(t)}},n.set_quantity=function(e){if("yes"===e.closest("form").find(".tribe-tickets-order_status-row select").val()){const t=parseInt(e.val(),10),i=parseInt(e.closest("td").data("product-id"),10);n.render_fields(i,t)}},n.block_set_quantity=function(e,t){const i=t?parseInt(e.val(),10):0,a=parseInt(e.closest("form").data("product-id"),10);n.render_fields(a,i)},n.has_meta_fields=function(e){const n=i(t.getElementById("tribe-event-tickets-plus-meta-fields-tpl-"+e)).html();return!!i(n).find(".tribe-tickets-meta").length},n.validate_meta=function(e){let t=!0;return e.find(".tribe-tickets-meta-required").each((function(){const e=i(this);let a="";a=e.is(n.selectors.field.radio)||e.is(n.selectors.field.checkbox)?e.find("input:checked").length?"checked":"":e.is(n.selectors.field.select)?e.find("select").val():e.is(n.selectors.horizontal_datepicker.day)||e.is(n.selectors.horizontal_datepicker.month)||e.is(n.selectors.horizontal_datepicker.year)?e.val():e.find("input, textarea").val().trim(),null!==a&&0!==a.length||(t=!1)})),t},n.event.quantity_changed=function(){n.set_quantity(i(this))},n.event.status_changed=function(){const e=n.$ticket_form.find(".quantity"),t="yes"===i(this).val(),a=parseInt(e.data("product-id"),10),r=t?parseInt(e.find(".tribe-tickets-quantity").val(),10):0;n.render_fields(a,r)},n.event.block_quantity_changed=function(){const e=n.$rsvp_block.find(".tribe-block__rsvp__status .tribe-active").hasClass("tribe-block__rsvp__status-button--going");n.block_set_quantity(i(this),e)},n.event.limit_number_field_typing=function(e){-1!==i.inArray(e.keyCode,[46,8,9,27,13,110])||65===e.keyCode&&(!0===e.ctrlKey||!0===e.metaKey)||67===e.keyCode&&!0===e.ctrlKey||86===e.keyCode&&!0===e.ctrlKey||88===e.keyCode&&!0===e.ctrlKey||e.keyCode>=35&&e.keyCode<=40||(e.shiftKey||e.keyCode<48||e.keyCode>57)&&(e.keyCode<96||e.keyCode>105)&&e.preventDefault()},n.horizontal_datepicker.populateSelects=function(){i(n.selectors.horizontal_datepicker.container).each((function(e,t){const a=i(t),r=a.find(n.selectors.horizontal_datepicker.day),o=a.find(n.selectors.horizontal_datepicker.month),s=a.find(n.selectors.horizontal_datepicker.year),c=a.find(n.selectors.horizontal_datepicker.value).val().split("-");3===c.length&&(s.val(c[0]),o.val(c[1]),r.val(c[2]))}))},n.horizontal_datepicker.populateHiddenValue=function(e){const t=i(e.target).closest(n.selectors.horizontal_datepicker.container),a=t.find(n.selectors.horizontal_datepicker.day),r=t.find(n.selectors.horizontal_datepicker.month),o=t.find(n.selectors.horizontal_datepicker.year),s=t.find(n.selectors.horizontal_datepicker.value);s.val(o.val()+"-"+r.val()+"-"+a.val()),s.trigger("change")},n.horizontal_datepicker.makeDayMonthYearRequired=function(e){const t=i(e.target),a=t.closest(n.selectors.horizontal_datepicker.container),r=!(""===t.val()||"null-null-null"===t.val());a.find(n.selectors.horizontal_datepicker.day).prop("required",r),a.find(n.selectors.horizontal_datepicker.month).prop("required",r),a.find(n.selectors.horizontal_datepicker.year).prop("required",r),r?(a.find(n.selectors.horizontal_datepicker.day).addClass("tribe-tickets-meta-required"),a.find(n.selectors.horizontal_datepicker.month).addClass("tribe-tickets-meta-required"),a.find(n.selectors.horizontal_datepicker.year).addClass("tribe-tickets-meta-required")):(a.find(n.selectors.horizontal_datepicker.day).removeClass("tribe-tickets-meta-required"),a.find(n.selectors.horizontal_datepicker.month).removeClass("tribe-tickets-meta-required"),a.find(n.selectors.horizontal_datepicker.year).removeClass("tribe-tickets-meta-required"))},n.horizontal_datepicker.ensurePositiveNumber=function(e){const t=i(e.target),n=parseInt(t.val(),10),a=Math.abs(n);n!==a&&t.val(a)},n.addListeners=function(){i(t).on("change",n.selectors.horizontal_datepicker.select,this.horizontal_datepicker.populateHiddenValue),i(t).on("change",n.selectors.field.number,this.horizontal_datepicker.ensurePositiveNumber),i(t).on("change",n.selectors.horizontal_datepicker.value,this.horizontal_datepicker.makeDayMonthYearRequired),i(e).on("tribe_et_after_form_prefills",this.horizontal_datepicker.populateSelects)},i((function(){n.init(),n.addListeners()}))}(window,document,jQuery,e.meta),window.ticketsPlus=window.ticketsPlus||{},window.ticketsPlus.meta={}})();
!function(t,e){"use strict";e.init=function(){e.$rsvp=t(".tribe-events-tickets-rsvp"),e.attendee_template=t(document.getElementById("tribe-tickets-rsvp-tmpl")).html(),e.$rsvp.on("change input keyup",".tribe-tickets-quantity",e.event.quantity_changed),e.$rsvp.closest(".cart").on("submit",e.event.handle_submission),t(".tribe-rsvp-list").on("click",".attendee-meta-row .toggle",(function(){t(this).toggleClass("on").siblings(".attendee-meta-details").slideToggle()}))},e.quantity_changed=function(e){const i=e.closest(".tribe-events-tickets-rsvp"),n=i.find(".tribe-tickets-quantity");let s=0;n.each((function(){s+=parseInt(t(this).val(),10)})),0===s?i.removeClass("tribe-tickets-has-rsvp"):i.addClass("tribe-tickets-has-rsvp")},e.validate_rsvp_info=function(e){const i=e.find("input.tribe-tickets-quantity"),n=e.find("input#tribe-tickets-full-name"),s=e.find("input#tribe-tickets-email");let a=0;return i.each((function(){a+=parseInt(t(this).val(),10)})),n.val().trim().length&&s.val().trim().length&&a},e.validate_meta=function(t){let e=!0;return!!window.tribe_event_tickets_plus&&(e=window.tribe_event_tickets_plus.meta.validate_meta(t)),e},e.event.quantity_changed=function(){e.quantity_changed(t(this))},e.event.handle_submission=function(i){const n=t(this).closest("form"),s=n.find(".tribe-rsvp-messages, .tribe-rsvp-message-confirmation-error"),a=n.find(".tribe-event-tickets-meta-required-message"),r=e.validate_rsvp_info(n),c=e.validate_meta(n);return!(!r||!c)||(r?s.hide():s.show(),c?(a.hide(),n.removeClass("tribe-event-tickets-plus-meta-missing-required")):(n.addClass("tribe-event-tickets-plus-meta-missing-required"),a.show()),t("html, body").animate({scrollTop:n.offset().top-100},300),!1)},t(e.init)}(jQuery,{num_attendees:0,event:{}}),window.tec=window.tec||{},window.tec.tickets=window.tec.tickets||{},window.tec.tickets.rsvp={};
(()=>{var t=t||{};!function(t,e){"use strict";const s=t(document);e.init=function(t){e.event_listeners()},e.selectors=[".tribe-tickets__item__details__summary--more",".tribe-tickets__item__details__summary--less"],e.event_listeners=function(){s.on("keyup",e.selectors,(function(t){13===t.keyCode&&e.toggle_open(t.target)})),s.on("click",e.selectors,(function(t){e.toggle_open(t.target)}))},e.toggle_open=function(e){if(!e)return;const s=t(e);if(!s.hasClass("tribe-tickets__item__details__summary--more")&&!s.hasClass("tribe-tickets__item__details__summary--less"))return;const i=s.closest(".tribe-tickets__item__details__summary"),n=t("#"+s.attr("aria-controls"));if(!n||!i)return;event.preventDefault();const _=!i.hasClass("tribe__details--open");i.toggleClass("tribe__details--open",_),n.toggleClass("tribe__details--open",_)},t((function(){const t=document.querySelectorAll(".tribe-tickets__item__details__summary");t.length&&e.init(t)}))}(jQuery,t),window.tec=window.tec||{},window.tec.tickets=window.tec.tickets||{},window.tec.tickets.ticketDetails={}})();
var Hammer,cff_init,hashRegex,tagRegex,cff_js_exists=void 0!==cff_js_exists;function cffAddMasonry(t){var e,i=jQuery.Event("cffbeforemasonry");i.$self=t,jQuery(window).trigger(i),"function"==typeof t.masonry&&(e=!1,800<(i=jQuery(window).width())?t.hasClass("masonry-1-desktop")||(e=!0,t.addClass("cff-masonry cff-masonry-js").removeClass("cff-disable-masonry")):400<i?(t.hasClass("masonry-2-tablet")||t.hasClass("masonry-3-tablet")||t.hasClass("masonry-4-tablet")||t.hasClass("masonry-5-tablet")||t.hasClass("masonry-6-tablet"))&&(e=!0,t.addClass("cff-masonry cff-masonry-js").removeClass("cff-disable-masonry")):(t.hasClass("masonry-2-mobile")||t.hasClass("masonry-3-mobile"))&&(e=!0,t.addClass("cff-masonry cff-masonry-js").removeClass("cff-disable-masonry")),t.hasClass("cff-masonry")&&t.find(".cff-album-item a").removeAttr("style"),e&&(t.find(".cff-item").length?(window.cffMasonrySettings.itemSelector=".cff-new, .cff-item, .cff-likebox",t.find(".cff-posts-wrap").masonry(window.cffMasonrySettings),t.find(".cff-item").each(function(){jQuery(this).css("margin-bottom","15px")})):t.find(".cff-album-item").length&&(window.cffMasonrySettings.itemSelector=".cff-album-item, .cff-likebox",t.find(".cff-posts-wrap").masonry(window.cffMasonrySettings))))}function Cff(){this.feeds={},this.options={}}function CffFeed(t,e,i){this.el=t,this.index=e,this.settings=i,this.resizedImages={},this.needsResizing=[],this.imagesWaiting=0}function CFFLocationGuess(t=!1){var e=0==t?jQuery(this.el):t,t="content";return e.closest("footer").length?t="footer":e.closest(".header").length||e.closest("header").length?t="header":(e.closest(".sidebar").length||e.closest("aside").length)&&(t="sidebar"),t}function cffAjax(t,e){jQuery.ajax({url:cffajaxurl,type:"post",data:t,success:e})}function cffCmplzGetCookie(t){for(var e=t+"=",i=window.document.cookie.split(";"),n=0;n<i.length;n++){var a=i[n].trim();if(0==a.indexOf(e))return a.substring(e.length,a.length)}return""}function sanitizeColor(t){return/^(#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})|rgba?\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}(?:\s*,\s*(?:0|1|0?\.\d+))?\s*\))$/.test(t)?t:null}function cffGetShortcodeToken(t){var e="";return t.attr("data-cff-shortcode")&&-1!==t.attr("data-cff-shortcode").indexOf("accesstoken")&&(t=t.attr("data-cff-shortcode"),t=JSON.parse(t),e=encodeURI("&at="+t.accesstoken)),e}function cffReplaceHashtags(t){t=jQuery.trim(t);return/^#[0-9A-F]{6}$/i.test(t)?t:'<a href="https://www.facebook.com/hashtag/'+t.substring(1)+'" target="_blank" rel="nofollow noopener">'+t+"</a>"}function cffReplaceTags(t){t=jQuery.trim(t);return'<a href="https://www.facebook.com/'+t.substring(1)+'" target="_blank" rel="nofollow noopener">'+t+"</a>"}function cffEncodeHTML(t){if(void 0===t)return"";t=t.replace(/(>)/g,"&gt;");return t=(t=(t=t.replace(/(<)/g,"&lt;")).replace(/(&lt;br\/&gt;)/g,"<br>")).replace(/(&lt;br&gt;)/g,"<br>")}function cffLoadCommentReplies(e){var t="",i="",n=jQuery("#cff_"+e.parent().attr("data-id")).closest("#cff");n.hasClass("cff-group")&&(t="&usegrouptoken=true"),"true"==n.attr("data-own-token")&&(i="&useowntoken=true");var a=(void 0!==e.closest(".cff-item").attr("data-page-id")?e.closest(".cff-item"):jQuery(".cff-lightbox-wrapper")).attr("data-page-id"),o=cffGetShortcodeToken(n),s=e.parent(),r=s.siblings(".cff-comment-replies-box");cffsiteurl,s.attr("data-id");s.hasClass("cff-hide")?(r.hide(),s.removeClass("cff-hide")):(r.show(),s.addClass("cff-hide"),r.hasClass("cff-empty")&&((i=s.find("a")).append('<div class="cff-loader"></div>'),s.find(".cff-loader").css("background-color",i.css("color")),a={action:"cff_comments",id:s.attr("data-id"),pageid:a},n.hasClass("cff-group")&&(a.usegrouptoken=!0),"true"==n.attr("data-own-token")&&(a.useowntoken=!0),""!==o&&(o=o.split("="),a.at=o[1]),cffAjax(a,function(t){s.find(".cff-loader").remove();var t=JSON.parse(t),o="";void 0!==t.comments&&jQuery.each(t.comments.data,function(t,e){var i=void 0===window.cff||void 0===window.cff.feeds||window.cff.feeds[0].settings.consentGiven,n=!0;cff_comment_from_id=void 0!==e.from?e.from.id:(n=!1,""),o+='<div class="cff-comment-reply" id="cff_'+e.id+'"><div class="cff-comment-text-wrapper"><div class="cff-comment-text',n||(o+=" cff-no-name"),o+='"><p>',n&&(void 0!==e.from.link?o+='<a href="https://facebook.com/'+e.from.id+'" class="cff-name" target="_blank" rel="nofollow noopener">'+e.from.name+"</a>":o+='<span class="cff-name">'+e.from.name+"</span>");var a=cffEncodeHTML(e.message);o+=a,0<parseInt(e.like_count)&&(o+='<span class="cff-comment-likes"><span class="cff-comment-likes-bg"><b style="padding-top: 3px;"><svg role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M466.27 286.69C475.04 271.84 480 256 480 236.85c0-44.015-37.218-85.58-85.82-85.58H357.7c4.92-12.81 8.85-28.13 8.85-46.54C366.55 31.936 328.86 0 271.28 0c-61.607 0-58.093 94.933-71.76 108.6-22.747 22.747-49.615 66.447-68.76 83.4H32c-17.673 0-32 14.327-32 32v240c0 17.673 14.327 32 32 32h64c14.893 0 27.408-10.174 30.978-23.95 44.509 1.001 75.06 39.94 177.802 39.94 7.22 0 15.22.01 22.22.01 77.117 0 111.986-39.423 112.94-95.33 13.319-18.425 20.299-43.122 17.34-66.99 9.854-18.452 13.664-40.343 8.99-62.99zm-61.75 53.83c12.56 21.13 1.26 49.41-13.94 57.57 7.7 48.78-17.608 65.9-53.12 65.9h-37.82c-71.639 0-118.029-37.82-171.64-37.82V240h10.92c28.36 0 67.98-70.89 94.54-97.46 28.36-28.36 18.91-75.63 37.82-94.54 47.27 0 47.27 32.98 47.27 56.73 0 39.17-28.36 56.72-28.36 94.54h103.99c21.11 0 37.73 18.91 37.82 37.82.09 18.9-12.82 37.81-22.27 37.81 13.489 14.555 16.371 45.236-5.21 65.62zM88 432c0 13.255-10.745 24-24 24s-24-10.745-24-24 10.745-24 24-24 24 10.745 24 24z"></path></svg></b>'+e.like_count+"</span></span>"),o+="</p>",void 0!==e.attachment&&(o+=i?'<a class="cff-comment-attachment" href="'+e.attachment.url+'" target="_blank" rel="nofollow noopener"><img src="'+e.attachment.media.image.src+'" class="cff-feed-image" alt="'+e.attachment.title+'" /></a>':'<a class="cff-comment-attachment" href="'+e.attachment.url+'" target="_blank" rel="nofollow noopener"><span class="cff-comment-image-placeholder" data-src="'+e.attachment.media.image.src+'" data-alt="'+e.attachment.title+'"></span></a>'),o+="</div></div>",n&&(o+=i?'<div class="cff-comment-img cff-comment-reply-img"><a href="https://facebook.com/'+e.from.id+'" target="_blank" rel="nofollow noopener"><img src="'+e.from.picture.data.url+'" class="cff-feed-image" width="20" height="20" alt="Avatar" onerror="this.style.display=\'none\'"></a></div>':'<div class="cff-comment-img cff-comment-reply-img"><a href="https://facebook.com/'+e.from.id+'" target="_blank" rel="nofollow noopener"><span data-src="'+e.from.picture.data.url+'"></span></a></div>'),o+="</div>"}),r.html(o).removeClass("cff-empty"),!e.closest("#cff").hasClass("cff-masonry-js")||e.closest("#cff").hasClass("cff-masonry-css")||e.closest("#cff").hasClass("cff-opaque-comments")||cffAddMasonry(e.closest("#cff"))})))}function cffLightbox(){function j(){return document.createElement("video").canPlayType}(function(){var E=jQuery,e=(t.prototype.albumLabel=function(t,e){return t+" / "+e},t);function t(){this.fadeDuration=300,this.fitImagesInViewport=!0,this.resizeDuration=400,this.positionFromTop=50,this.showImageNumberLabel=!0,this.alwaysShowNavOnTouchDevices=!1,this.wrapAround=!1}var i=function(){function t(t){this.options=t,this.album=[],this.currentImageIndex=void 0,this.init()}t.prototype.init=function(){this.enable(),this.build()},t.prototype.enable=function(){var e=this;E("body").on("click","a[data-cff-lightbox], area[data-cff-lightbox]",function(t){return window.cffCurrentLightboxPostID=E(t.currentTarget).attr("data-id"),e.start(E(t.currentTarget)),!1})},t.prototype.build=function(){var t="";E(".cff.cff-no-svgs").length&&(t="cff-no-svgs");var e,s=this;E("<div id='cff-lightbox-overlay' class='cff-lightbox-overlay'></div><div id='cff-lightbox-wrapper' class='cff-lightbox-wrapper "+t+"'><div class='cff-lightbox-outerContainer'><div class='cff-lightbox-container'><iframe type='text/html' src='' allowfullscreen frameborder='0' webkitAllowFullScreen mozallowfullscreen allowFullScreen title='Video'></iframe><img class='cff-lightbox-image' src='' alt='"+E("#cff").attr("data-fb-text")+"' /><div class='cff-lightbox-nav'><a class='cff-lightbox-prev' href=''><span>Previous</span></a><a class='cff-lightbox-next' href=''><span>Next</span></a></div><div class='cff-lightbox-loader'></div><div class='cff-lightbox-sidebar'></div></div></div><div class='cff-lightbox-dataContainer'><div class='cff-lightbox-data'><div class='cff-lightbox-details'><p class='cff-lightbox-caption'><span class='cff-lightbox-caption-text'></span><a class='cff-lightbox-facebook' href=''><svg aria-hidden='true' focusable='false' data-prefix='fab' data-icon='facebook-square' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512' class='svg-inline--fa fa-facebook-square fa-w-14'><path fill='currentColor' d='M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48z'></path></svg>"+E("#cff").attr("data-fb-text")+"</a></p><div class='cff-lightbox-thumbs'><div class='cff-lightbox-thumbs-holder'></div></div></div><div class='cff-lightbox-closeContainer'><a class='cff-lightbox-close'><svg aria-hidden='true' focusable='false' data-prefix='fas' data-icon='times' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 352 512' class='svg-inline--fa fa-times fa-w-11'><path fill='currentColor' d='M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z' class=''></path></svg></a></div></div></div></div>").appendTo(E("body")),jQuery("#cff").attr("data-cff-theme")&&"default_theme"!==jQuery("#cff").attr("data-cff-theme")&&(e=jQuery("#cff").attr("data-cff-theme"),jQuery("#cff-lightbox-wrapper").addClass("cff-theme cff-"+e)),"function"!=typeof jQuery("#cff-lightbox-wrapper").find(".cff-lightbox-dataContainer").hammer&&(t={Manager:{prototype:{}}},e=function(i,t){var n;i.fn.hammer=function(t){return this.each(function(){})},t.Manager.prototype.emit=(n=t.Manager.prototype.emit,function(t,e){n.call(this,t,e),i(this.element).trigger({type:t,gesture:e})})},"function"==typeof define&&define.amd?define(["jquery","hammerjs"],e):"object"==typeof exports?e(require("jquery"),require("hammerjs")):e(jQuery,t)),this.$lightbox=E("#cff-lightbox-wrapper"),this.$overlay=E("#cff-lightbox-overlay"),this.$outerContainer=this.$lightbox.find(".cff-lightbox-outerContainer"),this.$container=this.$lightbox.find(".cff-lightbox-container"),this.containerTopPadding=parseInt(this.$container.css("padding-top"),10),this.containerRightPadding=parseInt(this.$container.css("padding-right"),10),this.containerBottomPadding=parseInt(this.$container.css("padding-bottom"),10),this.containerLeftPadding=parseInt(this.$container.css("padding-left"),10),this.$overlay.hide().on("click",function(){return s.end(),j()&&E("#cff-lightbox-wrapper video.cff-lightbox-video").length&&E("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),E("#cff-lightbox-wrapper iframe").attr("src",""),E("body").length&&E("body").removeClass("cff_no_scroll"),!1}),this.$lightbox.hide().on("click",function(t){return s.album.length=0,"cff-lightbox-wrapper"===E(t.target).attr("id")&&(s.end(),j()&&E("#cff-lightbox-wrapper video.cff-lightbox-video").length&&E("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),E("#cff-lightbox-wrapper iframe").attr("src",""),E("body").length&&E("body").removeClass("cff_no_scroll")),!1}),this.$outerContainer.on("click",function(t){return"cff-lightbox-wrapper"===E(t.target).attr("id")&&(s.album.length=0,s.end(),j()&&E("#cff-lightbox-wrapper video.cff-lightbox-video").length&&E("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),E("#cff-lightbox-wrapper iframe").attr("src","")),!1}),this.$lightbox.find(".cff-lightbox-prev").on("click",function(){return j()&&E("#cff-lightbox-wrapper video.cff-lightbox-video").length&&E("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),E("#cff-lightbox-wrapper iframe").attr("src",""),0===s.currentImageIndex?s.changeImage(s.album.length-1):s.changeImage(s.currentImageIndex-1),!1}),this.$lightbox.find(".cff-lightbox-next").on("click",function(){return j()&&E("#cff-lightbox-wrapper video.cff-lightbox-video").length&&E("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),E("#cff-lightbox-wrapper iframe").attr("src",""),s.currentImageIndex===s.album.length-1?s.changeImage(0):s.changeImage(s.currentImageIndex+1),!1}),this.$lightbox.find(".cff-lightbox-outerContainer").hammer().on("swipeleft",function(){return j()&&E("#cff-lightbox-wrapper video.cff-lightbox-video").length&&E("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),E("#cff-lightbox-wrapper iframe").attr("src",""),s.currentImageIndex===s.album.length-1?s.changeImage(0):s.changeImage(s.currentImageIndex+1),!1}),this.$lightbox.find(".cff-lightbox-outerContainer").hammer().on("swiperight",function(){return j()&&E("#cff-lightbox-wrapper video.cff-lightbox-video").length&&E("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),E("#cff-lightbox-wrapper iframe").attr("src",""),0===s.currentImageIndex?s.changeImage(s.album.length-1):s.changeImage(s.currentImageIndex-1),!1}),E(".cff-lightbox-thumbs").on("click",".cff-lightbox-attachment",function(){var t=E(this),e=t.find("img"),i=t.attr("data-caption"),n=t.attr("data-video"),a=t.attr("data-iframe"),o=parseInt(t.attr("data-cff-lightbox-order"));return""!=i&&"undefined"!=i||(i=t.attr("orig-caption")),void 0!==s.album[o]&&(""!==n&&null!=n&&"link"!==n&&(s.album[o].video=n),""!==a&&null!=a&&"link"!==a&&(s.album[o].iframe=a)),s.changeImage(o,t.attr("href"),e.attr("width"),e.attr("height"),t.attr("data-facebook"),i),!1}),this.$lightbox.find(".cff-lightbox-loader, .cff-lightbox-close").on("click",function(){return s.album.length=0,s.end(),j()&&E("#cff-lightbox-wrapper video.cff-lightbox-video").length&&E("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),E("#cff-lightbox-wrapper iframe").attr("src",""),E("body").length&&E("body").removeClass("cff_no_scroll"),!1})},t.prototype.start=function(i){var r=this,t=E(window);t.on("resize",E.proxy(this.sizeOverlay,this)),E("body").length&&E("body").addClass("cff_no_scroll"),E("select, object, embed").css({visibility:"hidden"}),this.sizeOverlay(),0==this.album.length&&(this.album=[]);var n=0;function e(i){o=(i.closest(".cff-posts-wrap").hasClass("cff_owl-carousel")?i.closest(".cff-posts-wrap .cff_owl-item"):i.closest(".cff-posts-wrap")).children("div").attr("class"),linkParentPostID="",void 0!==o&&(linkParentPostID=i.closest("."+o.split(" ")[0]).attr("id"),linkParentPostID="undefined"!==linkParentPostID?linkParentPostID.replace("cff_",""):linkParentPostID);var t,e,n,a,o,s=!1;E.each(r.album,function(t,e){e.link==i.attr("href")&&e.postid==linkParentPostID&&(s=!0)}),!E(".cff-duplicate-video-thumbnails").length&&1==s||(t=parseInt(i.closest(".cff").attr("data-cff-index")-1),e=i.attr("data-video"),n=i.attr("data-iframe"),a=i.attr("href"),void(o=0)===window.cff||void 0===window.cff.feeds||window.cff.feeds[0].settings.consentGiven||(""!==n&&(n="link"),""!==e&&(e="link"),i.closest(".cff-album-item").length&&void 0!==i.closest(".cff-album-item").attr("data-count")&&(o=i.closest(".cff-album-item").attr("data-count"))),r.album.push({link:a,title:i.attr("data-title")||i.attr("title"),postid:i.attr("data-id"),showthumbs:i.attr("data-thumbs"),facebookurl:i.attr("data-url"),video:e,iframe:n,type:i.attr("data-type"),cffgroupalbums:i.attr("data-cffgroupalbums"),isthumbnail:i.attr("data-cff-isthumbnail"),pagename:i.parent().attr("data-cff-page-name")?i.parent().attr("data-cff-page-name"):i.parent().parent().attr("data-page-name"),posttime:i.parent().attr("data-cff-post-time")?i.parent().attr("data-cff-post-time"):i.parent().parent().attr("data-post-time"),lbcomments:i.attr("data-lb-comments"),feedIndex:t,count:o}))}var a,o=i.attr("data-cff-lightbox");if(E(".cff-lightbox-wrapper").attr("data-page-id",i.parents(".cff-item").attr("data-page-id")),o){a=E(i.prop("tagName")+'[data-cff-lightbox="'+o+'"]');for(var s=0;s<a.length;s=++s)e(E(a[s])),a[s]===i[0]&&(n=s,E.each(r.album,function(t,e){e.postid==i.attr("data-id")&&1!=e.isthumbnail&&(n=t)}))}else if("lightbox"===i.attr("rel"))e(i);else{a=E(i.prop("tagName")+'[rel="'+i.attr("rel")+'"]');for(var f=0;f<a.length;f=++f)e(E(a[f])),a[f]===i[0]&&(n=f)}o=t.scrollTop()+this.options.positionFromTop,t=t.scrollLeft();this.$lightbox.css({top:o+"px",left:t+"px"}).fadeIn(this.options.fadeDuration),this.changeImage(n)},t.prototype.changeImage=function(t,s,r,f,c,l){var d=this,u=!1,h=120;imageNumber=t,void 0!==s&&(u=!0),this.disableKeyboardNav();var m=this.$lightbox.find(".cff-lightbox-image"),e=this.$lightbox.find(".cff-lightbox-container"),i=e.find("iframe");this.$overlay.fadeIn(this.options.fadeDuration),i.attr("src","").hide().css({display:"none",visibility:"hidden",opacity:"0"}),m.hide().css({display:"none",visibility:"hidden",opacity:"0"}),e.find("video").remove(),e.find(".cff_gdpr_notice").remove(),this.$lightbox.find(".cff-lightbox-nav, .cff-lightbox-prev, .cff-lightbox-next, .cff-lightbox-dataContainer, .cff-lightbox-numbers, .cff-lightbox-caption").hide(),E(".cff-lightbox-loader").css({display:"block",visibility:"visible",opacity:"1"}).fadeIn("fast"),this.$outerContainer.addClass("animating");var n=!1,t=!1,i=this.album[imageNumber].video,e=this.album[imageNumber].iframe;if(null!=i&&"link"!==i&&""!==i&&0<String(i).trim().length&&(n=!0),null!=e&&"link"!==e&&""!==e&&0<String(e).trim().length&&(t=!0),n||t){var a=new Image;return a.onload=function(){var t=E(window).width(),e=E(window).height(),t=a.width>t?t/1.5:a.width,e=a.height>e?e/1.5:a.height;m.attr("src",d.album[imageNumber].link),m.width(t),m.height(e),d.sizeContainer(t,e)},a.onerror=function(){m.attr("src",d.album[imageNumber].link),m.width(800),m.height(600),d.sizeContainer(800,600)},a.src=this.album[imageNumber].link,void(this.currentImageIndex=imageNumber)}var p=new Image;p.onload=function(){var t,e,i,n,a,o;m.attr("src",d.album[imageNumber].link),u&&(m.attr("src",s),E(".cff-lightbox-facebook").attr("href",c),E(".cff-lightbox-caption .cff-lightbox-caption-text").html(l),p.width=r,p.height=f,h=180),E(p),m.width(p.width),m.height(p.height),d.options.fitImagesInViewport&&(n=E(window).width(),i=E(window).height(),a=0,o=80,"true"==E("#cff_"+d.album[0].postid).closest("#cff").attr("data-lb-comments")&&640<n&&(a=300),window.innerWidth<640&&(o=40),o=n-d.containerLeftPadding-d.containerRightPadding-20-a-o,i=i-d.containerTopPadding-d.containerBottomPadding-h,(p.width>o||p.height>i)&&(p.width/o>p.height/i?(e=o,t=parseInt(p.height/(p.width/e),10)):(t=i,e=parseInt(p.width/(p.height/t),10)),m.width(e),m.height(t))),d.sizeContainer(m.width(),m.height())},p.src=this.album[imageNumber].link,this.currentImageIndex=imageNumber},t.prototype.sizeOverlay=function(){this.$overlay.width(E(window).width()).height(E(document).height())},t.prototype.sizeContainer=function(t,e){var i=this,n=this.$outerContainer.outerWidth(),a=this.$outerContainer.outerHeight(),o=t+this.containerLeftPadding+this.containerRightPadding,s=e+this.containerTopPadding+this.containerBottomPadding;function r(){i.$lightbox.find(".cff-lightbox-dataContainer").width(o),i.$lightbox.find(".cff-lightbox-prevLink").height(s),i.$lightbox.find(".cff-lightbox-nextLink").height(s),i.showImage()}n!==o||a!==s?this.$outerContainer.animate({width:o,height:s},this.options.resizeDuration,"swing",function(){r()}):r()},t.prototype.showImage=function(){var t=void 0!==this.album[this.currentImageIndex].video&&""!==this.album[this.currentImageIndex].video&&"link"!==this.album[this.currentImageIndex].video,e=void 0!==this.album[this.currentImageIndex].iframe&&""!==this.album[this.currentImageIndex].iframe&&"link"!==this.album[this.currentImageIndex].iframe;t||e||this.$lightbox.find(".cff-lightbox-loader").fadeOut("fast"),this.updateNav(),this.updateDetails(),this.preloadNeighboringImages(),this.enableKeyboardNav()},t.prototype.updateNav=function(){var t=!1;try{document.createEvent("TouchEvent"),t=!!this.options.alwaysShowNavOnTouchDevices}catch(t){}this.$lightbox.find(".cff-lightbox-nav").show(),1<this.album.length&&(this.options.wrapAround?(t&&this.$lightbox.find(".cff-lightbox-prev, .cff-lightbox-next").css("opacity","1"),this.$lightbox.find(".cff-lightbox-prev, .cff-lightbox-next").show()):(0<this.currentImageIndex&&(this.$lightbox.find(".cff-lightbox-prev").show(),t&&this.$lightbox.find(".cff-lightbox-prev").css("opacity","1")),this.currentImageIndex<this.album.length-1&&(this.$lightbox.find(".cff-lightbox-next").show(),t&&this.$lightbox.find(".cff-lightbox-next").css("opacity","1"))))};var z={};return t.prototype.updateDetails=function(){var d=this,f="";this.$lightbox.find(".cff-lightbox-nav, .cff-lightbox-nav a").show();var t,e=!1,i=!1,n="",a="";j()?(E("#cff-lightbox-wrapper").removeClass("cff-has-video"),null!=(v=this.album[this.currentImageIndex].video)&&"link"!==v&&""!==v&&0<String(v).trim().length&&(e=!0,n=v),null!=(u=this.album[this.currentImageIndex].iframe)&&"link"!==u&&""!==u&&0<String(u).trim().length&&(i=!0,a=u),k=E(".cff-lightbox-image"),g=E(".cff-lightbox-container iframe"),e?(k.hide().css({display:"none",visibility:"hidden",opacity:"0"}),p=this.currentImageIndex,t=this.album[p].link,g.attr("src",""),setTimeout(function(){d.currentImageIndex===p&&(g.attr({src:n,poster:t,autoplay:"true"}),g.on("load",function(){E(".cff-lightbox-loader").fadeOut("fast"),g.off("load")}),setTimeout(function(){d.currentImageIndex===p&&E(".cff-lightbox-loader").fadeOut("fast")},1e3))},50),g.show().css({display:"block",visibility:"visible",opacity:"1"}),E("#cff-lightbox-wrapper").addClass("cff-has-video")):i?(k.hide().css({display:"none",visibility:"hidden",opacity:"0"}),g.show().css({display:"block",visibility:"visible",opacity:"1"})):(g.hide().css({display:"none",visibility:"hidden",opacity:"0"}),g.attr("src",""),E("#cff-lightbox-wrapper").removeClass("cff-has-video cff-has-iframe cff-fb-player"),x=this.album[this.currentImageIndex].link,k.attr("src")&&""!==k.attr("src")&&k.attr("src")===x||k.attr("src",x),k.css({display:"block",visibility:"visible",opacity:"1"}),k.is(":visible")?k.show():k.fadeIn("slow"))):(k=E(".cff-lightbox-image"),(g=E(".cff-lightbox-container iframe")).hide().css({display:"none",visibility:"hidden",opacity:"0"}),g.attr("src",""),E("#cff-lightbox-wrapper").removeClass("cff-has-video cff-has-iframe cff-fb-player"),x=this.album[this.currentImageIndex].link,k.attr("src")&&""!==k.attr("src")&&k.attr("src")===x||k.attr("src",x),k.css({display:"block",visibility:"visible",opacity:"1"}),k.is(":visible")?k.show():k.fadeIn("slow"));var o=!1;"link"===this.album[this.currentImageIndex].iframe&&(o=!0),"link"!==this.album[this.currentImageIndex].video&&!o||jQuery(".cff-lightbox-container .cff_gdpr_notice").length?"link"===this.album[this.currentImageIndex].video||o?jQuery(".cff-lightbox-container .cff_gdpr_notice").length&&jQuery(".cff-lightbox-container .cff_gdpr_notice").attr("href",this.album[this.currentImageIndex].facebookurl):jQuery(".cff_gdpr_notice").remove():jQuery(".cff-lightbox-container").prepend('<a href="'+this.album[this.currentImageIndex].facebookurl+'" target="_blank" rel="noopener noreferrer" class="cff_gdpr_notice"><svg style="color: rgba(255,255,255,1)" class="svg-inline--fa fa-play fa-w-14" aria-label="Play" aria-hidden="true" data-fa-processed="" data-prefix="fa" data-icon="play" role="presentation" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"></path></svg></a>');var s,r,c,l,u,h,m,p,g,v="true"==this.album[this.currentImageIndex].lbcomments&&"false"!=E("#cff_"+this.album[this.currentImageIndex].postid+" .cff-lightbox-link").attr("data-lb-comments");E(window).width()<=640&&(v=!1),v?(u=this.album[this.currentImageIndex].postid.split("_")[0],s=this.album[this.currentImageIndex].pagename,r=this.album[this.currentImageIndex].posttime,c=E(".cff-lightbox-container .cff-lightbox-sidebar"),l=E(".cff-lightbox-thumbs-holder"),o=E("#cff_"+this.album[this.currentImageIndex].postid).attr("data-cff-from"),E(".cff-lightbox-wrapper").addClass("cff-enable-lb-comments"),E(".cff-lightbox-dataContainer").css("width",E(".cff-lightbox-dataContainer").innerWidth()+300),c.css("display","block"),v="",v=(void 0===window.cff||void 0===window.cff.feeds||window.cff.feeds[0].settings.consentGiven)&&void 0!==o?(u=o!=u?E("#cff_"+this.album[this.currentImageIndex].postid).find(".cff-author-img").find(".cff-feed-image").attr("src"):"https://graph.facebook.com/"+o+"/picture?type=square","<div class='cff-author'><div class='cff-author-text'><p class='cff-page-name cff-author-date'><a href='https://facebook.com/"+o+"' target='_blank' rel='nofollow'>"+s+"</a><span class='cff-story'> </span></p><p class='cff-date'>"+r+"</p></div><a href='https://facebook.com/"+o+"' target='_blank' rel='nofollow noopener' class='cff-author-img'><img src='"+u+"' title='"+s+"' alt='"+s+"' width='40' height='40'></a></div>"):"<div class='cff-author cff-no-author-info'><div class='cff-author-text'><p class='cff-date'>"+r+"</p></div><div class='cff-author-img'></div></div>",E(".cff-lightbox-dataContainer .cff-lightbox-close").remove(),c.html("<div class='cff-lightbox-closeContainer'><div class='cff-lightbox-close'><svg aria-hidden='true' focusable='false' data-prefix='fas' data-icon='times' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 352 512' class='svg-inline--fa fa-times fa-w-11'><path fill='currentColor' d='M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z' class=''></path></svg></div></div><div class='cff-lightbox-sidebar-content'>"+v+"<p class='cff-lightbox-caption'><span class='cff-lightbox-caption-text'>"+E(".cff-lightbox-caption-text").html()+"</span></p></div>"+E("#cff_"+this.album[this.currentImageIndex].postid+" .cff-comments-box")[0].outerHTML),this.$lightbox.find(".cff-lightbox-close").on("click",function(){return d.end(),d.album.length=0,j()&&E("#cff-lightbox-wrapper video.cff-lightbox-video").length&&E("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),E("#cff-lightbox-wrapper iframe").attr("src",""),E("body").length&&E("body").removeClass("cff_no_scroll"),!1}),setTimeout(function(){1<l.find("a").length&&(c.find(".cff-page-name a").text(l.find("a.cff-selected").attr("data-page-name")),c.find(".cff-date").text(l.find("a.cff-selected").attr("data-post-date")))},0),l.css("margin-top",-10),150<c.find(".cff-reactions-count").innerWidth()&&c.find(".cff-likes-this-text").addClass("cff-long"),c.find(".cff-comment:visible").each(function(){var t=jQuery(this);void 0!==window.cff&&void 0!==window.cff.feeds&&!window.cff.feeds[0].settings.consentGiven||t.find(".cff-comment-img:not(.cff-comment-reply-img) a, .cff-comment-img:not(.cff-comment-reply-img) span").html('<img src="'+t.attr("data-avatar")+'" alt="Avatar" onerror="this.style.display=\'none\'" />')}),c.find(".cff-comment-replies a").on("click",function(){cffLoadCommentReplies(E(this))}),c.find(".cff-show-more-comments a").attr("href",c.find(".cff-comment-on-facebook a").attr("href"))):(E(".cff-lightbox-wrapper .cff-lightbox-sidebar").html(""),E(".cff-lightbox-wrapper").removeClass("cff-enable-lb-comments")),E("#cff-lightbox-wrapper").removeClass("cff-has-iframe cff-fb-player cff-has-thumbs"),i&&!e?(h=a,k=E(".cff-lightbox-image"),g=E(".cff-lightbox-container iframe"),E("#cff-lightbox-wrapper").addClass("cff-has-iframe"),k.hide().css({display:"none",visibility:"hidden",opacity:"0"}),g.show().css({display:"block",visibility:"visible",opacity:"1"}),E("#cff-lightbox-wrapper").removeClass("cff-has-video"),-1!=h.indexOf("https://www.facebook.com/v2.3/plugins/video.php?")&&E("#cff-lightbox-wrapper").addClass("cff-fb-player"),m=-1<h.indexOf(".swf")||-1!=h.indexOf("&autoplay=1")?"":"?autoplay=1",p=this.currentImageIndex,E("#cff-lightbox-wrapper iframe").attr("src",""),setTimeout(function(){var t;d.currentImageIndex===p&&((t=E("#cff-lightbox-wrapper iframe")).attr({src:h+m+"&mute=0"}),t.on("load",function(){E(".cff-lightbox-loader").fadeOut("fast"),t.off("load")}),setTimeout(function(){d.currentImageIndex===p&&E(".cff-lightbox-loader").fadeOut("fast")},1500))},500)):e||i||(k=E(".cff-lightbox-image"),(g=E(".cff-lightbox-container iframe")).hide().css({display:"none",visibility:"hidden",opacity:"0"}),g.attr("src",""),E("#cff-lightbox-wrapper").removeClass("cff-has-video cff-has-iframe cff-fb-player"),x=this.album[this.currentImageIndex].link,k.attr("src")&&""!==k.attr("src")&&k.attr("src")===x||k.attr("src",x),k.css({display:"block",visibility:"visible",opacity:"1"}),k.is(":visible")?k.show():k.fadeIn("slow"));var b,y,w,x,C,k,_,I,i=!1;function A(t,i,e,n,a,o,s,r,f,c){var l=!1;E.each(d.album,function(t,e){e.link==i&&e.postid==a&&(l=!0)}),1!=l&&(postType=o?"albumsonly":"",lbcomments=o?"false":"true",void 0!==f&&""!==f||E.each(d.album,function(t,e){if(e.postid==a&&!e.isthumbnail)return void 0!==e.video&&""!==e.video&&"link"!==e.video&&e.video,void 0!==e.iframe&&""!==e.iframe&&"link"!==e.iframe&&e.iframe,!1}),d.album.splice(t,0,{link:i,title:e,postid:a,showthumbs:"true",facebookurl:n,video:void 0!==f&&""!==f?f:"",iframe:void 0!==c&&""!==c?c:"",type:postType,cffgroupalbums:void 0,isthumbnail:s,lbcomments:lbcomments,thumbimg:r}))}this.album[this.currentImageIndex].isthumbnail&&(i=!0),i||E(".cff-lightbox-thumbs-holder").empty().removeClass("cff-animate"),this.album[this.currentImageIndex].link==E(".cff-lightbox-image").attr("src")&&E(".cff-lightbox-facebook").attr("href",this.album[this.currentImageIndex].facebookurl),"true"==this.album[this.currentImageIndex].showthumbs?(E(".cff-lightbox-thumbs").show(),b=this.album[this.currentImageIndex].postid,y="",w=!1,"albumsonly"==this.album[this.currentImageIndex].type&&(w=!0),void 0!==z[b]?(E.each(z[b],function(t,e){var i=e[5].replace(/"/g,"&quot;"),n=0;E.each(d.album,function(t,e){if(e.postid==b)return n=t,!1});var a,o=parseInt(n)+parseInt(t),s="",r="";void 0!==d.album[o]&&(void 0!==(a=d.album[o]).video&&""!==a.video&&"link"!==a.video&&(s=a.video),void 0!==a.iframe&&""!==a.iframe&&"link"!==a.iframe&&(r=a.iframe)),""!==s&&""!==r||void 0===d.album[n]||(a=d.album[n],""===s&&void 0!==a.video&&""!==a.video&&"link"!==a.video&&(s=a.video),""===r&&void 0!==a.iframe&&""!==a.iframe&&"link"!==a.iframe&&(r=a.iframe)),void 0===e[8]&&(e[8]=e[0]),y+='<a href="'+e[0]+'" class="cff-lightbox-attachment" data-cff-lightbox="cff-lightbox-1" data-facebook="'+e[3]+'" data-caption="'+e[4]+'" orig-caption="'+i+'" data-page-name="'+e[6]+'" data-post-date="'+e[7]+'" data-cff-lightbox-order="'+o+'" lbcomments="true" data-thumbs="true" data-url="'+e[3]+'" data-iframe="'+(""!==r?r:"")+'" data-video="'+(""!==s?s:"")+'" ',y+=w?'data-type="albumsonly" ':"data-type ",y+='data-cff-isthumbnail="true"><img src="'+e[8]+'" width="'+e[1]+'" height="'+e[2]+'" /></a>',0<t&&A(o,e[0],e[4],e[3],b,w,!0,e[6],s,r)}),E(".cff-lightbox-thumbs-holder").html('<div class="cff-lightbox-thumbs-wrap">'+y+"</div>").addClass("cff-animate"),E(".cff-lightbox-wrapper").addClass("cff-has-thumbs"),jQuery(".cff-lightbox-thumbs-holder a").imgLiquid({fill:!0,useBackgroundSize:!0}),E(".cff-loader").hide(),E(".cff-lightbox-thumbs-holder").css("min-height",0)):("undefined"!=typeof cffsiteurl&&""!=cffsiteurl||(cffsiteurl=window.location.host+"/wp-content/plugins"),x=E("#cff_"+b).closest(".cff"),I=E("#cff_"+b).attr("data-page-id"),k=cffGetShortcodeToken(x),_="","true"==x.attr("data-own-token")&&(_="&useowntoken=true"),i=cffsiteurl+"/custom-facebook-feed-pro/thumbs.php?id="+b+"&pageid="+I+_+k,C=[],w&&(i+="&albumsonly=true",void 0!==window.cff&&void 0!==window.cff.feeds&&!window.cff.feeds[0].settings.consentGiven||E(".cff-lightbox-thumbs-holder").css("min-height",45).after('<div class="cff-loader"></div>')),(_=this.album[this.currentImageIndex].cffgroupalbums)&&(i=i+"&usegrouptoken="+_),I={action:"cff_thumbs",id:b,pageid:I},""!==k&&(k=k.split("="),I.at=k[1]),"true"==x.attr("data-own-token")&&(I.useowntoken=!0),_&&(I.usegrouptoken=_),w&&(I.albumsonly=!0),E(".cff-gdpr-more-link").remove(),window.cff.feeds[this.album[this.currentImageIndex].feedIndex].settings.consentGiven?(w&&(jQuery(".cff-lightbox-container").addClass("cff-album-loading"),jQuery(".cff-lightbox-prev, .cff-lightbox-next").hide()),cffAjax(I,function(t){t&&(t=JSON.parse(t),w?E.each(t.data,function(t,e){var i="";e.name&&(i=e.name),i=(i=cffLinkify(i)).replace(hashRegex,cffReplaceHashtags),i=String(i).replace(/& /g,"&amp; ").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/\n/g,"<br/>"),f=String(f).replace(/& /g,"&amp; ").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/\n/g,"<br/>");var n,a=parseInt(d.currentImageIndex)+parseInt(t),o=e.source,s=e.width,r=e.height;void 0!==e.images[0]&&(o=e.images[0].source,s=e.images[0].width,r=e.images[0].height),n=void 0!==e.images[e.images.length-2]?e.images[e.images.length-2].source:o,y+='<a href="'+o+'" class="cff-lightbox-attachment" data-facebook="https://facebook.com/'+e.id+'" data-caption="'+i+'" orig-caption="'+f+'" data-cff-lightbox-order="'+a+'" data-thumbs="true" data-url="http://facebook.com/'+e.id+'" data-iframe data-video data-type="albumsonly" data-cff-isthumbnail="true"><img src="'+n+'" lbcomments="false" width="'+s+'" height="'+r+'" /></a>',C.push([o,s,r,"https://facebook.com/"+e.id,i,f,void 0,void 0,n]),0<t&&A(a,o,i,"https://facebook.com/"+e.id,b,w,!0,n)}):void 0!==t.attachments&&E.each(t.attachments.data[0].subattachments.data,function(t,e){var i="";e.description&&(i=e.description),f=String(f).replace(/"/g,"&quot;"),i=(i=cffLinkify(i)).replace(hashRegex,cffReplaceHashtags),i=String(i).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/\n/g,"<br/>");var n=parseInt(d.currentImageIndex)+parseInt(t),a="",o="";console.log(e),void 0!==e.type&&"video"===e.type&&(void 0!==e.media&&void 0!==e.media.source&&void 0!==e.media.source&&(a=e.media.source),void 0!==e.target&&void 0!==e.target.url&&(o=e.target.url),""===a&&void 0!==e.url&&(o="https://www.facebook.com/v2.3/plugins/video.php?href="+encodeURIComponent(e.url))),y+='<a href="'+e.media.image.src+'" class="cff-lightbox-attachment" data-facebook="'+e.url+'" data-caption="'+i+'" orig-caption="'+f+'" lbcomments="true" data-page-name="'+s+'" data-post-date="'+r+'" data-cff-lightbox-order="'+n+'" data-thumbs="true" data-url="'+e.url+'" data-iframe="'+(""!==o?o:"")+'" data-video="'+(""!==a?a:"")+'" data-type data-cff-isthumbnail="true"><img src="'+e.media.image.src+'" width="'+e.media.image.width+'" height="'+e.media.image.height+'" /></a>',C.push([e.media.image.src,e.media.image.width,e.media.image.height,e.url,i,f,s,r]),0<t&&A(n,e.media.image.src,i,e.url,b,w,!0,s,a,o)}),0<y.length&&(E(".cff-lightbox-thumbs-holder").html('<div class="cff-lightbox-thumbs-wrap">'+y+"</div>").addClass("cff-animate"),E(".cff-lightbox-wrapper").addClass("cff-has-thumbs")),jQuery(".cff-lightbox-thumbs-holder .cff-lightbox-attachment").imgLiquid({fill:!0,useBackgroundSize:!0}),E(".cff-loader").hide(),E(".cff-lightbox-thumbs-holder").css("min-height",0),z[b]=C,w&&(jQuery(".cff-lightbox-container").removeClass("cff-album-loading"),jQuery(".cff-lightbox-prev, .cff-lightbox-next").show()))})):0<parseInt(this.album[this.currentImageIndex].count)&&(E(".cff-lightbox-facebook").after('<a href="'+E(".cff-lightbox-facebook").attr("href")+'"  class="cff-gdpr-more-link cff-lightbox-attachment"><div class="cff-gdpr-overlay"></div><span>+'+this.album[this.currentImageIndex].count+'</span><img src="'+jQuery(".cff-lightbox-image").attr("src")+'"></a>'),E(".cff-gdpr-more-link").imgLiquid({fill:!0,useBackgroundSize:!0}),setTimeout(function(){E(".cff-gdpr-more-link span").css({"margin-top":"-"+E(".cff-gdpr-more-link span").height()/2+"px","margin-right":"-"+E(".cff-gdpr-more-link span").width()/2+"px",display:"block"})},200)))):E(".cff-lightbox-thumbs").hide(),E(".cff-lightbox-attachment").removeClass("cff-selected"),E(".cff-lightbox-attachment[href='"+E(".cff-lightbox-image").attr("src")+"']").addClass("cff-selected"),this.$lightbox.find(".cff-lightbox-caption").fadeIn("fast"),void 0!==this.album[this.currentImageIndex].title&&""!==this.album[this.currentImageIndex].title?(f=(f=this.album[this.currentImageIndex].title).replace(hashRegex,cffReplaceHashtags),f=String(f).replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"'),I=(_=this.$lightbox.find(".cff-lightbox-caption")).find(".cff-lightbox-caption-text"),this.album[this.currentImageIndex].link==E(".cff-lightbox-image").attr("src")&&I.html(f.includes("</a>")?f:cffLinkify(f))," "==I.text()||""==I.text()?_.addClass("cff-no-caption"):_.removeClass("cff-no-caption")):(!w&&void 0!==this.album[this.currentImageIndex].title||this.$lightbox.find(".cff-lightbox-caption-text").html(""),this.$lightbox.find(".cff-lightbox-caption .cff-lightbox-caption-text").text().length<1&&this.$lightbox.find(".cff-lightbox-caption").addClass("cff-no-caption").find(".cff-lightbox-caption-text").html("")),this.$lightbox.find(".cff-lightbox-facebook, .cff-lightbox-caption-text a, .cff-lightbox-sidebar a:not(.cff-comment-replies-a), .cff_gdpr_notice, .cff-gdpr-more-link").off("click").on("click",function(t){window.open(E(this).attr("href"),"_blank")}),1<this.album.length&&this.options.showImageNumberLabel?this.$lightbox.find(".cff-lightbox-number").text(this.options.albumLabel(this.currentImageIndex+1,this.album.length)).fadeIn("fast"):this.$lightbox.find(".cff-lightbox-number").hide(),"function"==typeof cffLightboxAction&&setTimeout(function(){cffLightboxAction()},100),this.$outerContainer.removeClass("animating"),this.$lightbox.find(".cff-lightbox-dataContainer").fadeIn(this.options.resizeDuration,function(){return d.sizeOverlay()})},t.prototype.preloadNeighboringImages=function(){this.album.length>this.currentImageIndex+1&&((new Image).src=this.album[this.currentImageIndex+1].link),0<this.currentImageIndex&&((new Image).src=this.album[this.currentImageIndex-1].link)},t.prototype.enableKeyboardNav=function(){E(document).on("keyup.keyboard",E.proxy(this.keyboardAction,this))},t.prototype.disableKeyboardNav=function(){E(document).off(".keyboard")},t.prototype.keyboardAction=function(t){var e=t.keyCode,t=String.fromCharCode(e).toLowerCase();27===e||t.match(/x|o|c/)?(j()&&E("#cff-lightbox-wrapper video.cff-lightbox-video").length&&E("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),E("#cff-lightbox-wrapper iframe").attr("src",""),this.end()):"p"===t||37===e?jQuery(".cff-lightbox-container").hasClass("cff-album-loading")||(0!==this.currentImageIndex?this.changeImage(this.currentImageIndex-1):this.options.wrapAround&&1<this.album.length&&this.changeImage(this.album.length-1),j()&&E("#cff-lightbox-wrapper video.cff-lightbox-video").length&&E("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),E("#cff-lightbox-wrapper iframe").attr("src","")):"n"!==t&&39!==e||jQuery(".cff-lightbox-container").hasClass("cff-album-loading")||(this.currentImageIndex!==this.album.length-1?this.changeImage(this.currentImageIndex+1):this.options.wrapAround&&1<this.album.length&&this.changeImage(0),j()&&E("#cff-lightbox-wrapper video.cff-lightbox-video").length&&E("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),E("#cff-lightbox-wrapper iframe").attr("src",""))},t.prototype.end=function(){this.disableKeyboardNav(),E(window).off("resize",this.sizeOverlay),this.$lightbox.fadeOut(this.options.fadeDuration),this.$overlay.fadeOut(this.options.fadeDuration),E("select, object, embed").css({visibility:"visible"})},t}();E(function(){var t=new e;new i(t)})}).call(this)}cff_js_exists||(void 0!==window.cff_block_editor&&(cffmetatrans=!1,cffajaxurl=window.cff_block_editor.cffajaxurl),"undefined"==typeof cffnomobileswipe?(function(a,r,c){"use strict";function o(t,e,i){return setTimeout(n(t,i),e)}function i(t,e,i){return Array.isArray(t)&&(s(t,i[e],i),1)}function s(t,e,i){if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==c)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(var n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function t(i,t,e){var n="DEPRECATED METHOD: "+t+"\n"+e+" AT \n";return function(){var t=new Error("get-stack-trace"),e=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",t=a.console&&(a.console.warn||a.console.log);return t&&t.call(a.console,n,e),i.apply(this,arguments)}}function e(t,e,i){var n=e.prototype,e=t.prototype=Object.create(n);e.constructor=t,e._super=n,i&&it(e,i)}function n(t,e){return function(){return t.apply(e,arguments)}}function f(t,e){return typeof t==Z?t.apply(e&&e[0]||c,e):t}function l(t,e){return t===c?e:t}function d(e,t,i){s(p(t),function(t){e.addEventListener(t,i,!1)})}function u(e,t,i){s(p(t),function(t){e.removeEventListener(t,i,!1)})}function h(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function m(t,e){return-1<t.indexOf(e)}function p(t){return t.trim().split(/\s+/g)}function g(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function v(t){return Array.prototype.slice.call(t,0)}function b(t,i,e){for(var n=[],a=[],o=0;o<t.length;){var s=i?t[o][i]:t[o];g(a,s)<0&&n.push(t[o]),a[o]=s,o++}return e&&(n=i?n.sort(function(t,e){return t[i]>e[i]}):n.sort()),n}function y(t,e){for(var i,n=e[0].toUpperCase()+e.slice(1),a=0;a<X.length;){if((i=(i=X[a])?i+n:e)in t)return i;a++}return c}function w(t){t=t.ownerDocument||t;return t.defaultView||t.parentWindow||a}function x(e,t){var i=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){f(e.options.enable,[e])&&i.handler(t)},this.init()}function C(t,e,i){var n=i.pointers.length,a=i.changedPointers.length,o=e&ut&&n-a==0,a=e&(ht|mt)&&n-a==0;i.isFirst=!!o,i.isFinal=!!a,o&&(t.session={}),i.eventType=e,function(t,e){var i=t.session,n=e.pointers,a=n.length;i.firstInput||(i.firstInput=k(e)),1<a&&!i.firstMultiple?i.firstMultiple=k(e):1===a&&(i.firstMultiple=!1);var o=i.firstInput,s=i.firstMultiple,r=(s||o).center,a=e.center=_(n);e.timeStamp=et(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=E(r,a),e.distance=z(r,a),function(t,e){var i=e.center,n=t.offsetDelta||{},a=t.prevDelta||{},o=t.prevInput||{};e.eventType!==ut&&o.eventType!==ht||(a=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=a.x+(i.x-n.x),e.deltaY=a.y+(i.y-n.y)}(i,e),e.offsetDirection=A(e.deltaX,e.deltaY),a=I(e.deltaTime,e.deltaX,e.deltaY),e.overallVelocityX=a.x,e.overallVelocityY=a.y,e.overallVelocity=tt(a.x)>tt(a.y)?a.x:a.y,e.scale=s?function(t,e){return z(e[0],e[1],_t)/z(t[0],t[1],_t)}(s.pointers,n):1,e.rotation=s?function(t,e){return E(e[1],e[0],_t)+E(t[1],t[0],_t)}(s.pointers,n):0,e.maxPointers=!i.prevInput||e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers,function(t,e){var i,n,a,o,s,r=t.lastInterval||e,f=e.timeStamp-r.timeStamp;e.eventType!=mt&&(dt<f||r.velocity===c)?(a=e.deltaX-r.deltaX,o=e.deltaY-r.deltaY,s=I(f,a,o),i=s.x,n=s.y,s=tt(s.x)>tt(s.y)?s.x:s.y,o=A(a,o),t.lastInterval=e):(s=r.velocity,i=r.velocityX,n=r.velocityY,o=r.direction),e.velocity=s,e.velocityX=i,e.velocityY=n,e.direction=o}(i,e),t=t.element,h(e.srcEvent.target,t)&&(t=e.srcEvent.target),e.target=t}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function k(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:K(t.pointers[i].clientX),clientY:K(t.pointers[i].clientY)},i++;return{timeStamp:et(),pointers:e,center:_(e),deltaX:t.deltaX,deltaY:t.deltaY}}function _(t){var e=t.length;if(1===e)return{x:K(t[0].clientX),y:K(t[0].clientY)};for(var i=0,n=0,a=0;a<e;)i+=t[a].clientX,n+=t[a].clientY,a++;return{x:K(i/e),y:K(n/e)}}function I(t,e,i){return{x:e/t||0,y:i/t||0}}function A(t,e){return t===e?pt:tt(t)>=tt(e)?t<0?gt:vt:e<0?bt:yt}function z(t,e,i){var n=e[(i=i||kt)[0]]-t[i[0]],i=e[i[1]]-t[i[1]];return Math.sqrt(n*n+i*i)}function E(t,e,i){var n=e[(i=i||kt)[0]]-t[i[0]],i=e[i[1]]-t[i[1]];return 180*Math.atan2(i,n)/Math.PI}function j(){this.evEl=At,this.evWin=zt,this.pressed=!1,x.apply(this,arguments)}function T(){this.evEl=Tt,this.evWin=Ft,x.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function F(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,x.apply(this,arguments)}function D(){this.evTarget=St,this.targetIds={},x.apply(this,arguments)}function B(){x.apply(this,arguments);var t=n(this.handler,this);this.touch=new D(this.manager,t),this.mouse=new j(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function S(t){var e,i,t=t.changedPointers[0];t.identifier===this.primaryTouch&&(e={x:t.clientX,y:t.clientY},this.lastTouches.push(e),i=this.lastTouches,setTimeout(function(){var t=i.indexOf(e);-1<t&&i.splice(t,1)},Lt))}function L(t,e){this.manager=t,this.set(e)}function Q(t){this.options=it({},this.defaults,t||{}),this.id=ot++,this.manager=null,this.options.enable=l(this.options.enable,!0),this.state=$t,this.simultaneous={},this.requireFail=[]}function O(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function R(t){return t==yt?"down":t==bt?"up":t==gt?"left":t==vt?"right":""}function M(t,e){e=e.manager;return e?e.get(t):t}function q(){Q.apply(this,arguments)}function P(){q.apply(this,arguments),this.pX=null,this.pY=null}function N(){q.apply(this,arguments)}function W(){Q.apply(this,arguments),this._timer=null,this._input=null}function $(){q.apply(this,arguments)}function G(){q.apply(this,arguments)}function H(){Q.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function U(t,e){return(e=e||{}).recognizers=l(e.recognizers,U.defaults.preset),new Y(t,e)}function Y(t,e){this.options=it({},U.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((t=this).options.inputClass||(rt?T:ft?D:st?B:j))(t,C),this.touchAction=new L(this,this.options.touchAction),V(this,!0),s(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function V(i,n){var a,o=i.element;o.style&&(s(i.options.cssProps,function(t,e){a=y(o.style,e),n?(i.oldCssProps[a]=o.style[a],o.style[a]=t):o.style[a]=i.oldCssProps[a]||""}),n||(i.oldCssProps={}))}var X=["","webkit","Moz","MS","ms","o"],J=r.createElement("div"),Z="function",K=Math.round,tt=Math.abs,et=Date.now,it="function"!=typeof Object.assign?function(t){if(t===c||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(n!==c&&null!==n)for(var a in n)n.hasOwnProperty(a)&&(e[a]=n[a])}return e}:Object.assign,nt=t(function(t,e,i){for(var n=Object.keys(e),a=0;a<n.length;)(!i||i&&t[n[a]]===c)&&(t[n[a]]=e[n[a]]),a++;return t},"extend","Use `assign`."),at=t(function(t,e){return nt(t,e,!0)},"merge","Use `assign`."),ot=1,st="ontouchstart"in a,rt=y(a,"PointerEvent")!==c,ft=st&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),ct="touch",lt="mouse",dt=25,ut=1,ht=4,mt=8,pt=1,gt=2,vt=4,bt=8,yt=16,wt=gt|vt,xt=bt|yt,Ct=wt|xt,kt=["x","y"],_t=["clientX","clientY"];x.prototype={handler:function(){},init:function(){this.evEl&&d(this.element,this.evEl,this.domHandler),this.evTarget&&d(this.target,this.evTarget,this.domHandler),this.evWin&&d(w(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&u(this.element,this.evEl,this.domHandler),this.evTarget&&u(this.target,this.evTarget,this.domHandler),this.evWin&&u(w(this.element),this.evWin,this.domHandler)}};var It={mousedown:ut,mousemove:2,mouseup:ht},At="mousedown",zt="mousemove mouseup";e(j,x,{handler:function(t){var e=It[t.type];e&ut&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=ht),this.pressed&&(e&ht&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:lt,srcEvent:t}))}});var Et={pointerdown:ut,pointermove:2,pointerup:ht,pointercancel:mt,pointerout:mt},jt={2:ct,3:"pen",4:lt,5:"kinect"},Tt="pointerdown",Ft="pointermove pointerup pointercancel";a.MSPointerEvent&&!a.PointerEvent&&(Tt="MSPointerDown",Ft="MSPointerMove MSPointerUp MSPointerCancel"),e(T,x,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),a=Et[n],o=jt[t.pointerType]||t.pointerType,s=o==ct,n=g(e,t.pointerId,"pointerId");a&ut&&(0===t.button||s)?n<0&&(e.push(t),n=e.length-1):a&(ht|mt)&&(i=!0),n<0||(e[n]=t,this.callback(this.manager,a,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),i&&e.splice(n,1))}});var Dt={touchstart:ut,touchmove:2,touchend:ht,touchcancel:mt};e(F,x,{handler:function(t){var e,i=Dt[t.type];i===ut&&(this.started=!0),this.started&&(e=function(t,e){var i=v(t.touches),t=v(t.changedTouches);return e&(ht|mt)&&(i=b(i.concat(t),"identifier",!0)),[i,t]}.call(this,t,i),i&(ht|mt)&&e[0].length-e[1].length==0&&(this.started=!1),this.callback(this.manager,i,{pointers:e[0],changedPointers:e[1],pointerType:ct,srcEvent:t}))}});var Bt={touchstart:ut,touchmove:2,touchend:ht,touchcancel:mt},St="touchstart touchmove touchend touchcancel";e(D,x,{handler:function(t){var e=Bt[t.type],i=function(t,e){var i=v(t.touches),n=this.targetIds;if(e&(2|ut)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var a,o=v(t.changedTouches),s=[],r=this.target,f=i.filter(function(t){return h(t.target,r)});if(e===ut)for(a=0;a<f.length;)n[f[a].identifier]=!0,a++;for(a=0;a<o.length;)n[o[a].identifier]&&s.push(o[a]),e&(ht|mt)&&delete n[o[a].identifier],a++;return s.length?[b(f.concat(s),"identifier",!0),s]:void 0}.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:ct,srcEvent:t})}});var Lt=2500;e(B,x,{handler:function(t,e,i){var n=i.pointerType==ct,a=i.pointerType==lt;if(!(a&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(n)(function(t,e){t&ut?(this.primaryTouch=e.changedPointers[0].identifier,S.call(this,e)):t&(ht|mt)&&S.call(this,e)}).call(this,e,i);else if(a&&function(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var a=this.lastTouches[n],o=Math.abs(e-a.x),a=Math.abs(i-a.y);if(o<=25&&a<=25)return!0}return!1}.call(this,i))return;this.callback(t,e,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Qt=y(J.style,"touchAction"),Ot=Qt!==c,Rt="compute",Mt="manipulation",qt="none",Pt="pan-x",Nt="pan-y",Wt=function(){if(!Ot)return!1;var e={},i=a.CSS&&a.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){e[t]=!i||a.CSS.supports("touch-action",t)}),e}();L.prototype={set:function(t){t==Rt&&(t=this.compute()),Ot&&this.manager.element.style&&Wt[t]&&(this.manager.element.style[Qt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return s(this.manager.recognizers,function(t){f(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(t){if(m(t,qt))return qt;var e=m(t,Pt),i=m(t,Nt);return e&&i?qt:e||i?e?Pt:Nt:m(t,Mt)?Mt:"auto"}(e.join(" "))},preventDefaults:function(t){var e=t.srcEvent,i=t.offsetDirection;if(!this.manager.session.prevented){var n=this.actions,a=m(n,qt)&&!Wt[qt],o=m(n,Nt)&&!Wt[Nt],s=m(n,Pt)&&!Wt[Pt];if(a){var r=1===t.pointers.length,n=t.distance<2,t=t.deltaTime<250;if(r&&n&&t)return}return(!s||!o)&&(a||o&&i&wt||s&&i&xt)?this.preventSrc(e):void 0}e.preventDefault()},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var $t=1;Q.prototype={defaults:{},set:function(t){return it(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(i(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=M(t,this)).id]||(e[t.id]=t).recognizeWith(this),this},dropRecognizeWith:function(t){return i(t,"dropRecognizeWith",this)||(t=M(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(i(t,"requireFailure",this))return this;var e=this.requireFail;return-1===g(e,t=M(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(i(t,"dropRequireFailure",this))return this;t=M(t,this);t=g(this.requireFail,t);return-1<t&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return 0<this.requireFail.length},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(e){function t(t){i.manager.emit(t,e)}var i=this,n=this.state;n<8&&t(i.options.event+O(n)),t(i.options.event),e.additionalEvent&&t(e.additionalEvent),8<=n&&t(i.options.event+O(n))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=32)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|$t)))return!1;t++}return!0},recognize:function(t){t=it({},t);return f(this.options.enable,[this,t])?(56&this.state&&(this.state=$t),this.state=this.process(t),void(30&this.state&&this.tryEmit(t))):(this.reset(),void(this.state=32))},process:function(t){},getTouchAction:function(){},reset:function(){}},e(q,Q,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=6&e,t=this.attrTest(t);return n&&(i&mt||!t)?16|e:n||t?i&ht?8|e:2&e?4|e:2:32}}),e(P,q,{defaults:{event:"pan",threshold:10,pointers:1,direction:Ct},getTouchAction:function(){var t=this.options.direction,e=[];return t&wt&&e.push(Nt),t&xt&&e.push(Pt),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,a=t.direction,o=t.deltaX,s=t.deltaY;return a&e.direction||(n=e.direction&wt?(a=0===o?pt:o<0?gt:vt,i=o!=this.pX,Math.abs(t.deltaX)):(a=0===s?pt:s<0?bt:yt,i=s!=this.pY,Math.abs(t.deltaY))),t.direction=a,i&&n>e.threshold&&a&e.direction},attrTest:function(t){return q.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=R(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),e(N,q,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){var e;1!==t.scale&&(e=t.scale<1?"in":"out",t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),e(W,Q,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,a=t.deltaTime>e.time;if(this._input=t,!n||!i||t.eventType&(ht|mt)&&!a)this.reset();else if(t.eventType&ut)this.reset(),this._timer=o(function(){this.state=8,this.tryEmit()},e.time,this);else if(t.eventType&ht)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&t.eventType&ht?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=et(),this.manager.emit(this.options.event,this._input)))}}),e($,q,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),e(G,q,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:wt|xt,pointers:1},getTouchAction:function(){return P.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(wt|xt)?e=t.overallVelocity:i&wt?e=t.overallVelocityX:i&xt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&tt(e)>this.options.velocity&&t.eventType&ht},emit:function(t){var e=R(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),e(H,Q,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Mt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,a=t.deltaTime<e.time;if(this.reset(),t.eventType&ut&&0===this.count)return this.failTimeout();if(n&&a&&i){if(t.eventType!=ht)return this.failTimeout();a=!this.pTime||t.timeStamp-this.pTime<e.interval,i=!this.pCenter||z(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,i&&a?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=o(function(){this.state=8,this.tryEmit()},e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=o(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),U.VERSION="2.0.8",U.defaults={domEvents:!1,touchAction:Rt,enable:!0,inputTarget:null,inputClass:null,preset:[[$,{enable:!1}],[N,{enable:!1},["rotate"]],[G,{direction:wt}],[P,{direction:wt},["swipe"]],[H],[H,{event:"doubletap",taps:2},["tap"]],[W]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Y.prototype={set:function(t){return it(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var i,n=this.recognizers,a=e.curRecognizer;(!a||a&&8&a.state)&&(a=e.curRecognizer=null);for(var o=0;o<n.length;)i=n[o],2===e.stopped||a&&i!=a&&!i.canRecognizeWith(a)?i.reset():i.recognize(t),!a&&14&i.state&&(a=e.curRecognizer=i),o++}},get:function(t){if(t instanceof Q)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(i(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),(t.manager=this).touchAction.update(),t},remove:function(t){return i(t,"remove",this)||!(t=this.get(t))||-1!==(t=g(e=this.recognizers,t))&&(e.splice(t,1),this.touchAction.update()),this;var e},on:function(t,e){if(t!==c&&e!==c){var i=this.handlers;return s(p(t),function(t){i[t]=i[t]||[],i[t].push(e)}),this}},off:function(t,e){if(t!==c){var i=this.handlers;return s(p(t),function(t){e?i[t]&&i[t].splice(g(i[t],e),1):delete i[t]}),this}},emit:function(t,e){var i,n,a;this.options.domEvents&&(i=t,n=e,(a=r.createEvent("Event")).initEvent(i,!0,!0),(a.gesture=n).target.dispatchEvent(a));var o=this.handlers[t]&&this.handlers[t].slice();if(o&&o.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var s=0;s<o.length;)o[s](e),s++}},destroy:function(){this.element&&V(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},it(U,{INPUT_START:ut,INPUT_MOVE:2,INPUT_END:ht,INPUT_CANCEL:mt,STATE_POSSIBLE:$t,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:pt,DIRECTION_LEFT:gt,DIRECTION_RIGHT:vt,DIRECTION_UP:bt,DIRECTION_DOWN:yt,DIRECTION_HORIZONTAL:wt,DIRECTION_VERTICAL:xt,DIRECTION_ALL:Ct,Manager:Y,Input:x,TouchAction:L,TouchInput:D,MouseInput:j,PointerEventInput:T,TouchMouseInput:B,SingleTouchInput:F,Recognizer:Q,AttrRecognizer:q,Tap:H,Pan:P,Swipe:G,Pinch:N,Rotate:$,Press:W,on:d,off:u,each:s,merge:at,extend:nt,assign:it,inherit:e,bindFn:n,prefixed:y}),(void 0!==a?a:"undefined"!=typeof self?self:{}).Hammer=U,"function"==typeof define&&define.amd?define(function(){return U}):"undefined"!=typeof module&&module.exports?module.exports=U:a.Hammer=U}(window,document),function(t){"function"==typeof define&&define.amd?define(["jquery","hammerjs"],t):"object"==typeof exports?t(require("jquery"),require("hammerjs")):t(jQuery,Hammer)}(function(n,a){var i;n.fn.hammer=function(i){return this.each(function(){var t,e;e=i,(t=n(t=this)).data("hammer")||t.data("hammer",new a(t[0],e))})},a.Manager.prototype.emit=(i=a.Manager.prototype.emit,function(t,e){i.call(this,t,e),n(this.element).trigger({type:t,gesture:e})})})):(Hammer={Manager:{prototype:{}}},function(t){"function"==typeof define&&define.amd?define(["jquery","hammerjs"],t):"object"==typeof exports?t(require("jquery"),require("hammerjs")):t(jQuery,Hammer)}(function(i,t){var n;i.fn.hammer=function(t){return this.each(function(){})},t.Manager.prototype.emit=(n=t.Manager.prototype.emit,function(t,e){n.call(this,t,e),i(this.element).trigger({type:t,gesture:e})})})),function(t){function e(){}function i(r){if(r){var f="undefined"==typeof console?e:function(t){console.error(t)};return r.bridget=function(t,e){var o,s,i;(i=e).prototype.option||(i.prototype.option=function(t){r.isPlainObject(t)&&(this.options=r.extend(!0,this.options,t))}),o=t,s=e,r.fn[o]=function(e){if("string"!=typeof e)return this.each(function(){var t=r.data(this,o);t?(t.option(e),t._init()):(t=new s(this,e),r.data(this,o,t))});for(var t=c.call(arguments,1),i=0,n=this.length;i<n;i++){var a=this[i],a=r.data(a,o);if(a)if(r.isFunction(a[e])&&"_"!==e.charAt(0)){a=a[e].apply(a,t);if(void 0!==a)return a}else f("no such method '"+e+"' for "+o+" instance");else f("cannot call methods on "+o+" prior to initialization; attempted to call '"+e+"'")}return this}},r.bridget}}var c=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],i):i("object"==typeof exports?require("jquery"):t.jQuery)}(window),function(i){function n(t){var e=i.event;return e.target=e.target||e.srcElement||t,e}var t=document.documentElement,e=function(){};t.addEventListener?e=function(t,e,i){t.addEventListener(e,i,!1)}:t.attachEvent&&(e=function(e,t,i){e[t+i]=i.handleEvent?function(){var t=n(e);i.handleEvent.call(i,t)}:function(){var t=n(e);i.call(e,t)},e.attachEvent("on"+t,e[t+i])});var a=function(){};t.removeEventListener?a=function(t,e,i){t.removeEventListener(e,i,!1)}:t.detachEvent&&(a=function(e,i,n){e.detachEvent("on"+i,e[i+n]);try{delete e[i+n]}catch(t){e[i+n]=void 0}}),a={bind:e,unbind:a},"function"==typeof define&&define.amd?define("eventie/eventie",a):"object"==typeof exports?module.exports=a:i.eventie=a}(window),function(){function t(){}function o(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function e(t){return function(){return this[t].apply(this,arguments)}}var i=t.prototype,n=this,a=n.EventEmitter;i.getListeners=function(t){var e,i,n=this._getEvents();if(t instanceof RegExp)for(i in e={},n)n.hasOwnProperty(i)&&t.test(i)&&(e[i]=n[i]);else e=n[t]||(n[t]=[]);return e},i.flattenListeners=function(t){for(var e=[],i=0;i<t.length;i+=1)e.push(t[i].listener);return e},i.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&((e={})[t]=i),e||i},i.addListener=function(t,e){var i,n=this.getListenersAsObject(t),a="object"==typeof e;for(i in n)n.hasOwnProperty(i)&&-1===o(n[i],e)&&n[i].push(a?e:{listener:e,once:!1});return this},i.on=e("addListener"),i.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},i.once=e("addOnceListener"),i.defineEvent=function(t){return this.getListeners(t),this},i.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},i.removeListener=function(t,e){var i,n,a=this.getListenersAsObject(t);for(n in a)a.hasOwnProperty(n)&&(i=o(a[n],e),-1!==i&&a[n].splice(i,1));return this},i.off=e("removeListener"),i.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},i.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},i.manipulateListeners=function(t,e,i){var n,a,o=t?this.removeListener:this.addListener,s=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(n=i.length;n--;)o.call(this,e,i[n]);else for(n in e)e.hasOwnProperty(n)&&(a=e[n])&&("function"==typeof a?o:s).call(this,n,a);return this},i.removeEvent=function(t){var e,i=typeof t,n=this._getEvents();if("string"==i)delete n[t];else if(t instanceof RegExp)for(e in n)n.hasOwnProperty(e)&&t.test(e)&&delete n[e];else delete this._events;return this},i.removeAllListeners=e("removeEvent"),i.emitEvent=function(t,e){var i,n,a,o,s=this.getListenersAsObject(t);for(a in s)if(s.hasOwnProperty(a))for(n=s[a].length;n--;)i=s[a][n],!0===i.once&&this.removeListener(t,i.listener),o=i.listener.apply(this,e||[]),o===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},i.trigger=e("emitEvent"),i.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},i.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},i._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},i._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return n.EventEmitter=a,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:n.EventEmitter=t}.call(this),function(t){function e(t){if(t){if("string"==typeof o[t])return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e,i=0,n=a.length;i<n;i++)if(e=a[i]+t,"string"==typeof o[e])return e}}var a="Webkit Moz ms Ms O".split(" "),o=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return e}):"object"==typeof exports?module.exports=e:t.getStyleProperty=e}(window),function(C){function k(t){var e=parseFloat(t);return-1===t.indexOf("%")&&!isNaN(e)&&e}function t(v){var b,y,w,x=!1;return function(t){if(x||(x=!0,p=C.getComputedStyle,g=p?function(t){return p(t,null)}:function(t){return t.currentStyle},b=function(t){t=g(t);return t||_("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),t},(y=v("boxSizing"))&&((m=document.createElement("div")).style.width="200px",m.style.padding="1px 2px 3px 4px",m.style.borderStyle="solid",m.style.borderWidth="1px 2px 3px 4px",m.style[y]="border-box",(h=document.body||document.documentElement).appendChild(m),u=b(m),w=200===k(u.width),h.removeChild(m))),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var e=b(t);if("none"===e.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0,i=I.length;e<i;e++)t[I[e]]=0;return t}();var i={};i.width=t.offsetWidth,i.height=t.offsetHeight;for(var n=i.isBorderBox=!(!y||!e[y]||"border-box"!==e[y]),a=0,o=I.length;a<o;a++){var s=I[a],r=function(t,e){if(C.getComputedStyle||-1===e.indexOf("%"))return e;var i=t.style,n=i.left,a=t.runtimeStyle,o=a&&a.left;return o&&(a.left=t.currentStyle.left),i.left=e,e=i.pixelLeft,i.left=n,o&&(a.left=o),e}(t,r=e[s]),r=parseFloat(r);i[s]=isNaN(r)?0:r}var f=i.paddingLeft+i.paddingRight,c=i.paddingTop+i.paddingBottom,l=i.marginLeft+i.marginRight,d=i.marginTop+i.marginBottom,u=i.borderLeftWidth+i.borderRightWidth,h=i.borderTopWidth+i.borderBottomWidth,m=n&&w,n=k(e.width);!1!==n&&(i.width=n+(m?0:f+u));n=k(e.height);return!1!==n&&(i.height=n+(m?0:c+h)),i.innerWidth=i.width-(f+u),i.innerHeight=i.height-(c+h),i.outerWidth=i.width+l,i.outerHeight=i.height+d,i}var p,m,h,u,g}}var _="undefined"==typeof console?function(){}:function(t){console.error(t)},I=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],t):"object"==typeof exports?module.exports=t(require("desandro-get-style-property")):C.getSize=t(C.getStyleProperty)}(window),function(e){function i(t){"function"==typeof t&&(i.isReady?t():s.push(t))}function n(t){t="readystatechange"===t.type&&"complete"!==o.readyState;i.isReady||t||a()}function a(){i.isReady=!0;for(var t=0,e=s.length;t<e;t++)(0,s[t])()}function t(t){return"complete"===o.readyState?a():(t.bind(o,"DOMContentLoaded",n),t.bind(o,"readystatechange",n),t.bind(e,"load",n)),i}var o=e.document,s=[];i.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],t):"object"==typeof exports?module.exports=t(require("eventie")):e.docReady=t(e.eventie)}(window),function(a){function i(t,e){return t[n](e)}function o(t){t.parentNode||document.createDocumentFragment().appendChild(t)}var t,n=function(){if(a.matches)return"matches";if(a.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],e=0,i=t.length;e<i;e++){var n=t[e]+"MatchesSelector";if(a[n])return n}}();t=n?i(document.createElement("div"),"div")?i:function(t,e){return o(t),i(t,e)}:function(t,e){o(t);for(var i=t.parentNode.querySelectorAll(e),n=0,a=i.length;n<a;n++)if(i[n]===t)return!0;return!1},"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return t}):"object"==typeof exports?module.exports=t:window.matchesSelector=t}(Element.prototype),function(i,n){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(t,e){return n(i,t,e)}):"object"==typeof exports?module.exports=n(i,require("doc-ready"),require("desandro-matches-selector")):i.fizzyUIUtils=n(i,i.docReady,i.matchesSelector)}(window,function(u,t,c){var i,h={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Object.prototype.toString;h.isArray=function(t){return"[object Array]"==e.call(t)},h.makeArray=function(t){var e=[];if(h.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0,n=t.length;i<n;i++)e.push(t[i]);else e.push(t);return e},h.indexOf=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},h.removeFrom=function(t,e){e=h.indexOf(t,e);-1!=e&&t.splice(e,1)},h.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(t){return t instanceof HTMLElement}:function(t){return t&&"object"==typeof t&&1==t.nodeType&&"string"==typeof t.nodeName},h.setText=function(t,e){t[i=i||(void 0!==document.documentElement.textContent?"textContent":"innerText")]=e},h.getParent=function(t,e){for(;t!=document.body;)if(t=t.parentNode,c(t,e))return t},h.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},h.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},h.filterFindElements=function(t,e){for(var i=[],n=0,a=(t=h.makeArray(t)).length;n<a;n++){var o=t[n];if(h.isElement(o))if(e){c(o,e)&&i.push(o);for(var s=o.querySelectorAll(e),r=0,f=s.length;r<f;r++)i.push(s[r])}else i.push(o)}return i},h.debounceMethod=function(t,e,n){var a=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];t&&clearTimeout(t);var e=arguments,i=this;this[o]=setTimeout(function(){a.apply(i,e),delete i[o]},n||100)}},h.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var m=u.console;return h.htmlInit=function(l,d){t(function(){for(var t=h.toDashed(d),e=document.querySelectorAll(".js-"+t),i="data-"+t+"-options",n=0,a=e.length;n<a;n++){var o,s=e[n],r=s.getAttribute(i);try{o=r&&JSON.parse(r)}catch(t){m&&m.error("Error parsing "+i+" on "+s.nodeName.toLowerCase()+(s.id?"#"+s.id:"")+": "+t);continue}var f=new l(s,o),c=u.jQuery;c&&c.data(s,d,f)}})},h}),function(a,o){"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(t,e,i,n){return o(a,t,e,i,n)}):"object"==typeof exports?module.exports=o(a,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(a.Outlayer={},a.Outlayer.Item=o(a,a.EventEmitter,a.getSize,a.getStyleProperty,a.fizzyUIUtils))}(window,function(t,e,i,o,n){function a(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var s=t.getComputedStyle,r=s?function(t){return s(t,null)}:function(t){return t.currentStyle},f=o("transition"),c=o("transform"),l=f&&c,t=!!o("perspective"),d={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[f],u=["transform","transition","transitionDuration","transitionProperty"],h=function(){for(var t={},e=0,i=u.length;e<i;e++){var n=u[e],a=o(n);a&&a!==n&&(t[n]=a)}return t}();n.extend(a.prototype,e.prototype),a.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},a.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},a.prototype.getSize=function(){this.size=i(this.element)},a.prototype.css=function(t){var e,i=this.element.style;for(e in t)i[h[e]||e]=t[e]},a.prototype.getPosition=function(){var t=r(this.element),e=this.layout.options,i=e.isOriginLeft,n=e.isOriginTop,a=parseInt(t[i?"left":"right"],10),e=parseInt(t[n?"top":"bottom"],10),a=isNaN(a)?0:a,e=isNaN(e)?0:e,t=this.layout.size;a-=i?t.paddingLeft:t.paddingRight,e-=n?t.paddingTop:t.paddingBottom,this.position.x=a,this.position.y=e},a.prototype.layoutPosition=function(){var t=this.layout.size,e=this.layout.options,i={},n=e.isOriginLeft?"paddingLeft":"paddingRight",a=e.isOriginLeft?"left":"right",o=e.isOriginLeft?"right":"left",n=this.position.x+t[n],n=e.percentPosition&&!e.isHorizontal?n/t.width*100+"%":n+"px";i[a]=n,i[o]="";a=e.isOriginTop?"paddingTop":"paddingBottom",n=e.isOriginTop?"top":"bottom",o=e.isOriginTop?"bottom":"top",a=this.position.y+t[a],a=e.percentPosition&&e.isHorizontal?a/t.height*100+"%":a+"px";i[n]=a,i[o]="",this.css(i),this.emitEvent("layout",[this])};var m=t?function(t,e){return"translate3d("+t+"px, "+e+"px, 0)"}:function(t,e){return"translate("+t+"px, "+e+"px)"};a.prototype._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,a=parseInt(t,10),o=parseInt(e,10),o=a===this.position.x&&o===this.position.y;this.setPosition(t,e),!o||this.isTransitioning?(t-=i,i=e-n,e={},t=(n=this.layout.options).isOriginLeft?t:-t,i=n.isOriginTop?i:-i,e.transform=m(t,i),this.transition({to:e,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})):this.layoutPosition()},a.prototype.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},a.prototype.moveTo=l?a.prototype._transitionTo:a.prototype.goTo,a.prototype.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},a.prototype._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},a.prototype._transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e,i=this._transn;for(e in t.onTransitionEnd)i.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)i.ingProperties[e]=!0,t.isCleaning&&(i.clean[e]=!0);t.from&&(this.css(t.from),this.element.offsetHeight,0),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var p=c&&n.toDashed(c)+",opacity";a.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:p,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(d,this,!1))},a.prototype.transition=a.prototype[f?"_transition":"_nonTransition"],a.prototype.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},a.prototype.onotransitionend=function(t){this.ontransitionend(t)};var g={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};a.prototype.ontransitionend=function(t){var e,i;t.target===this.element&&(e=this._transn,i=g[t.propertyName]||t.propertyName,delete e.ingProperties[i],function(t){for(var e in t)return;return 1}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd&&(e.onEnd[i].call(this),delete e.onEnd[i]),this.emitEvent("transitionEnd",[this]))},a.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(d,this,!1),this.isTransitioning=!1},a.prototype._removeStyles=function(t){var e,i={};for(e in t)i[e]="";this.css(i)};var v={transitionProperty:"",transitionDuration:""};return a.prototype.removeTransitionStyles=function(){this.css(v)},a.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},a.prototype.remove=function(){var t;f&&parseFloat(this.layout.options.transitionDuration)?((t=this).once("transitionEnd",function(){t.removeElem()}),this.hide()):this.removeElem()},a.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},a.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},a.prototype.getHideRevealTransitionEndProperty=function(t){var e,t=this.layout.options[t];if(t.opacity)return"opacity";for(e in t)return e},a.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},a.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},a.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},a}),function(o,s){"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,i,n,a){return s(o,t,e,i,n,a)}):"object"==typeof exports?module.exports=s(o,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):o.Outlayer=s(o,o.eventie,o.EventEmitter,o.getSize,o.fizzyUIUtils,o.Outlayer.Item)}(window,function(t,e,i,a,o,n){function s(t,e){var i=o.getQueryElement(t);i?(this.element=i,c&&(this.$element=c(this.element)),this.options=o.extend({},this.constructor.defaults),this.option(e),e=++l,this.element.outlayerGUID=e,(d[e]=this)._create(),this.options.isInitLayout&&this.layout()):f&&f.error("Bad element for "+this.constructor.namespace+": "+(i||t))}function r(){}var f=t.console,c=t.jQuery,l=0,d={};return s.namespace="outlayer",s.Item=n,s.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},o.extend(s.prototype,i.prototype),s.prototype.option=function(t){o.extend(this.options,t)},s.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),o.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},s.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},s.prototype._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],a=0,o=e.length;a<o;a++){var s=new i(e[a],this);n.push(s)}return n},s.prototype._filterFindItemElements=function(t){return o.filterFindElements(t,this.options.itemSelector)},s.prototype.getItemElements=function(){for(var t=[],e=0,i=this.items.length;e<i;e++)t.push(this.items[e].element);return t},s.prototype._init=s.prototype.layout=function(){this._resetLayout(),this._manageStamps();var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},s.prototype._resetLayout=function(){this.getSize()},s.prototype.getSize=function(){this.size=a(this.element)},s.prototype._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):o.isElement(n)&&(i=n),this[t]=i?a(i)[e]:n):this[t]=0},s.prototype.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},s.prototype._getItemsForLayout=function(t){for(var e=[],i=0,n=t.length;i<n;i++){var a=t[i];a.isIgnored||e.push(a)}return e},s.prototype._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){for(var i=[],n=0,a=t.length;n<a;n++){var o=t[n],s=this._getItemLayoutPosition(o);s.item=o,s.isInstant=e||o.isLayoutInstant,i.push(s)}this._processLayoutQueue(i)}},s.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},s.prototype._processLayoutQueue=function(t){for(var e=0,i=t.length;e<i;e++){var n=t[e];this._positionItem(n.item,n.x,n.y,n.isInstant)}},s.prototype._positionItem=function(t,e,i,n){n?t.goTo(e,i):t.moveTo(e,i)},s.prototype._postLayout=function(){this.resizeContainer()},s.prototype.resizeContainer=function(){var t;!this.options.isResizingContainer||(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},s.prototype._getContainerSize=r,s.prototype._setContainerMeasure=function(t,e){var i;void 0!==t&&((i=this.size).isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},s.prototype._emitCompleteOnItems=function(t,e){function i(){a.emitEvent(t+"Complete",[e])}function n(){++s===o&&i()}var a=this,o=e.length;if(e&&o)for(var s=0,r=0,f=e.length;r<f;r++)e[r].once(t,n);else i()},s.prototype.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},s.prototype.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},s.prototype.stamp=function(t){if(t=this._find(t)){this.stamps=this.stamps.concat(t);for(var e=0,i=t.length;e<i;e++){var n=t[e];this.ignore(n)}}},s.prototype.unstamp=function(t){if(t=this._find(t))for(var e=0,i=t.length;e<i;e++){var n=t[e];o.removeFrom(this.stamps,n),this.unignore(n)}},s.prototype._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=o.makeArray(t)):void 0},s.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var t=0,e=this.stamps.length;t<e;t++){var i=this.stamps[t];this._manageStamp(i)}}},s.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},s.prototype._manageStamp=r,s.prototype._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,t=a(t);return{left:e.left-i.left-t.marginLeft,top:e.top-i.top-t.marginTop,right:i.right-e.right-t.marginRight,bottom:i.bottom-e.bottom-t.marginBottom}},s.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},s.prototype.bindResize=function(){this.isResizeBound||(e.bind(t,"resize",this),this.isResizeBound=!0)},s.prototype.unbindResize=function(){this.isResizeBound&&e.unbind(t,"resize",this),this.isResizeBound=!1},s.prototype.onresize=function(){this.resizeTimeout&&clearTimeout(this.resizeTimeout);var t=this;this.resizeTimeout=setTimeout(function(){t.resize(),delete t.resizeTimeout},100)},s.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},s.prototype.needsResizeLayout=function(){var t=a(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},s.prototype.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},s.prototype.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},s.prototype.prepended=function(t){var e=this._itemize(t);e.length&&(t=this.items.slice(0),this.items=e.concat(t),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(t))},s.prototype.reveal=function(t){this._emitCompleteOnItems("reveal",t);for(var e=t&&t.length,i=0;e&&i<e;i++)t[i].reveal()},s.prototype.hide=function(t){this._emitCompleteOnItems("hide",t);for(var e=t&&t.length,i=0;e&&i<e;i++)t[i].hide()},s.prototype.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},s.prototype.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},s.prototype.getItem=function(t){for(var e=0,i=this.items.length;e<i;e++){var n=this.items[e];if(n.element===t)return n}},s.prototype.getItems=function(t){for(var e=[],i=0,n=(t=o.makeArray(t)).length;i<n;i++){var a=t[i],a=this.getItem(a);a&&e.push(a)}return e},s.prototype.remove=function(t){var e=this.getItems(t);if(this._emitCompleteOnItems("remove",e),e&&e.length)for(var i=0,n=e.length;i<n;i++){var a=e[i];a.remove(),o.removeFrom(this.items,a)}},s.prototype.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="";for(var e=0,i=this.items.length;e<i;e++)this.items[e].destroy();this.unbindResize();t=this.element.outlayerGUID;delete d[t],delete this.element.outlayerGUID,c&&c.removeData(this.element,this.constructor.namespace)},s.data=function(t){t=(t=o.getQueryElement(t))&&t.outlayerGUID;return t&&d[t]},s.create=function(t,e){function i(){s.apply(this,arguments)}return Object.create?i.prototype=Object.create(s.prototype):o.extend(i.prototype,s.prototype),(i.prototype.constructor=i).defaults=o.extend({},s.defaults),o.extend(i.defaults,e),i.prototype.settings={},i.namespace=t,i.data=s.data,(i.Item=function(){n.apply(this,arguments)}).prototype=new n,o.htmlInit(i,t),c&&c.bridget&&c.bridget(t,i),i},s.Item=n,s}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],e):"object"==typeof exports?module.exports=e(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):t.Masonry=e(t.Outlayer,t.getSize,t.fizzyUIUtils)}(window,function(t,r,f){t=t.create("masonry");return t.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0);this.maxY=0},t.prototype.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(i=(e=this.items[0])&&e.element,this.columnWidth=i&&r(i).outerWidth||this.containerWidth);var t=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,i=e/t,t=t-e%t,i=Math[t&&t<1?"round":"floor"](i);this.cols=Math.max(i,1)},t.prototype.getContainerWidth=function(){var t=this.options.isFitWidth?this.element.parentNode:this.element,t=r(t);this.containerWidth=t&&t.innerWidth},t.prototype._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),i=Math.min(i,this.cols),n=this._getColGroup(i),e=Math.min.apply(Math,n),a=f.indexOf(n,e),i={x:this.columnWidth*a,y:e},o=e+t.size.outerHeight,s=this.cols+1-n.length,r=0;r<s;r++)this.colYs[a+r]=o;return i},t.prototype._getColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++){var a=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,a)}return e},t.prototype._manageStamp=function(t){var e=r(t),i=this._getElementOffset(t),n=this.options.isOriginLeft?i.left:i.right,t=n+e.outerWidth,n=Math.floor(n/this.columnWidth),n=Math.max(0,n),a=Math.floor(t/this.columnWidth);a-=t%this.columnWidth?0:1,a=Math.min(this.cols-1,a);for(var o=(this.options.isOriginTop?i.top:i.bottom)+e.outerHeight,s=n;s<=a;s++)this.colYs[s]=Math.max(o,this.colYs[s])},t.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this.options.isFitWidth&&(t.width=this._getContainerFitWidth()),t},t.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},t.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!==this.containerWidth},t}),window.cffMasonrySettings={itemSelector:".cff-album-item"},Cff.prototype={createPage:function(t,e){void 0!==window.cffOptions&&void 0!==window.cffOptions.resized_url||(window.cffOptions={resized_url:location.protocol+"//"+window.location.hostname+"/wp-content/uploads/sb-facebook-feed-images/",placeholder:location.protocol+"//"+window.location.hostname+"/wp-content/plugins/custom-facebook-feed-pro/assets/img/placeholder.png"}),t(e)},createFeeds:function(t){jQuery(".cff").each(function(t){jQuery(this).attr("data-cff-index",t+1);var e=jQuery(this),i=void 0!==e.attr("data-cff-flags")?e.attr("data-cff-flags").split(","):[],e={feedID:e.find(".cff_resized_image_data").attr("data-feedid"),shortCodeAtts:e.attr("data-cff-shortcode"),resizingEnabled:e.find(".cff_resized_image_data").length,page:1,pag_url:"",gdpr:-1<i.indexOf("gdpr"),overrideBlockCDN:-1<i.indexOf("overrideBlockCDN"),consentGiven:!1,locator:-1<i.indexOf("locator"),postID:void 0!==e.attr("data-postid")?e.attr("data-postid"):"unknown"};window.cff.feeds[t]=new CffFeed(this,t,e),void 0!==window.cff.feeds[t].setResizedImages&&window.cff.feeds[t].setResizedImages(),void 0!==window.cff.feeds[t].setResizedImages&&window.cff.feeds[t].init()})}},CffFeed.prototype={init:function(){var t,e=this;e.settings.consentGiven=e.checkConsent(),e.settings.consentGiven||(jQuery(this.el).find(".cff-load-more").is(":visible")&&jQuery(this.el).find(".cff-load-more").hide().addClass("cff-no-consent-hide"),(t=jQuery(this.el).closest(".cff-wrapper")).find(".cff-visual-header").length&&t.find(".cff-header-text").closest(".cff-visual-header").addClass("cff-no-consent"),t.find(".fb-video").addClass("cff-no-consent"),setTimeout(function(){e.settings.consentGiven=e.checkConsent(),e.settings.consentGiven&&e.addFullFeatures()},1e3));var i,n=(i=0,function(t,e){clearTimeout(i),i=setTimeout(t,e)});this.afterInitialImagesLoaded(),jQuery(window).on("resize",function(){n(function(){e.afterResize()},500)}),jQuery(this.el).find(".cff-item").each(function(){e.lazyLoadCheck(jQuery(this))})},addFullFeatures:function(){var n=jQuery;jQuery(this.el);jQuery(".cff-gdpr-notice").remove(),n(window).on("resize scroll load",function(){n('iframe.cff-lazy-load[data-loaded="false"]').each(function(){n(this).isInViewport()&&(n(this).attr("src",n(this).attr("data-src")),n(this).attr("data-loaded","true"))})}),jQuery(this.el).find(".cff-author-img").each(function(){n(this).find("img").attr("src",n(this).attr("data-avatar")),n(this).removeClass("cff-no-consent")}),jQuery(".fb-video.cff-no-consent").removeClass("cff-no-consent"),jQuery(".cff-visual-header").length&&jQuery(".cff-visual-header").each(function(){jQuery(this).removeClass("cff-no-consent"),jQuery(this).find(".cff-header-hero").length&&jQuery(this).find(".cff-header-hero").find("img").attr("src",jQuery(this).find(".cff-header-hero").find("img").attr("data-cover-url")),jQuery(this).find(".cff-header-img").length&&jQuery(this).find(".cff-header-img").find("img").attr("src",jQuery(this).find(".cff-header-img").find("img").attr("data-avatar"))}),jQuery(".cff-comment:visible").each(function(){var t=jQuery(this);void 0!==window.cff&&void 0!==window.cff.feeds&&!window.cff.feeds[0].settings.consentGiven||t.find(".cff-comment-img:not(.cff-comment-reply-img) a, .cff-comment-img:not(.cff-comment-reply-img) span").html('<img src="'+t.attr("data-avatar")+'" class="cff-feed-image" alt="Avatar" onerror="this.style.display=\'none\'" />')}),jQuery(".cff-comment-image-placeholder").each(function(){jQuery(this).replaceWith('<img src="'+jQuery(this).attr("data-src")+'" class="cff-feed-image" alt="Attachement"/>')}),jQuery(".cff-likebox iframe").each(function(){var t=n(this),e=t.attr("data-likebox-width"),i=t.parent().width();""==e&&(e=340),i<e&&(e=i),t.attr("src","https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2F"+t.attr("data-likebox-id")+"%2F&tabs&width="+Math.floor(e)+"&small_header="+t.attr("data-likebox-header")+"&adapt_container_width=true&hide_cover="+t.attr("data-hide-cover")+"&hide_cta="+t.attr("data-hide-cta")+"&show_facepile="+t.attr("data-likebox-faces")+"&locale="+t.attr("data-locale"))}),jQuery(".cff-iframe-placeholder").each(function(){var t=jQuery(this),e=t.attr("data-src");switch(t.attr("data-type")){case"facebook":t.replaceWith('<iframe src="'+e+'" title="Facebook video player" allowfullscreen frameborder="0" webkitallowfullscreen mozallowfullscreen></iframe>');break;case"youtube":t.replaceWith('<iframe class="youtube-player" type="text/html" src="'+e+'" allowfullscreen title="YouTube video"></iframe>');break;case"vimeo":t.replaceWith('<iframe src="'+e+'" webkitAllowFullScreen mozallowfullscreen allowFullScreen title="Vimeo video"></iframe>');break;case"soundcloud":t.replaceWith('<iframe class="cff-soundcloud" width="100%" height="100" scrolling="no" title="Music player" frameborder="no" src="'+e+'"></iframe>');break;case"spotify":t.replaceWith('<iframe class="cff-spotify" src="'+e+'" width="100%" height="80" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>');break;case"video":var i=t.attr("data-poster-src");t.replaceWith('<video src="'+e+'" poster="'+i+'" preload="none"></video>')}}),jQuery("a[data-x-cff-lightbox]").each(function(){jQuery(this).attr("data-cff-lightbox",jQuery(this).attr("data-x-cff-lightbox")),jQuery(this).removeAttr("data-x-cff-lightbox")}),jQuery(this.el).find(".cff-load-more.cff-no-consent-hide").show(),this.afterResize()},setResizedImages:function(){var t,i;!jQuery(this.el).find(".cff_resized_image_data").length||void 0===jQuery(this.el).find(".cff_resized_image_data").attr("data-resized")||0!==jQuery(this.el).find(".cff_resized_image_data").attr("data-resized").indexOf('{"')&&0!==jQuery(this.el).find(".cff_resized_image_data").attr("data-resized").indexOf("[")||(t=JSON.parse(jQuery(this.el).find(".cff_resized_image_data").attr("data-resized")),i={},jQuery.each(t,function(t,e){i[e.facebook_id]={id:e.media_id,sizes:JSON.parse(e.sizes),aspect:e.aspect_ratio}}),this.resizedImages=i),jQuery(this.el).find(".cff_resized_image_data").remove()},sendNeedsResizingToServer:function(){var n=this;let t="";if(void 0!==jQuery(this.el).attr("data-locatornonce")&&(t=jQuery(this.el).attr("data-locatornonce")),0<n.needsResizing.length&&n.settings.resizingEnabled){var e=jQuery(this.el).find(".cff-item").length;n.settings.consentGiven||n.settings.overrideBlockCDN||void 0!==jQuery(this.el).find(".cff-lightbox-link").attr("data-cff-lightbox")&&(jQuery(this.el).find(".cff-lightbox-link").attr("data-x-cff-lightbox",jQuery(this.el).find(".cff-lightbox-link").attr("data-cff-lightbox")),jQuery(this.el).find(".cff-lightbox-link").removeAttr("data-cff-lightbox")),cffAjax({action:"cff_resized_images_submit",needs_resizing:n.needsResizing,offset:e,feed_id:n.settings.feedID,atts:n.settings.shortCodeAtts,pag_url:n.pag_url,location:CFFLocationGuess(),post_id:n.settings.postID,locator_nonce:t},function(t){if(n.needsResizing=[],0===t.trim().indexOf("{")){t=JSON.parse(t);if(n.settings.debugEnabled&&console.log(t),void 0!==t.resizing){var e,i=t.resizing;for(e in i)i.hasOwnProperty(e)&&(n.resizedImages[e]=i[e]);n.maybeRaiseImageResolution(),void 0!==jQuery(n.el).find(".cff-lightbox-link").attr("data-x-cff-lightbox")&&(jQuery(n.el).find(".cff-lightbox-link").attr("data-cff-lightbox",jQuery(n.el).find(".cff-lightbox-link").attr("data-x-cff-lightbox")),jQuery(n.el).find(".cff-lightbox-link").removeAttr("data-x-cff-lightbox")),setTimeout(function(){n.afterResize()},500)}}})}else if(n.settings.locator){let t="";void 0!==jQuery(n.el).attr("data-locatornonce")&&(t=jQuery(n.el).attr("data-locatornonce")),cffAjax({action:"cff_do_locator",feed_id:n.settings.feedID,atts:n.settings.shortCodeAtts,location:CFFLocationGuess(),post_id:n.settings.postID,locator_nonce:t},function(t){})}},hasTargetElement:function(t){var e=t;return t.find(".cff-photo").length?e=t.find(".cff-photo"):t.find(".cff-poster").length?e=t.find(".cff-poster"):t.find(".cff-link-slider-slides").length?e=t.find(".cff-link-slider-slides"):t.find(".cff-img-wrap").length?e=t.find(".cff-img-wrap"):t.find(".cff-album-cover").length?e=t.find(".cff-album-cover"):t.find(".cff-link").length&&(e=t.find(".cff-link")),void 0!==e.attr("data-img-src-set")},getTargetElement:function(t){var e=t.find(".cff-photo");return t.find(".cff-poster").length?e=t.find(".cff-poster"):t.find(".cff-link-slider-slides").length?e=t.find(".cff-link-slider-item"):t.find(".cff-img-wrap").length?e=t.find(".cff-img-wrap"):t.find(".cff-album-cover").length?e=t.find(".cff-album-cover"):t.find(".cff-link").length&&(e=t.find(".cff-link")),e},getTargetElementImage:function(t){return t.find("img").length?t.find("img"):t},getTargetWidth:function(t,e,i){var n=0,n=2<e.find(".cff-multi-image").length&&0<i?e.innerWidth()/3:e.closest(".cff-masonry").length?e.innerWidth():t.closest(".cff-item").find(".cff-link-slider").length?t.closest(".cff-item").find(".cff-link-slider").width():!t.closest(".cff-media-wrap").length||t.closest(".cff-thumb-layout").length||t.closest(".cff-half-layout").length?t.innerWidth():t.closest(".cff-media-wrap").width();return Math.max(50,n)},maybeRaiseSingleImageResolution:function(l,t,e){var d=this,i=d.getTargetElement(l),u=d.getImageUrls(l,i);i.each(function(i){var n,t,a=jQuery(this),o=d.getTargetElementImage(a),s=o.attr("src"),r=void 0===a.attr("data-current")?0:parseInt(a.attr("data-current")),f=d.getTargetWidth(a,l,i),c=!1;r<f&&void 0!==u[i]&&(n=!1,jQuery.each(u[i],function(t,e){!n&&r<t&&f<=(c=t)&&(n=!0)})),d.settings.consentGiven?a.find("a[data-cff-lightbox]").length?a.find("a[data-cff-lightbox]"):a.closest(".cff-item").find("a[data-cff-lightbox]").length?a.closest(".cff-item").find("a[data-cff-lightbox]"):a.closest(".cff-album-item").find("a[data-cff-lightbox]").length&&a.closest(".cff-album-item").find("a[data-cff-lightbox]"):a.find("a[data-cff-lightbox]").length?a.find("a[data-cff-lightbox]"):a.closest(".cff-item").find("a[data-cff-lightbox]").length&&a.closest(".cff-item").find("a[data-cff-lightbox]"),a.find("area[data-cff-lightbox]").length?a.find("area[data-cff-lightbox]"):a.closest(".cff-item").find("area[data-cff-lightbox]").length&&a.closest(".cff-item").find("area[data-cff-lightbox]"),c&&(r=c,d.settings.debugEnabled&&d.placeholderURL,a.attr("data-current",c),(t=u[i][c])!==s&&(o.attr("src",t),o.attr("data-lightbox-source",t),a.hasClass("imgLiquid_ready")&&(a.css("background-image",'url("'+t+'")'),a.imgLiquid({fill:!0})),d.processNewImage(a),r<720&&l.hasClass("cff-album-item")&&!o.hasClass("cff-secondary-check")&&(o.addClass("cff-secondary-check"),o.on("load",function(){var t,e;jQuery(this).hasClass("cff-secondary-checked")||(jQuery(this).addClass("cff-secondary-checked"),t=(e=o.get(0)).naturalHeight,e=e.naturalWidth/e.naturalHeight,o.innerWidth()>t&&(f=d.getTargetWidth(a,l,i)*e,parseInt(r)<f&&(n=!1,jQuery.each(u[i],function(t,e){!n&&r<t&&f<=(c=t)&&(n=!0)}),c&&(a.attr("data-current",c),(e=u[i][c])!==s&&(o.attr("src",e),a.hasClass("imgLiquid_ready")&&(a.css("background-image",'url("'+e+'")'),a.imgLiquid({fill:!0})),d.processNewImage(a))))))})))),o.on("error",function(){var t;jQuery(this).hasClass("cff-img-error")?console.log("unfixed error "+jQuery(this).attr("src")):(jQuery(this).addClass("cff-img-error"),(t=void 0!==jQuery(this).attr("data-orig-source")&&jQuery(this).attr("data-orig-source"))&&t!==s&&(o.attr("src",t),a.hasClass("imgLiquid_ready")&&a.css("background-image",'url("'+t+'")')),setTimeout(function(){d.afterResize()},1500))})})},maybeRaiseImageResolution:function(t){var e=this,t=void 0!==t&&!0===t?".cff-item.cff-new, .cff-album-item.cff-new":".cff-item, .cff-album-item";jQuery(e.el).find(t).each(function(t){!jQuery(this).hasClass("cff-num-diff-hide")&&e.hasTargetElement(jQuery(this))&&e.maybeRaiseSingleImageResolution(jQuery(this),t)})},getImageUrls:function(t,e){var n=this,i={},a=!1,o=t.attr("id").replace("cff_","");void 0!==e.attr("data-img-src-set")?a=e:void 0!==t.find(".cff-photo").attr("data-img-src-set")?a=t.find(".cff-photo"):void 0!==t.find(".cff-link-slider-slides").attr("data-img-src-set")?a=t.find(".cff-link-slider-slides"):void 0!==t.find(".cff-album-cover").attr("data-img-src-set")&&(a=t.find(".cff-album-cover")),a&&(i=JSON.parse(a.attr("data-img-src-set").replace(/\\\//g,"/"))),this.settings.consentGiven||this.settings.overrideBlockCDN||jQuery.each(i,function(t,e){i[t]={}});var s,r=i;return void 0===n.resizedImages[o]&&-1===o.indexOf("_")&&void 0!==t.attr("data-page-id")&&(o=t.attr("data-page-id")+"_"+o),void 0!==n.resizedImages[o]&&"pending"!==n.resizedImages[o].id&&"error"!==n.resizedImages[o].id?jQuery.each(i,function(i,t){var e;n.settings.consentGiven&&(r[i]={},e=JSON.parse(a.attr("data-img-src-set").replace(/\\\//g,"/")),jQuery.each(e[i],function(t,e){(700<t||t<220)&&(r[i][t]=e)})),jQuery.each(n.resizedImages[o].sizes,function(t,e){r[i][e]=window.cffOptions.resized_url+n.resizedImages[o].id+"-"+i+"-"+e+".jpg"})}):(void 0===this.resizedImages[o]||void 0!==this.resizedImages[o].id&&"pending"!==this.resizedImages[o].id&&"error"!==this.resizedImages[o].id)&&(s=!1,jQuery.each(r[0],function(t){150<parseInt(t)&&parseInt(t)<500&&(s=!0)}),n.settings.gdpr&&(s=!1),s||this.addToNeedsResizing(o)),r},addToNeedsResizing:function(t){-1===this.needsResizing.indexOf(t)&&this.needsResizing.push(t)},processNewImage:function(t){var e=this;t.find("img").each(function(){jQuery(this).prop("complete")||(e.imagesWaiting++,jQuery(this).addClass("cff-image-loading").on("load",function(){jQuery(this).removeClass("cff-image-loading"),e.imagesWaiting--,e.imagesWaiting<1&&e.afterResize()}),jQuery(this).on("error",function(){jQuery(this).removeClass("cff-image-loading"),e.imagesWaiting--,e.imagesWaiting<1&&e.afterResize()}))})},getMaxResImage:function(t,e){if(void 0===t[e])return!1;var i=0,n=!1;return jQuery.each(t[e],function(t,e){i<t&&(i=t,n=e.toString())}),n},lazyLoadCheck:function(t){var e=this,i=e.getTargetElement(t),n=e.getImageUrls(t,i);t.closest(".cff").hasClass("cff-no-ll-check")||t.find("img").each(function(t){void 0!==jQuery(this).attr("data-src")&&jQuery(this).attr("data-src",jQuery(this).attr("data-orig-source")),void 0!==jQuery(this).attr("data-orig-src")&&jQuery(this).attr("data-orig-src",jQuery(this).attr("data-orig-source")),e.settings.consentGiven||(jQuery(this).removeAttr("data-orig-source"),maxResImage=e.getMaxResImage(n,t),maxResImage&&-1===maxResImage.indexOf("scontent")&&jQuery(this).attr("data-orig-source",maxResImage)),jQuery(this).on("load",function(){var t;!jQuery(this).hasClass("cff-replaced")&&-1<jQuery(this).attr("src").indexOf("placeholder")&&(jQuery(this).addClass("cff-replaced"),(t=void 0!==jQuery(this).attr("data-orig-source")&&jQuery(this).attr("data-orig-source"))&&(jQuery(this).attr("src",jQuery(this).attr("data-orig-source")),jQuery(this).closest(".imgLiquid_bgSize").length&&jQuery(this).closest(".imgLiquid_bgSize").css("background-image","url("+t+")")))})})},maybeRelayoutMasonry:function(){var i,t=jQuery(this.el);t.hasClass("cff-masonry-js")&&!t.hasClass("cff-masonry-css")&&(i=0,function(t,e){clearTimeout(i),i=setTimeout(t,e)})(function(){cffAddMasonry(t)},500)},afterInitialImagesLoaded:function(){this.maybeRaiseImageResolution(),this.sendNeedsResizingToServer(),this.maybeCleanUpNew(),this.settings.consentGiven?this.addFullFeatures():jQuery(".cff-gdpr-notice").css({display:"inline-block"})},afterResize:function(){this.maybeRaiseImageResolution(),this.maybeRelayoutMasonry()},afterLoadMoreClicked:function(){this.maybeRaiseImageResolution(),this.addFullFeatures()},maybeCleanUpNew:function(){var n=this,t=jQuery(this.el);setTimeout(function(){0<n.index&&t.find(".cff-new").removeClass("cff-new"),t.find("img").each(function(){var t,e,i;n.settings.consentGiven&&!jQuery(this).hasClass("cff-image-loading")&&null!=jQuery(this).attr("src")&&null!=jQuery(this).attr("src")&&-1<jQuery(this).attr("src").indexOf("placeholder.png")&&(console.log("lazy load correction"),e=(t=jQuery(this)).attr("src"),(i=t.attr("data-orig-source"))!=e&&t.attr("src",i),t.hasClass("cff-multi-image")&&t.css("background-image","url("+i+")"))})},1250)},checkConsent:function(){if(this.settings.consentGiven||!this.settings.gdpr)return!0;var t;void 0!==window.WPConsent?this.settings.consentGiven=window.WPConsent.hasConsent("marketing"):void 0!==window.cookieyes?void 0!==window.cookieyes._ckyConsentStore.get&&(this.settings.consentGiven="yes"===window.cookieyes._ckyConsentStore.get("functional")):"undefined"!=typeof CLI_Cookie?null!==CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)&&("null"!==CLI_Cookie.read("cookielawinfo-checkbox-non-necessary")&&(this.settings.consentGiven="yes"===CLI_Cookie.read("cookielawinfo-checkbox-non-necessary")),"null"!==CLI_Cookie.read("cookielawinfo-checkbox-necessary")&&(this.settings.consentGiven="yes"===CLI_Cookie.read("cookielawinfo-checkbox-necessary"))):void 0!==window.cnArgs?2===(t=("; "+document.cookie).split("; cookie_notice_accepted=")).length&&(t=t.pop().split(";").shift(),this.settings.consentGiven="true"===t):void 0!==window.complianz?this.settings.consentGiven="allow"===cffCmplzGetCookie("cmplz_marketing"):void 0!==window.Cookiebot?this.settings.consentGiven=Cookiebot.consented:void 0!==window.BorlabsCookie?this.settings.consentGiven=void 0!==window.BorlabsCookie.Consents?window.BorlabsCookie.Consents.hasConsent("facebook"):window.BorlabsCookie.checkCookieConsent("facebook"):cffCmplzGetCookie("moove_gdpr_popup")&&(e=JSON.parse(decodeURIComponent(cffCmplzGetCookie("moove_gdpr_popup"))),this.settings.consentGiven=void 0!==e.thirdparty&&"1"===e.thirdparty);var e=jQuery.Event("cffcheckconsent");return e.feed=this,jQuery(window).trigger(e),this.settings.consentGiven},afterConsentToggled:function(){var t;this.checkConsent()&&((t=this).maybeRaiseImageResolution(),this.addFullFeatures(),setTimeout(function(){t.afterResize()},500))}},(cff_init=window.cff_init=function(v){jQuery(".cff-nojs").removeClass("cff-nojs");var b=!1;1==("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)==!0&&(b=!0);var P,y=!1;void 0===v&&(v=jQuery(".cff"),y=!0),(P=jQuery)(function(){jQuery(document).off("click","#cff .cff-view-comments").on("click","#cff .cff-view-comments",function(){var t=jQuery(this),e=t.closest(".cff-item").find(".cff-comments-box");t.toggleClass("cff-open"),e.slideToggle(300);var i=t.closest("#cff");P(this).closest(".cff-item");i.hasClass("cff-masonry-js")&&setTimeout(function(){cffAddMasonry(i)},500),e.find(".cff-comment:visible").each(function(){var t=jQuery(this);void 0!==window.cff&&void 0!==window.cff.feeds&&!window.cff.feeds[0].settings.consentGiven||t.find(".cff-comment-img:not(.cff-comment-reply-img) a, .cff-comment-img:not(.cff-comment-reply-img) span").html('<img src="'+t.attr("data-avatar")+'" class="cff-feed-image" alt="Avatar" onerror="this.style.display=\'none\'" />')})});var n,a=!1;v.find(".cff-view-comments").on("mouseenter",function(){var t=P(this),i=50;t.hasClass("cff-open")||t.find(".cff-icon").each(function(){var t,e=jQuery(this);t=e,a=!1,n=setTimeout(function(){a||t.addClass("cff-animate")},i),i+=50})}).on("mouseleave",function(){clearTimeout(n),a=!0,P(this).find(".cff-icon").removeClass("cff-animate")}),"undefined"!=typeof cffsiteurl&&""!=cffsiteurl||(cffsiteurl=window.location.host+"/wp-content/plugins");var d={},u={},h=[],t=0;jQuery("#cff.cff-lb").each(function(){t++,P(this).attr("data-cff-lb",t)});var e,i,o,s,r,f=v.find(".cff-item.cff-new, .cff-album-item.cff-new");function c(a,o,t){var e,i,n,s,r,f,c,l;0!=a.find(".cff-view-comments").length&&((void 0===t||t.length<2)&&(t=""),e="object",i=a.find(".cff-comments .cff-count").text(),c=a.find(".cff-likes .cff-count").text(),l=a.attr("data-page-id"),void 0!==i&&""!=i||(i=0),void 0!==a.attr("data-comments-js")&&(void 0!==i&&""!=i||(i=1)),void 0!==c&&""!=c||(c=0),(void 0===t||t.length<2||a.find(".cff-comments-box").hasClass("cff-shared-story")||a.hasClass("cff-timeline-event"))&&(e="post"),n="",a.hasClass("cff-timeline-event")&&(n="&timeline_event=true"),r=s="",a.closest("#cff").hasClass("cff-group")&&(s="&usegrouptoken=true"),"true"==a.closest("#cff").attr("data-own-token")&&(r="&useowntoken=true"),shortcode_token_param=cffGetShortcodeToken(a.closest("#cff")),f=a.hasClass("cff-video-post")?"&isvideo=true":"",f=cffsiteurl+"/custom-facebook-feed-pro/query.php?o_id="+t+"&post_id="+o+"&use_id="+e+n+s+r+"&comments_num="+i+"&likes_num="+c+"&type=meta"+f+"&pageid="+l+shortcode_token_param,a.hasClass("cff-album")&&(f+="&timelinealbum=true"),void 0===window.cff_block_editor&&(c={action:"cff_query",o_id:t,post_id:o,use_id:e,comments_num:i,likes_num:c,type:"meta",pageid:l},a.hasClass("cff-video-post")&&(c.isvideo=!0),a.hasClass("cff-timeline-event")&&(c.timeline_event=!0),a.closest("#cff").hasClass("cff-group")&&(c.usegrouptoken=!0),"true"==a.closest("#cff").attr("data-own-token")&&(c.useowntoken=!0),""!==shortcode_token_param&&(l=shortcode_token_param.split("="),c.at=l[1]),cffAjax(c,function(t){function e(t){var e=JSON.stringify(t),i=void 0!==v.attr("data-cff-shortcode")&&0===v.attr("data-cff-shortcode").indexOf("{")?JSON.parse(v.attr("data-cff-shortcode")):{},t=void 0!==v.attr("data-page")?parseInt(v.attr("data-page")):1,t={url:cffajaxurl,type:"POST",async:!0,cache:!1,data:{action:"cache_meta",metadata:e,atts:i,page:t},success:function(t){},error:function(t,e,i){}};P.ajax(t)}var i,n;h.push({id_post:o,content:t}),d[o]=t,u[o]=t,g(a,t),p(a,t),i=h,"undefined"==typeof cffdisablecommentcaching&&(m||(n=0,setTimeout(function(){var t=setInterval(function(){e(i),2==++n&&clearInterval(t)},3e3);e(i)},500),m=!0))})))}y&&(f=jQuery("#cff .cff-item.cff-new, #cff .cff-album-item.cff-new")),f.each(function(){var l=jQuery(this);l.find(".cff-viewpost-link, .cff-viewpost-facebook, .cff-viewpost").parent("p").length&&(l.hasClass("event")||l.find(".cff-viewpost-link, .cff-viewpost-facebook, .cff-viewpost").unwrap("p")),l.find(".cff-photo").parent("p").length&&(l.find("p .cff-photo").unwrap("p"),l.find(".cff-album-icon").appendTo(".cff-photo:last")),l.find(".cff-event-thumb").parent("p").length&&l.find(".cff-event-thumb").unwrap("p"),l.find(".cff-vidLink").parent("p").length&&l.find(".cff-vidLink").unwrap("p"),l.find(".cff-link").parent("p").length&&l.find(".cff-link").unwrap("p"),l.find(".cff-viewpost-link").parent("p").length&&l.find(".cff-viewpost-link").unwrap("p"),l.find(".cff-viewpost-facebook").parent("p").length&&l.find(".cff-viewpost-facebook").unwrap("p"),l.find("iframe").parent("p").length&&l.find("iframe").unwrap("p"),l.find(".cff-author").parent("p").length&&(l.find(".cff-author").eq(1).unwrap("p"),l.find(".cff-author").eq(1).remove()),l.find(".cff-view-comments").parent("p").length&&(l.find(".cff-meta-wrap > p").remove(),l.find(".cff-view-comments").eq(1).remove(),p=(m=l.find(".cff-meta")).attr("class"),m.find(".cff-view-comments").unwrap().wrapInner('<ul class="'+p+'">')),l.find(".cff-photo").siblings(".cff-photo").length&&l.find(".cff-photo").slice(0,2).remove(),P(".cff-author-img").parent().is("p")&&P(".cff-author-img").unwrap("p"),l.find("p:empty").not(".cff-comments-box p").remove();var i,a,n=!1;void 0!==(a=l.hasClass("cff-event")?(i=l.find(".cff-desc .cff-desc-text")).parent().attr("data-char"):(i=l.find(".cff-post-text .cff-text"),l.closest("#cff").attr("data-char")))&&""!=a||(a=99999),i.find("a.cff-post-text-link").length&&(i=l.find(".cff-post-text .cff-text a"));var o,s,r,d=i.html(),f=i.html();void 0===d&&(d=""),function(t){let e=jQuery("<div>").html(t);return t=e.text(),jQuery.trim(t).length}(d)>a&&(l.find(".cff-expand").show(),o="",t=new RegExp(/(<[^>]*>)/g),s=f.split(t),r=0,s.every((t,e)=>{var i=/<(\/*)[a-z][\s\S]*>/i.test(t),n=/<\/[a-z][\s\S]*>/i.test(s[e+1]);return i||(r+=t.length,a<r&&(t=t.slice(0,a-(r-t.length)),n&&(t+=s[e+1])),""===t&&0===t.length&&(r+=1)),o+=t,!(a<=r)})),i.html(o);var t=new RegExp(/(<[^>]*>)/g);full_text_arr=d.split(t),l.find(".cff-expand a").off("click").on("click",function(t){t.preventDefault();var e=jQuery(this),t=e.find(".cff-more"),e=e.find(".cff-less");0==n?(i.html(f),n=!0,t.hide(),e.show()):(i.html(o),n=!1,t.show(),e.hide()),g(),i.find("a").attr("target","_blank"),l.closest(".cff").hasClass("cff-masonry-js")&&!l.closest(".cff").hasClass("cff-masonry-css")&&cffAddMasonry(v)}),i.find("a").add(l.find(".cff-post-desc a")).attr({target:"_blank",rel:"nofollow noopener noreferrer"});var u=l.attr("id").substring(4);l.find(".cff-view-comments").attr("id");jQuery(document).off("click","#cff .cff-show-more-comments, .cff-lightbox-sidebar .cff-show-more-comments").on("click","#cff .cff-show-more-comments, .cff-lightbox-sidebar .cff-show-more-comments",function(){var t=jQuery(this),e=parseInt(t.attr("data-cff-comments-total"));t.hasClass("cff-clicked")&&25<e&&t.find("a").attr({href:t.closest(".cff-comments-box").find(".cff-comment-on-facebook a").attr("href"),target:"_blank"}),e<=25&&t.hide(),t.addClass("cff-clicked"),t.parent().find(".cff-comment").show().each(function(){var t=jQuery(this);void 0!==window.cff&&void 0!==window.cff.feeds&&!window.cff.feeds[0].settings.consentGiven||t.find(".cff-comment-img:not(.cff-comment-reply-img) a, .cff-comment-img:not(.cff-comment-reply-img) span").html('<img src="'+t.attr("data-avatar")+'" class="cff-feed-image" alt="Avatar" onerror="this.style.display=\'none\'" />')});var i=t.closest(".cff");i.hasClass("cff-masonry-js")&&!i.hasClass("cff-opaque-comments")&&setTimeout(function(){cffAddMasonry(i)},500)}),(l.hasClass("cff-timeline-event")||l.hasClass("cff-event"))&&P(this).find(".cff-date .cff-start-date k").text()!==P(this).find(".cff-date .cff-end-date k").text()&&P(this).find(".cff-date .cff-end-date k").show();var e,c,h,m=l.find(".cff-photo img, .cff-event-thumb img, .cff-poster, .cff-album-cover img"),p=m.attr("src"),t=m.attr("data-querystring");function g(){var t,e=l.find(".cff-text").html(),i=l.find(".cff-post-desc").html(),n=/(^|\s)#(\w*[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]+\w*)/gi,a=sanitizeColor(l.find(".cff-text").attr("data-color")),o="";function s(t){t=jQuery.trim(t);return/^#[0-9A-F]{6}$/i.test(t)?t:(a&&void 0!==a&&1<a.length&&(o='style="color:#'+a+'"'),' <a href="https://www.facebook.com/hashtag/'+t.substring(1)+'" target="_blank" rel="nofollow noopener" '+o+">"+t+"</a>")}"undefined"==typeof cfflinkhashtags&&(cfflinkhashtags="true"),"true"!=cfflinkhashtags||0<(t=l.find(".cff-text")).length&&(e=e.replace(/<br>/g,"<br> "),t.html(e.replace(n,s))),0<l.find(".cff-post-desc").length&&l.find(".cff-post-desc").html(i.replace(n,s))}void 0===p&&(p=""),(-1<p.indexOf("i0.wp.com")||-1<p.indexOf("i1.wp.com")||-1<p.indexOf("i2.wp.com")||-1<p.indexOf("i3.wp.com")||-1<p.indexOf("i4.wp.com")||-1<p.indexOf("i5.wp.com"))&&(c=m.attr("src").substring(0,m.attr("src").indexOf("?")).replace("http://","https:/").replace(/i0.wp.com|i1.wp.com|i2.wp.com|i3.wp.com|i4.wp.com|i5.wp.com/gi,"")+"?"+t,m.attr("src",c)),g(),l.find(".cff-text a").attr("target","_blank"),setTimeout(function(){l.closest("#cff").hasClass("cff-lb")&&l.find(".cff-photo, .cff-single-photo, .cff-album-cover, .cff-event-thumb, .cff-html5-video, .cff-iframe-wrap").each(function(){var t=P(this),e=u,i="",n="",a="";function o(t){return(l.hasClass("cff-album-item")?String(t):String(t).replace(/&/g,"&amp;")).replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/\n/g,"<br/>")}l.hasClass("cff-albums-only")?(n="albumsonly",i=o(l.find("img").attr("alt")),void 0!==l.closest("#cff").attr("data-group")&&(a='data-cffgroupalbums="true"')):l.hasClass("cff-timeline-event")?(c="",l.find(".cff-author-text .cff-page-name").length&&(c+=l.find(".cff-author-text .cff-page-name").text()+"<br /><br />"),5<d.length&&(c+=d),i=o(c)):l.hasClass("cff-event")?l.find(".cff-details").length&&(l.find(".cff-event-title").length&&(i='<span class="cff-event-title" style="font-weight:bold;">'+o(l.find(".cff-event-title").html()+"</span>")),l.find(".cff-date").length&&(i+='<span class="cff-date">'+o(l.find(".cff-date").html()+"</span>")),l.find(".cff-location").length&&(i+='<span class="cff-location">'+o(l.find(".cff-location").html()+"</span>")),i+='<span class="cff-desc">'+d+"</span>"):i=l.hasClass("cff-album-item")?o(l.find("img").attr("alt")):(""==(s=d).trim()&&(s=l.find(".cff-post-desc").text()),""==s&&l.find(".cff-author .cff-story").length&&(s=l.find(".cff-author .cff-page-name").text()),""==s&&(s="&nbsp;"),o(s)),1<i.length&&(i=i.replace(/"/g,"&quot;"));var s,r,f='<a class="cff-lightbox-link nofancybox" rel="nofollow" ',c=void 0===window.cff||void 0===window.cff.feeds||window.cff.feeds[0].settings.consentGiven;t.hasClass("cff-iframe-wrap")?(r="",t.find("iframe").length&&void 0===(r=t.find("iframe").attr("src"))&&(r=t.find("iframe").attr("data-src")),t.find(".cff-iframe-placeholder").length&&(r=t.find(".cff-iframe-placeholder").attr("data-src")),f+='href="'+cffsiteurl+"/custom-facebook-feed-pro/assets/img/video-lightbox.png?"+e+'" data-iframe="'+r+'" '):t.hasClass("cff-swf")?f+='href="'+cffsiteurl+'/custom-facebook-feed-pro/assets/img/video-lightbox.png" data-iframe="'+t.find("video").attr("src")+'" ':(s=-1===t.find("img").attr("src").indexOf("placeholder")&&void 0!==t.find("img").attr("data-orig-source")?t.find("img").attr("data-orig-source"):t.find("img").attr("src"),void 0===t.attr("data-img-src-set")||void 0!==(r=JSON.parse(t.attr("data-img-src-set").replace(/\\\//g,"/")))[0]&&(s=Object.values(r[0]).slice(-1)),t.find("img").attr("data-cff-no-event-img-large")&&(s=t.find("img").attr("data-cff-no-event-img-large")),t.find("img").attr("data-cff-full-img")&&!v.hasClass("cff-doing-gdpr")&&(s=t.find("img").attr("data-cff-full-img")),c||(s=t.find("img").attr("src")),f+='href="'+s+'" data-iframe="" '),f+='data-cff-lightbox="cff-lightbox-'+l.closest("#cff").attr("data-cff-lb")+'" data-title="'+i+'" data-id="'+e+'" data-thumbs="'+!0+'" '+a+" ",t.hasClass("cff-html5-video")?t.hasClass("cff-swf")?f+='data-url="'+t.find(".cff-html5-play").attr("href")+'" data-video="':(void 0!==(a=t.find("img").attr("data-cff-video"))&&""!==a||void 0===t.attr("data-cff-video-link")&&""===t.attr("data-cff-video-link")||(a="https://www.facebook.com/v2.3/plugins/video.php?href="+t.attr("data-cff-video-link")),"facebook"===t.attr("data-cff-video-player")&&(a="https://www.facebook.com/v2.3/plugins/video.php?href="+t.attr("data-cff-video-link")),f+='data-url="'+t.find(".cff-html5-play").attr("href")+'" data-video="'+a):t.hasClass("cff-video")?f+='data-url="https://facebook.com/'+t.attr("id")+'" data-video="'+t.attr("data-source"):t.hasClass("cff-iframe-wrap")?f+='data-url="https://facebook.com/'+u+'" data-video="':f+='data-url="'+t.attr("href")+'" data-video="',f+='" data-type="'+n+'" data-lb-comments="'+t.closest(".cff-lb").attr("data-lb-comments")+'"><div class="cff-photo-hover"><div class="cff-html5-play"></div><span class="cff-screenreader">View</span></div></a>',t.prepend(f),b||t.on("mouseenter",function(){l.find(".cff-photo-hover").fadeIn(150)}).on("mouseleave",function(){l.find(".cff-photo-hover").stop().fadeOut(500)})})},2e3),l.find(".cff-share-link").off("click").on("click",function(t){t.preventDefault();var e,t=l.find(".cff-share-tooltip");t.is(":visible")?t.hide().find("a").removeClass("cff-show"):(t.show(),e=0,t.find("a").each(function(){var t=jQuery(this);setTimeout(function(){t.addClass("cff-show")},e),e+=20}))}),c=void 0!==v.attr("data-restricted"),!l.hasClass("cff-album-item")||void 0!==(e=l.attr("data-cff-full-size"))&&""!=e&&(c?setTimeout(()=>{l.find(".cff-lightbox-link").attr("href",e),l.find(".cff-lightbox-link").closest(".cff-album-cover").css("background-image","url("+e+")"),l.find("img").attr("src",e)},100):l.find(".cff-lightbox-link").attr("href",e)),(l.find(".cff-html5-video").length||l.hasClass("cff-video"))&&(c=!1,l.find(".cff-html5-video").length&&"true"==(h=l.find(".cff-html5-video")).attr("data-cff-live")&&(c=!0),l.hasClass("cff-video")&&(h=l),c&&P(window).width()<=640||l.closest(".cff").hasClass("cff-private-group")||"standard"!=h.attr("data-cff-video-player")&&l.find(".cff-lightbox-link").attr({"data-iframe":"https://www.facebook.com/v2.3/plugins/video.php?href="+h.attr("data-cff-video-link"),"data-video":""})),setTimeout(function(){l.find(".cff-iframe-wrap .fluid-width-video-wrapper iframe").unwrap().wrap('<div style="float: left; width: 100%;"></div>'),l.find(".cff-iframe-wrap .iframe-embed iframe").unwrap("iframe-embed")},500),l.find(".cff-album-info a").on("click",function(t){t.preventDefault(),l.find(".cff-lightbox-link").trigger("click")})}),jQuery(document).off("click",".cff-comment-replies a").on("click",".cff-comment-replies a",function(){cffLoadCommentReplies(P(this))}),P(".cff-wrapper").each(function(){var t,e,i,v=P(this).find(".cff"),b=v.attr("data-grid-pag"),n=(cffGetShortcodeToken(v),P(this).find(".cff"));if(void 0!==n.attr("data-nummobile")&&(t=void 0!==n.attr("data-pag-num")&&""!==n.attr("data-pag-num")?parseInt(n.attr("data-pag-num")):1,e=void 0!==n.attr("data-nummobile")&&""!==n.attr("data-nummobile")?parseInt(n.attr("data-nummobile")):t,i=n.find(".cff-item").length?".cff-item":".cff-album-item",v.hasClass("cff-carousel")&&(i=".cff_owl-item"),P(window).width()<480?(e<n.find(i).length&&n.find(i).slice(e-n.find(i).length).addClass("cff-num-diff-hide"),v.hasClass("cff-carousel")&&n.find(".cff_owl-page").slice(e-n.find(".cff_owl-page").length).css({display:"none"})):(t<n.find(i).length&&n.find(i).slice(t-n.find(i).length).addClass("cff-num-diff-hide"),v.hasClass("cff-carousel")&&n.find(".cff_owl-page").slice(e-n.find(".cff_owl-page").length).css({display:"inline-block"})),n.removeAttr("data-nummobile")),v.hasClass("cff-masonry-js")&&!v.hasClass("cff-all-reviews")){if(v.find(".cff-album-item").length&&!v.hasClass("cff-masonry"))return void v.removeClass("cff-masonry-js");cffAddMasonry(v),setTimeout(function(){cffAddMasonry(v)},1e3),P(window).on("resize",function(){setTimeout(function(){cffAddMasonry(v)},500)}),v.find(".cff-credit").length&&v.css("padding-bottom",30)}function a(){var t;(t=v.hasClass("cff-album-items-feed")?v:v.find(".cff-item").first()).innerWidth()<400?v.hasClass("cff-disable-narrow")||v.addClass("narrow"):v.removeClass("narrow"),t.innerWidth()<250&&v.addClass("cff-super-narrow")}function o(){v.find(".cff-item").first().innerWidth()<190+P(".cff-post-links").innerWidth()?v.find(".cff-post-links").addClass("cff-left"):v.find(".cff-post-links").removeClass("cff-left")}a(),o();var s,r=(s=0,function(t,e){clearTimeout(s),s=setTimeout(t,e)});function f(o){var t;v.hasClass("cff-masonry")||v.hasClass("cff-disable-liquid")||(t=v.find(".cff-album-item").eq(0).find("a").innerWidth(),v.find(".cff-album-item a").css("height",t),v.find(".cff-photo.cff-crop").css("height",v.find(".cff-photo.cff-crop").width()),v.find(".cff-item.cff-album .cff-photo.cff-multiple, .cff-video-post .cff-html5-video.cff-multiple").each(function(){var t,e,i,n=P(this),a=n.find("img").first().width();a<10&&(a=300),n.hasClass("cff-img-layout-3")&&n.find(".cff-img-attachments .cff-crop").css("height",a/2),n.hasClass("cff-img-layout-4")&&n.find(".cff-img-attachments .cff-crop").css("height",a/3),n.is(".cff-img-layout-3, .cff-img-layout-4")?(t=n.find(".cff-main-image"),e=.6,n.hasClass("cff-img-layout-4")&&(e=.8),i=Math.round(a/t.find("img").attr("data-ratio")),t.css("height",Math.round(Math.max(i*e,n.find(".cff-img-attachments").height())))):n.is(".cff-img-layout-2")&&(n.find(".cff-img-wrap.cff-crop"),n.hasClass("cff-portrait")?n.find(".cff-img-wrap.cff-crop").css("height",.8*n.width()):n.find(".cff-img-wrap.cff-crop").css("height",n.width()/2)),1==o&&(n.is(".cff-img-layout-3")||n.is(".cff-img-layout-4"))&&n.find(".cff-main-image").height()<10&&n.find(".cff-img-layout-3 .cff-main-image img, .cff-img-layout-4 .cff-main-image img").css({display:"block",visibility:"visible"}),a<200?n.addClass("cff-small-layout"):n.removeClass("cff-small-layout")}))}window.addEventListener("resize",function(t){r(function(){a(),o(),f()},500)}),f(!1),setTimeout(function(){f(!1)},50),setTimeout(function(){f(!0)},500),setTimeout(function(){f(!0)},1500);var y,w,x=parseInt(v.attr("data-pag-num")),C=x,c=v.find(".cff-event").length;P(".cff-event:visible").length;v.find(".cff-event").slice(0,x).css("display","inline-block"),P(".cff-load-placeholder").length&&($loadmorePlaceholder=P(".cff-load-placeholder").first().find("a"),P(".cff-load-placeholder").before($loadmorePlaceholder),P(".cff-load-placeholder").remove(),x<c&&$loadmorePlaceholder.on("click",function(){var t=v.find(".cff-event:visible").length,e=(parseInt(v.attr("data-pag-num")),!1);t<c?(v.find(".cff-event").slice(0,x+P(".cff-event:visible").length).css("display","inline-block"),P(".cff-event:visible").length===c&&(e=!0)):e=!0,e&&v.find(".cff-load-more").replaceWith(function(){return P('<p class="cff-no-more-posts">No more posts</p>')}),setTimeout(function(){cffAddMasonry(v)},200),setTimeout(function(){cffAddMasonry(v)},1e3)})),v.hasClass("cff-all-reviews")&&(y=parseInt(v.attr("data-pag-num")),w=y,void 0!==(l=parseInt(v.attr("data-offset")))&&!isNaN(l)||(l=0),v.find(".cff-review").slice(0,y+l).css("display","inline-block"),0<l&&v.find(".cff-review").slice(0,l).remove(),v.hasClass("cff-masonry-js")&&(cffAddMasonry(v),setTimeout(function(){cffAddMasonry(v)},1e3),P(window).on("resize",function(){setTimeout(function(){cffAddMasonry(v)},500)}),v.find(".cff-credit").length&&v.css("padding-bottom",30)));var k=v.find("#cff-load-more"),l=v.find(".cff-load-more").attr("data-cff-no-posts-added");function _(t,e){var i=""==e.attr("data-no-more")?"No more posts":e.attr("data-no-more").replace(/\\'/g,"'");t.find(".cff-no-more-posts").length<1&&e.hide().after('<p class="cff-no-more-posts">'+i+"</p>")}void 0!==l&&0!=l||k.attr("data-cff-no-posts-added","false"),v.find(".cff-item, .cff-album-item").length<1&&k.attr("data-cff-no-posts-added","true"),k.off().on("click",function(){var a,t,e=v.attr("data-cff-shortcode"),i=v.find(".cff-pag-url"),n=i.attr("data-cff-pag-url"),o=i.attr("data-transient-name"),s=i.attr("data-post-id"),r=CFFLocationGuess(v),f=v.find(".cff-upcoming-event").length;if(0<f)return C+=x,v.find(".cff-upcoming-event").slice(0,C).css("display","inline-block").removeClass("cff-num-diff-hide"),f<C&&(v.find("#cff-load-more").hide(),_(v,k)),void(v.hasClass("cff-masonry-js")&&!v.hasClass("cff-masonry-css")&&cffAddMasonry(v));if(v.hasClass("cff-all-reviews")){f=v.find(".cff-review").length;if(0<f)return w+=y,v.find(".cff-review").slice(0,w).css("display","inline-block"),f<w&&(v.find("#cff-load-more").hide(),_(v,k)),void(v.hasClass("cff-masonry-js")&&!v.hasClass("cff-masonry-css")&&cffAddMasonry(v))}k.off().removeAttr("id").addClass("cff-disabled"),i.remove(),".cff-album-item"==(a=v.hasClass("cff-album-items-feed")?".cff-album-item":".cff-item")&&(""!=n&&"{}"!=n||(n=i.attr("data-cff-prev-url")),t=void 0===(p=i.attr("data-cff-prev-url"))?"":JSON.parse(p));var c=void 0===n?"":JSON.parse(n);if(".cff-album-item"==a)for(var l in t)t.hasOwnProperty(l)&&void 0===c[l]&&(c[l]=t[l]);""!=n&&"{}"!=n&&0!=n&&"0"!=n||".cff-item"!=a?(k.addClass("cff-loading").append('<div class="cff-loader"></div>'),k.find(".cff-loader").css("background-color",k.css("color"))):(k.hide(),_(v,k));var d,u,h,m,p=!1;if(v.attr("data-timeline-pag")&&(p=!0),1!=p)for(var l in c)c.hasOwnProperty(l)&&"latest_record_date"!=l&&(u=I("until",d=c[l]),m=v.find(a+".cff-"+l).last(),h=(parseInt(m.attr("data-cff-timestamp"))-1).toString(),void 0!==m.attr("data-cff-backdated")&&(h=(parseInt(m.attr("data-cff-backdated"))-1).toString()),isNaN(parseFloat(h))&&(m=v.find(a).last(),h=(parseInt(m.attr("data-cff-timestamp"))-1).toString(),void 0!==m.attr("data-cff-backdated")&&(h=(parseInt(m.attr("data-cff-backdated"))-1).toString())),m=d,"true"==k.attr("data-cff-no-posts-added")||".cff-album-item"!==a&&-1<(m=-1!==d.indexOf("until=")?d.replace("until="+u,"until="+h):d+"&until="+h).indexOf("&after=")&&(m=m.replace("&after="+I("after",m),"")),".cff-album-item"!==a&&((-1<d.indexOf("/events")&&-1<d.indexOf("&after=")||-1<d.indexOf("/ratings")&&-1<d.indexOf("&after=")&&v.hasClass("cff-all-reviews"))&&(m=m.replace("&after="+I("after",m),"")),-1<m.indexOf("&__paging_token")&&(m=m.replace("&__paging_token="+I("__paging_token",m),"")),c[l]=m));p=void 0!==v.attr("data-page")?v.attr("data-page"):1,p=parseInt(p)+1;v.attr("data-page",p);let g="";void 0!==v.attr("data-locatornonce")&&(g=v.attr("data-locatornonce")),n=JSON.stringify(c),jQuery.ajax({url:cffajaxurl,type:"post",data:{action:"cff_get_new_posts",shortcode_data:e,pag_url:n,feed_id:o,post_id:s,location:r,page:p,locator_nonce:g},success:function(t){v.find(".cff-num-diff-hide").removeClass("cff-num-diff-hide"),-1==t.indexOf("<div class=")&&-1==t.indexOf("<span class=")?k.attr("data-cff-no-posts-added","true"):k.attr("data-cff-no-posts-added","false"),v.find(".cff-item, .cff-album-item").length?v.find(".cff-item, .cff-album-item").addClass("cff-masonry-new").removeClass("cff-new").last().after(t):v.find(".cff-posts-wrap").append(t);var e=void 0!==v.attr("data-page")?v.attr("data-page"):2,i=v.attr("data-mobilenumber"),i=parseInt(e)*parseInt(i);v.attr({"data-shownmobileposts":i}),P(window).width()<480&&(n=v.find(".cff-item").length?".cff-item":".cff-album-item",(i=i)<v.find(n).length&&v.find(n).slice(i-v.find(n).length).addClass("cff-num-diff-hide")),v.find(".cff-album-item").each(function(t){var e=P('[id="'+this.id+'"]').eq(1);e.length&&(this_classes=e.attr("class"),this_classes=this_classes.replace("cff-album-item",""))}),k.removeClass("cff-loading").find(".cff-loader").remove(),k.attr("id","cff-load-more").removeClass("cff-disabled"),cff_init(v),k=v.find(".cff-load-more");var n=parseInt(k.closest(".cff").attr("data-cff-index"))-1;void 0!==window.cff&&"undefined"!==window.cff.feeds[n]&&window.cff.feeds[n].afterLoadMoreClicked(k),(v.find(".cff-album-item").length&&v.hasClass("cff-disable-liquid")||v.hasClass("cff-masonry-js")&&!v.hasClass("cff-masonry-css"))&&(v.find(".cff-posts-wrap").masonry("appended",v.find(".cff-new")),v.find(".cff-view-comments, .cff-comment-replies a, .cff-show-more-comments a").off().on("click",function(){v.hasClass("cff-opaque-comments")||setTimeout(function(){cffAddMasonry(v)},500)}));n=v.find(".cff-pag-url").attr("data-cff-pag-url");".cff-item"==a||"cursor"==b?"{}"==n&&_(v,k):t.indexOf('class="cff-album-item')<0&&t.indexOf('class="cff-empty-album')<0&&_(v,k),"function"==typeof cff_custom_js&&cff_custom_js(jQuery)}})}).on("mouseenter",function(){P(this).css("background",P(this).attr("data-cff-hover"))}).on("mouseleave",function(){P(this).css("background",P(this).attr("data-cff-bg"))}),v.find(".cff-album-item").length&&!v.hasClass("cff-masonry")&&v.removeClass("cff-masonry cff-masonry-js cff-masonry-css"),v.find(".cff-more-dates").on("click",function(){P(this).siblings(".cff-multiple-dates").slideToggle(100)})}),P(".cff-timeline-feed").length&&"undefined"==typeof cffdisablecommentcaching?(r=[],P(".cff-posts-wrap").each(function(){P(this).find(".cff-item.cff-new:not(.cff-event)").each(function(){var t=P(this),e=t.find(".cff-view-comments").attr("id");t.closest(".cff-item").attr("data-object-id");r.push(e)})}),e=r,s=[],P(".cff-timeline-feed").each(function(){$cffPagUrl=P(this).find(".cff-pag-url");var t={feedID:$cffPagUrl.attr("data-feed-id"),postID:$cffPagUrl.attr("data-post-id"),shortCodeAtts:""==P(this).attr("data-cff-shortcode").trim()?{}:JSON.parse(P(this).attr("data-cff-shortcode")),location:CFFLocationGuess(P(this))};s.push(t)}),i=s,o=void 0!==v.attr("data-cff-shortcode")&&0===v.attr("data-cff-shortcode").indexOf("{")?JSON.parse(v.attr("data-cff-shortcode")):{},f=void 0!==v.attr("data-page")?parseInt(v.attr("data-page")):1,P.ajax({url:cffajaxurl,type:"POST",async:!0,cache:!1,data:{action:"get_meta",comments_array_ids:e,feedLocatorData:i,atts:o,page:f},success:function(t){d=""==t||t.length<1?[]:(t=t.replace(/\\'/g,"'"),JSON.parse(t)),v.each(function(){P(this).find(".cff-item.cff-new:not(.cff-event)").each(function(){var t=P(this),e=t.find(".cff-view-comments").attr("id"),i=t.closest(".cff-item").attr("data-object-id");d.hasOwnProperty(e)&&""!=d[e]?(g(t,JSON.parse(d[e]).content),p(t,JSON.parse(d[e]).content)):c(t,e,i)})})},error:function(t,e,i){}})):P("#cff .cff-item.cff-new:not(.cff-event)").each(function(){var t=P(this),e=t.find(".cff-view-comments").attr("id"),i=t.closest(".cff-item").attr("data-object-id");c(t,e,i)});var m=!1;function I(t,e){t=t.replace(/[\[\]]/g,"\\$&");e=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return e?e[2]?decodeURIComponent(e[2].replace(/\+/g," ")):"":null}function p(t,e){void 0!==(e=JSON.parse(e)).images&&null!==e.images&&t.find(".cff-lightbox-link").attr("href",e.images[0].source)}function g(f,t){var c,e,l,i,n,d,a,o,s,r,u,h,m,p,g,v,b,y,w,x,C,k,_,I,A,z,E,j,T,F,D,B,S,L,Q,O,R,M;function q(t,e){return e-t}"<"!=t.substring(0,1)&&(t=JSON.parse(t),e=c="",l=parseInt(f.find(".cff-comments-box").attr("data-num")),i=void 0!==t.likes?t.likes.summary.total_count:0,n=(Q=f.find(".cff-comments-box")).find(".cff-comment-likes"),Boolean(f.find(".cff-comments-box").attr("data-cff-hide-avatars")),d=Boolean(f.find(".cff-comments-box").attr("data-cff-expand-comments")),a=Q.attr("data-cff-like-text"),o=Q.attr("data-cff-likes-text"),s=Q.attr("data-cff-reacted-text"),r=Q.attr("data-cff-and-text"),u=Q.attr("data-cff-other-text"),h=Q.attr("data-cff-others-text"),m=Q.attr("data-cff-reply-text"),p=Q.attr("data-cff-replies-text"),g=void 0!==t.comments?t.comments.summary.total_count:0,v=f.find(".cff-comments-box").attr("data-cff-meta-link-color"),b=Boolean(f.find(".cff-comments-box").attr("data-cff-post-tags")),void 0===f.attr("data-comments-js")||void 0!==t.comments&&t.comments.summary.total_count,k=(B=[y=void 0!==t.haha?t.haha.summary.total_count:0,w=void 0!==t.love?t.love.summary.total_count:0,x=void 0!==t.wow?t.wow.summary.total_count:0,C=void 0!==t.sad?t.sad.summary.total_count:0,R=void 0!==t.angry?t.angry.summary.total_count:0]).sort(q)[0],_=B.sort(q)[1],S=E=z=A=I=!1,j='<svg role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M462.3 62.7c-54.5-46.4-136-38.7-186.6 13.5L256 96.6l-19.7-20.3C195.5 34.1 113.2 8.7 49.7 62.7c-62.8 53.6-66.1 149.8-9.9 207.8l193.5 199.8c6.2 6.4 14.4 9.7 22.6 9.7 8.2 0 16.4-3.2 22.6-9.7L472 270.5c56.4-58 53.1-154.2-9.7-207.8zm-13.1 185.6L256.4 448.1 62.8 248.3c-38.4-39.6-46.4-115.1 7.7-161.2 54.8-46.8 119.2-12.9 142.8 11.5l42.7 44.1 42.7-44.1c23.2-24 88.2-58 142.8-11.5 54 46 46.1 121.5 7.7 161.2z"></path></svg><span class="cff-svg-bg-dark"><svg class="cff-svg-bg" role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"></path></svg></span>',T='<svg role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm152.7 400.7c-19.8 19.8-43 35.4-68.7 46.3-26.6 11.3-54.9 17-84.1 17s-57.5-5.7-84.1-17c-25.7-10.9-48.8-26.5-68.7-46.3-19.8-19.8-35.4-43-46.3-68.7-11.3-26.6-17-54.9-17-84.1s5.7-57.5 17-84.1c10.9-25.7 26.5-48.8 46.3-68.7 19.8-19.8 43-35.4 68.7-46.3 26.6-11.3 54.9-17 84.1-17s57.5 5.7 84.1 17c25.7 10.9 48.8 26.5 68.7 46.3 19.8 19.8 35.4 43 46.3 68.7 11.3 26.6 17 54.9 17 84.1s-5.7 57.5-17 84.1c-10.8 25.8-26.4 48.9-46.3 68.7zM281.8 206.3l80 48c11.5 6.8 24-7.6 15.4-18L343.6 196l33.6-40.3c8.6-10.3-3.8-24.8-15.4-18l-80 48c-7.7 4.7-7.7 15.9 0 20.6zm-147.6 48l80-48c7.8-4.7 7.8-15.9 0-20.6l-80-48c-11.6-6.9-24 7.7-15.4 18l33.6 40.3-33.6 40.3c-8.7 10.4 3.8 24.8 15.4 18zM383 288H113c-9.6 0-17.1 8.4-15.9 18 8.8 71 69.4 126 142.9 126h16c73.4 0 134-55 142.9-126 1.2-9.6-6.3-18-15.9-18zM256 400h-16c-50.2 0-93.5-33.3-107.4-80h230.8c-13.9 46.7-57.2 80-107.4 80z"></path></svg><svg class="cff-svg-bg" role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 152c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm88 272h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18-8.9 71-69.5 126-142.9 126z"></path></svg>',F='<svg role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 464c-119.1 0-216-96.9-216-216S128.9 40 248 40s216 96.9 216 216-96.9 216-216 216zm0-184c-35.3 0-64 28.7-64 64s28.7 64 64 64 64-28.7 64-64-28.7-64-64-64zm0 96c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm-48-176c0-17.7-14.3-32-32-32s-32 14.3-32 32 14.3 32 32 32 32-14.3 32-32zm128-32c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32z"></path></svg><svg class="cff-svg-bg" role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 208c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm112 208c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm80-176c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"></path></svg>',D='<svg role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 464c-119.1 0-216-96.9-216-216S128.9 40 248 40s216 96.9 216 216-96.9 216-216 216zm0-152c-44.4 0-86.2 19.6-114.8 53.8-5.7 6.8-4.8 16.9 2 22.5 6.8 5.7 16.9 4.8 22.5-2 22.4-26.8 55.3-42.2 90.2-42.2s67.8 15.4 90.2 42.2c5.3 6.4 15.4 8 22.5 2 6.8-5.7 7.7-15.8 2-22.5C334.2 339.6 292.4 320 248 320zm-80-80c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32z"></path></svg><svg class="cff-svg-bg" role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm170.2 218.2C315.8 367.4 282.9 352 248 352s-67.8 15.4-90.2 42.2c-13.5 16.3-38.1-4.2-24.6-20.5C161.7 339.6 203.6 320 248 320s86.3 19.6 114.7 53.8c13.6 16.2-11 36.7-24.5 20.4z"></path></svg>',O='<svg role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 464c-119.1 0-216-96.9-216-216S128.9 40 248 40s216 96.9 216 216-96.9 216-216 216zm0-136c-31.2 0-60.6 13.8-80.6 37.8-5.7 6.8-4.8 16.9 2 22.5s16.9 4.8 22.5-2c27.9-33.4 84.2-33.4 112.1 0 5.3 6.4 15.4 8 22.5 2 6.8-5.7 7.7-15.8 2-22.5-19.9-24-49.3-37.8-80.5-37.8zm-48-96c0-2.9-.9-5.6-1.7-8.2.6.1 1.1.2 1.7.2 6.9 0 13.2-4.5 15.3-11.4 2.6-8.5-2.2-17.4-10.7-19.9l-80-24c-8.4-2.5-17.4 2.3-19.9 10.7-2.6 8.5 2.2 17.4 10.7 19.9l31 9.3c-6.3 5.8-10.5 14.1-10.5 23.4 0 17.7 14.3 32 32 32s32.1-14.3 32.1-32zm171.4-63.3l-80 24c-8.5 2.5-13.3 11.5-10.7 19.9 2.1 6.9 8.4 11.4 15.3 11.4.6 0 1.1-.2 1.7-.2-.7 2.7-1.7 5.3-1.7 8.2 0 17.7 14.3 32 32 32s32-14.3 32-32c0-9.3-4.1-17.5-10.5-23.4l31-9.3c8.5-2.5 13.3-11.5 10.7-19.9-2.4-8.5-11.4-13.2-19.8-10.7z"></path></svg><span class="cff-svg-bg-dark"><svg class="cff-svg-bg" role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 240c0-9.3 4.1-17.5 10.5-23.4l-31-9.3c-8.5-2.5-13.3-11.5-10.7-19.9 2.5-8.5 11.4-13.2 19.9-10.7l80 24c8.5 2.5 13.3 11.5 10.7 19.9-2.1 6.9-8.4 11.4-15.3 11.4-.5 0-1.1-.2-1.7-.2.7 2.7 1.7 5.3 1.7 8.2 0 17.7-14.3 32-32 32S136 257.7 136 240zm168 154.2c-27.8-33.4-84.2-33.4-112.1 0-13.5 16.3-38.2-4.2-24.6-20.5 20-24 49.4-37.8 80.6-37.8s60.6 13.8 80.6 37.8c13.8 16.5-11.1 36.6-24.5 20.5zm76.6-186.9l-31 9.3c6.3 5.8 10.5 14.1 10.5 23.4 0 17.7-14.3 32-32 32s-32-14.3-32-32c0-2.9.9-5.6 1.7-8.2-.6.1-1.1.2-1.7.2-6.9 0-13.2-4.5-15.3-11.4-2.5-8.5 2.3-17.4 10.7-19.9l80-24c8.4-2.5 17.4 2.3 19.9 10.7 2.5 8.5-2.3 17.4-10.8 19.9z"></path></svg></span>',B=Q="",0<k&&P("#cff").hasClass("cff-theme-default_theme")&&(t.love.summary.total_count==k&&(B+='<span class="cff-love cff-reaction-one cff-icon">'+j+"</span>",I=!0),t.haha.summary.total_count==k&&(B+='<span class="cff-haha cff-reaction-one cff-icon">'+T+"</span>",A=!0),t.wow.summary.total_count==k&&(B+='<span class="cff-wow cff-reaction-one cff-icon">'+F+"</span>",z=!0),t.sad.summary.total_count==k&&(B+='<span class="cff-sad cff-reaction-one cff-icon">'+D+"</span>",E=!0),t.angry.summary.total_count==k&&(B+='<span class="cff-angry cff-reaction-one cff-icon">'+O+"</span>",S=!0),Q+=B),B.split("cff-reaction-one").length<3&&P("#cff").hasClass("cff-theme-default_theme")&&0<_&&(L="",t.love.summary.total_count!=_||I||(L='<span class="cff-love cff-reaction-two cff-icon">'+j+"</span>"),t.haha.summary.total_count!=_||A||(L='<span class="cff-haha cff-reaction-two cff-icon">'+T+"</span>"),t.wow.summary.total_count!=_||z||(L='<span class="cff-wow cff-reaction-two cff-icon">'+F+"</span>"),t.sad.summary.total_count!=_||E||(L='<span class="cff-sad cff-reaction-two cff-icon">'+D+"</span>"),t.angry.summary.total_count!=_||S||(L='<span class="cff-angry cff-reaction-two cff-icon">'+O+"</span>"),Q+=L),f.find(".cff-meta .cff-likes").find(".cff-icon").length<2&&f.find(".cff-meta .cff-likes .cff-icon").after(Q),0==parseInt(i)&&(0<parseInt(w)||0<parseInt(y)||0<parseInt(x)||0<parseInt(C)||0<parseInt(R))&&(f.find(".cff-meta .cff-likes .cff-like").remove(),f.find(".cff-meta .cff-likes span").addClass("cff-no-animate")),S=parseInt(i)+parseInt(w)+parseInt(y)+parseInt(x)+parseInt(C)+parseInt(R),L=0==w&&0==y&&0==x&&0==C&&0==R?!0:!1,Q='<span class="cff-reactions-count">',0<parseInt(i)&&(Q+='<span class="cff-like cff-icon"><svg role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M496.656 285.683C506.583 272.809 512 256 512 235.468c-.001-37.674-32.073-72.571-72.727-72.571h-70.15c8.72-17.368 20.695-38.911 20.695-69.817C389.819 34.672 366.518 0 306.91 0c-29.995 0-41.126 37.918-46.829 67.228-3.407 17.511-6.626 34.052-16.525 43.951C219.986 134.75 184 192 162.382 203.625c-2.189.922-4.986 1.648-8.032 2.223C148.577 197.484 138.931 192 128 192H32c-17.673 0-32 14.327-32 32v256c0 17.673 14.327 32 32 32h96c17.673 0 32-14.327 32-32v-8.74c32.495 0 100.687 40.747 177.455 40.726 5.505.003 37.65.03 41.013 0 59.282.014 92.255-35.887 90.335-89.793 15.127-17.727 22.539-43.337 18.225-67.105 12.456-19.526 15.126-47.07 9.628-69.405zM32 480V224h96v256H32zm424.017-203.648C472 288 472 336 450.41 347.017c13.522 22.76 1.352 53.216-15.015 61.996 8.293 52.54-18.961 70.606-57.212 70.974-3.312.03-37.247 0-40.727 0-72.929 0-134.742-40.727-177.455-40.727V235.625c37.708 0 72.305-67.939 106.183-101.818 30.545-30.545 20.363-81.454 40.727-101.817 50.909 0 50.909 35.517 50.909 61.091 0 42.189-30.545 61.09-30.545 101.817h111.999c22.73 0 40.627 20.364 40.727 40.727.099 20.363-8.001 36.375-23.984 40.727zM104 432c0 13.255-10.745 24-24 24s-24-10.745-24-24 10.745-24 24-24 24 10.745 24 24z"></path></svg><svg class="cff-svg-bg" role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M104 224H24c-13.255 0-24 10.745-24 24v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V248c0-13.255-10.745-24-24-24zM64 472c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zM384 81.452c0 42.416-25.97 66.208-33.277 94.548h101.723c33.397 0 59.397 27.746 59.553 58.098.084 17.938-7.546 37.249-19.439 49.197l-.11.11c9.836 23.337 8.237 56.037-9.308 79.469 8.681 25.895-.069 57.704-16.382 74.757 4.298 17.598 2.244 32.575-6.148 44.632C440.202 511.587 389.616 512 346.839 512l-2.845-.001c-48.287-.017-87.806-17.598-119.56-31.725-15.957-7.099-36.821-15.887-52.651-16.178-6.54-.12-11.783-5.457-11.783-11.998v-213.77c0-3.2 1.282-6.271 3.558-8.521 39.614-39.144 56.648-80.587 89.117-113.111 14.804-14.832 20.188-37.236 25.393-58.902C282.515 39.293 291.817 0 312 0c24 0 72 8 72 81.452z"></path></svg></span>',L||(0<parseInt(i)&&(Q+='<span class="cff-like-count">'+i+"</span>"),0<w&&(Q+='<span class="cff-reaction-wrap"><span class="cff-love cff-icon">'+j+'</span><span class="cff-love-count">'+w+"</span></span>"),0<y&&(Q+='<span class="cff-reaction-wrap"><span class="cff-haha cff-icon">'+T+'</span><span class="cff-haha-count">'+y+"</span></span>"),0<x&&(Q+='<span class="cff-reaction-wrap"><span class="cff-wow cff-icon">'+F+'</span><span class="cff-wow-count">'+x+"</span></span>"),0<C&&(Q+='<span class="cff-reaction-wrap"><span class="cff-sad cff-icon">'+D+'</span><span class="cff-sad-count">'+C+"</span></span>"),0<R&&(Q+='<span class="cff-reaction-wrap"><span class="cff-angry cff-icon">'+O+'</span><span class="cff-angry-count">'+R+"</span></span>"))),Q+="</span>",void 0!==t.likes&&(t.likes.data.length?(e+='<span class="cff-likes-this-text">',R=O="",0<i&&void 0!==t.likes.data[0]&&(M=!1,void 0!==t.likes.data[0].link&&-1==t.likes.data[0].link.indexOf("/app_scoped_user_id/")&&(M=!0),M?O+='<a href="'+t.likes.data[0].link+'" target="_blank" rel="nofollow noopener" class="cff-liker-one-name" style="color:'+v+";":O='<span class="cff-liker-one-name" style="',L&&(O+=" margin-left: 5px"),O+='">'+t.likes.data[0].name,O+=M?"</a>":"</span>"),1<i&&void 0!==t.likes.data[1]&&(M=!1,void 0!==t.likes.data[1].link&&-1==t.likes.data[1].link.indexOf("/app_scoped_user_id/")&&(M=!0),M?R+='<a href="'+t.likes.data[1].link+'" target="_blank" rel="nofollow noopener" style="color:'+v+'">':R="<span>",R+=t.likes.data[1].name,R+=M?"</a>":"</span>"),1==i?e+=O+" "+o:2==i?e+=O+" "+r+" "+R+" "+a:3==i?e+=O+", "+R+" "+r+" 1 "+u+" "+a:(e+=O+", "+R+" "+r+" ",25==i&&(e+='<span class="cff-comment-likes-count">'),e+=parseInt(S)-2,25==i&&(e+="</span>"),e+=" "+h,parseInt(S)==parseInt(i)?e+=" "+a:e+=" "+s),e+="</span>",n.find(".cff-reactions-count").length<1&&n.append('<span class="cff-likes-info-wrap">'+Q+e+"</span>")):L?n.hide():n.find(".cff-reactions-count").length<1&&n.append('<span class="cff-likes-info-wrap">'+Q+"</span>")),void 0!==t.comments&&P.each(t.comments.data,function(t,e){var i,n=void 0===window.cff||void 0===window.cff.feeds||window.cff.feeds[0].settings.consentGiven,a=cffEncodeHTML(e.message),a=(s=/(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim,r=(i=a).replace(s,'<a href="$1" target="_blank" rel="nofollow noopener noreferrer">$1</a>'),i=/(^|[^\/])(www\.[\S]+(\b|$))/gim,s=/(([a-zA-Z0-9\-\_\.])+@[a-zA-Z\_]+?(\.[a-zA-Z]{2,6})+)/gim,r=(r=r.replace(i,'$1<a href="http://$2" target="_blank" rel="nofollow noopener noreferrer">$2</a>')).replace(s,'<a href="mailto:$1">$1</a>')),o=!0,i=Boolean(f.find(".cff-comments-box").attr("data-cff-hide-avatars"));cff_comment_from_id=void 0!==e.from?e.from.id:(o=!(i=!0),""),c+='<div class="cff-comment" id="cff_'+e.id+'" data-id="'+cff_comment_from_id+'"',c+=' style="',c+=l<=t?"display: none;":"display: block;",void 0!==f.find("#cff_"+e.id).attr("style")&&(c+=f.find("#cff_"+e.id).attr("style")),c+='"',void 0!==e.from&&void 0!==e.from.picture&&(c+='data-avatar="'+e.from.picture.data.url+'"'),c+=">",c+='<div class="cff-comment-text-wrapper">',c+='<div class="cff-comment-text',i&&(c+=" cff-no-image"),c+='"><p>',o&&(void 0!==e.from.link?c+='<a href="'+e.from.link+'" class="cff-name" target="_blank" rel="nofollow noopener" style="color:'+v+'">'+e.from.name+"</a>":c+='<span class="cff-name">'+e.from.name+"</span>"),b&&e.hasOwnProperty("message_tags")&&P.each(e.message_tags,function(t,e){tag_name=e.name,tag_link='<a href="https://facebook.com/'+e.id+'" target="_blank" rel="nofollow noopener" style="color:'+v+'">'+e.name+"</a>",a=a.replace(tag_name,tag_link)}),c+=a+"</p>",e.hasOwnProperty("attachment")&&e.attachment.hasOwnProperty("media")&&(c+=n?'<a class="cff-comment-attachment cff-feed-image" href="https://facebook.com/'+e.id+'" target="_blank" rel="nofollow noopener"><img src="'+e.attachment.media.image.src+'" alt="':'<a class="cff-comment-attachment cff-feed-image" href="https://facebook.com/'+e.id+'" target="_blank" rel="nofollow noopener"><span class="cff-comment-image-placeholder" data-src="'+e.attachment.media.image.src+'"></span>',n?(e.attachment.hasOwnProperty("title")?c+=e.attachment.title:c+="Attachment",c+='" /></a>'):c+="</a>"),c+='<span class="cff-time">';var s=f.find("#cff_"+e.id).attr("data-cff-comment-date");void 0!==s&&(c+='<span class="cff-comment-date">'+s+"</span>"),0<e.like_count&&(c+='<span class="cff-comment-likes"><span class="cff-comment-likes-bg"><b><svg role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M466.27 286.69C475.04 271.84 480 256 480 236.85c0-44.015-37.218-85.58-85.82-85.58H357.7c4.92-12.81 8.85-28.13 8.85-46.54C366.55 31.936 328.86 0 271.28 0c-61.607 0-58.093 94.933-71.76 108.6-22.747 22.747-49.615 66.447-68.76 83.4H32c-17.673 0-32 14.327-32 32v240c0 17.673 14.327 32 32 32h64c14.893 0 27.408-10.174 30.978-23.95 44.509 1.001 75.06 39.94 177.802 39.94 7.22 0 15.22.01 22.22.01 77.117 0 111.986-39.423 112.94-95.33 13.319-18.425 20.299-43.122 17.34-66.99 9.854-18.452 13.664-40.343 8.99-62.99zm-61.75 53.83c12.56 21.13 1.26 49.41-13.94 57.57 7.7 48.78-17.608 65.9-53.12 65.9h-37.82c-71.639 0-118.029-37.82-171.64-37.82V240h10.92c28.36 0 67.98-70.89 94.54-97.46 28.36-28.36 18.91-75.63 37.82-94.54 47.27 0 47.27 32.98 47.27 56.73 0 39.17-28.36 56.72-28.36 94.54h103.99c21.11 0 37.73 18.91 37.82 37.82.09 18.9-12.82 37.81-22.27 37.81 13.489 14.555 16.371 45.236-5.21 65.62zM88 432c0 13.255-10.745 24-24 24s-24-10.745-24-24 10.745-24 24-24 24 10.745 24 24z"></path></svg></b>'+e.like_count+"</span></span>"),c+="</span>";var r=parseInt(e.comment_count);0<r&&(s="",s=1==r?m:p,c+='<p class="cff-comment-replies" data-id="'+e.id+'"><a class="cff-comment-replies-a" href="javascript:void(0);" style="color:'+v+'"><span class="cff-replies-icon"></span>'+r+" "+s+'</a></p><div class="cff-comment-replies-box cff-empty"></div>'),c+="</div>",c+="</div>",!i&&o&&(c+='<div class="cff-comment-img cff-avatar-fallback">',void 0!==e.from.link&&(c+='<a href="https://facebook.com/'+e.from.link+'" target="_blank" rel="noopener">'),c+=d&&t<l?n?'<img src="'+e.from.picture.data.url+'" class="cff-feed-image" width=32 height=32 alt="'+e.from.name+'" onerror="this.style.display=\'none\'">':'<span class="cff-comment-avatar-placeholder" data-src="'+e.from.picture.data.url+'">':'<span class="cff-comment-avatar"></span>',void 0!==e.from.link&&(c+="</a>"),c+="</div>"),c+="</div>"}),f.find(".cff-comments-wrap .cff-comment").remove(),f.find(".cff-comments-wrap").prepend(c),f.find(".cff-show-more-comments").attr("data-cff-comments-total",g),0<f.find(".cff-comment-likes span").length&&f.find(".cff-comment-on-facebook").css({"border-top-left-radius":"0","border-top-right-radius":"0"}),0<f.find(".cff-comments-wrap .cff-comment").length&&f.find(".cff-comment-on-facebook").css({"border-bottom-left-radius":"0","border-bottom-right-radius":"0"}),f.find(".cff-comments-wrap .cff-comment").length<1&&f.find(".cff-comment-on-facebook").css("padding","8px 15px 8px 10px"),setTimeout(function(){f.closest(".cff").hasClass("cff-masonry-js")&&!f.closest(".cff").hasClass("cff-masonry-css")&&cffAddMasonry(f.closest(".cff"))},200))}function l(){var n=jQuery;n(".cff-lightbox-link").each(function(){var t=n(this);lborigSrc=t.closest(".cff-album-item").attr("data-cff-full-size")?t.attr("data-cff-full-size"):t.parent().find("img").attr("data-orig-source"),t.attr("href",lborigSrc)}),n("img[data-orig-source]").each(function(){var t=n(this),e=t.attr("src"),i=t.attr("data-orig-source");i!=e&&t.attr("src",i),t.hasClass("cff-multi-image")&&t.css("background-image","url("+i+")")}),n(".cff-link-slider").each(function(){n(this).find(".cff-link-slider-slides").css("width","2500px")})}P(document).off("click","#cff .cff-html5-video .cff-html5-play").on("click","#cff .cff-html5-video .cff-html5-play",function(t){t.preventDefault();var e=P(this),i=e.closest(".cff-html5-video"),t=e.siblings("video")[0];t.play(),e.hide(),e.siblings(".cff-poster").hide(),t.hasAttribute("controls")?t.removeAttribute("controls"):t.setAttribute("controls","controls"),i.innerWidth()<150&&!i.hasClass("cff-no-video-expand")&&i.css("width","100%").closest(".cff-item").find(".cff-text-wrapper").css("width","100%")}),void 0===window.cff||void 0===window.cff.feeds?v.find(".cff_resized_image_data").length||l():void 0!==window.cff.feeds[0]&&(window.cff.feeds[0].settings.resizingEnabled||l()),setTimeout(function(){v.find(".cff-link-slider").each(function(){var e=P(this),i=e.find(".cff-link-slider-slides"),t=i.find(".cff-link-slider-item"),n=t.length,a=e.width(),o=0;function s(t){"prev"==t?o--:o++,i.css("left",-o*a),o==n-1?e.find("a.cff-slider-next").hide():e.find("a.cff-slider-next").show(),0<o?e.find("a.cff-slider-prev").show():e.find("a.cff-slider-prev").hide()}i.css({width:a*n}),t.css({width:a}),e.find("a.cff-slider-prev, a.cff-slider-next").on("click",function(t){t.preventDefault(),P(this).hasClass("cff-slider-prev")?s("prev"):s("next")}),setTimeout(function(){var t=i.find(".cff-link-slider-item").first().height();i.find(".cff-final-item").css("height",t).find("img").css("margin-top",t/2-100)},1500),i.find(".cff-link-slider-item").show()})},200)});var r,t,e,i,f=f||{VER:"0.9.944"};f.bgs_Available=!1,f.bgs_CheckRunned=!1,jQuery(".cff").each(function(){jQuery(this).hasClass("cff-disable-liquid")||jQuery(this).find(".cff-new .cff-album-cover img").css("visibility","hidden")}),v.find(".cff-new .cff-crop img").css("visibility","hidden"),jQuery("#cff .cff-img-attachments .cff-crop img").css("opacity",0),(r=jQuery).fn.extend({imgLiquid:function(t){var e,i;this.defaults={fill:!0,verticalAlign:"center",horizontalAlign:"center",useBackgroundSize:!1,useDataHtmlAttr:!0,responsive:!0,delay:!1,fadeInTime:!1,removeBoxBackground:!1,hardPixels:!0,responsiveCheckTime:500,timecheckvisibility:500,onStart:null,onFinish:null,onItemStart:null,onItemFinish:function(t,e,i){i.addClass("cffFadeIn")},onItemError:null},f.bgs_CheckRunned||(f.bgs_CheckRunned=!0,e=r('<span style="background-size:cover" />'),r("body").append(e),(i=e[0])&&window.getComputedStyle&&((i=window.getComputedStyle(i,null))&&i.backgroundSize&&(f.bgs_Available="cover"===i.backgroundSize)),e.remove());var s=this;return this.options=t,this.settings=r.extend({},this.defaults,this.options),this.settings.onStart&&this.settings.onStart(),this.each(function(c){var l=s.settings,d=r(this),u=r("img:first",d);function n(){(l.responsive||u.data("imgLiquid_oldProcessed"))&&u.data("imgLiquid_settings")&&(l=u.data("imgLiquid_settings"),d.actualSize=d.get(0).offsetWidth+d.get(0).offsetHeight/1e4,d.sizeOld&&d.actualSize!==d.sizeOld&&o(),d.sizeOld=d.actualSize,setTimeout(n,l.responsiveCheckTime))}function a(){u.data("imgLiquid_error",!0),d.addClass("imgLiquid_error"),l.onItemError&&l.onItemError(c,d,u),h()}function o(){var t,e,i,n,a,o=0,s=0,r=d.width(),f=d.height();void 0===u.data("owidth")&&u.data("owidth",u[0].width),void 0===u.data("oheight")&&u.data("oheight",u[0].height),n=l.fill===r/f>=u.data("owidth")/u.data("oheight")?(t="100%",e="auto",i=Math.floor(r),Math.floor(r*(u.data("oheight")/u.data("owidth")))):(t="auto",e="100%",i=Math.floor(f*(u.data("owidth")/u.data("oheight"))),Math.floor(f)),a=r-i,"left"===(r=l.horizontalAlign.toLowerCase())&&(s=0),"center"===r&&(s=.5*a),"right"===r&&(s=a),-1!==r.indexOf("%")&&0<(r=parseInt(r.replace("%",""),10))&&(s=a*r*.01),r=f-n,"left"===(f=l.verticalAlign.toLowerCase())&&(o=0),"center"===f&&(o=.5*r),"bottom"===f&&(o=r),-1!==f.indexOf("%")&&0<(f=parseInt(f.replace("%",""),10))&&(o=r*f*.01),l.hardPixels&&(t=i,e=n),u.css({width:t,height:e,"margin-left":Math.floor(s),"margin-top":Math.floor(o)}),u.data("imgLiquid_oldProcessed")||(u.fadeTo(l.fadeInTime,1),u.data("imgLiquid_oldProcessed",!0),o=u.attr("src"),d.css({"background-image":"url("+o+")"}),d.addClass("imgLiquid_nobgSize"),d.addClass("imgLiquid_ready")),l.onItemFinish&&l.onItemFinish(c,d,u),h()}function h(){c===s.length-1&&s.settings.onFinish&&s.settings.onFinish()}u.length?(l=u.data("imgLiquid_settings")?(d.removeClass("imgLiquid_error").removeClass("imgLiquid_ready"),r.extend({},u.data("imgLiquid_settings"),s.options)):r.extend({},s.settings,function(){var t={};{var e,i,n;s.settings.useDataHtmlAttr&&(e=d.attr("data-imgLiquid-fill"),i=d.attr("data-imgLiquid-horizontalAlign"),n=d.attr("data-imgLiquid-verticalAlign"),"true"!==e&&"false"!==e||(t.fill=Boolean("true"===e)),void 0===i||"left"!==i&&"center"!==i&&"right"!==i&&-1===i.indexOf("%")||(t.horizontalAlign=i),void 0===n||"top"!==n&&"bottom"!==n&&"center"!==n&&-1===n.indexOf("%")||(t.verticalAlign=n))}f.isIE&&s.settings.ieFadeInDisabled&&(t.fadeInTime=0);return t}()),u.data("imgLiquid_settings",l),l.onItemStart&&l.onItemStart(c,d,u),f.bgs_Available&&l.useBackgroundSize?(-1===d.css("background-image").indexOf(encodeURI(u.attr("src")))&&d.css({"background-image":'url("'+encodeURI(u.attr("src"))+'")'}),d.css({"background-size":l.fill?"cover":"contain","background-position":(l.horizontalAlign+" "+l.verticalAlign).toLowerCase(),"background-repeat":"no-repeat"}),r("a:first",d).css({display:"block",width:"100%",height:"100%"}),r("img",d).css({display:"none"}),l.onItemFinish&&l.onItemFinish(c,d,u),d.addClass("imgLiquid_bgSize"),d.addClass("imgLiquid_ready"),h()):function t(){if(u.data("oldSrc")&&u.data("oldSrc")!==u.attr("src")){var e=u.clone().removeAttr("style");return e.data("imgLiquid_settings",u.data("imgLiquid_settings")),u.parent().prepend(e),u.remove(),(u=e)[0].width=0,void setTimeout(t,10)}if(u.data("imgLiquid_oldProcessed"))return void o();u.data("imgLiquid_oldProcessed",!1);u.data("oldSrc",u.attr("src"));r("img:not(:first)",d).css("display","none");d.css({overflow:"hidden"});u.fadeTo(0,0).removeAttr("width").removeAttr("height").css({visibility:"visible","max-width":"none","max-height":"none",width:"auto",height:"auto",display:"block"});u.on("error",a);u[0].onerror=a;function i(){u.data("imgLiquid_error")||u.data("imgLiquid_loaded")||u.data("imgLiquid_oldProcessed")||(d.is(":visible")&&u[0].complete&&0<u[0].width&&0<u[0].height?(u.data("imgLiquid_loaded",!0),setTimeout(o,c*l.delay)):setTimeout(i,l.timecheckvisibility))}i();n()}()):a()})}}),void 0!==window.cff&&void 0!==window.cff.feeds||(window.cff=new Cff,window.cff.createPage(window.cff.createFeeds,{})),jQuery(document).ready(function(){var e=!0;jQuery(".cff").each(function(t){void 0!==window.cff&&void 0!==window.cff.feeds&&void 0===window.cff.feeds[t]&&(e=!1)}),e||window.cff.createPage(window.cff.createFeeds,{});var i=jQuery;i("#cookie-notice a").on("click",function(){setTimeout(function(){i.each(window.cff.feeds,function(t){window.cff.feeds[t].afterConsentToggled()})},1e3)}),i("#cookie-law-info-bar a").on("click",function(){setTimeout(function(){i.each(window.cff.feeds,function(t){window.cff.feeds[t].afterConsentToggled()})},1e3)}),i(".cli-user-preference-checkbox, .cky-notice button").on("click",function(){setTimeout(function(){i.each(window.cff.feeds,function(t){window.cff.feeds[t].checkConsent(),window.cff.feeds[t].afterConsentToggled()})},1e3)}),i(window).on("CookiebotOnAccept",function(t){i.each(window.cff.feeds,function(t){window.cff.feeds[t].settings.consentGiven=!0,window.cff.feeds[t].afterConsentToggled()})}),i(".cmplz-btn").on("click",function(){"function"==typeof cmplz_accepted_categories&&setTimeout(function(){-1<cmplz_accepted_categories().indexOf("marketing")&&i.each(window.cff.feeds,function(t){window.cff.feeds[t].settings.consentGiven=!0,window.cff.feeds[t].afterConsentToggled()})},1e3)}),i(document).on("cmplzEnableScripts",function(t){"marketing"===t.detail&&i.each(window.cff.feeds,function(t){window.cff.feeds[t].settings.consentGiven=!0,window.cff.feeds[t].afterConsentToggled()})}),i(document).on("cmplzFireCategories",function(t){"marketing"===t.detail.category&&i.each(window.cff.feeds,function(t){window.cff.feeds[t].settings.consentGiven=!0,window.cff.feeds[t].afterConsentToggled()})}),i(document).on("cmplzRevoke",function(t){i.each(window.cff.feeds,function(t){window.cff.feeds[t].settings.consentGiven=!1,window.cff.feeds[t].afterConsentToggled()})}),jQuery(".cmplz-btn.cmplz-accept").on("click",function(t){setTimeout(function(){jQuery.each(window.cff.feeds,function(t){window.cff.feeds[t].settings.consentGiven="allow"===cffCmplzGetCookie("cmplz_marketing"),window.cff.feeds[t].afterConsentToggled()})},500)}),i(document).on("borlabs-cookie-consent-saved",function(t){i.each(window.cff.feeds,function(t){window.cff.feeds[t].settings.consentGiven=!1,window.cff.feeds[t].afterConsentToggled()})}),void 0!==window.consentApi&&window.consentApi.consent("custom-facebook-feed").then(()=>{try{setTimeout(function(){i.each(window.cff.feeds,function(t){window.cff.feeds[t].settings.consentGiven=!0,window.cff.feeds[t].afterConsentToggled()})},1e3)}catch(t){}}),i(".moove-gdpr-infobar-allow-all").on("click",function(){setTimeout(function(){i.each(window.cff.feeds,function(t){window.cff.feeds[t].settings.consentGiven=!0,window.cff.feeds[t].afterConsentToggled()})},1e3)}),i("#cff-frce-hide-license-error").on("click",function(){i("#cff-fr-ce-license-error").slideUp(),jQuery.ajax({url:cffajaxurl,type:"post",data:{action:"cff_hide_frontend_license_error",nonce:cffOptions.nonce},success:function(t){console.log(t)}})})}),window.addEventListener("wpconsent_consent_saved",function(t){setTimeout(function(){$.each(window.cff.feeds,function(t){window.cff.feeds[t].afterConsentToggled()})},1e3)}),window.addEventListener("wpconsent_consent_updated",function(t){setTimeout(function(){$.each(window.cff.feeds,function(t){window.cff.feeds[t].afterConsentToggled()})},1e3)}),setTimeout(function(){jQuery("#cff .embed-responsive video, #cff .embed-responsive iframe").unwrap()},500),t=f.injectCss,e=document.getElementsByTagName("head")[0],(i=document.createElement("style")).type="text/css",i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t)),e.appendChild(i),jQuery(".cff").each(function(){jQuery(this).hasClass("cff-disable-liquid")||jQuery(this).find(".cff-new .cff-album-cover").imgLiquid({fill:!0})}),jQuery(".cff-new .cff-crop").imgLiquid({fill:!0,useBackgroundSize:!0}),jQuery(".cff-header-hero").imgLiquid({fill:!0})})(),window.cffLinkify=function(){var t="[a-z\\d.-]+://",h="mailto:",m=new RegExp("(?:\\b[a-z\\d.-]+://[^<>\\s]+|\\b(?:(?:(?:[^\\s!@#$%^&*()_=+[\\]{}\\\\|;:'\",.<>/?]+)\\.)+(?:ac|ad|aero|ae|af|ag|ai|al|am|an|ao|aq|arpa|ar|asia|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|biz|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|cat|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|coop|com|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|info|int|in|io|iq|ir|is|it|je|jm|jobs|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mil|mk|ml|mm|mn|mobi|mo|mp|mq|mr|ms|mt|museum|mu|mv|mw|mx|my|mz|name|na|nc|net|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pro|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tel|tf|tg|th|tj|tk|tl|tm|tn|to|tp|travel|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|xn--0zwm56d|xn--11b5bs3a9aj6g|xn--80akhbyknj4f|xn--9t4b11yi5a|xn--deba0ad|xn--g6w251d|xn--hgbk6aj7f53bba|xn--hlcj6aya9esc7a|xn--jxalpdlp|xn--kgbechtv|xn--zckzah|ye|yt|yu|za|zm|zw)|(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5]))(?:[;/][^#?<>\\s]*)?(?:\\?[^#<>\\s]*)?(?:#[^<>\\s]*)?(?!\\w)|(?:mailto:)?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:(?:(?:[^\\s!@#$%^&*()_=+[\\]{}\\\\|;:'\",.<>/?]+)\\.)+(?:ac|ad|aero|ae|af|ag|ai|al|am|an|ao|aq|arpa|ar|asia|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|biz|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|cat|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|coop|com|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|info|int|in|io|iq|ir|is|it|je|jm|jobs|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mil|mk|ml|mm|mn|mobi|mo|mp|mq|mr|ms|mt|museum|mu|mv|mw|mx|my|mz|name|na|nc|net|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pro|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tel|tf|tg|th|tj|tk|tl|tm|tn|to|tp|travel|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|xn--0zwm56d|xn--11b5bs3a9aj6g|xn--80akhbyknj4f|xn--9t4b11yi5a|xn--deba0ad|xn--g6w251d|xn--hgbk6aj7f53bba|xn--hlcj6aya9esc7a|xn--jxalpdlp|xn--kgbechtv|xn--zckzah|ye|yt|yu|za|zm|zw)|(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5]))(?:\\?[^#<>\\s]*)?(?:#[^<>\\s]*)?(?!\\w))","ig"),p=new RegExp("^"+t,"i"),g={"'":"`",">":"<",")":"(","]":"[","}":"{","B;":"B+","b:":"b9"},v={callback:function(t,e){return e?'<a href="'+e+'" title="'+e+'" target="_blank" rel="nofollow noopener noreferrer">'+t+"</a>":t},punct_regexp:/(?:[!?.,:;'"]|(?:&|&amp;)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)$/};return function(t,e){e=e||{};var i,n,a,o,s,r,f,c,l,d="",u=[];for(i in v)void 0===e[i]&&(e[i]=v[i]);for(;a=m.exec(t);)if(n=a[0],r=(s=m.lastIndex)-n.length,!/[\/:]/.test(t.charAt(r-1))){for(;l=(f=n).substr(-1),(c=g[l])&&(c=n.match(new RegExp("\\"+c+"(?!$)","g")),l=n.match(new RegExp("\\"+l,"g")),(c?c.length:0)<(l?l.length:0)&&(n=n.substr(0,n.length-1),s--)),e.punct_regexp&&(n=n.replace(e.punct_regexp,function(t){return s-=t.length,""})),n.length&&n!==f;);a=n,p.test(a)||(a=(-1!==a.indexOf("@")?a.indexOf(h)?h:"":a.indexOf("irc.")?a.indexOf("ftp.")?"http://":"ftp://":"irc://")+a),o!=r&&(u.push([t.slice(o,r)]),o=s),u.push([n,a])}for(u.push([t.substr(o)]),i=0;i<u.length;i++)d+=e.callback.apply(window,u[i]);return d||t}}(),hashRegex=/[#]+[A-Za-z0-9-_]+/g,tagRegex=/[@]+[A-Za-z0-9-_]+/g,jQuery("#cff.cff-lb").length&&cffLightbox(),jQuery.fn.isInViewport=function(){var t=jQuery(this).offset().top,e=t+jQuery(this).outerHeight(),i=jQuery(window).scrollTop(),n=i+jQuery(window).height();return i<e&&t<n});
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.sbjs=e()}}(function(){return function e(t,r,n){function a(s,o){if(!r[s]){if(!t[s]){var c="function"==typeof require&&require;if(!o&&c)return c(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var p=r[s]={exports:{}};t[s][0].call(p.exports,function(e){var r=t[s][1][e];return a(r||e)},p,p.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)a(n[s]);return a}({1:[function(e,t,r){"use strict";var n=e("./init"),a={init:function(e){this.get=n(e),e&&e.callback&&"function"==typeof e.callback&&e.callback(this.get)}};t.exports=a},{"./init":6}],2:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/utils"),i={containers:{current:"sbjs_current",current_extra:"sbjs_current_add",first:"sbjs_first",first_extra:"sbjs_first_add",session:"sbjs_session",udata:"sbjs_udata",promocode:"sbjs_promo"},service:{migrations:"sbjs_migrations"},delimiter:"|||",aliases:{main:{type:"typ",source:"src",medium:"mdm",campaign:"cmp",content:"cnt",term:"trm",id:"id",platform:"plt",format:"fmt",tactic:"tct"},extra:{fire_date:"fd",entrance_point:"ep",referer:"rf"},session:{pages_seen:"pgs",current_page:"cpg"},udata:{visits:"vst",ip:"uip",agent:"uag"},promo:"code"},pack:{main:function(e){return i.aliases.main.type+"="+e.type+i.delimiter+i.aliases.main.source+"="+e.source+i.delimiter+i.aliases.main.medium+"="+e.medium+i.delimiter+i.aliases.main.campaign+"="+e.campaign+i.delimiter+i.aliases.main.content+"="+e.content+i.delimiter+i.aliases.main.term+"="+e.term+i.delimiter+i.aliases.main.id+"="+e.id+i.delimiter+i.aliases.main.platform+"="+e.platform+i.delimiter+i.aliases.main.format+"="+e.format+i.delimiter+i.aliases.main.tactic+"="+e.tactic},extra:function(e){return i.aliases.extra.fire_date+"="+a.setDate(new Date,e)+i.delimiter+i.aliases.extra.entrance_point+"="+document.location.href+i.delimiter+i.aliases.extra.referer+"="+(document.referrer||n.none)},user:function(e,t){return i.aliases.udata.visits+"="+e+i.delimiter+i.aliases.udata.ip+"="+t+i.delimiter+i.aliases.udata.agent+"="+navigator.userAgent},session:function(e){return i.aliases.session.pages_seen+"="+e+i.delimiter+i.aliases.session.current_page+"="+document.location.href},promo:function(e){return i.aliases.promo+"="+a.setLeadingZeroToInt(a.randomInt(e.min,e.max),e.max.toString().length)}}};t.exports=i},{"./helpers/utils":5,"./terms":9}],3:[function(e,t,r){"use strict";var n=e("../data").delimiter;t.exports={useBase64:!1,setBase64Flag:function(e){this.useBase64=e},encodeData:function(e){return encodeURIComponent(e).replace(/\!/g,"%21").replace(/\~/g,"%7E").replace(/\*/g,"%2A").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")},decodeData:function(e){try{return decodeURIComponent(e).replace(/\%21/g,"!").replace(/\%7E/g,"~").replace(/\%2A/g,"*").replace(/\%27/g,"'").replace(/\%28/g,"(").replace(/\%29/g,")")}catch(t){try{return unescape(e)}catch(r){return""}}},set:function(e,t,r,n,a){var i,s;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),i="; expires="+o.toGMTString()}else i="";s=n&&!a?";domain=."+n:"";var c=this.encodeData(t);this.useBase64&&(c=btoa(c).replace(/=+$/,"")),document.cookie=this.encodeData(e)+"="+c+i+s+"; path=/"},get:function(e){for(var t=this.encodeData(e)+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var a=r[n];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t)){var i=a.substring(t.length,a.length);if(/^[A-Za-z0-9+/]+$/.test(i))try{i=atob(i.padEnd(4*Math.ceil(i.length/4),"="))}catch(s){}return this.decodeData(i)}}return null},destroy:function(e,t,r){this.set(e,"",-1,t,r)},parse:function(e){var t=[],r={};if("string"==typeof e)t.push(e);else for(var a in e)e.hasOwnProperty(a)&&t.push(e[a]);for(var i=0;i<t.length;i++){var s;r[this.unsbjs(t[i])]={},s=this.get(t[i])?this.get(t[i]).split(n):[];for(var o=0;o<s.length;o++){var c=s[o].split("="),u=c.splice(0,1);u.push(c.join("=")),r[this.unsbjs(t[i])][u[0]]=this.decodeData(u[1])}}return r},unsbjs:function(e){return e.replace("sbjs_","")}}},{"../data":2}],4:[function(e,t,r){"use strict";t.exports={parse:function(e){for(var t=this.parseOptions,r=t.parser[t.strictMode?"strict":"loose"].exec(e),n={},a=14;a--;)n[t.key[a]]=r[a]||"";return n[t.q.name]={},n[t.key[12]].replace(t.q.parser,function(e,r,a){r&&(n[t.q.name][r]=a)}),n},parseOptions:{strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},getParam:function(e){for(var t={},r=(e||window.location.search.substring(1)).split("&"),n=0;n<r.length;n++){var a=r[n].split("=");if("undefined"==typeof t[a[0]])t[a[0]]=a[1];else if("string"==typeof t[a[0]]){var i=[t[a[0]],a[1]];t[a[0]]=i}else t[a[0]].push(a[1])}return t},getHost:function(e){return this.parse(e).host.replace("www.","")}}},{}],5:[function(e,t,r){"use strict";t.exports={escapeRegexp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},setDate:function(e,t){var r=e.getTimezoneOffset()/60,n=e.getHours(),a=t||0===t?t:-r;return e.setHours(n+r+a),e.getFullYear()+"-"+this.setLeadingZeroToInt(e.getMonth()+1,2)+"-"+this.setLeadingZeroToInt(e.getDate(),2)+" "+this.setLeadingZeroToInt(e.getHours(),2)+":"+this.setLeadingZeroToInt(e.getMinutes(),2)+":"+this.setLeadingZeroToInt(e.getSeconds(),2)},setLeadingZeroToInt:function(e,t){for(var r=e+"";r.length<t;)r="0"+r;return r},randomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e}}},{}],6:[function(e,t,r){"use strict";var n=e("./data"),a=e("./terms"),i=e("./helpers/cookies"),s=e("./helpers/uri"),o=e("./helpers/utils"),c=e("./params"),u=e("./migrations");t.exports=function(e){var t,r,p,f,m,d,l,g,h,y,_,v,b,x=c.fetch(e),k=s.getParam(),w=x.domain.host,q=x.domain.isolate,I=x.lifetime;function j(e){switch(e){case a.traffic.utm:t=a.traffic.utm,r="undefined"!=typeof k.utm_source?k.utm_source:"undefined"!=typeof k.gclid?"google":"undefined"!=typeof k.yclid?"yandex":a.none,p="undefined"!=typeof k.utm_medium?k.utm_medium:"undefined"!=typeof k.gclid?"cpc":"undefined"!=typeof k.yclid?"cpc":a.none,f="undefined"!=typeof k.utm_campaign?k.utm_campaign:"undefined"!=typeof k[x.campaign_param]?k[x.campaign_param]:"undefined"!=typeof k.gclid?"google_cpc":"undefined"!=typeof k.yclid?"yandex_cpc":a.none,m="undefined"!=typeof k.utm_content?k.utm_content:"undefined"!=typeof k[x.content_param]?k[x.content_param]:a.none,l=k.utm_id||a.none,g=k.utm_source_platform||a.none,h=k.utm_creative_format||a.none,y=k.utm_marketing_tactic||a.none,d="undefined"!=typeof k.utm_term?k.utm_term:"undefined"!=typeof k[x.term_param]?k[x.term_param]:function(){var e=document.referrer;if(k.utm_term)return k.utm_term;if(!(e&&s.parse(e).host&&s.parse(e).host.match(/^(?:.*\.)?yandex\..{2,9}$/i)))return!1;try{return s.getParam(s.parse(document.referrer).query).text}catch(t){return!1}}()||a.none;break;case a.traffic.organic:t=a.traffic.organic,r=r||s.getHost(document.referrer),p=a.referer.organic,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.referral:t=a.traffic.referral,r=r||s.getHost(document.referrer),p=p||a.referer.referral,f=a.none,m=s.parse(document.referrer).path,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.typein:t=a.traffic.typein,r=x.typein_attributes.source,p=x.typein_attributes.medium,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;default:t=a.oops,r=a.oops,p=a.oops,f=a.oops,m=a.oops,d=a.oops,l=a.oops,g=a.oops,h=a.oops,y=a.oops}var i={type:t,source:r,medium:p,campaign:f,content:m,term:d,id:l,platform:g,format:h,tactic:y};return n.pack.main(i)}function R(e){var t=document.referrer;switch(e){case a.traffic.organic:return!!t&&H(t)&&function(e){var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp("yandex")+"\\..{2,9}$"),n=new RegExp(".*"+o.escapeRegexp("text")+"=.*"),a=new RegExp("^(?:www\\.)?"+o.escapeRegexp("google")+"\\..{2,9}$");if(s.parse(e).query&&s.parse(e).host.match(t)&&s.parse(e).query.match(n))return r="yandex",!0;if(s.parse(e).host.match(a))return r="google",!0;if(!s.parse(e).query)return!1;for(var i=0;i<x.organics.length;i++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.organics[i].host)+"$","i"))&&s.parse(e).query.match(new RegExp(".*"+o.escapeRegexp(x.organics[i].param)+"=.*","i")))return r=x.organics[i].display||x.organics[i].host,!0;if(i+1===x.organics.length)return!1}}(t);case a.traffic.referral:return!!t&&H(t)&&function(e){if(!(x.referrals.length>0))return r=s.getHost(e),!0;for(var t=0;t<x.referrals.length;t++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.referrals[t].host)+"$","i")))return r=x.referrals[t].display||x.referrals[t].host,p=x.referrals[t].medium||a.referer.referral,!0;if(t+1===x.referrals.length)return r=s.getHost(e),!0}}(t);default:return!1}}function H(e){if(x.domain){if(q)return s.getHost(e)!==s.getHost(w);var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp(w)+"$","i");return!s.getHost(e).match(t)}return s.getHost(e)!==s.getHost(document.location.href)}function D(){i.set(n.containers.current_extra,n.pack.extra(x.timezone_offset),I,w,q),i.get(n.containers.first_extra)||i.set(n.containers.first_extra,n.pack.extra(x.timezone_offset),I,w,q)}return i.setBase64Flag(x.base64),u.go(I,w,q),i.set(n.containers.current,function(){var e;if("undefined"!=typeof k.utm_source||"undefined"!=typeof k.utm_medium||"undefined"!=typeof k.utm_campaign||"undefined"!=typeof k.utm_content||"undefined"!=typeof k.utm_term||"undefined"!=typeof k.utm_id||"undefined"!=typeof k.utm_source_platform||"undefined"!=typeof k.utm_creative_format||"undefined"!=typeof k.utm_marketing_tactic||"undefined"!=typeof k.gclid||"undefined"!=typeof k.yclid||"undefined"!=typeof k[x.campaign_param]||"undefined"!=typeof k[x.term_param]||"undefined"!=typeof k[x.content_param])D(),e=j(a.traffic.utm);else if(R(a.traffic.organic))D(),e=j(a.traffic.organic);else if(!i.get(n.containers.session)&&R(a.traffic.referral))D(),e=j(a.traffic.referral);else{if(i.get(n.containers.first)||i.get(n.containers.current))return i.get(n.containers.current);D(),e=j(a.traffic.typein)}return e}(),I,w,q),i.get(n.containers.first)||i.set(n.containers.first,i.get(n.containers.current),I,w,q),i.get(n.containers.udata)?(_=parseInt(i.parse(n.containers.udata)[i.unsbjs(n.containers.udata)][n.aliases.udata.visits])||1,_=i.get(n.containers.session)?_:_+1,v=n.pack.user(_,x.user_ip)):(_=1,v=n.pack.user(_,x.user_ip)),i.set(n.containers.udata,v,I,w,q),i.get(n.containers.session)?(b=parseInt(i.parse(n.containers.session)[i.unsbjs(n.containers.session)][n.aliases.session.pages_seen])||1,b+=1):b=1,i.set(n.containers.session,n.pack.session(b),x.session_length,w,q),x.promocode&&!i.get(n.containers.promocode)&&i.set(n.containers.promocode,n.pack.promo(x.promocode),I,w,q),i.parse(n.containers)}},{"./data":2,"./helpers/cookies":3,"./helpers/uri":4,"./helpers/utils":5,"./migrations":7,"./params":8,"./terms":9}],7:[function(e,t,r){"use strict";var n=e("./data"),a=e("./helpers/cookies");t.exports={go:function(e,t,r){var i,s=this.migrations,o={l:e,d:t,i:r};if(a.get(n.containers.first)||a.get(n.service.migrations)){if(!a.get(n.service.migrations))for(i=0;i<s.length;i++)s[i].go(s[i].id,o)}else{var c=[];for(i=0;i<s.length;i++)c.push(s[i].id);var u="";for(i=0;i<c.length;i++)u+=c[i]+"=1",i<c.length-1&&(u+=n.delimiter);a.set(n.service.migrations,u,o.l,o.d,o.i)}},migrations:[{id:"1418474375998",version:"1.0.0-beta",go:function(e,t){var r=e+"=1",i=e+"=0",s=function(e,t,r){return t||r?e:n.delimiter};try{var o=[];for(var c in n.containers)n.containers.hasOwnProperty(c)&&o.push(n.containers[c]);for(var u=0;u<o.length;u++)if(a.get(o[u])){var p=a.get(o[u]).replace(/(\|)?\|(\|)?/g,s);a.destroy(o[u],t.d,t.i),a.destroy(o[u],t.d,!t.i),a.set(o[u],p,t.l,t.d,t.i)}a.get(n.containers.session)&&a.set(n.containers.session,n.pack.session(0),t.l,t.d,t.i),a.set(n.service.migrations,r,t.l,t.d,t.i)}catch(f){a.set(n.service.migrations,i,t.l,t.d,t.i)}}}]}},{"./data":2,"./helpers/cookies":3}],8:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/uri");t.exports={fetch:function(e){var t=e||{},r={};if(r.lifetime=this.validate.checkFloat(t.lifetime)||6,r.lifetime=parseInt(30*r.lifetime*24*60),r.session_length=this.validate.checkInt(t.session_length)||30,r.timezone_offset=this.validate.checkInt(t.timezone_offset),r.base64=t.base64||!1,r.campaign_param=t.campaign_param||!1,r.term_param=t.term_param||!1,r.content_param=t.content_param||!1,r.user_ip=t.user_ip||n.none,t.promocode?(r.promocode={},r.promocode.min=parseInt(t.promocode.min)||1e5,r.promocode.max=parseInt(t.promocode.max)||999999):r.promocode=!1,t.typein_attributes&&t.typein_attributes.source&&t.typein_attributes.medium?(r.typein_attributes={},r.typein_attributes.source=t.typein_attributes.source,r.typein_attributes.medium=t.typein_attributes.medium):r.typein_attributes={source:"(direct)",medium:"(none)"},t.domain&&this.validate.isString(t.domain)?r.domain={host:t.domain,isolate:!1}:t.domain&&t.domain.host?r.domain=t.domain:r.domain={host:a.getHost(document.location.hostname),isolate:!1},r.referrals=[],t.referrals&&t.referrals.length>0)for(var i=0;i<t.referrals.length;i++)t.referrals[i].host&&r.referrals.push(t.referrals[i]);if(r.organics=[],t.organics&&t.organics.length>0)for(var s=0;s<t.organics.length;s++)t.organics[s].host&&t.organics[s].param&&r.organics.push(t.organics[s]);return r.organics.push({host:"bing.com",param:"q",display:"bing"}),r.organics.push({host:"yahoo.com",param:"p",display:"yahoo"}),r.organics.push({host:"about.com",param:"q",display:"about"}),r.organics.push({host:"aol.com",param:"q",display:"aol"}),r.organics.push({host:"ask.com",param:"q",display:"ask"}),r.organics.push({host:"globososo.com",param:"q",display:"globo"}),r.organics.push({host:"go.mail.ru",param:"q",display:"go.mail.ru"}),r.organics.push({host:"rambler.ru",param:"query",display:"rambler"}),r.organics.push({host:"tut.by",param:"query",display:"tut.by"}),r.referrals.push({host:"t.co",display:"twitter.com"}),r.referrals.push({host:"plus.url.google.com",display:"plus.google.com"}),r},validate:{checkFloat:function(e){return!(!e||!this.isNumeric(parseFloat(e)))&&parseFloat(e)},checkInt:function(e){return!(!e||!this.isNumeric(parseInt(e)))&&parseInt(e)},isNumeric:function(e){return!isNaN(e)},isString:function(e){return"[object String]"===Object.prototype.toString.call(e)}}}},{"./helpers/uri":4,"./terms":9}],9:[function(e,t,r){"use strict";t.exports={traffic:{utm:"utm",organic:"organic",referral:"referral",typein:"typein"},referer:{referral:"referral",organic:"organic",social:"social"},none:"(none)",oops:"(Houston, we have a problem)"}},{}]},{},[1])(1)});
!function(t){"use strict";const e=t.params,n=(document.querySelector.bind(document),(t,e)=>e.split(".").reduce((t,e)=>t&&t[e],t)),i=()=>null,s=t=>null===t||t===undefined?"":t,o="wc/store/checkout";function a(t){document.querySelectorAll("wc-order-attribution-inputs").forEach((t,e)=>{e>0&&t.remove()});for(const e of document.querySelectorAll("wc-order-attribution-inputs"))e.values=t}function r(t){window.wp&&window.wp.data&&window.wp.data.dispatch&&window.wc&&window.wc.wcBlocksData&&window.wp.data.dispatch(window.wc.wcBlocksData.CHECKOUT_STORE_KEY).setExtensionData("woocommerce/order-attribution",t,!0)}function c(){return"undefined"!=typeof sbjs}function d(){if(window.wp&&window.wp.data&&"function"==typeof window.wp.data.subscribe){const e=window.wp.data.subscribe(function(){e(),r(t.getAttributionData())},o)}}t.getAttributionData=function(){const s=e.allowTracking&&c()?n:i,o=c()?sbjs.get:{},a=Object.entries(t.fields).map(([t,e])=>[t,s(o,e)]);return Object.fromEntries(a)},t.setOrderTracking=function(n){if(e.allowTracking=n,n){if(!c())return;sbjs.init({lifetime:Number(e.lifetime),session_length:Number(e.session),base64:Boolean(e.base64),timezone_offset:"0"})}else!function(){const t=window.location.hostname;["sbjs_current","sbjs_current_add","sbjs_first","sbjs_first_add","sbjs_session","sbjs_udata","sbjs_migrations","sbjs_promo"].forEach(e=>{document.cookie=`${e}=; path=/; max-age=-999; domain=.${t};`})}();const i=t.getAttributionData();a(i),r(i)},t.setOrderTracking(e.allowTracking),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",d):d(),window.customElements.define("wc-order-attribution-inputs",class extends HTMLElement{constructor(){if(super(),this._fieldNames=Object.keys(t.fields),this.hasOwnProperty("_values")){let t=this.values;delete this.values,this.values=t||{}}}connectedCallback(){this.innerHTML="";const t=new DocumentFragment;for(const n of this._fieldNames){const i=document.createElement("input");i.type="hidden",i.name=`${e.prefix}${n}`,i.value=s(this.values&&this.values[n]||""),t.appendChild(i)}this.appendChild(t)}set values(t){if(this._values=t,this.isConnected)for(const t of this._fieldNames){const n=this.querySelector(`input[name="${e.prefix}${t}"]`);n?n.value=s(this.values[t]):console.warn(`Field "${t}" not found. `+"Most likely, the '<wc-order-attribution-inputs>' element was manipulated.")}}get values(){return this._values}})}(window.wc_order_attribution);
(function(){if(i18n_mtli.enable_async==1){if(i18n_mtli.enable_async_debug&&typeof console=="undefined"){window.console={log:function(){}}}var contentObj=jQuery('#content');if(contentObj.length==0){contentObj=jQuery('.status-publish:first').parent()}var contentLinks=contentObj.find('a');if(i18n_mtli.enable_async_debug){console.log('# of links found: '+contentLinks.length)}if(i18n_mtli.oldwp==1){i18n_mtli.mime_array=i18n_mtli.mime_array.split(',')}if(i18n_mtli.enable_async_debug){console.log('# of mime types: '+i18n_mtli.mime_array.length)}jQuery.each(i18n_mtli.mime_array,function(i,elm){if(i18n_mtli.enable_async_debug){console.log('Evaluating mime_type '+i+':'+elm)}var reg=new RegExp('^([^"#]+\\.'+elm+')(#[^" ]+$|$)','i');var filtered=contentLinks.filter(function(){var thishref=jQuery(this).attr('href');if(typeof(thishref)==='undefined'){return false}return(jQuery(this).attr('href').search(reg)>=0)}).addClass('mtli_attachment mtli_'+elm);if(i18n_mtli.enable_async_debug){console.log('Evaluating mime_type '+i+':'+elm+"\t\t\t"+'filtered links: '+filtered.length)}})}if(i18n_mtli.hidethings==1){if(i18n_mtli.enable_async_debug){console.log('nr of elements found:'+jQuery(i18n_mtli.avoid_selector).length)}jQuery(i18n_mtli.avoid_selector).each(function(){if(i18n_mtli.enable_async_debug){console.log('testing elm '+index+':'+elm)}if(jQuery(this).hasClass('mtli_attachment')){if(i18n_mtli.enable_async_debug){console.log("\t"+'element has class mtli_attachment')}jQuery(this).removeClass('mtli_attachment').css('background-image','none');if(jQuery(this).attr('rel')!=undefined&&jQuery(this).attr('rel').indexOf('mtli_filesize')>=0){if(i18n_mtli.enable_async_debug){console.log("\t\t"+'rel mtli_filesize found')}jQuery(this).removeAttr('rel')}}if(i18n_mtli.enable_async_debug){console.log("\t"+'# of jQuery(this).find(.mtli_attachment):'+jQuery(this).find('.mtli_attachment').length)}if(i18n_mtli.enable_async_debug){console.log("\t"+'# of jQuery(this).find([rel^="mtli_filesize"]):'+jQuery(this).find('[rel^="mtli_filesize"]').length)}jQuery(this).find('.mtli_attachment').removeClass('mtli_attachment').css('background-image','none');jQuery(this).find('[rel^="mtli_filesize"]').removeAttr('rel')})}})(jQuery);
!function(t,e){"use strict";e.init=function(){e.$rsvp=t(".tribe-events-tickets-rsvp"),e.attendee_template=t(document.getElementById("tribe-tickets-rsvp-tmpl")).html(),e.$rsvp.on("change input keyup",".tribe-tickets-quantity",e.event.quantity_changed),e.$rsvp.closest(".cart").on("submit",e.event.handle_submission),t(".tribe-rsvp-list").on("click",".attendee-meta-row .toggle",(function(){t(this).toggleClass("on").siblings(".attendee-meta-details").slideToggle()}))},e.quantity_changed=function(e){const i=e.closest(".tribe-events-tickets-rsvp"),n=i.find(".tribe-tickets-quantity");let s=0;n.each((function(){s+=parseInt(t(this).val(),10)})),0===s?i.removeClass("tribe-tickets-has-rsvp"):i.addClass("tribe-tickets-has-rsvp")},e.validate_rsvp_info=function(e){const i=e.find("input.tribe-tickets-quantity"),n=e.find("input#tribe-tickets-full-name"),s=e.find("input#tribe-tickets-email");let a=0;return i.each((function(){a+=parseInt(t(this).val(),10)})),n.val().trim().length&&s.val().trim().length&&a},e.validate_meta=function(t){let e=!0;return!!window.tribe_event_tickets_plus&&(e=window.tribe_event_tickets_plus.meta.validate_meta(t)),e},e.event.quantity_changed=function(){e.quantity_changed(t(this))},e.event.handle_submission=function(i){const n=t(this).closest("form"),s=n.find(".tribe-rsvp-messages, .tribe-rsvp-message-confirmation-error"),a=n.find(".tribe-event-tickets-meta-required-message"),r=e.validate_rsvp_info(n),c=e.validate_meta(n);return!(!r||!c)||(r?s.hide():s.show(),c?(a.hide(),n.removeClass("tribe-event-tickets-plus-meta-missing-required")):(n.addClass("tribe-event-tickets-plus-meta-missing-required"),a.show()),t("html, body").animate({scrollTop:n.offset().top-100},300),!1)},t(e.init)}(jQuery,{num_attendees:0,event:{}}),window.tec=window.tec||{},window.tec.tickets=window.tec.tickets||{},window.tec.tickets.rsvp={};
window._lodash_tmp=!1,"_"in window&&function(n,o){if(!n||window[n])return!1;const e=o.filter((function(o){return n[o]&&"function"==typeof n[o]}));return o.length===e.length}(window._,["get","set","at","cloneDeep","some","every"])&&(window._lodash_tmp=_),window.tec=window.tec||{},window.tec.common=window.tec.common||{},window.tec.common.underscoreBefore={};
!function(n,t){var r,e;"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("underscore",t):(n="undefined"!=typeof globalThis?globalThis:n||self,r=n._,(e=n._=t()).noConflict=function(){return n._=r,e})}(this,function(){var n="1.13.7",t="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},e=Array.prototype,V=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,P=e.push,f=e.slice,s=V.toString,q=V.hasOwnProperty,r="undefined"!=typeof ArrayBuffer,u="undefined"!=typeof DataView,U=Array.isArray,W=Object.keys,z=Object.create,L=r&&ArrayBuffer.isView,$=isNaN,C=isFinite,K=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],G=Math.pow(2,53)-1;function l(u,o){return o=null==o?u.length-1:+o,function(){for(var n=Math.max(arguments.length-o,0),t=Array(n),r=0;r<n;r++)t[r]=arguments[r+o];switch(o){case 0:return u.call(this,t);case 1:return u.call(this,arguments[0],t);case 2:return u.call(this,arguments[0],arguments[1],t)}for(var e=Array(o+1),r=0;r<o;r++)e[r]=arguments[r];return e[o]=t,u.apply(this,e)}}function o(n){var t=typeof n;return"function"==t||"object"==t&&!!n}function H(n){return void 0===n}function Q(n){return!0===n||!1===n||"[object Boolean]"===s.call(n)}function i(n){var t="[object "+n+"]";return function(n){return s.call(n)===t}}var X=i("String"),Y=i("Number"),Z=i("Date"),nn=i("RegExp"),tn=i("Error"),rn=i("Symbol"),en=i("ArrayBuffer"),a=i("Function"),t=t.document&&t.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof t?function(n){return"function"==typeof n||!1}:a,t=i("Object"),un=u&&(!/\[native code\]/.test(String(DataView))||t(new DataView(new ArrayBuffer(8)))),a="undefined"!=typeof Map&&t(new Map),u=i("DataView");var h=un?function(n){return null!=n&&p(n.getInt8)&&en(n.buffer)}:u,v=U||i("Array");function y(n,t){return null!=n&&q.call(n,t)}var on=i("Arguments"),an=(!function(){on(arguments)||(on=function(n){return y(n,"callee")})}(),on);function fn(n){return Y(n)&&$(n)}function cn(n){return function(){return n}}function ln(t){return function(n){n=t(n);return"number"==typeof n&&0<=n&&n<=G}}function sn(t){return function(n){return null==n?void 0:n[t]}}var d=sn("byteLength"),pn=ln(d),hn=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var vn=r?function(n){return L?L(n)&&!h(n):pn(n)&&hn.test(s.call(n))}:cn(!1),g=sn("length");function yn(n,t){t=function(t){for(var r={},n=t.length,e=0;e<n;++e)r[t[e]]=!0;return{contains:function(n){return!0===r[n]},push:function(n){return r[n]=!0,t.push(n)}}}(t);var r=J.length,e=n.constructor,u=p(e)&&e.prototype||V,o="constructor";for(y(n,o)&&!t.contains(o)&&t.push(o);r--;)(o=J[r])in n&&n[o]!==u[o]&&!t.contains(o)&&t.push(o)}function b(n){if(!o(n))return[];if(W)return W(n);var t,r=[];for(t in n)y(n,t)&&r.push(t);return K&&yn(n,r),r}function dn(n,t){var r=b(t),e=r.length;if(null==n)return!e;for(var u=Object(n),o=0;o<e;o++){var i=r[o];if(t[i]!==u[i]||!(i in u))return!1}return!0}function m(n){return n instanceof m?n:this instanceof m?void(this._wrapped=n):new m(n)}function gn(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,d(n))}m.VERSION=n,m.prototype.valueOf=m.prototype.toJSON=m.prototype.value=function(){return this._wrapped},m.prototype.toString=function(){return String(this._wrapped)};var bn="[object DataView]";function mn(n,t,r,e){var u;return n===t?0!==n||1/n==1/t:null!=n&&null!=t&&(n!=n?t!=t:("function"==(u=typeof n)||"object"==u||"object"==typeof t)&&function n(t,r,e,u){t instanceof m&&(t=t._wrapped);r instanceof m&&(r=r._wrapped);var o=s.call(t);if(o!==s.call(r))return!1;if(un&&"[object Object]"==o&&h(t)){if(!h(r))return!1;o=bn}switch(o){case"[object RegExp]":case"[object String]":return""+t==""+r;case"[object Number]":return+t!=+t?+r!=+r:0==+t?1/+t==1/r:+t==+r;case"[object Date]":case"[object Boolean]":return+t==+r;case"[object Symbol]":return F.valueOf.call(t)===F.valueOf.call(r);case"[object ArrayBuffer]":case bn:return n(gn(t),gn(r),e,u)}o="[object Array]"===o;if(!o&&vn(t)){var i=d(t);if(i!==d(r))return!1;if(t.buffer===r.buffer&&t.byteOffset===r.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof t||"object"!=typeof r)return!1;var i=t.constructor,a=r.constructor;if(i!==a&&!(p(i)&&i instanceof i&&p(a)&&a instanceof a)&&"constructor"in t&&"constructor"in r)return!1}e=e||[];u=u||[];var f=e.length;for(;f--;)if(e[f]===t)return u[f]===r;e.push(t);u.push(r);if(o){if((f=t.length)!==r.length)return!1;for(;f--;)if(!mn(t[f],r[f],e,u))return!1}else{var c,l=b(t);if(f=l.length,b(r).length!==f)return!1;for(;f--;)if(c=l[f],!y(r,c)||!mn(t[c],r[c],e,u))return!1}e.pop();u.pop();return!0}(n,t,r,e))}function c(n){if(!o(n))return[];var t,r=[];for(t in n)r.push(t);return K&&yn(n,r),r}function jn(e){var u=g(e);return function(n){if(null==n)return!1;var t=c(n);if(g(t))return!1;for(var r=0;r<u;r++)if(!p(n[e[r]]))return!1;return e!==_n||!p(n[wn])}}var wn="forEach",t=["clear","delete"],u=["get","has","set"],U=t.concat(wn,u),_n=t.concat(u),r=["add"].concat(t,wn,"has"),u=a?jn(U):i("Map"),t=a?jn(_n):i("WeakMap"),U=a?jn(r):i("Set"),a=i("WeakSet");function j(n){for(var t=b(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=n[t[u]];return e}function An(n){for(var t={},r=b(n),e=0,u=r.length;e<u;e++)t[n[r[e]]]=r[e];return t}function xn(n){var t,r=[];for(t in n)p(n[t])&&r.push(t);return r.sort()}function Sn(f,c){return function(n){var t=arguments.length;if(c&&(n=Object(n)),!(t<2||null==n))for(var r=1;r<t;r++)for(var e=arguments[r],u=f(e),o=u.length,i=0;i<o;i++){var a=u[i];c&&void 0!==n[a]||(n[a]=e[a])}return n}}var On=Sn(c),w=Sn(b),Mn=Sn(c,!0);function En(n){var t;return o(n)?z?z(n):((t=function(){}).prototype=n,n=new t,t.prototype=null,n):{}}function Bn(n){return v(n)?n:[n]}function _(n){return m.toPath(n)}function Nn(n,t){for(var r=t.length,e=0;e<r;e++){if(null==n)return;n=n[t[e]]}return r?n:void 0}function In(n,t,r){n=Nn(n,_(t));return H(n)?r:n}function Tn(n){return n}function A(t){return t=w({},t),function(n){return dn(n,t)}}function kn(t){return t=_(t),function(n){return Nn(n,t)}}function x(u,o,n){if(void 0===o)return u;switch(null==n?3:n){case 1:return function(n){return u.call(o,n)};case 3:return function(n,t,r){return u.call(o,n,t,r)};case 4:return function(n,t,r,e){return u.call(o,n,t,r,e)}}return function(){return u.apply(o,arguments)}}function Dn(n,t,r){return null==n?Tn:p(n)?x(n,t,r):(o(n)&&!v(n)?A:kn)(n)}function Rn(n,t){return Dn(n,t,1/0)}function S(n,t,r){return m.iteratee!==Rn?m.iteratee(n,t):Dn(n,t,r)}function Vn(){}function Fn(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))}m.toPath=Bn,m.iteratee=Rn;var O=Date.now||function(){return(new Date).getTime()};function Pn(t){function r(n){return t[n]}var n="(?:"+b(t).join("|")+")",e=RegExp(n),u=RegExp(n,"g");return function(n){return e.test(n=null==n?"":""+n)?n.replace(u,r):n}}var r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},qn=Pn(r),r=Pn(An(r)),Un=m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Wn=/(.)^/,zn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ln=/\\|'|\r|\n|\u2028|\u2029/g;function $n(n){return"\\"+zn[n]}var Cn=/^\s*(\w|\$)+\s*$/;var Kn=0;function Jn(n,t,r,e,u){return e instanceof t?(e=En(n.prototype),o(t=n.apply(e,u))?t:e):n.apply(r,u)}var M=l(function(u,o){function i(){for(var n=0,t=o.length,r=Array(t),e=0;e<t;e++)r[e]=o[e]===a?arguments[n++]:o[e];for(;n<arguments.length;)r.push(arguments[n++]);return Jn(u,i,this,this,r)}var a=M.placeholder;return i}),Gn=(M.placeholder=m,l(function(t,r,e){var u;if(p(t))return u=l(function(n){return Jn(t,u,r,this,e.concat(n))});throw new TypeError("Bind must be called on a function")})),E=ln(g);function B(n,t,r,e){if(e=e||[],t||0===t){if(t<=0)return e.concat(n)}else t=1/0;for(var u=e.length,o=0,i=g(n);o<i;o++){var a=n[o];if(E(a)&&(v(a)||an(a)))if(1<t)B(a,t-1,r,e),u=e.length;else for(var f=0,c=a.length;f<c;)e[u++]=a[f++];else r||(e[u++]=a)}return e}var Hn=l(function(n,t){var r=(t=B(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var e=t[r];n[e]=Gn(n[e],n)}return n});var Qn=l(function(n,t,r){return setTimeout(function(){return n.apply(null,r)},t)}),Xn=M(Qn,m,1);function Yn(n){return function(){return!n.apply(this,arguments)}}function Zn(n,t){var r;return function(){return 0<--n&&(r=t.apply(this,arguments)),n<=1&&(t=null),r}}var nt=M(Zn,2);function tt(n,t,r){t=S(t,r);for(var e,u=b(n),o=0,i=u.length;o<i;o++)if(t(n[e=u[o]],e,n))return e}function rt(o){return function(n,t,r){t=S(t,r);for(var e=g(n),u=0<o?0:e-1;0<=u&&u<e;u+=o)if(t(n[u],u,n))return u;return-1}}var et=rt(1),ut=rt(-1);function ot(n,t,r,e){for(var u=(r=S(r,e,1))(t),o=0,i=g(n);o<i;){var a=Math.floor((o+i)/2);r(n[a])<u?o=a+1:i=a}return o}function it(o,i,a){return function(n,t,r){var e=0,u=g(n);if("number"==typeof r)0<o?e=0<=r?r:Math.max(r+u,e):u=0<=r?Math.min(r+1,u):r+u+1;else if(a&&r&&u)return n[r=a(n,t)]===t?r:-1;if(t!=t)return 0<=(r=i(f.call(n,e,u),fn))?r+e:-1;for(r=0<o?e:u-1;0<=r&&r<u;r+=o)if(n[r]===t)return r;return-1}}var at=it(1,et,ot),ft=it(-1,ut);function ct(n,t,r){t=(E(n)?et:tt)(n,t,r);if(void 0!==t&&-1!==t)return n[t]}function N(n,t,r){if(t=x(t,r),E(n))for(u=0,o=n.length;u<o;u++)t(n[u],u,n);else for(var e=b(n),u=0,o=e.length;u<o;u++)t(n[e[u]],e[u],n);return n}function I(n,t,r){t=S(t,r);for(var e=!E(n)&&b(n),u=(e||n).length,o=Array(u),i=0;i<u;i++){var a=e?e[i]:i;o[i]=t(n[a],a,n)}return o}function lt(f){return function(n,t,r,e){var u=3<=arguments.length;return function(n,t,r,e){var u=!E(n)&&b(n),o=(u||n).length,i=0<f?0:o-1;for(e||(r=n[u?u[i]:i],i+=f);0<=i&&i<o;i+=f){var a=u?u[i]:i;r=t(r,n[a],a,n)}return r}(n,x(t,e,4),r,u)}}var st=lt(1),pt=lt(-1);function T(n,e,t){var u=[];return e=S(e,t),N(n,function(n,t,r){e(n,t,r)&&u.push(n)}),u}function ht(n,t,r){t=S(t,r);for(var e=!E(n)&&b(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(!t(n[i],i,n))return!1}return!0}function vt(n,t,r){t=S(t,r);for(var e=!E(n)&&b(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(t(n[i],i,n))return!0}return!1}function k(n,t,r,e){return E(n)||(n=j(n)),0<=at(n,t,r="number"==typeof r&&!e?r:0)}var yt=l(function(n,r,e){var u,o;return p(r)?o=r:(r=_(r),u=r.slice(0,-1),r=r[r.length-1]),I(n,function(n){var t=o;if(!t){if(null==(n=u&&u.length?Nn(n,u):n))return;t=n[r]}return null==t?t:t.apply(n,e)})});function dt(n,t){return I(n,kn(t))}function gt(n,e,t){var r,u,o=-1/0,i=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(r=n[a])&&o<r&&(o=r);else e=S(e,t),N(n,function(n,t,r){u=e(n,t,r),(i<u||u===-1/0&&o===-1/0)&&(o=n,i=u)});return o}var bt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function mt(n){return n?v(n)?f.call(n):X(n)?n.match(bt):E(n)?I(n,Tn):j(n):[]}function jt(n,t,r){if(null==t||r)return(n=E(n)?n:j(n))[Fn(n.length-1)];for(var e=mt(n),r=g(e),u=(t=Math.max(Math.min(t,r),0),r-1),o=0;o<t;o++){var i=Fn(o,u),a=e[o];e[o]=e[i],e[i]=a}return e.slice(0,t)}function D(o,t){return function(r,e,n){var u=t?[[],[]]:{};return e=S(e,n),N(r,function(n,t){t=e(n,t,r);o(u,n,t)}),u}}var wt=D(function(n,t,r){y(n,r)?n[r].push(t):n[r]=[t]}),_t=D(function(n,t,r){n[r]=t}),At=D(function(n,t,r){y(n,r)?n[r]++:n[r]=1}),xt=D(function(n,t,r){n[r?0:1].push(t)},!0);function St(n,t,r){return t in r}var Ot=l(function(n,t){var r={},e=t[0];if(null!=n){p(e)?(1<t.length&&(e=x(e,t[1])),t=c(n)):(e=St,t=B(t,!1,!1),n=Object(n));for(var u=0,o=t.length;u<o;u++){var i=t[u],a=n[i];e(a,i,n)&&(r[i]=a)}}return r}),Mt=l(function(n,r){var t,e=r[0];return p(e)?(e=Yn(e),1<r.length&&(t=r[1])):(r=I(B(r,!1,!1),String),e=function(n,t){return!k(r,t)}),Ot(n,e,t)});function Et(n,t,r){return f.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))}function Bt(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[0]:Et(n,n.length-t)}function R(n,t,r){return f.call(n,null==t||r?1:t)}var Nt=l(function(n,t){return t=B(t,!0,!0),T(n,function(n){return!k(t,n)})}),It=l(function(n,t){return Nt(n,t)});function Tt(n,t,r,e){Q(t)||(e=r,r=t,t=!1),null!=r&&(r=S(r,e));for(var u=[],o=[],i=0,a=g(n);i<a;i++){var f=n[i],c=r?r(f,i,n):f;t&&!r?(i&&o===c||u.push(f),o=c):r?k(o,c)||(o.push(c),u.push(f)):k(u,f)||u.push(f)}return u}var kt=l(function(n){return Tt(B(n,!0,!0))});function Dt(n){for(var t=n&&gt(n,g).length||0,r=Array(t),e=0;e<t;e++)r[e]=dt(n,e);return r}var Rt=l(Dt);function Vt(n,t){return n._chain?m(t).chain():t}function Ft(r){return N(xn(r),function(n){var t=m[n]=r[n];m.prototype[n]=function(){var n=[this._wrapped];return P.apply(n,arguments),Vt(this,t.apply(m,n))}}),m}N(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=e[t];m.prototype[t]=function(){var n=this._wrapped;return null!=n&&(r.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0]),Vt(this,n)}}),N(["concat","join","slice"],function(n){var t=e[n];m.prototype[n]=function(){var n=this._wrapped;return Vt(this,n=null!=n?t.apply(n,arguments):n)}});n=Ft({__proto__:null,VERSION:n,restArguments:l,isObject:o,isNull:function(n){return null===n},isUndefined:H,isBoolean:Q,isElement:function(n){return!(!n||1!==n.nodeType)},isString:X,isNumber:Y,isDate:Z,isRegExp:nn,isError:tn,isSymbol:rn,isArrayBuffer:en,isDataView:h,isArray:v,isFunction:p,isArguments:an,isFinite:function(n){return!rn(n)&&C(n)&&!isNaN(parseFloat(n))},isNaN:fn,isTypedArray:vn,isEmpty:function(n){var t;return null==n||("number"==typeof(t=g(n))&&(v(n)||X(n)||an(n))?0===t:0===g(b(n)))},isMatch:dn,isEqual:function(n,t){return mn(n,t)},isMap:u,isWeakMap:t,isSet:U,isWeakSet:a,keys:b,allKeys:c,values:j,pairs:function(n){for(var t=b(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=[t[u],n[t[u]]];return e},invert:An,functions:xn,methods:xn,extend:On,extendOwn:w,assign:w,defaults:Mn,create:function(n,t){return n=En(n),t&&w(n,t),n},clone:function(n){return o(n)?v(n)?n.slice():On({},n):n},tap:function(n,t){return t(n),n},get:In,has:function(n,t){for(var r=(t=_(t)).length,e=0;e<r;e++){var u=t[e];if(!y(n,u))return!1;n=n[u]}return!!r},mapObject:function(n,t,r){t=S(t,r);for(var e=b(n),u=e.length,o={},i=0;i<u;i++){var a=e[i];o[a]=t(n[a],a,n)}return o},identity:Tn,constant:cn,noop:Vn,toPath:Bn,property:kn,propertyOf:function(t){return null==t?Vn:function(n){return In(t,n)}},matcher:A,matches:A,times:function(n,t,r){var e=Array(Math.max(0,n));t=x(t,r,1);for(var u=0;u<n;u++)e[u]=t(u);return e},random:Fn,now:O,escape:qn,unescape:r,templateSettings:Un,template:function(o,n,t){n=Mn({},n=!n&&t?t:n,m.templateSettings);var r,t=RegExp([(n.escape||Wn).source,(n.interpolate||Wn).source,(n.evaluate||Wn).source].join("|")+"|$","g"),i=0,a="__p+='";if(o.replace(t,function(n,t,r,e,u){return a+=o.slice(i,u).replace(Ln,$n),i=u+n.length,t?a+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":e&&(a+="';\n"+e+"\n__p+='"),n}),a+="';\n",t=n.variable){if(!Cn.test(t))throw new Error("variable is not a bare identifier: "+t)}else a="with(obj||{}){\n"+a+"}\n",t="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t,"_",a)}catch(n){throw n.source=a,n}function e(n){return r.call(this,n,m)}return e.source="function("+t+"){\n"+a+"}",e},result:function(n,t,r){var e=(t=_(t)).length;if(!e)return p(r)?r.call(n):r;for(var u=0;u<e;u++){var o=null==n?void 0:n[t[u]];void 0===o&&(o=r,u=e),n=p(o)?o.call(n):o}return n},uniqueId:function(n){var t=++Kn+"";return n?n+t:t},chain:function(n){return(n=m(n))._chain=!0,n},iteratee:Rn,partial:M,bind:Gn,bindAll:Hn,memoize:function(e,u){function o(n){var t=o.cache,r=""+(u?u.apply(this,arguments):n);return y(t,r)||(t[r]=e.apply(this,arguments)),t[r]}return o.cache={},o},delay:Qn,defer:Xn,throttle:function(r,e,u){function o(){l=!1===u.leading?0:O(),i=null,c=r.apply(a,f),i||(a=f=null)}function n(){var n=O(),t=(l||!1!==u.leading||(l=n),e-(n-l));return a=this,f=arguments,t<=0||e<t?(i&&(clearTimeout(i),i=null),l=n,c=r.apply(a,f),i||(a=f=null)):i||!1===u.trailing||(i=setTimeout(o,t)),c}var i,a,f,c,l=0;return u=u||{},n.cancel=function(){clearTimeout(i),l=0,i=a=f=null},n},debounce:function(t,r,e){function u(){var n=O()-i;n<r?o=setTimeout(u,r-n):(o=null,e||(f=t.apply(c,a)),o||(a=c=null))}var o,i,a,f,c,n=l(function(n){return c=this,a=n,i=O(),o||(o=setTimeout(u,r),e&&(f=t.apply(c,a))),f});return n.cancel=function(){clearTimeout(o),o=a=c=null},n},wrap:function(n,t){return M(t,n)},negate:Yn,compose:function(){var r=arguments,e=r.length-1;return function(){for(var n=e,t=r[e].apply(this,arguments);n--;)t=r[n].call(this,t);return t}},after:function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}},before:Zn,once:nt,findKey:tt,findIndex:et,findLastIndex:ut,sortedIndex:ot,indexOf:at,lastIndexOf:ft,find:ct,detect:ct,findWhere:function(n,t){return ct(n,A(t))},each:N,forEach:N,map:I,collect:I,reduce:st,foldl:st,inject:st,reduceRight:pt,foldr:pt,filter:T,select:T,reject:function(n,t,r){return T(n,Yn(S(t)),r)},every:ht,all:ht,some:vt,any:vt,contains:k,includes:k,include:k,invoke:yt,pluck:dt,where:function(n,t){return T(n,A(t))},max:gt,min:function(n,e,t){var r,u,o=1/0,i=1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(r=n[a])&&r<o&&(o=r);else e=S(e,t),N(n,function(n,t,r){((u=e(n,t,r))<i||u===1/0&&o===1/0)&&(o=n,i=u)});return o},shuffle:function(n){return jt(n,1/0)},sample:jt,sortBy:function(n,e,t){var u=0;return e=S(e,t),dt(I(n,function(n,t,r){return{value:n,index:u++,criteria:e(n,t,r)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(e<r||void 0===r)return 1;if(r<e||void 0===e)return-1}return n.index-t.index}),"value")},groupBy:wt,indexBy:_t,countBy:At,partition:xt,toArray:mt,size:function(n){return null==n?0:(E(n)?n:b(n)).length},pick:Ot,omit:Mt,first:Bt,head:Bt,take:Bt,initial:Et,last:function(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[n.length-1]:R(n,Math.max(0,n.length-t))},rest:R,tail:R,drop:R,compact:function(n){return T(n,Boolean)},flatten:function(n,t){return B(n,t,!1)},without:It,uniq:Tt,unique:Tt,union:kt,intersection:function(n){for(var t=[],r=arguments.length,e=0,u=g(n);e<u;e++){var o=n[e];if(!k(t,o)){for(var i=1;i<r&&k(arguments[i],o);i++);i===r&&t.push(o)}}return t},difference:Nt,unzip:Dt,transpose:Dt,zip:Rt,object:function(n,t){for(var r={},e=0,u=g(n);e<u;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},range:function(n,t,r){null==t&&(t=n||0,n=0),r=r||(t<n?-1:1);for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),o=0;o<e;o++,n+=r)u[o]=n;return u},chunk:function(n,t){if(null==t||t<1)return[];for(var r=[],e=0,u=n.length;e<u;)r.push(f.call(n,e,e+=t));return r},mixin:Ft,default:m});return n._=n});
!1!==window._lodash_tmp&&"function"==typeof window._lodash_tmp&&(window.underscore=_.noConflict(),window._=window._lodash_tmp),window.tec=window.tec||{},window.tec.common=window.tec.common||{},window.tec.common.underscoreAfter={};
window.wp=window.wp||{},function(r){var t="undefined"==typeof _wpUtilSettings?{}:_wpUtilSettings;wp.template=_.memoize(function(a){var n,s={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(t){var e=document.querySelector("script#tmpl-"+a);if(e)return(n=n||_.template(r(e).html(),s))(t);throw new Error("Template not found: #tmpl-"+a)}}),wp.ajax={settings:t.ajax||{},post:function(t,e){return wp.ajax.send({data:_.isObject(t)?t:_.extend(e||{},{action:t})})},send:function(n,t){var e,a;return _.isObject(n)?t=n:(t=t||{}).data=_.extend(t.data||{},{action:n}),t=_.defaults(t||{},{type:"POST",url:wp.ajax.settings.url,context:this}),(e=(a=r.Deferred(function(a){t.success&&a.done(t.success),t.error&&a.fail(t.error),delete t.success,delete t.error,a.jqXHR=r.ajax(t).done(function(t){var e;"1"!==t&&1!==t||(t={success:!0}),_.isObject(t)&&!_.isUndefined(t.success)?(e=this,a.done(function(){n&&n.data&&"query-attachments"===n.data.action&&a.jqXHR.hasOwnProperty("getResponseHeader")&&a.jqXHR.getResponseHeader("X-WP-Total")?e.totalAttachments=parseInt(a.jqXHR.getResponseHeader("X-WP-Total"),10):e.totalAttachments=0}),a[t.success?"resolveWith":"rejectWith"](this,[t.data])):a.rejectWith(this,[t])}).fail(function(){a.rejectWith(this,arguments)})})).promise()).abort=function(){return a.jqXHR.abort(),this},e}}}(jQuery);
(()=>{var t={507:(t,e,r)=>{"use strict";r.d(e,{A:()=>A});var n=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var i=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var o=function(t,e){return function(r,o,s,c=10){const l=t[e];if(!i(r))return;if(!n(o))return;if("function"!=typeof s)return void console.error("The hook callback must be a function.");if("number"!=typeof c)return void console.error("If specified, the hook priority must be a number.");const a={callback:s,priority:c,namespace:o};if(l[r]){const t=l[r].handlers;let e;for(e=t.length;e>0&&!(c>=t[e-1].priority);e--);e===t.length?t[e]=a:t.splice(e,0,a),l.__current.forEach((t=>{t.name===r&&t.currentIndex>=e&&t.currentIndex++}))}else l[r]={handlers:[a],runs:0};"hookAdded"!==r&&t.doAction("hookAdded",r,o,s,c)}};var s=function(t,e,r=!1){return function(o,s){const c=t[e];if(!i(o))return;if(!r&&!n(s))return;if(!c[o])return 0;let l=0;if(r)l=c[o].handlers.length,c[o]={runs:c[o].runs,handlers:[]};else{const t=c[o].handlers;for(let e=t.length-1;e>=0;e--)t[e].namespace===s&&(t.splice(e,1),l++,c.__current.forEach((t=>{t.name===o&&t.currentIndex>=e&&t.currentIndex--})))}return"hookRemoved"!==o&&t.doAction("hookRemoved",o,s),l}};var c=function(t,e){return function(r,n){const i=t[e];return void 0!==n?r in i&&i[r].handlers.some((t=>t.namespace===n)):r in i}};var l=function(t,e,r,n){return function(i,...o){const s=t[e];s[i]||(s[i]={handlers:[],runs:0}),s[i].runs++;const c=s[i].handlers;if(!c||!c.length)return r?o[0]:void 0;const l={name:i,currentIndex:0};return(n?async function(){try{s.__current.add(l);let t=r?o[0]:void 0;for(;l.currentIndex<c.length;){const e=c[l.currentIndex];t=await e.callback.apply(null,o),r&&(o[0]=t),l.currentIndex++}return r?t:void 0}finally{s.__current.delete(l)}}:function(){try{s.__current.add(l);let t=r?o[0]:void 0;for(;l.currentIndex<c.length;){t=c[l.currentIndex].callback.apply(null,o),r&&(o[0]=t),l.currentIndex++}return r?t:void 0}finally{s.__current.delete(l)}})()}};var a=function(t,e){return function(){const r=t[e],n=Array.from(r.__current);return n.at(-1)?.name??null}};var d=function(t,e){return function(r){const n=t[e];return void 0===r?n.__current.size>0:Array.from(n.__current).some((t=>t.name===r))}};var u=function(t,e){return function(r){const n=t[e];if(i(r))return n[r]&&n[r].runs?n[r].runs:0}};class h{actions;filters;addAction;addFilter;removeAction;removeFilter;hasAction;hasFilter;removeAllActions;removeAllFilters;doAction;doActionAsync;applyFilters;applyFiltersAsync;currentAction;currentFilter;doingAction;doingFilter;didAction;didFilter;constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=o(this,"actions"),this.addFilter=o(this,"filters"),this.removeAction=s(this,"actions"),this.removeFilter=s(this,"filters"),this.hasAction=c(this,"actions"),this.hasFilter=c(this,"filters"),this.removeAllActions=s(this,"actions",!0),this.removeAllFilters=s(this,"filters",!0),this.doAction=l(this,"actions",!1,!1),this.doActionAsync=l(this,"actions",!1,!0),this.applyFilters=l(this,"filters",!0,!1),this.applyFiltersAsync=l(this,"filters",!0,!0),this.currentAction=a(this,"actions"),this.currentFilter=a(this,"filters"),this.doingAction=d(this,"actions"),this.doingFilter=d(this,"filters"),this.didAction=u(this,"actions"),this.didFilter=u(this,"filters")}}var A=function(){return new h}},8770:()=>{}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{actions:()=>x,addAction:()=>s,addFilter:()=>c,applyFilters:()=>m,applyFiltersAsync:()=>v,createHooks:()=>t.A,currentAction:()=>y,currentFilter:()=>F,defaultHooks:()=>o,didAction:()=>b,didFilter:()=>k,doAction:()=>f,doActionAsync:()=>p,doingAction:()=>_,doingFilter:()=>g,filters:()=>w,hasAction:()=>d,hasFilter:()=>u,removeAction:()=>l,removeAllActions:()=>h,removeAllFilters:()=>A,removeFilter:()=>a});var t=r(507),e=r(8770),i={};for(const t in e)["default","actions","addAction","addFilter","applyFilters","applyFiltersAsync","createHooks","currentAction","currentFilter","defaultHooks","didAction","didFilter","doAction","doActionAsync","doingAction","doingFilter","filters","hasAction","hasFilter","removeAction","removeAllActions","removeAllFilters","removeFilter"].indexOf(t)<0&&(i[t]=()=>e[t]);r.d(n,i);const o=(0,t.A)(),{addAction:s,addFilter:c,removeAction:l,removeFilter:a,hasAction:d,hasFilter:u,removeAllActions:h,removeAllFilters:A,doAction:f,doActionAsync:p,applyFilters:m,applyFiltersAsync:v,currentAction:y,currentFilter:F,doingAction:_,doingFilter:g,didAction:b,didFilter:k,actions:x,filters:w}=o})(),(window.wp=window.wp||{}).hooks=n})();
(()=>{"use strict";var t={d:(n,e)=>{for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},o:(t,n)=>Object.prototype.hasOwnProperty.call(t,n),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{__:()=>F,_n:()=>L,_nx:()=>D,_x:()=>w,createI18n:()=>h,defaultI18n:()=>b,getLocaleData:()=>g,hasTranslation:()=>O,isRTL:()=>P,resetLocaleData:()=>x,setLocaleData:()=>v,sprintf:()=>l,subscribe:()=>m});var e,r,a,i,o=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function l(t,...n){return function(t,...n){var e=0;return Array.isArray(n[0])&&(n=n[0]),t.replace(o,(function(){var t,r,a,i,o;return t=arguments[3],r=arguments[5],"%"===(i=arguments[9])?"%":("*"===(a=arguments[7])&&(a=n[e],e++),void 0===r?(void 0===t&&(t=e+1),e++,o=n[t-1]):n[0]&&"object"==typeof n[0]&&n[0].hasOwnProperty(r)&&(o=n[0][r]),"f"===i?o=parseFloat(o)||0:"d"===i&&(o=parseInt(o)||0),void 0!==a&&("f"===i?o=o.toFixed(a):"s"===i&&(o=o.substr(0,a))),null!=o?o:"")}))}(t,...n)}e={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},r=["(","?"],a={")":["("],":":["?","?:"]},i=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var s={"!":function(t){return!t},"*":function(t,n){return t*n},"/":function(t,n){return t/n},"%":function(t,n){return t%n},"+":function(t,n){return t+n},"-":function(t,n){return t-n},"<":function(t,n){return t<n},"<=":function(t,n){return t<=n},">":function(t,n){return t>n},">=":function(t,n){return t>=n},"==":function(t,n){return t===n},"!=":function(t,n){return t!==n},"&&":function(t,n){return t&&n},"||":function(t,n){return t||n},"?:":function(t,n,e){if(t)throw n;return e}};function u(t){var n=function(t){for(var n,o,l,s,u=[],d=[];n=t.match(i);){for(o=n[0],(l=t.substr(0,n.index).trim())&&u.push(l);s=d.pop();){if(a[o]){if(a[o][0]===s){o=a[o][1]||o;break}}else if(r.indexOf(s)>=0||e[s]<e[o]){d.push(s);break}u.push(s)}a[o]||d.push(o),t=t.substr(n.index+o.length)}return(t=t.trim())&&u.push(t),u.concat(d.reverse())}(t);return function(t){return function(t,n){var e,r,a,i,o,l,u=[];for(e=0;e<t.length;e++){if(o=t[e],i=s[o]){for(r=i.length,a=Array(r);r--;)a[r]=u.pop();try{l=i.apply(null,a)}catch(t){return t}}else l=n.hasOwnProperty(o)?n[o]:+o;u.push(l)}return u[0]}(n,t)}}var d={contextDelimiter:"",onMissingKey:null};function c(t,n){var e;for(e in this.data=t,this.pluralForms={},this.options={},d)this.options[e]=void 0!==n&&e in n?n[e]:d[e]}c.prototype.getPluralForm=function(t,n){var e,r,a,i=this.pluralForms[t];return i||("function"!=typeof(a=(e=this.data[t][""])["Plural-Forms"]||e["plural-forms"]||e.plural_forms)&&(r=function(t){var n,e,r;for(n=t.split(";"),e=0;e<n.length;e++)if(0===(r=n[e].trim()).indexOf("plural="))return r.substr(7)}(e["Plural-Forms"]||e["plural-forms"]||e.plural_forms),a=function(t){var n=u(t);return function(t){return+n({n:t})}}(r)),i=this.pluralForms[t]=a),i(n)},c.prototype.dcnpgettext=function(t,n,e,r,a){var i,o,l;return i=void 0===a?0:this.getPluralForm(t,a),o=e,n&&(o=n+this.options.contextDelimiter+e),(l=this.data[t][o])&&l[i]?l[i]:(this.options.onMissingKey&&this.options.onMissingKey(e,t),0===i?e:r)};const p={plural_forms:t=>1===t?0:1},f=/^i18n\.(n?gettext|has_translation)(_|$)/,h=(t,n,e)=>{const r=new c({}),a=new Set,i=()=>{a.forEach((t=>t()))},o=(t,n="default")=>{r.data[n]={...r.data[n],...t},r.data[n][""]={...p,...r.data[n]?.[""]},delete r.pluralForms[n]},l=(t,n)=>{o(t,n),i()},s=(t="default",n,e,a,i)=>(r.data[t]||o(void 0,t),r.dcnpgettext(t,n,e,a,i)),u=t=>t||"default",d=(t,n,r)=>{let a=s(r,n,t);return e?(a=e.applyFilters("i18n.gettext_with_context",a,t,n,r),e.applyFilters("i18n.gettext_with_context_"+u(r),a,t,n,r)):a};if(t&&l(t,n),e){const t=t=>{f.test(t)&&i()};e.addAction("hookAdded","core/i18n",t),e.addAction("hookRemoved","core/i18n",t)}return{getLocaleData:(t="default")=>r.data[t],setLocaleData:l,addLocaleData:(t,n="default")=>{r.data[n]={...r.data[n],...t,"":{...p,...r.data[n]?.[""],...t?.[""]}},delete r.pluralForms[n],i()},resetLocaleData:(t,n)=>{r.data={},r.pluralForms={},l(t,n)},subscribe:t=>(a.add(t),()=>a.delete(t)),__:(t,n)=>{let r=s(n,void 0,t);return e?(r=e.applyFilters("i18n.gettext",r,t,n),e.applyFilters("i18n.gettext_"+u(n),r,t,n)):r},_x:d,_n:(t,n,r,a)=>{let i=s(a,void 0,t,n,r);return e?(i=e.applyFilters("i18n.ngettext",i,t,n,r,a),e.applyFilters("i18n.ngettext_"+u(a),i,t,n,r,a)):i},_nx:(t,n,r,a,i)=>{let o=s(i,a,t,n,r);return e?(o=e.applyFilters("i18n.ngettext_with_context",o,t,n,r,a,i),e.applyFilters("i18n.ngettext_with_context_"+u(i),o,t,n,r,a,i)):o},isRTL:()=>"rtl"===d("ltr","text direction"),hasTranslation:(t,n,a)=>{const i=n?n+""+t:t;let o=!!r.data?.[a??"default"]?.[i];return e&&(o=e.applyFilters("i18n.has_translation",o,t,n,a),o=e.applyFilters("i18n.has_translation_"+u(a),o,t,n,a)),o}}},_=window.wp.hooks,y=h(void 0,void 0,_.defaultHooks);var b=y;const g=y.getLocaleData.bind(y),v=y.setLocaleData.bind(y),x=y.resetLocaleData.bind(y),m=y.subscribe.bind(y),F=y.__.bind(y),w=y._x.bind(y),L=y._n.bind(y),D=y._nx.bind(y),P=y.isRTL.bind(y),O=y.hasTranslation.bind(y);(window.wp=window.wp||{}).i18n=n})();