1/* Request ID: 199212e053607a6a5bae030706546789_1777795216 (05/03/2026 4:05am) (tdAxDsIwDAXQq3AASE6BmDgDchOrTuXEwUlbensyICohtsDm5T9/25JEtBWUsUp6D4ZXB2ycRJvngYO7UY1sOSy4EjDa4jTkWiyvc7DTfUbdWuZEsqAO8jBTOR7sb+0C5R8sOCfqQwN68MzzGFJ5uTt/ERkZr5DLOQ7ou3ZUwpZrbfdbMmwRU+17TKWgPoPW7aM+QSFHkEY0MfT950v3FsDkQZv7BA==) */ 2 3 4 5/* Resource ID: 8bfe62f48a0655ddf5ab4822678 (jquery.lw-hoverbox.js, minified by uglifyjs) (12/07/2025 4:03am) (A:11126, G:5940, K:5940) */ 6 7(()=>{const l=(typeof livewhale!=="undefined"&&livewhale!==null?livewhale.jQuery:undefined)||window.jQuery;l.widget("lw.hoverbox",{options:{position:"top",width:"auto",height:"auto",autoOpen:false,maxWidth:null,maxHeight:null,html:null,text:null,zIndex:null,distance:2,xpos:null,ypos:null,pointer_width:11,title:"Hoverbox"},_create(){this.$body=l("body");this.element.addClass("lwui-widget lwui-hoverbox");if(this.options.autoOpen){this.open()}else{this._bindOpenHandler()}return this},positionLeft(){const t=this.element;const e=this.options;const i=this.$hoverbox.outerWidth();const o=this.$hoverbox.outerHeight();if(!e.ypos&&i+e.pointer_width+e.distance>t.offset().left){this.positionTop();return this}const s=t.offset().left-i-e.pointer_width-e.distance;const n=e.ypos?e.ypos-o/2:t.offset().top-o/2+t.outerHeight()/2;this.$hoverbox.addClass("lw_left").css({top:n,left:s});return this},positionRight(){const t=this.element;const e=this.options;const i=this.$hoverbox.outerWidth();const o=this.$hoverbox.outerHeight();if(!e.ypos&&i+e.pointer_width+e.distance>l(window).width()-t.offset().left){this.positionTop();return this}const s=t.offset().left+t.outerWidth()+e.pointer_width+e.distance;const n=e.ypos?e.ypos-o/2:t.offset().top-o/2+t.outerHeight()/2;this.$hoverbox.addClass("lw_right").css({top:n,left:s});return this},positionTop(){let t;const e=this.element;const i=this.options;let o=this.$hoverbox.outerWidth();let s=this.$hoverbox.outerHeight();let n=e.offset().top-i.pointer_width-s-i.distance;const h=l(window).width();if(s+i.pointer_width+i.distance>e.offset().top){this.positionBottom();return this}if(o>=h-20){o=h-20;t=10;this.$hoverbox.width(o);s=this.$hoverbox.outerHeight();n=e.offset().top-i.pointer_width-s-i.distance;if(s+i.pointer_width+i.distance>e.offset().top){this.positionBottom();return this}}else{t=i.xpos?i.xpos-o/2:e.offset().left-o/2+e.outerWidth()/2;if(t<10){t=10}}this.$hoverbox.addClass("lw_top").css("top",n);if(t+o>h){this.$hoverbox.css({right:"10px",left:"auto"})}else{this.$hoverbox.css("left",t)}this.positionArrow();return this},positionBottom(){let t;const e=this.element;const i=this.options;let o=this.$hoverbox.outerWidth();const s=e.offset().top+e.outerHeight()+i.pointer_width+i.distance;const n=l(window).width();if(o>=n){o=n-20;t=10;this.$hoverbox.width(o)}else{t=i.xpos?i.xpos-o/2:e.offset().left-o/2+e.outerWidth()/2;if(t<10){t=10}}this.$hoverbox.addClass("lw_bottom").css("top",s);if(t+o>n){this.$hoverbox.css("right",10)}else{this.$hoverbox.css("left",t)}this.positionArrow();return this},position(){switch(this.options.position){case"bottom":this.positionBottom();break;case"left":this.positionLeft();break;case"right":this.positionRight();break;default:this.positionTop();break}return this},positionArrow(){const t=this.element;const e=parseInt(this.$hoverbox.css("left"),10);const i=t.offset().left+t.outerWidth()/2;return this.$hoverbox.find(".lw_arrow").css("left",i-e-this.options.pointer_width/2)},append(t){this.$content.append(t);return this},html(t){this.$content.html(t);return this},_initUI(){const t=this.options;this.$content=l("<div/>").addClass("lw_hoverbox_content").attr({role:"dialog","aria-modal":true,"aria-label":this.options.title,tabindex:-1});this.$pointer=l("<div/>").addClass("lw_arrow");this.$hoverbox=l("<div/>",{class:"lw_hoverbox",width:t.width,height:t.height,css:{display:"none"}}).append(this.$pointer).append(this.$content).appendTo(this.$body);if(t.maxWidth){this.$hoverbox.css("max-width",parseInt(t.maxWidth,10)+"px")}if(t.maxHeight){this.$hoverbox.css("max-height",parseInt(t.maxHeight,10)+"px")}if(t.zIndex){this.$hoverbox.css("z-index",t.zIndex)}if(t.html){this.$content.html(t.html)}this._ui_initialize=true;return this},_bindCloseHandler(){const i=this;this.close_handler=function(t){t.preventDefault();const e=l(t.target);if(e.closest(".lw_hoverbox").length){return false}i.close();return true};this.$content.focusout(function(){setTimeout(function(){if(!l(document.activeElement).closest(".lw_hoverbox_content").length){i.close()}},5);return true});this.$content.on("keyup",function(t){if(t.keyCode===27){i.close()}});this.$body.on("click",this.close_handler);return this},_bindOpenHandler(){const e=this;this.open_handler=function(t){t.preventDefault();t.stopPropagation();e.$body.trigger("click");e.open();return true};this.element.one("click",this.open_handler);return this},open(){if(!this._ui_initialized){this._initUI()}this.last_focus=document.activeElement;this._trigger("beforeOpen",null,this);this.position();this.$hoverbox.show();this.$content.trigger("focus");this.trapKeyboardFocus();this._bindCloseHandler();this._trigger("open",null,this);return this},trapKeyboardFocus(){this.focusable_elements=this.$content.find('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled]), li[tabindex=0]').not(":hidden");this.first_focusable_element=this.focusable_elements[0];this.last_focusable_element=this.focusable_elements[this.focusable_elements.length-1];this.$content.off("keydown").on("keydown",t=>{if(!(t.key==="Tab"||t.keyCode===9)){return}if(t.shiftKey){if(document.activeElement===this.first_focusable_element){this.last_focusable_element.focus();t.preventDefault()}}else{if(document.activeElement===this.last_focusable_element){this.first_focusable_element.focus();t.preventDefault()}}})},close(){this.$hoverbox.hide();if(!this.options.autoOpen){this._bindOpenHandler()}this.$content.off();
7this.$body.off("click",this.close_handler);if(this.last_focus){this.last_focus.focus()}this._trigger("close",null,this);return this},_destroy(t){this.element.removeClass("lwui-widget lwui-hoverbox");if(this.$hoverbox){this.$hoverbox.remove()}if(this.close_handler){this.$body.off("click",this.close_handler)}if(this.open_handler){this.element.off("click",this.open_handler)}}})})(); 8 9/* Resource ID: 83bea73ebea9022dcbd97e5065d (jquery.lw-sas.js, minified by uglifyjs) (10/31/2025 11:07pm) (A:3127, G:1668, K:1668) */ 10 11(()=>{const i=(typeof livewhale!=="undefined"&&livewhale!==null?livewhale.jQuery:undefined)||window.jQuery;i.widget("lw.saveandshare",{options:{host:""},_create(){const e=this.element;const a=this;e.on("click",e=>{e.preventDefault();const t=this.$overlay=i('<div id="lw_email_overlay"><div class="lw_spinner"/></div>').overlay({closeSelector:".lw_cancel a",title:"Share this link"});t.on("submit","#lw_email",e=>{e.preventDefault();const t=i(e.currentTarget);const a=t.find(".lw_captcha");if(a.length&&a.data("lwCaptcha")){a.captcha("execute",()=>{this.submit(t)})}else{this.submit(t)}return true});a.showForm()})},showForm(){const e=encodeURIComponent(window.location.href);let t="";if(livewhale.lwCalendar){t=livewhale.lib.htmlEncode(livewhale.lwCalendar.calView.getView().getEventData().title)}else if(i('meta[name="og:title"]').length){t=i('meta[name="og:title"]').attr("content")}i.ajax({url:this.options.host+"/livewhale/nocache.php?livewhale=ajax&function=getSASEmailForm&url="+e,success:e=>{this.$overlay.overlay("html",e.html).find(".lw_captcha").captcha({attachSubmitHandler:false}).end().find("#url").val(window.location.href).end().find("#page_title").val(t)},dataType:"json"});return false},submit(e){const t=this.$overlay;const a=i('<div class="lw_spinner"/>').appendTo(t);const l=this.options.host+"/livewhale/nocache.php?livewhale=ajax&function=sendSASEmail";i.post(l,e.serialize(),e=>{if(e.error){livewhale.prompt("Form Error",e.error,"failure",{Okay:()=>{t.find(".lw_captcha").captcha("refresh");a.remove()}})}else{livewhale.prompt("Success","Your email has been sent. Thanks for sharing!","success",{Okay:()=>{t.overlay("close")}})}},"json")}})})(); 12 13/* Resource ID: fa930a8999850cdc7218d091f98 (jquery.lw-accordion.js, minified by uglifyjs) (10/31/2025 11:07pm) (A:4076, G:2244, K:2244) */ 14 15(()=>{const d=(typeof livewhale!=="undefined"&&livewhale!==null?livewhale.jQuery:undefined)||window.jQuery;d.widget("lw.accordion",{options:{animationSpeed:200},_create(){const t=this.element;const n=this.$blocks=t.find("> .lw_accordion_block");const o=this.$headers=n.find("> .lw_accordion_block_title");const i=this.$btns=o.find("> a, > button");const e=this.$content=n.find("> .lw_accordion_block_content");i.attr("aria-expanded","false");e.attr("aria-hidden","true");e.find("a, input, button").attr("tabindex","-1");this.addHandlers();this.openIfUrlHashInContent()},addHandlers(){const t=this.element;const c=this.options;const l=this;t.off("click","> .lw_accordion_block > .lw_accordion_block_title > a, > .lw_accordion_block > .lw_accordion_block_title > button");t.on("click","> .lw_accordion_block > .lw_accordion_block_title > a, > .lw_accordion_block > .lw_accordion_block_title > button",function(t){t.preventDefault();const n=d(this);const o=n.closest(".lw_accordion_block");const i=o.find("> .lw_accordion_block_content");const e=n.closest(".lw_accordion");if(o.hasClass("is-active")){o.removeClass("is-active");n.attr("aria-expanded","false");i.attr("aria-hidden","true").slideUp(c.animationSpeed);i.find("a, input, button").attr("tabindex","-1")}else{o.addClass("is-active");n.attr("aria-expanded","true");i.attr("aria-hidden","false").slideDown(c.animationSpeed);i.find("a, input, button").attr("tabindex","0")}if(!e.hasClass("no_collapse")){l.$blocks.not(o).removeClass("is-active");l.$btns.not(n).attr("aria-expanded","false");const a=l.$content.not(i);a.attr("aria-hidden","true").slideUp(c.animationSpeed);a.find("a, input, button").attr("tabindex","-1")}setTimeout(()=>{let t=o.find(".lw_accordion_block_title").get(0);let n=t.getBoundingClientRect();if(n.top<0){t.scrollIntoView({block:"center"})}},200)})},openIfUrlHashInContent(){if(!window.location.hash){return}if(!/^#[A-Za-z]+[\w\-\:\.]*$/.test(window.location.hash)){return}const t=this.$content.find(window.location.hash);const n=t.length?t.closest(".lw_accordion_block").find(".lw_accordion_block_t
15itle"):this.$headers.find('a[href="'+window.location.hash+'"]');if(n.length){n.find("button").trigger("click")}}});d.widget.bridge("lw_accordion",d.lw.accordion)})(); 16 17/* Resource ID: 34522dbd00d00399214c1d8429c (jquery.lwGoogleMapsEmbed.js, minified by uglifyjs) (03/08/2026 4:01am) (A:2003, G:1113, K:1113) */ 18 19(function(s){s.widget("lw.lwGoogleMapsEmbed",{options:{api_key:null,is_interactive:false,latitude:null,longitude:null,address:null,title:"Map of location",width:null,height:null,aspect_ratio:"1:1",zoom:null},_create:function(){var e=this.element;var t=this.options;var i=s('<iframe class="lw_map_iframe" tabindex="-1" frameborder="0" style="border:0" title="'+t.title+'" allowfullscreen></iframe>');if(!t.api_key||!t.address&&!(t.latitude&&t.longitude)){return false}var a=t.address?t.address:t.latitude+","+t.longitude;var l="https://www.google.com/maps/embed/v1/place"+"?key="+t.api_key+"&q="+encodeURIComponent(a);if(t.zoom){l+="&zoom="+t.zoom}i.attr("src",l);if(t.width&&t.height){t.width=""+t.width;i.attr("width",t.width.replace("/px/",""));t.height=""+t.height;i.attr("height",t.height.replace("/px/",""))}else{i=s('<div class="lw_responsive_iframe_wrapper"></div>').append(i)}if(typeof t.aspect_ratio==="string"){var r=t.aspect_ratio.split(":");if(r.length===2&&s.isNumeric(r[0])&&s.isNumeric(r[1])){var o=r[1]/r[0];i.css("padding-top",(o*100).toFixed(2)+"%")}}s(e).html(i)}})})(livewhale.jQuery||jQuery); 20 21/* Resource ID: f3ec3e42ae7d6d707775c660dfa (payments.js, minified by uglifyjs) (11/06/2025 7:03pm) (A:18241, G:9184, K:9184) */ 22 23(function(x){livewhale.payments={};var S=function(e,i){e.parent(".lw_payments_registration_form").find(".lw_payments_charge_error").html('<span class="lw_sr_only">RSVP Errors:</span><ul><li>'+(typeof i==="string"?i:i.join("</li><li>"))+"</li></ul>").show()};var g=function(e,i){var a=true;var t=e.find(".lw_payments_field_gateway");var l=e.find(".lw_payments_field_gid");var n=e.find(".lw_payments_field_description");var r=e.find(".lw_payments_field_total");var s=e.find(".lw_payments_field_payment_options");var o=e.find(".lw_payments_field_quantity");var _=e.find(".lw_payments_field_first_name");var d=e.find(".lw_payments_field_last_name");var f=e.find(".lw_payments_field_email_address");var h=e.find(".lw_payments_field_phone");var p=e.find(".lw_payments_field_card_number");var m=e.find(".lw_payments_field_expiration_month");var w=e.find(".lw_payments_field_expiration_year");var c=e.find(".lw_payments_charge_method");var v=e.find(".lw_payments_field_zip_code");var u=e.find(".lw_payments_is_required");var y=[];if(!l.length||!l.val()){y.push("The group id field is required.")}if(!n.length||!n.val()){y.push("The description field is required.")}if(!r.length){y.push("The total field is required.")}if(c.length&&!c.val()){y.push("You must choose a payment method.")}if(!s.length||s.val()!=="1"&&s.val()!=="2"&&s.val()!=="3"&&s.val()!=="4"&&s.val()!=="5"){y.push("The payment options field is required.")}if(u.length){var g=false;x.each(u,function(){if(x(this).val()===""){g=true}});if(g){y.push("You must fill out all required fields.")}}if(0===y.length){if(!o.length||!o.val().match(/^[0-9]+$/)){y.push("You must enter a quantity.")}if(!_.length||!d.length||!_.val()||!d.val()){y.push("You must enter a first and last name.")}}if(0===y.length&&(s.val()==="1"||s.val()==="3")&&(!c.length||c.val()==="online")){if(!p.length||!p.val().match(/^[0-9]{15,16}$/)){y.push("You must enter a valid credit card number.")}if(!m.length||!w.length||!m.val().match(/^[0-9]{2}$/)||!w.val().match(/^[0-9]{4}$/)){y.push("You must enter a valid credit card expiration.")}if(v.length&&v.val()&&!v.val().match(/^[0-9\-]+$/)){y.push("Zip code is not in a valid format.")}}if(typeof livewhale.custom_rsvp_validation==="function"){var b=livewhale.custom_rsvp_validation();if(x.isArray(b)&&b.length){y=y.concat(y,b)}}if(y.length){S(e,y);return false}return true};livewhale.payments.init=function(f){var e={},i=this;x(".lw_payments").each(function(){var r=x(this),e=r.find(".lw_payments_field_gateway"),i=r.find(".lw_payments_field_gid"),a=r.find(".lw_payments_field_description"),t=r.find(".lw_payments_field_payment_options"),l,n,s,o,_;if(e.length&&i.length&&a.length&&t.length&&i.val()&&a.val()&&t.val()){if(window.location.protocol!=="https:"&&parseInt(t.val(),10)!==4){x.ajax({url:"/livewhale/api",method:"GET",dataType:"JSON",async:false,success:function(e){if(e.has_ssl){window.location="https://"+window.location.hostname+window.location.pathname+window.location.hash}return true}})}var d=livewhale.liveurl_dir+"/payments/form";if(livewhale.is_remote){d=livewhale.remote_host+d}
23x.ajax({url:d,data:r.serialize(),method:"POST",dataType:"JSON",success:function(e){var i,a,t,l;if(e.error||!e.html){return false}if(f&&e.has_ssl&&!window.location.origin.match(/^https/i)){window.location="https://"+window.location.hostname+window.location.pathname+window.location.search}var n=livewhale.liveurl_dir+"/resource/css/livewhale/theme/core/styles/payments.css";if(livewhale.is_remote){n=livewhale.remote_host+n}e.stylesheets.push(n);if(e.stylesheets&&e.stylesheets.length){x.each(e.stylesheets,function(e,i){if(livewhale.remote_host&&i.charAt(0)==="/"){i=livewhale.remote_host+i}livewhale.lib.loadCSS(i)})}if(e.scripts&&e.scripts.length){x.each(e.scripts,function(e,i){if(livewhale.remote_host&&i.charAt(0)==="/"){i=livewhale.remote_host+i}livewhale.lib.loadJS(i)})}a=r.siblings(".lw_widget_type_forms_inline");i=x('<div class="lw_payments_registration_form">'+e.html+"</div>");i.find("form :input").eq(0).before('<input type="text" name="ff-fix1" value="" class="lw_hidden" aria-hidden="true" aria-label="hidden FireFox fix 1"/><input type="password" name="ff-fix2" value="" class="lw_hidden" aria-hidden="true" aria-label="hidden FireFox fix 2"/>');r.replaceWith(i);i.append(a);if(a.length&&a.hasClass("lw_hidden")&&a.siblings().eq(0).prop("tagName")==="H3"){a.find("input[type=submit]").hide();t=r.find(".lw_payments_charge_error");a.removeClass("lw_hidden");t.after(a);l=a.parent();l.find(".lw_payments_charge").addClass("has_additional_form");a.insertAfter("table#lw_payments_table")}x(".lw_captcha").captcha();x("body").trigger("paymentFormLoad.lw")}})}});x("body").off("change",".lw_payments_charge_method").on("change",".lw_payments_charge_method",function(e){if(x(this).val()==="online"){x(this).parents("form").find(".lw_payments_for_check").addClass("lw_hidden");x(this).parents("form").find(".lw_payments_for_online").removeClass("lw_hidden")}else if(x(this).val()==="check"){x(this).parents("form").find(".lw_payments_for_online").addClass("lw_hidden");x(this).parents("form").find(".lw_payments_for_check").removeClass("lw_hidden")}else{x(this).parents("form").find(".lw_payments_for_online").addClass("lw_hidden");x(this).parents("form").find(".lw_payments_for_check").addClass("lw_hidden")}});var t=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"});x("body").off("keyup change",".lw_payments_field_quantity").on("keyup change",".lw_payments_field_quantity",function(e){if(x(this).val().match(/[0-9]+/)){var i=parseFloat(x(this).parents("form").find(".lw_payments_field_total").val());var a=Math.round(i*parseInt(x(this).val())*Math.pow(10,2))/Math.pow(10,2);if(a.toString().match(/NaN/))a=0;x(this).parents("form").find(".lw_payments_charge_price").text(t.format(a))}});x("body").off("click",".lw_payments_charge_submit").on("click",".lw_payments_charge_submit",function(e){x(this).prop("disabled",true);var h=x(this),p=h.parents("form"),m=p.closest(".lw_payments_registration_form"),i=p.find(".lw_payments_field_payment_options"),a=p.find(".lw_payments_field_total"),t=p.find(".lw_payments_charge_method"),l=p.parent(".lw_payments_registration_form").find(".lw_payments_charge_error").hide(),n=null,r=true;x("body").trigger("paymentFormBeforeSubmit.lw");if(i.length&&(i.val()==="1"||i.val()==="3")&&(!t.length||t.val()==="online")&&a.length&&a.val()){r=window.confirm("Click OK to proceed with your order. Your credit card will be charged "+x(this).parents("form").find(".lw_payments_charge_price").text()+".")}if(!r){x(this).prop("disabled",false);return}var w=h.text(),s=p.find(".lw_payments_field_gateway"),o=p.find(".lw_payments_field_gid"),_=p.find(".lw_payments_field_description"),d=p.find(".lw_payments_field_type"),f=p.find(".lw_payments_field_id");h.text("Please wait...");if(!g(p)){h.prop("disabled",false);h.text(w);return false}var c=s.val()?s.val()+"Validate":"";var v=(new Date).getTime()/1e3;var u=function(){var e=false,n,i,a,r,s,o,_,t,l;if(p.hasClass("has_additional_form")){n=p.parent(".lw_payments_registration_form").find(".lw_widget_type_forms_inline form");if(n.length){e=true}}if(e){i=n.find('input[name="lw_form_id"]').val();r="?livewhale=ajax&function=handleFormsSubmission&id="+i+"&from_rsvp=1";s=n.serialize();o=livewhale.liveurl_dir+"/payments/charge";_=p.serialize();if(livewhale.remote_host){r=livewhale.remote_host+"/livewhale/frontend.php"+r;o=livewhale.remote_host+o}else{r=livewhale.page+r}t=x.post(r,s+"&is_validation=1",null,"json");l=x.post(o,_+"&is_validation=1",null,"json");x.when(t,l).done(function(e,i){var a,t,l="";if(e[0].error||i[0].error){errors=[];if(e[0].error)errors.push(e[0].error);if(i[0].error)errors.push(i[0].error);x(".lw_captcha").captcha("refresh");S(p,errors);
23h.prop("disabled",false);h.text(w)}else{x.post(r,s,function(e){if(e.error)return false;x.post(o,_+(e.submission_id?"&associate_form_submission="+e.submission_id:""),function(e){n.remove();if(!e.error&&e.html){p.parent().find(".lw_payments_charge_header").remove();x(".lw_events_registration_instructions").hide();p.replaceWith(e.html);x("body").trigger("paymentFormSuccess.lw")}else if(e.error){S(p,e.error);h.prop("disabled",false);h.text(w)}x("html,body").scrollTop(m.offset().top)},"json")},"json")}})}else{a=livewhale.liveurl_dir+"/payments/charge";if(livewhale.remote_host){a=livewhale.remote_host+a}var d=[];var f={lw_payments_field_card_number:true,lw_payments_field_cvc_number:true,lw_payments_field_expiration_month:true,lw_payments_field_expiration_year:true};x.each(p.serializeArray(),function(e,i){if(!f[i.name]){d.push(i)}});x.post(a,d,function(e){if(!e.error&&e.html){p.parent().find(".lw_payments_charge_header").remove();x(".lw_events_registration_instructions").hide();p.replaceWith(e.html);x("body").trigger("paymentFormSuccess.lw")}else if(e.error){x(".lw_captcha").captcha("refresh");S(p,e.error);h.prop("disabled",false);h.text(w)}x("html,body").scrollTop(m.offset().top)},"json")}};var y=function(){h.prop("disabled",false);h.text(w)};if(i.length&&(i.val()==="1"||i.val()==="3")&&(!t.length||t.val()==="online")&&c&&typeof window[c]==="function"){window[c](p,u,y)}else{u()}})}})(livewhale.jQuery||window.jQuery,window.jQuery); 24 25/* Resource ID: f214a062a98621885a7bba296d7 (jquery.hashchange.min.js) (09/26/2023 6:53pm) (A:1299, K:1299) */ 26 27/* 28 * jQuery hashchange event - v1.3 - 7/21/2010 29 * http://benalman.com/projects/jquery-hashchange-plugin/ 30 * 31 * Copyright (c) 2010 "Cowboy" Ben Alman 32 * Dual licensed under the MIT and GPL licenses. 33 * http://benalman.com/about/license/ 34 */ 35(function($,e,b){var c="hashchange",h=document,f,g=$.event.special,i=h.documentMode,d="on"+c in e&&(i===b||i>7);function a(j){j=j||location.href;return"#"+j.replace(/^[^#]*#?(.*)$/,"$1")}$.fn[c]=function(j){return j?this.bind(c,j):this.trigger(c)};$.fn[c].delay=50;g[c]=$.extend(g[c],{setup:function(){if(d){return false}$(f.start)},teardown:function(){if(d){return false}$(f.stop)}});f=(function(){var j={},m=a(),k=function(q){return q},l=k,o=k;j.start=function(){p||n()};j.stop=function(){p&&clearTimeout(p);p=b};function n(){var r=a(),q=o(m);if(r!==m){l(m=r,q);$(e).trigger(c)}else{if(q!==m){location.href=location.href.replace(/#.*/,"")+q}}p=setTimeout(n,$.fn[c].delay)}$.browser.msie&&!d&&(function(){var q,r;j.start=function(){if(!q){r=$.fn[c].src;r=r&&r+a();q=$('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){r||l(a());n()}).attr("src",r||"javascript:0").insertAfter("body")[0].contentWindow;h.onpropertychange=function(){try{if(event.propertyName==="title"){q.document.title=h.title}}catch(s){}}}};j.stop=k;o=function(){return a(q.location.href)};l=function(v,s){var u=q.document,t=$.fn[c].domain;if(v!==s){u.title=h.title;u.open();t&&u.write('<script>document.domain="'+t+'"<\/script>');u.close();q.location.hash=v}}})();return j})()})(livewhale.jQuery||jQuery,this); 36 37/* Resource ID: 2220c3ec7ce5b07cfc0774dfe6f (calendar.js, minified by uglifyjs) (05/03/2026 4:05am) (A:202435, G:111484, K:111484) */ 38 39if(!Date.prototype.toISOString){(function(){function e(e){if(e<10){return"0"+e}return e}Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+e(this.getUTCMonth()+1)+"-"+e(this.getUTCDate())+"T"+e(this.getUTCHours())+":"+e(this.getUTCMinutes())+":"+e(this.getUTCSeconds())+"."+(this.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}})()}(function(z,A){var j=window.livewhale||{},U=z("body"),_=z("#lw_cal"),r=j.logged_in&&j.has_ssl?"https:":window.location.protocol,e=r+"//"+window.location.host+livewhale.page,L=z("#lw_cal_js_templates");if(!j.lib)j.lib={};j.lwCalendar={};A.templateSettings={evaluate:/\{\[(.+?)\]\}/g,interpolate:/\{\{(.+?)\}\}/g};var t={getWidgetSyntaxFromArgObject:function(e){var i='<widget type="events_calendar">';e=e||{};z.each(e,function(a,e){if(z.isArray(e)){z.each(e,function(e,t){i+='<arg id="'+a+'">'+t+"</arg>"})}else{i+='<arg id="'+a+'">'+e+"</arg>"}});i+="</widget>";return encodeURIComponent(i)}};function a(){var a={default_view:"day",default_minical_view:"day",month_view_day_limit:4,week_start_offset:0,exclude_view:[],show_view_menu:true,show_sidebar:true,show_dynamic_group_menu:false,show_static_group_menu:false,show_tags:false,show_categories:true,month_view_only:false,webcal_feed_links:true,search_all_events_only:true,enable_search_view:false,search_all_groups:false,ampm_with_dots:false,use_modular_templates:true,hide_local_timezone:j.disable_timezones?true:false,disable_timezone:j.disable_timezones?true:false,sidebar:"default",feed_builder_filters:["category","audie
39nce","campus","group","tag"],placeholder:"",enable_home_view:false,thumb_width:80,thumb_height:80,location_char_limit:50,modular:false,feed_base_path:null,tag_mode:"and",host:r+"//"+window.location.hostname,event_view_name:"event",valid_views:["day","week","month","all","event","feed_builder","search"]};var e=z.isPlainObject(j.calendar_widget_args)?j.calendar_widget_args:{};var i=A.extend({},a,e);if(i.valid_views!=="event"){i.valid_views.push(i.event_view_name)}if(i.enable_home_view){i.valid_views.push("home")}if(!A.includes(i.valid_views,i.default_view)){i.default_view="day"}var t=["show_view_menu","show_sidebar","month_view_only","show_static_group_menu","show_dynamic_group_menu","show_tags","show_categories","disable_timezone","webcal_feed_links","hide_local_timezone","search_all_events_only","enable_search_view","search_all_groups","mini_cal_heat_map","enable_home_view","modular","use_modular_templates"];var n=["default_view","sidebar","placeholder","tag_mode"];A.each(n,function(e){var t=i[e];if(z.isArray(t)){if(t.length){i[e]=t[t.length-1]}else{i[e]=typeof a[e]==="string"?a[e]:""}}});var s=function(e){return"false"===e||"False"===e?false:!!e};A.each(t,function(e){if(i[e]&&!A.isBoolean(i[e]))i[e]=s(i[e])});i.month_view_day_limit=parseInt(i.month_view_day_limit,10);if(typeof i.exclude_view==="string")i.exclude_view=[i.exclude_view];if(true===i.month_view_only){i.default_view="month";i.exclude_view=["day","week","all"];i.show_view_menu=i.show_sidebar=false}return i}var T=a();var i=j.lwc_use_pushstate||false;var O=window.history&&window.history.pushState&&i?true:false;var E=!O?"#!":"";var Y=window.location.pathname;if(O&&j.page){Y=j.page?j.page.substring(0,j.page.lastIndexOf("/")+1):"/"}var V=function(e){this._dt=e};z.extend(V.prototype,{format:function(e){return e.replace(this._formatChr,z.proxy(this._formatChrCb,this))},_txt_words:["Sun","Mon","Tues","Wednes","Thurs","Fri","Satur","January","February","March","April","May","June","July","August","September","October","November","December"],_formatChr:/\\?(.?)/gi,_formatChrCb:function(e,t){return this[e]?this[e]():t},_pad:function(e,t){e=String(e);while(e.length<t){e="0"+e}return e},d:function(){return this._pad(this.j(),2)},D:function(){return this.l().slice(0,3)},j:function(){return this._dt.getDate()},l:function(){return this._txt_words[this.w()]+"day"},N:function(){return this.w()||7},S:function(){var e=this.j(),t=e%10;if(t<=3&&parseInt(e%100/10,10)===1){t=0}return["st","nd","rd"][t-1]||"th"},w:function(){return this._dt.getDay()},z:function(){var e=new Date(this.Y(),this.n()-1,this.j()),t=new Date(this.Y(),0,1);return Math.round((e-t)/864e5)},W:function(){var e=new Date(this.Y(),this.n()-1,this.j()-this.N()+3),t=new Date(e.getFullYear(),0,4);return this._pad(1+Math.round((e-t)/864e5/7),2)},F:function(){return this._txt_words[6+this.n()]},m:function(){return this._pad(this.n(),2)},M:function(){return this.F().slice(0,3)},n:function(){return this._dt.getMonth()+1},t:function(){return new Date(this.Y(),this.n(),0).getDate()},L:function(){var e=this.Y();return e%4===0&e%100!==0|e%400===0},o:function(){var e=this.n(),t=this.W(),a=this.Y();return a+(e===12&&t<9?1:e===1&&t>9?-1:0)},Y:function(){return this._dt.getFullYear()},y:function(){return this.Y().toString().slice(-2)},a:function(){if(T.ampm_with_dots){return this._dt.getHours()>11?" p.m.":" a.m."}else{return this._dt.getHours()>11?"pm":"am"}},A:function(){return this.a().toUpperCase()},q:function(){return this._dt.getHours()>11?" p.m.":" a.m."},B:function(){return""},g:function(){return this.G()%12||12},G:function(){return this._dt.getHours()},h:function(){return this._pad(this.g(),2)},H:function(){return this._pad(this.G(),2)},i:function(){return this._pad(this._dt.getMinutes(),2)},s:function(){return this._pad(this._dt.getSeconds(),2)},u:function(){return this._pad(this._dt.getMilliseconds()*1e3,6)},e:function(){throw"Not supported (see source code of date() for timezone on how to add support)"},I:function(){var e=new Date(this.Y(),0),t=Date.UTC(this.Y(),0),a=new Date(this.Y(),6),i=Date.UTC(this.Y(),6);return e-t!==a-i?1:0},O:function(){var e=this._dt.getTimezoneOffset(),t=Math.abs(e);return(e>0?"-":"+")+this._pad(Math.floor(t/60)*100+t%60,4)},P:function(){var e=this.O();return e.substr(0,3)+":"+e.substr(3,2)},Z:function(){return-this._dt.getTimezoneOffset()*60},c:function(){return"Y-m-d\\TH:i:sP".replace(this._formatChr,this._formatChrCb)},r:function(){return"D, d M Y H:i:s O".replace(this._formatChr,this._formatChrCb)},U:function(){return this._dt._date/1e3|0}});var R=j.lib.LWCDate=function(e,t,a){if(e){t=z.isNumeric(t)?parseInt(t,10):0;this._date=new Date(parseInt(e,10)*1e3+parseInt(t,10)*1e3)}else if(a){this._date=new Date(a.valueOf()-a.getTimezoneOffset()*60*1e3)}this._formatter=new V(this)};R.time_format={us:j.time_format_us,euro:j.time_format_euro};R.date_format={us:j.date_format_us,euro:j.date_format_euro};R.user_format_zone="us";R.setUserFormatZone=function(e){R.user_format_zone=e};R.getUserFormatZone=function(){return R.user_format_zone};R.getUserDateFormat=function(){return R.date_format[R.user_format_zone]?R.date_format[R.user_format_zone]:"m/d/Y"};R.getUserTimeFormat=function(){return R.time_format[R.user_format_zone]?R.time_format[R.user_format_zone]:"g:ia"};z.extend(R.prototype,{month_names_short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],ap_month_names_short:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],getFormattedDate:function(e){return this._formatter.format(e)},getDateObject:function(){return this._date},getTimeString:function(e,t){var a;if(j.use_ap_style){if(this.getHours()===0&&this.getMinutes()===0){return"Midnight"}if(this.getHours()===12&&this.getMinutes()===0){return"Noon"}
39if(t){a=this.getMinutes()===0?"g":"g:i"}else{a=this.getMinutes()===0?"gq":"g:iq"}}else{a=e&&R.time_format[e]?R.time_format[e]:R.getUserTimeFormat()}return this._formatter.format(a)},getShortDateString:function(e){var t=e&&R.date_format[e]?R.date_format[e]:R.getUserDateFormat();return this._formatter.format(t)},getDateTimeString:function(){var e=j.use_ap_style?this.ap_month_names_short:this.month_names_short;return e[this._date.getUTCMonth()]+" "+this._date.getUTCDate()+", "+this.getTimeString()},isDayStart:function(){return 0===this.getHours()&&0===this.getMinutes()},getHours:function(){return this._date.getUTCHours()},getMinutes:function(){return this._date.getUTCMinutes()},getSeconds:function(){return this._date.getUTCSeconds()},getMilliseconds:function(){return this._date.getUTCMilliseconds()},getFullYear:function(){return this._date.getUTCFullYear()},getMonth:function(){return this._date.getUTCMonth()},getDate:function(){return this._date.getUTCDate()},getDay:function(){return this._date.getUTCDay()},getTime:function(){return this._date.getTime()},setTimeToZero:function(){this._date.setUTCHours(0);this._date.setUTCMinutes(0);this._date.setUTCSeconds(0)},setHours:function(e,t,a,i){this._date.setHours(e,t,a,i)},setDate:function(e){this._date.setUTCDate(e)}});var H={makePhoneLinks:function(e){if(!e||typeof e!=="string"){return e}var t=/\b([(]{0,1}[0-9]{3}[)]{0,1}[-\s.]{0,1}[0-9]{3}[-\s.]{0,1}[0-9]{4})\b(?!([^<]*>|<\/a>))/g;return e.replace(t,function(e,t){return'<a href="tel:'+t.replace(/[^\d]/g,"")+'">'+t+"</a>"})},makeMailtoLinks:function(e){if(!e||typeof e!=="string"){return e}return e.replace(/(mailto:\s*|<a [^>]*>\s*)?\b([A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,})\b/gi,function(e,t,a){return t?e:'<a href="mailto:'+a+'">'+a+"</a>"})},setImageDimensions:function(e,t,a){if(!t&&!a)return;var i=t?"/width/"+t:"";var n=a?"/height/"+a:"";e=e.replace(/\/width\/[\d]+/,i);e=e.replace(/\/height\/[\d]+/,n);e=e.replace(/\/crop\/[\d]+/,"");e=e.replace(/\/src_region\/[\d,]+/,"");return e},formatDate:function(e,t){return t&&e?new R(null,null,e).getFormattedDate(t):""},formatTimestamp:function(e,t,a){var i=""+e;var n=""+t;return a&&i.match(/^[\d]+$/)&&n.match(/^-?[\d]*$/)?new R(e,t).getFormattedDate(a):""}};H.formattedDate=H.formatTimestamp;var n={initUrlChangeHandler:function(){var t=this;z(window).hashchange(function(){var e=window.location.hash;e=e.replace(/^#!?/,"");if(e&&(e===t.getHash()||e.length>2&&e.indexOf("view/")===-1&&e.indexOf("date/")===-1)){return}t.parseHash();t.load(z.noop,true)});if(!this.hashHasBang()){this.addBangToHash()}this.parseHash();this.load(function(){U.trigger("calInit.lwcal",[t])},true)},hashHasBang:function(){return 1===window.location.hash.indexOf("!")?true:false},addBangToHash:function(){var e=window.location.hash;if(e.length>1){window.location.hash="#!"+e.substr(1)}},updateUrl:function(){var e=this.getHash();if(e){window.location.hash="!"+e}},buildUrlArgString:function(){var e=[];var t;for(t in this.vars){var a=[];for(var i in this.vars[t]){a.push(encodeURIComponent(this.vars[t][i]))}e.push(t+"/"+a.join("|"))}e=e.sort(function(e,t){if(e.match(/^view/)){return-1}else if(t.match(/^view/)){return 1}else{if(e<t){return-1}if(e>t){return 1}return 0}});return e.length?e.join("/"):""}};var s={initUrlChangeHandler:function(){var t=this;window.addEventListener("popstate",function(e){t.parseUrl();t.load(z.noop,a)});if(window.location.hash&&!this.getUrlArgString()){this.convertDeprecatedHashBasedUrl()}else{this.parseUrl();var a=true;if(O){var e=this.getUrlArgString();if(e.indexOf("view/")===0){a=false}if(T.event_view_name!=="event"&&e.indexOf("event/")===0){a=false}}this.load(function(){U.trigger("calInit.lwcal",[t])},a)}},convertDeprecatedHashBasedUrl:function(){var a="";var e=window.location.href.split("#")[1]||"";e=e.replace(/^!/,"");var t=e.split("/");var i={};if(t.length&&t.length%2===0){for(var n=0;n<t.length;n+=2){i[t[n]]=t[n+1]}if(i.view){var s=i.view;delete i.view;a=s;if(s==="event"){if(i.event_id){a+="/"+i.event_id}}else{A.forOwn(i,function(e,t){a+="/"+t+"/"+e})}}}window.location.href=Y+a},updateUrl:function(){var e=this.buildUrlArgString();var t=j.page.substring(0,j.page.lastIndexOf("/")+1);if(e!==this.getUrlArgString()){window.history.pushState(null,null,t+e)}},buildUrlArgString:function(){var i=this.getView();var e=i;if(i==="search"){var t=this.getVar("search");if(t.length){e+="/"+t[0]}}if(i===T.event_view_name){var a=this.getVar("slug");
39if(a.length){e+="/"+a[0]}}else{var n=[];A.each(this.vars,function(e,t){if(t==="view"||i==="search"&&t==="search"){return true}var a=[];e=e.map(j.lib.htmlDecode);A.each(e,function(e){e=encodeURIComponent(e);e=e.replace("%2F","%252F");a.push(e)});n.push(t+"/"+a.join("|"))});n=n.sort(function(e,t){if(e<t){return-1}if(e>t){return 1}return 0});if(n.length){e+="/"+n.join("/")}}return e}};var d=j.lwCalendar.controller=A.extend({vars:{},qstring:{},data:null,is_today:true,init:function(){var a=this;U.trigger("beforeCalInit.lwcal");this.history=[];this.url_history=[];this.default_view=T.default_view||"day";this.is_first_load=true;U.on("calLoad.lwcal",function(e){a.is_first_load=false;return true});if(window.self!==window.top){U.addClass("lwc_iframe")}U.on("lw.calendarViewClick",function(e,t){a.setVarsInRelativeUrl(t);if("all"===a.getView()){a.clearVar("date")}a.clearVar("more");a.load();return true});this.initUrlChangeHandler()},getTimezone:function(){var e,t,a,i;if(!this._user_tz&&j.lib.localStore.has()&&localStorage.lwLocalTimezone&&-1!==localStorage.lwLocalTimezone.lastIndexOf("}")){a=JSON.parse(localStorage.lwLocalTimezone);i=(new Date).getTime();if(z.isPlainObject(a)&&a.timestamp&&i-a.timestamp<864e5*5){this._user_tz=a.value}}if(!this._user_tz){e=(new Date).toString();t=e.match(/\(([^)]+)\)$/)||e.match(/([A-Z]+) [\d]{4}$/);this._user_tz="EST";if(z.isArray(t)&&t.length>1){var n=t[1].match(/[A-Z]/g);if(n){this._user_tz=n.join("")}}var s=e.split(" ")[5];if(z.browser.mozilla&&navigator.appVersion.indexOf("Win")!==-1){if(s==="GMT-0700"){this._user_tz="PDT"}if(s==="GMT-0400"){this._user_tz="EDT"}}}return this._user_tz},setTimezone:function(e){var t;this._user_tz=e;if(j.lib.localStore.has()){t={value:e,timestamp:(new Date).getTime()};localStorage.lwLocalTimezone=JSON.stringify(t)}},getVar:function(e){return z.isArray(this.vars[e])?this.vars[e]:[]},getView:function(){return this.getVar("view").length?this.getVar("view")[0]:this.default_view},setDate:function(e,t,a){e=e.toString();t=t.toString();a=a.toString();if(t.length===1)t="0"+t;if(a.length===1)a="0"+a;this.setVar("date",e+t+a)},sanitizeVar:function(e){e=e.replace(/>/g,">").replace(/</g,"<");return z.trim(e)},setVar:function(e,t){if(!e||!t)return;if(!z.isArray(t)){t=[t]}this.vars[e]=A.map(t,this.sanitizeVar)},appendVar:function(e,t){if(!z.isArray(this.vars[e]))this.vars[e]=[];this.vars[e].push(this.sanitizeVar(t))},removeVar:function(e,t){if(z.isArray(this.vars[e])){var a=z.inArray(z.trim(t),this.vars[e]);if(-1!==a){this.vars[e].splice(a,1);if(!this.vars[e].length){this.clearVar(e)}}}},clearVar:function(e){delete this.vars[e];if(!this.vars.view){this.setVar("view",this.default_view)}},clearVars:function(a){var i=this;var n={language:true};A.each(this.vars,function(e,t){if(a||!n[t]){delete i.vars[t]}})},getValue:function(e){return z.isArray(this.vars[e])?this.vars[e]:false},load:function(t,e,a){var i=this,n=this.getView();U.trigger("calBeforeChange.lwcal",[i,n]);if(!e){this.updateUrl()}if(!a){this.history.push(A.clone(this.vars));this.url_history.push(window.location.pathname)}function s(e){if(!e)e={};U.trigger("calChange.lwcal",[i,n,e]);if(z.isFunction(t))t.apply(i);if(!livewhale.disable_analytics){i.registerLwAnalyticsPageView(e)}i.registerGoogleAnalyticsPageView()}var r=false;if(n==="home"){var l=k.getTemplateVariables("home");if(!A.includes(l,"events")&&!A.includes(l,"obj.events")&&!A.includes(l,"upcoming_events")&&!A.includes(l,"obj.upcoming_events")&&!A.includes(l,"feature")&&!A.includes(l,"obj.feature")){r=true}}if(n==="feed_builder"||r){s()}else{if(this.is_first_load&&j.calendar.preload_data){let e=this.getTimezone();this.setTimezone(this.getTimezone());s(j.calendar.preload_data)}
39else{z.ajax({url:this.getAjaxUrl(),dataType:"json",success:function(e){if(i.getTimezone().length<5&&e.user_tz){i.setTimezone(e.user_tz)}if(e.user_format&&e.user_format!==R.getUserFormatZone()){R.setUserFormatZone(e.user_format)}s(e)}})}}},registerLwAnalyticsPageView(e){const t={forwarded_referer:this.url_history.length>=2?T.host+this.url_history.at(-2):document.referrer,referer:document.location.href};if(T.event_view_name===this.getView()){t.type="events";t.id=e.event?.id}z.ajax({url:j.liveurl_dir+"/lwr",type:"POST",data:t})},registerGoogleAnalyticsPageView:function(){var e="send",t,a;if(!(window._gaq&&window._gaq.push)&&!(A.isObject(window.ga)&&window.ga.getByName)&&!A.isObject(window.gtag)&&!(typeof j.custom_tracking==="function"))return;if(O){t=window.location.pathname}else{t=T.event_view_name===this.getView()?j.liveurl_dir+"/events/"+this.getVar("slug")[0]:window.location.pathname+window.location.hash}if(typeof j.custom_tracking==="function"){j.custom_tracking(t);return}if(window.gtag&&!O){window.gtag("event","page_view",{page_title:document.title,page_path:t})}
39if(window._gaq){window._gaq.push(["_trackPageview",t])}if(window.ga&&window.ga.getAll){a=window.ga.getAll();if(a.length&&a[0].get("name")){e=a[0].get("name")+".send"}window.ga(e,"pageview",t)}},loadEventDetailHref:function(e){var t=e.substr(e.lastIndexOf("/")+1);if(!t)return false;this.clearVars();this.setVar("slug",t[0]);this.setVar("view","event");this.load();return true},getHash:function(){return this.buildUrlArgString()},getUrlArgString:function(){var e=window.location.pathname,t=j.page.substring(0,j.page.lastIndexOf("/")+1);return e!==j.page&&0===e.indexOf(t)?e.substr(t.length):""},parseUrl:function(){var a=this;var e=this.getUrlArgString();e=e.replace(/\/$/,"");a.clearVars();if(!e){return}var t=e.split("/");var i=t[0].trim();var n=false;if(A.includes(T.valid_views,i)){a.setVar("view",i===T.event_view_name?"event":i);t.shift();if(i===T.event_view_name){n=true;if(t.length){a.setVar("slug",t[0])}}if(i==="search"&&t.length%2===1){a.setVar("search",t[0]);t.shift()}}if(!n&&t.length&&t.length%2===0){A.each(this.parseUrlArgString(t.join("/")),function(e,t){a.setVar(t,e)})}},parseHash:function(){var a=this,e;this.vars={};e=window.location.href.split("#")[1]||"";e=e.replace(/^!/,"");if(!e)return;A.each(this.parseUrlArgString(e),function(e,t){a.setVar(t,e)});return},parseUrlArgString:function(e){var t=typeof e==="string"?e.split("/"):[],a={},i;for(var n=0;n<t.length;n+=2){i=decodeURIComponent(t[n+1]).replace(/</g,"<").replace(/>/g,">");i=i.replace("%2F","/");a[t[n]]=i.split("|")}return a},setVarsInRelativeUrl:function(e,t){if(!e)return;if(-1!==e.indexOf("#")){e=e.substring(e.indexOf("#")+1);e=e.replace(/^!/,"")}var a=d.parseUrlArgString(e);if(t){d.clearVars()}A.each(a,function(e,t){d.setVar(t,e)})},setVarsWithQueryString:function(e){var t=this.parseQueryString(e);for(var a in t){this.setVar(a,decodeURIComponent(t[a]).split("|"))}},parseQueryString:function(e){var t=e.substr(e.lastIndexOf("?")+1),a=t.split("&"),i={};for(var n=0;n<a.length;n++){var s=a[n].split("=");i[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return i},convertQueryStringAndRefresh:function(){if(!window.location.search)return;this.setVarsWithQueryString(window.location.search);window.location=e+"#!"+this.getHash()},getAjaxQueryString:function(){var e=[],t="";for(var a in this.vars){e.push(a+"="+encodeURIComponent(this.vars[a].join("|")))}if(e.length){t="&"+e.join("&")}if(!A.includes(this.vars,"view")){t+="&view="+this.getView()}t+="&user_tz="+encodeURIComponent(this.getTimezone());t+="&syntax="+this.getWidgetSyntax();return t},getValidYmd:function(e){var t,a;if(!e.match(/^\d{8}$/)){return o.getYmdFromDate(new Date)}else{a=new Date(parseInt(e.substring(0,4),10),parseInt(e.substring(4,6),10),0).getDate();t=parseInt(e.substring(6,8),10);return t>=1&&t<=a?e:e.substring(0,6)+"01"}},getViewTemplateVariables:function(){return k.getTemplateVariables(this.getView())},getEventTemplateVariables:function(){return k.getEventTemplateVariables(this.getView())},getAjaxUrl:function(e){var t=e?A.extend(this.vars,e):this.vars;var i=this;var n=j.liveurl_dir+"/calendar/view/"+this.getView();A.each(t,function(e,t){if("view"===t||"language"===t){return true}e=e.map(j.lib.htmlDecode);var a;if("date"===t){a=i.getValidYmd(e[0])}else if("slug"===t){a=e[0].replace(/^(\d+)_draft(.*)/,"$1$2")}else{a=encodeURIComponent(e.join("|"));a=a.replace("%2F","%252F")}n+="/"+t+"/"+a});n+="?user_tz="+encodeURIComponent(this.getTimezone());if(this.getVar("language").length){n+="&language="+encodeURIComponent(this.getVar("language")[0])}var a=this.getEventTemplateVariables();n+="&template_vars="+a.join(",");var s=this.getViewTemplateVariables();if(s.length){var r=[];if(-1!==z.inArray("single_events",s)){r.push("single_events")}if(-1!==z.inArray("repeating_events",s)){r.push("repeating_events")}if(r.length){n+="&show="+encodeURIComponent(r.join(","))}}if(j.logged_in){n+="&logged_in=1"}var l=this.getWidgetSyntax();if(T.search_all_groups&&this.getVar("search").length){l=decodeURIComponent(l);l=l.replace(/<arg id="group">[^<]+<\/arg>/g,"");l=encodeURIComponent(l)}n+="&syntax="+l;return n},back:function(){var a=this;if(this.history.length<=1)return;this.clearVars(true);this.history.pop();A.each(this.history.pop(),function(e,t){A.each(e,function(e){a.appendVar(t,e)})});this.load()},getWidgetSyntax:function(){var e;if(!this.syntax){e=z("#lw_cal .lw_widget_syntax,#lw_cal_body_wrapper .lw_widget_syntax");if(!e.length){this.syntax=t.getWidgetSyntaxFromArgObject(T.widget_args||{})}else{this.syntax=e.attr("title")}}return this.syntax}},O?s:n);var l={month_names:["Jan<span>uary</span>","Feb<span>ruary</span>","Mar<span>ch</span>","Apr<span>il</span>","May","Jun<span>e</span>
39","Jul<span>y</span>","Aug<span>ust</span>","Sept<span>ember</span>","Oct<span>ober</span>","Nov<span>ember</span>","Dec<span>ember</span>"],month_names_short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ap_month_names_short:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day_names:["Sun<span>day</span>","Mon<span>day</span>","Tue<span>sday</span>","Wed<span>nesday</span>","Thu<span>rsday</span>","Fri<span>day</span>","Sat<span>urday</span>"],getMonthNameShort:function(e){return j.use_ap_style?this.ap_month_names_short[e]:this.month_names_short[e]}};var u={init:function(){var i=this,e=d.getTimezone();var t=A.template(z("#lw_cal_timezone_menu_template",L).html());z("#lw_cal_body").append(t({timezones:j.calendar.timezones}));var a=this.$el=z("#lw_cal_tz",_);var n=this.$content=z(".lw_cal_tz_selector_content",a);var s=this.$sel=n.find(".lw_cal_tz_select");this.$wrapper=null;if(e.match(/[A-Z]{3,5}/)){s.find('option[data-tz-abbrv="'+e+'"]').eq(0).prop("selected",true)}else{s.val(e)}a.find(".lw_submit").on("click",function(e){var t=z("option:selected",s),a=t.val();if(a&&d.getTimezone()!==a){d.setTimezone(a);d.load()}i.close()});a.find(".lw_cancel").on("click",function(e){i.close()});U.trigger("calTzDialogInit.lwcal")},open:function(e){var t=this;if(!this.$el){this.init()}e.hoverbox({position:"top",autoOpen:true,html:this.$el.show(),beforeOpen:function(){U.trigger("click")},close:function(){t.$el.hide().appendTo("body");z(this).hoverbox("destroy")}});this.$wrapper=e},close:function(){this.$wrapper.hoverbox("close")}};var f=function(s){var a=this;var e=Math.floor(Date.now()/1e3);var t=new V(new R(e,j.calendar.default_timezone_offset));var i=A.template(z("#lw_cal_view_selector_template",L).html());z("#lw_cal_view_selector").replaceWith(i({date:t.format("Ymd"),display_date:t.format("F j, Y"),search_view_enabled:T.enable_search_view}));this.$el=z("#lw_cal_view_selector");if(!this.$el.length)return;this.$el.on("click","a",function(e){var t=z(this);if(t.closest("li").hasClass("add_new")){return true}e.preventDefault();U.trigger("lw.calendarViewClick",[z(this).attr("href")]);return true}).removeClass("lw_hidden").show();if(T.exclude_view){if(typeof T.exclude_view==="string")T.exclude_view=[T.exclude_view];if(z.isArray(T.exclude_view)){A.each(T.exclude_view,function(e,t){if(e==="day"){a.$el.find("li.day").remove();a.$el.find("li.today").remove()}else{a.$el.find("li."+e).remove()}})}}this.$add_event_link=this.$el.find("#lw_cal_add_event a");this.add_event_url=this.$add_event_link.attr("href");U.on("calLoad.lwcal",A.bind(function(e,t,a){var i=t.getView();this.$el.find(".active").removeClass("active").find("a").attr("aria-current","false");var n=!T.enable_home_view&&(!i||"day"===i&&s.getView().is_today)?"today":i;this.$el.find("."+n).addClass("active").find("a").attr("aria-current","true");this.$add_event_link.attr("href",this.add_event_url);if(z("#lw_cal_this_day").is(":empty")){z("#lw_cal_this_day").hide()}else{z("#lw_cal_this_day").show()}this.$el.find("#lw_cal_events_badge").remove();if(a.search_event_count){this.$el.find("li.all a").append('<div id="lw_cal_events_badge" class=>'+a.search_event_count+"</div>")}},this))};var g=function(){var e=A.template(z("#lw_cal_header_template",L).html());z("#lw_cal_header").replaceWith(e());var t=this.$header=z("#lw_cal_header");this.$title=z("#lw_cal_this_day",t);this.$scroll_links=z("#lw_cal_scroll_links",t);this.$date_sel=z("#lw_cal_date_selector");this.scroll_template=A.template(z("#lw_cal_scroll_link_template",L).html());t.on("click",".lw_cal_date_scroll a, .lw_cal_date_scroll button, #lw_cal_date_selector a",function(e){e.preventDefault();d.setVarsInRelativeUrl(z(this).attr("href"));d.load();return true});U.on("change",".lw_cal_date_picker",function(e){e.preventDefault();var t=z(this).val();if(t){d.setVar("date",t);d.load()}return true});U.on("click","#lw_cal_showing a:not(.lw_cal_clear_filters)",function(e){e.preventDefault();var t=z(this),a=t.attr("class").replace("lw_cal_showing_",""),i=t.attr("href");if(a){i=j.lib.htmlEncode(i);if(a==="locations"){var n=A.find(j.calendar.locations,{title:i});if(n&&n.id){i=n.id}}d.removeVar(a,i);d.load()}return true});U.on("click",".lw_cal_clear_filters",function(e){e.preventDefault();
39d.clearVar("categories");d.clearVar("audience");d.clearVar("campus");d.clearVar("tags");d.clearVar("groups");d.clearVar("locations");d.clearVar("search");d.clearVar("date");d.clearVar("end_date");d.clearVar("only_online");if(d.getView()=="search"){d.setVar("view","all")}d.load();return true});U.on("mouseover","#lw_cal_showing a",function(e){z(this).addClass("X");return true});U.on("mouseover","#lw_cal_showing a",function(e){z(this).removeClass("X");return true});U.on("click",".lw_cal_back",function(e){e.preventDefault();if(d.history.length>1){d.back()}else{d.clearVars();d.load()}return false})};g.prototype={setTitle:function(e){this.$title.html(e)},clearScrollLinks:function(){this.$scroll_links.html("")},insertScrollLinks:function(e,t){this.$scroll_links.html(this.scroll_template({prev_date:e,next_date:t}))},show:function(){this.$header.css("visibility","visible")},hide:function(){this.$header.css("visibility","hidden")},showBackLink:function(e){this.$scroll_links.html('<a href="" class="lw_cal_back"><span class="lw-icon-2x lw-icon-times-circle"></span><span class="lw_sr_only">
39Close Event "'+e+'"</span></a>')},clearDateSelector:function(){this.$date_sel.html("")},insertDateSelector:function(e){this.$date_sel.html(e)},getTitle:function(){return this.$header.find("h5").text()}};var o=A.extend({},l,{$el:_,$body:z("#lw_cal_body"),$events:z("#lw_cal_events"),is_mobile:z(window).width()<=480?true:false,$subscription_menu:null,event_template:A.template(z("#lw_cal_event_template",L).html()),date_sel_template:A.template(z("#lw_cal_date_selector_template",L).html()),show:function(){this.$events.removeClass("lw_cal_loading");this._cal.getHeader().show()},hide:function(){this.$events.css("visibility","hidden");this._cal.getHeader().hide()},getDateFromTimestamp:function(e,t){return new Date(parseInt(e,10)*1e3+parseInt(t,10)*1e3)},getLocalTimezoneOffset:function(){return-((new Date).getTimezoneOffset()*60)},getLocalTimezoneAbbreviation:function(){return(new Date).toLocaleTimeString("en-us",{timeZoneName:"short"}).split(" ")[2]},hasDifferentLocalTimezone:function(e){var t=e.tz_abbrv.replace(/^(\w)(\w+)(\w)$/,function(e,t,a,i,n,s){return t+a.replace(/S/g,"D")+i});var a=e.tz_abbrv.replace(/^(\w)(\w+)(\w)$/,function(e,t,a,i,n,s){return t+a.replace(/D/g,"S")+i});let i="user_abbrv"in e?e.user_abbrv:this.getLocalTimezoneAbbreviation();return i!==e.tz_abbrv&&i!==t&&i!==a?true:false},getOptionalEventTimezone:function(e,t,a){let i=this.hasDifferentLocalTimezone(e);let n=T.hide_local_timezone||a||!i?false:true;if((!t&&!T.hide_local_timezone||i)&&!T.disable_timezone){return' <span class="lw_cal_tz_abbrv'+(!n?" tz_editable":"")+'">'+e.tz_abbrv+"</span>"}return""},getMultiDayEventTimeRange:function(e,t,a){let i=e.repeats_start?new R(e.repeats_start,e.repeats_start_tz_offset):new R(e.ts_start,e.tz_offset);let n=e.repeats_end?new R(e.repeats_end,e.repeats_end_tz_offset):new R(e.ts_end,e.tz2_offset||e.tz_offset);let s=!i.isDayStart();let r=i.getFullYear()!==n.getFullYear();let l=j.use_ap_style?this.month_names_short:this.month_names;let o;if(!s&&i.getMonth()===n.getMonth()&&i.getFullYear()===n.getFullYear()){o=l[i.getMonth()]+" "+i.getDate()+j.calendar.date_range_separator+n.getDate()}else{o=l[i.getMonth()]+" "+i.getDate();if(r){o+=", "+i.getFullYear()}if(s){o+=", "+i.getTimeString()}o+=j.calendar.date_range_separator;o+=l[n.getMonth()]+" "+n.getDate();if(r){o+=", "+n.getFullYear()}if(s){o+=", "+n.getTimeString()+this.getOptionalEventTimezone(e,t,a)}}return o},getEventTimeRange:function(e,t,a){var i=this.hasDifferentLocalTimezone(e),n=T.hide_local_timezone||a||!i?false:true,s=false,r=false,l="",o,c,h;if(e.is_multi_day){return this.getMultiDayEventTimeRange(e,t,a)}o=new R(e.ts_start,e.tz_offset);c=e.ts_end?new R(e.ts_end,e.tz2_offset):null;if(o.isDayStart()){s=true}if(c&&(o.getMonth()!==c.getMonth()||o.getDate()!==c.getDate())){r=true}if(e.is_all_day){l="All Day";if(r&&c){l+=' <span class="lw_until">(until ';if(!c.isDayStart()){l+=c.getTimeString(e.tz_format)}if(j.timezone_format==="euro"){l+=" "+c.getDate()+" "+this.month_names[c.getMonth()]+")</span>"}else{l+=" "+this.month_names[c.getMonth()]+" "+c.getDate()+")</span>"}}if(e.time_postfix)l+=' <span class="postfix">'+e.time_postfix+"</span>";return l}l=this.getTimes(o,c,s,r,e.tz_format);l+=this.getOptionalEventTimezone(e,t,a);let _="user_offset"in e?e.user_offset:this.getLocalTimezoneOffset();let d="user_abbrv"in e?e.user_abbrv:this.getLocalTimezoneAbbreviation();if(n&&!T.disable_timezone){h=this.getLocalTimeRange({ts_start:e.ts_start,ts_end:e.ts_end,tz_offset:_,tz2_offset:_,tz_abbrv:d},e,s,r);l+=' <span class="lw_user_time">('+h+")</span>"}if(e.time_postfix)l+=' <span class="postfix">'+e.time_postfix+"</span>";return l},getEventTimeZone:function(e){var t=this.hasDifferentLocalTimezone(e),a="";if(t){a+='<span class="lw_cal_tz_abbrv">'+e.tz_abbrv+"</span>"}return a},getDateRangeFromTimestamps:function(e,t,a,i){var n=new R(e,a),s;if(t){s=new R(t,i)}return this.getDateRange(n,s)},getDateRange:function(e,t){var a;if(t&&(e.getMonth()!==t.getMonth()||e.getFullYear()!==t.getFullYear())){if(j.timezone_format==="euro"){a='<span class="lw_date_range">'+'<span class="lw_date">'+e.getDate()+"</span> "+this.getMonthNameShort(e.getMonth());if(e.getFullYear()!==t.getFullYear()){a+='<span class="lw_year">, '+e.getFullYear()+"</span>"}a+='<span class="lw_date_range_separator">'+j.calendar.date_range_separator+"</span>"+'<span class="lw_date">'+t.getDate()+"</span> "+this.getMonthNameShort(t.getMonth())+"</span>"}else{a='<span class="lw_date_range">'+this.getMonthNameShort(e.getMonth())+' <span class="lw_date">'+e.getDate()+"</span>";if(e.getFullYear()!==t.getFullYear()){a+='<span class="lw_year">, '+e.getFullYear()+"</span>"}a+='<span class="lw_date_range_separator">'+j.calendar.date_range_separator+"</span>"+this.getMonthNameShort(t.getMonth())+' <span class="lw_date">'+t.getDate()+"</span>"+"</span>"}}else if(t&&e.getDate()!==t.getDate()){if(j.timezone_format==="euro"){a='<span class="lw_date_range lw_same_month">'+'<span class="lw_date">'+e.getDate()+"</span> "+this.getMonthNameShort(e.getMonth())+'<span class="lw_date_range_separator">'+j.calendar.date_range_separator+"</span>"+'<span class="lw_date">'+t.getDate()+"</span> "+this.getMonthNameShort(t.getMonth())+"</span>"}else{a='<span class="lw_date_range lw_same_month">'+this.month_names[e.getMonth()]+' <span class="lw_date">'+e.getDate()+j.calendar.date_range_separator+t.getDate()+"</span>"+"</span>"}}else{a=this.month_names[e.getMonth()]+' <span class="lw_date">'+e.getDate()+"</span>"}a+='<span class="lw_year">, '+(t?t.getFullYear():e.getFullYear())+"</span>";return a},getLocalTimeRange:function(e,t,a,i,n){var s=new R(e.ts_start,e.tz_offset),r=new R(t.ts_start,t.tz_offset),l=e.ts_end?new R(e.ts_end,e.tz2_offset):null,o=864e5,c,h;c=this.getTimes(s,l,a,i,null);r.setTimeToZero();s.setTimeToZero();h=(s.getTime()-r.getTime())/o;if(0!==h){c+=" "+(h<0?"-":"+")+Math.abs(h)+" Day";if(Math.abs(h)>1)c+="s"}if(!n&&!T.hide_local_timezone){c+=' <span class="lw_cal_tz_abbrv tz_editable">'+e.tz_abbrv+"</span>"}return c},getTimes:function(e,t,a,i,n){var s;var r=false;if(j.use_ap_style&&t&&e.getShortDateString()===t.getShortDateString()&&e.getFormattedDate("a")===t.getFormattedDate("a")){r=true}if(a&&t){if(j.use_ap_style){s="Midnight"+j.calendar.date_range_separator+'<span class="lw_end_time">'+t.getTimeString(n)+"</span>"}else{s='until <span class="lw_end_time">'+t.getTimeString(n)+"</span>"}if(i){s+=' <span class="lw_end_date">'+this.getMonthNameShort(t.getMonth())+" "+t.getDate()+"</span>"}}else{s='<span class="lw_start_time">'+e.getTimeString(n,r)+"</span>";if(t){if(0!==t.getHours()||0!==t.getMinutes()){s+=j.calendar.date_range_separator+'<span class="lw_end_time">'+t.getTimeString(n)+"</span> "}if(i){s+=' <span class="lw_start_date">';s+=j.timezone_format==="euro"?e.getDate()+" "+this.getMonthNameShort(e.getMonth()):this.getMonthNameShort(e.getMonth())+" "+e.getDate();s+="</span>";s+=j.calendar.date_range_separator;s+='<span class="lw_end_date">';s+=j.timezone_format==="euro"?t.getDate()+" "+this.getMonthNameShort(t.getMonth()):this.getMonthNameShort(t.getMonth())+" "+t.getDate();s+="</span>"}}}return s},getDateFromYmd:function(e){var t=parseInt(e.substr(0,4),10),a=parseInt(e.substr(4,2),10),i=parseInt(e.substr(6,2),10);return new Date(t,a-1,i)},getYmdFromDate:function(e){var t=e.getFullYear(),a=e.getMonth()+1,i=e.getDate();t=t.toString();a=a.toString();i=i.toString();if(1===a.length)a="0"+a;if(1===i.length)i="0"+i;return t+a+i},getMonthAndDayFromTimestamp:function(e,t){var a=this.getDateFromTimestamp(e,t);return this.month_names[a.getMonth()]+" "+a.getDate()},getMdYFromDate:function(e){return this.month_names[e.getMonth()]+" "+e.getDate()+", "+e.getFullYear()},getFormattedListDate:function(e){var t=this.day_names[e.getDay()]+", "+this.month_names[e.getMonth()]+" "+e.getDate();if(e.getYear()!==(new Date).getYear()){t+=", "+String(e.getYear()+1900)}return t},setViewClass:function(e){this.$el.removeClass(function(e,t){return(t.match(/lw_cal_\w+_view/g)||[]).join(" ")});this.$el.addClass("lw_cal_"+e+"_view");U.removeClass(function(e,t){return(t.match(/lw_cal_view_\w+/g)||[]).join(" ")});U.addClass("lw_cal_view_"+e);if(d.getVar("search").length){U.addClass("lw_cal_view_search")}if(e===T.event_view_name){U.addClass("lw_cal_event_detail")}else{U.removeClass("lw_cal_event_detail")}},getEventTitleLink:function(e){var t="";var a=[];var i;if(e.external_url){i=e.external_url;a.push("external_url")}else if(e.href){i=e.href}if(i){if(e.status===2){a.push("hidden_event")}t='<a href="'+i+'"';if(a.length){t+=' class="'+a.join(" ")+'"'}t+=">"+e.title+"</a>"}else{t=e.title}return t},slugify:function(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},getEventUrl:function(e,t){var a;if(O){a=T.event_view_name+"/"+String(e)+"-"+this.slugify(t)}else{a=E+"view/event/slug/"+e}if(Y){a=Y+a}return a},addHostToSrcSetFilter:function(e,n){return e.replace(/\bsrcset="([^"]*)"/g,function(e,t){var a=t.split(", ");var i=[];A.each(a,function(e){if(e.length>1&&e.charAt(0)==="/"&&e.charAt(1)!=="/"){i.push(n+e)}else{i.push(e)}});return'srcset="'+i.join(", ")+'"'})},addHostToLinks:function(e,i){return e.replace(/\shref="([^"]*)"/,function(e,t){var a=e;if(0!==t.indexOf("http")&&0!==t.indexOf("//")&&-1===t.indexOf("mailto:")){if(0!==t.indexOf("/")){t="/"+t}a=' href="'+i+t+'"'}return a})},formatEventObject:function(e){var a=Object.assign({},e);var t={location:"",summary:"",href:"",title:""};A.each(t,function(e,t){if(!A.has(a,t)){a[t]=e}});if(!a.external_url&&a.href&&Y){a.href=Y+a.href}if(A.isArray(a.category_classes)){a.category_classes=a.category_classes.join(" ")}if(A.isArray(a.category_audience_classes)){a.category_audience_classes=a.category_audience_classes.join(" ")}if(A.isArray(a.category_campus_classes)){a.category_campus_classes=a.category_campus_classes.join(" ")}var i=function(e){var t=(Y?Y:"")+E+"view/all/categories/"+encodeURIComponent(e);return'<a class="lw_cal_app_link" href="'+t+'">'+e+"</a>"};if(A.isArray(a.categories)){var n=A.map(a.categories,i);a.category_links=n.join(", ")}if(A.isArray(a.categories_audience)){var s=A.map(a.categories_audience,i);a.category_audience_links=s.join(", ")}if(A.isArray(a.categories_campus)){var r=A.map(a.categories_campus,i);a.category_campus_links=r.join(", ")}if(z.isArray(a.tag_classes)&&a.tag_classes.length){a.tag_classes=a.tag_classes.join(" ")}
39if(A.isArray(a.tags)){var l=A.map(a.tags,function(e){var t=(Y?Y:"")+E+"view/all/tags/"+encodeURIComponent(e);return'<a class="lw_cal_app_link" href="'+t+'">'+e+"</a>"});a.tag_links=l.join(", ")}a.title_link=this.getEventTitleLink(a);a.date_title=this.getWeekDayAndDateFormatFromTimestamp(a.ts_start,a.tz_offset);var o=new R(a.ts_start,a.tz_offset);a.date_start=o.getShortDateString();a.date_start_day=o.getFormattedDate("d");a.date_start_month=o.getFormattedDate("F");a.date_start_month_short=o.getFormattedDate("M");a.date_start_year=o.getFormattedDate("Y");a.date_start_day_of_week=o.getFormattedDate("l");a.time=this.getEventTimeRange(a);a.time_start=o.getTimeString();a.datetime_start=o.getFormattedDate("o-m-dTH:i");a.timezone=this.getEventTimeZone(a);if(a.ts_end&&a.tz2_offset){var c=new R(a.ts_end,a.tz2_offset);a.date_end=c.getShortDateString();a.date_end_day=c.getFormattedDate("d");a.date_end_month=c.getFormattedDate("F");a.date_end_month_short=c.getFormattedDate("M");a.date_end_year=c.getFormattedDate("Y");a.date_end_day_of_week=c.getFormattedDate("l");a.time_end=c.getTimeString();a.datetime_end=c.getFormattedDate("o-m-dTH:i")}var h=a.is_all_day?"F j":"F j, g:ia";if(a.repeats_start){var _=new R(a.repeats_start,a.tz_offset);a.repeats_start_formatted=_.getFormattedDate(h)}else{a.repeats_start=""}if(a.repeats_end){var d=new R(a.repeats_end,a.tz_offset);a.repeats_end_formatted=d.getFormattedDate(h)}else{a.repeats_end=""}if(a.image_src){a.thumb_width=T.thumb_width;a.thumb_height=T.thumb_height;a.image_orientation="";if(a.image_width&&a.image_height){a.image_orientation=a.image_width>a.image_height?"horizontal":"vertical"}if(j.lib.hasWebPSupport()){if(0!==a.image_src.indexOf("http")&&0!==a.image_src.indexOf("//")&&a.image_src.match(/\.jpe?g$/i)){a.image_src=a.image_src.replace(/\.jpe?g$/i,".webp")}}}a.ical_download_href="//"+window.location.hostname;a.ical_download_href+=j.liveurl_dir+"/ical/events/id/"+a.id;a.add_to_google=this.getAddToGoogleLink(a);a.add_to_yahoo="";if(a.location&&a.location.length>T.location_char_limit&&a.location.substr(0,1)!="<"){a.location=a.location.substr(0,T.location_char_limit)+"..."}A.extend(a,H);return a},getWeekDayAndDateFormat:function(e){var t=this.getDateFromYmd(e);return this.day_names[t.getDay()]+", "+this.month_names[t.getMonth()]+" "+t.getDate()+"<span>, "+t.getFullYear()+"</span>"},getWeekDayAndDateFormatFromTimestamp:function(e,t){var a=this.getDateFromTimestamp(e,t);return this.day_names[a.getUTCDay()]+", "+this.month_names[a.getUTCMonth()]+" "+a.getUTCDate()+"<span>, "+a.getUTCFullYear()+"</span>"},getICalDate:function(e,t){var a;if(!e)return"";a=new R(e,0);return a.getFormattedDate("Ymd")+"T"+a.getFormattedDate("His")+"Z"},getAddToGoogleLink:function(e){var t="http://www.google.com/calendar/event?action=TEMPLATE&",a=[],i=this.getICalDate(e.ts_start),n,s;if(e.ts_end){n=e.ts_end}else{n=e.is_all_day?e.ts_start+3600*24:e.ts_start+3600}s=this.getICalDate(n);a.push("text="+encodeURIComponent(e.title));a.push("dates="+i+"/"+s);if(e.summary){a.push("details="+encodeURIComponent(j.lib.htmlDecode(e.summary)))}if(e.location){a.push("location="+encodeURIComponent(e.location))}return t+a.join("&")+"&trp=false&sprop=&sprop=name:"},getVariablesInTemplate:function(e){e=e.replace(/\/\*.*?\*\//g,"");var t=e.match(/{{\s*[\w\d._-]+\s*}}/g);var a=t?t.map(function(e){return e.match(/[\w._-]+/)[0]}):[];var i=e.match(/{\[[^\]]*obj\.[\w\d_-]+[^\]]*\]}/g);var n=i?i.map(function(e){return e.match(/obj\.[\w\d_-]+/)[0]}):[];return a.concat(n)},getTemplateVariables:function(e){var t=[];if("day"===e||"today"===e){t=this.getVariablesInTemplate(z("#lw_cal_day_template",L).html()||"")}else if("week"===e){t=this.getVariablesInTemplate(z("#lw_cal_week_template",L).html()||"")}else if("all"===e){t=this.getVariablesInTemplate(z("#lw_cal_all_template",L).html()||"")}else if("month"===e){t=this.getVariablesInTemplate(z("#lw_cal_month_template",L).html()||"")}else if("home"===e){t=this.getVariablesInTemplate(z("#lw_cal_home_template",L).html()||"")}return t},getEventTemplateVariables:function(e){var t=[];if("event"===e){t=this.getVariablesInTemplate(z("#lw_cal_event_detail_template",L).html()||"")}else if("week"===e||"all"===e||"day"===e||"today"===e||"home"===e){t=this.getVariablesInTemplate(z("#lw_cal_event_template",L).html()||"")}
39else if("month"===e){t=this.getVariablesInTemplate(z("#lw_cal_month_event_template",L).html()||"")}t=A.map(t,function(e){return e.replace(/^obj\./,"")});return A.uniq(t)},buildEventList:function(e){var n=this,s="";if(!e||!z.isPlainObject(e)||z.isEmptyObject(e)){return s}if(!this.list_tmpl){this.list_tmpl=A.template(z("#lw_cal_list_template",L).html())}A.each(e,function(e,t){var a="",i=n.getDateFromYmd(t);A.each(e,function(e){a+=n.event_template(n.formatEventObject(e))});s+=n.list_tmpl(A.extend({date:n.getFormattedListDate(i),date_raw:i,year:i.getFullYear(),events:a},H))});return s},getStaticMapImageSrc:function(e,t){var a=livewhale.liveurl_dir+"/places/thumb?url="+encodeURIComponent("http://maps.googleapis.com/maps/api/staticmap?sensor=false&size=320x320"+"&zoom=17&markers=size:small|"+e+","+t);return a},getNoResultsTemplate:function(e){if(!this.no_results_tmpl){var t='<div class="no"><p>No events found.</p></div>';this.no_results_tmpl=A.template(L.find("#lw_cal_no_results_template").html()||t)}return this.no_results_tmpl(e)},getPaginationMenu:function(e,t,a){var i="";var n=Math.ceil(e/t);if(a===n){return false}var s=t;if(a===n-1&&e%t!==0){s=e%t}i=this.getPaginationTemplate({range:a*t+" of "+e,page:String(a+1),more:String(s)});if(e<400&&e-a*t>t){i+=' <a href="#" class="list-button caret-button lw_cal_all">Show All</a>'}return i},getPaginationTemplate:function(e){if(!this.pagination_tmpl){var t='Showing {{ range }} events | <a href="#" class="lw_cal_next">Show {{ more }} more</a>';this.pagination_tmpl=A.template(L.find("#lw_cal_pagination_template").html()||t)}return this.pagination_tmpl(e)},showMore:function(a){var i=this,e;this.$events.css({opacity:.5});this.page++;
39e=d.getAjaxUrl()+"&page="+this.page;if(a)e+="&show_all=1";z.ajax({url:e,dataType:"json",success:function(e){if(a){i.events=e.events}else{A.each(e.events,function(e,t){if(i.events[t]){i.events[t]=i.events[t].concat(e)}else{i.events[t]=e}})}i.$events.html(i.buildEventList(i.events));if(!a){var t=i.getPaginationMenu(i.count,i.per_page,i.page);if(t){i.$pagination.html(t)}else{i.$pagination.hide()}}else{i.$pagination.hide()}U.trigger("calPaginate.lwcal",[d,e]);i.$events.fadeTo(200,1)}})}});var c=function(){this.feature_tmpl=A.template(z("#lw_cal_feature",L).html());this.feature_top_tmpl=A.template(z("#lw_cal_feature_top",L).html());this.feature_item_tmpl=A.template(z("#lw_cal_feature_item",L).html());_.on("click",".lw_cal_feature_top,.lw_cal_feature_item",function(e){e.preventDefault();if(z(e.target).hasClass("tz_editable"))return true;var t=z(this).find("a").attr("href");d.loadEventDetailHref(t);return true})};c.prototype=z.extend(o,{build:function(e){var t=this,a="",i="",n=d.getView(),s=0,r;if(!e||(!e.top||z.isEmptyObject(e.top))&&(!e.other||!e.other.length)){return""}if(e.top){e.top=this.formatEventObject(e.top);e.top.date_time=n==="week"?this.getMonthAndDayFromTimestamp(e.top.ts_start,e.top.tz_offset)+" ":"";e.top.date_time+=e.top.is_all_day?"All Day":t.getFormattedDateTime(e.top);a=t.feature_top_tmpl(e.top)}if(e.other&&e.other.length){s=e.other.length;for(var l=0;l<s;l++){r=e.other[l];r=this.formatEventObject(r);r.date_time=n==="week"?this.getMonthAndDayFromTimestamp(r.ts_start,r.tz_offset,true)+" ":"";r.date_time+=r.is_all_day?"All Day":t.getFormattedDateTime(r);if(0===l)r.is_first=true;i+=t.feature_item_tmpl(r)}}return this.feature_tmpl({feature_top:a,feature_items:i,sub_feature_count:s})},getFormattedDateTime:function(e){var t=o.getDateFromTimestamp(e.ts_start,e.tz_offset);return o.getMonthNameShort(t.getMonth())+" "+t.getDate()+" "+o.getEventTimeRange(e)}});var x=new c;var h=j.lwCalendar.FeedBuilderView=function(e){this._cal=e;this.name="feed_builder_view";this.tag_mode="any";this.category_mode="any";var s=this,t=z("#lw_cal_feed_template",L),a=z("#lw_cal_feed_selector_template",L);this.preview_template=A.template(z("#lw_cal_preview_template",L).html());if(!t.length||!a.length)return;this.tmpl=A.template(t.html());this.selector_tmpl=A.template(a.html());this.selected={};this.$events.on("change",".lw_cal_feed_selectors input[type=checkbox]",function(e){var t=z(this),a=t.closest(".lw_cal_feed_selector"),i=a.attr("class").replace(/.*lw_cal_feed_selector_type_([\w_-]+).*/,"$1"),n=t.val();if(typeof s.selected[i]==="undefined"||!A.isArray(s.selected[i])){s.selected[i]=[]}if(t.is(":checked")){s.selected[i].push(n)}else{s.selected[i]=A.without(s.selected[i],n)}s.buildFeed();s.updatePreview()});this.$events.on("keyup",".lw_cal_feed_selectors input[type=text]",function(e){var t=z(this),i=z(this).val().toLowerCase(),a=t.closest(".lw_cal_feed_selector"),n=a.find("ul").children();if(i){n.each(function(){var e=z(this),t=e.find("input"),a=e.text().toLowerCase();if(true===t.prop("checked")||-1!==a.indexOf(i)){e.show()}else{e.hide()}})}else{n.show()}});this.$events.on("click",".lw_filter_mode_toggle a",function(e){e.preventDefault();var t=z(this),a,i,n;if(t.hasClass("selected"))return true;i=t.closest(".lw_filter_mode_toggle");n=i.attr("class").replace(/.*lw_filter_mode_type_(\w+).*/,"$1");a=t.hasClass("lw_any")?"any":"all";if(n==="tag"){s.tag_mode=a}else if(n==="category"){s.category_mode=a}t.addClass("selected").siblings("a").removeClass("selected");s.buildFeed();s.updatePreview();return true})};A.extend(h.prototype,o,{render:function(){var a=this,e=T.feed_builder_filters,i={};if(!A.isArray(e)){return false}if(!this.tmpl||!this.selector_tmpl)return;this.setViewClass("feed_builder");this._cal.getHeader().setTitle("Feed Builder");A.each(e,function(e){var t=a.getSelectorItemByType(e);if(t.length){i[e]=a.selector_tmpl({type:e,items:t})}});this.$events.html(this.tmpl({selectors:i}));this.show();if(!A.isEmpty(this.selected)){this.selected={}}this.$ical_result=this.$events.find("#lw_cal_feed_ical_result");this.$rss_result=this.$events.find("#lw_cal_feed_rss_result");this.$json_result=this.$events.find("#lw_cal_feed_json_result");this.$cms_result=this.$events.find("#lw_cal_feed_cms_result");this.$preview=this.$events.find(".lw_cal_feed_preview");if(k.feed_builder_vars&&!A.isEmpty(k.feed_builder_vars)){this.setFeedToCalendarState()}this.buildFeed();this.updatePreview()},setFeedToCalendarState:function(){var a=this,e=k.feed_builder_vars||{};var t={category:e.categories||[],audience:e.audience||[],campus:e.campus||[],group:e.groups||[],tag:e.tags||[]};A.each(t,function(e,t){A.each(e,function(e){a.$events.find(".lw_cal_feed_selector_type_"+t+' input[type="checkbox"][value="'+e+'"]').each(function(){z(this).trigger("click")})})})},close:function(){k.feed_builder_vars={}},updatePreview:function(){var t=this,e=this.getLink("json",this.selected)+"/max/10",i;var a=z('<div class="lw_spinner"></div>').appendTo(this.$preview);z.getJSON(e,function(e){a.remove();if(e&&e.data){e=e.data}if(e&&e.length){i="<ul>";z.each(e,function(e,t){var a=t.date_time?t.date_time:"All Day";i+="<li>"+t.date+", "+a+'<br/><a href="'+t.url+'">'+t.title+"</a></li>"});i+="</ul>"}else{i="<p>The selected feed does not contain any events.</p>"}t.$preview.html(i)})},getSelectorItemByType:function(e){var t=[];switch(e){case"category":if(A.isArray(j.calendar.categories)){t=A.map(j.calendar.categories,function(e){return{id:e,title:e}})}break;
39case"audience":if(A.isArray(j.calendar.categories_audience)){t=A.map(j.calendar.categories_audience,function(e){return{id:e,title:e}})}break;case"campus":if(A.isArray(j.calendar.categories_campus)){t=A.map(j.calendar.categories_campus,function(e){return{id:e,title:e}})}break;case"tag":if(A.isArray(j.calendar.tags)){t=A.map(j.calendar.tags,function(e){return{id:e,title:e}})}break;case"group":if(A.isArray(j.calendar.groups)){t=A.map(j.calendar.groups,function(e){return{id:e.fullname,title:e.fullname}})}break}return t},buildFeed:function(){var e=T.feed_base_path?T.feed_base_path:false;this.$ical_result.val(this.getLink("ical",this.selected,e));this.$rss_result.val(this.getLink("rss",this.selected));this.$json_result.val(this.getLink("json",this.selected,e));this.$cms_result.val(this.getLink("cms",this.selected,e))},getLink:function(e,t,a){e=e==="cms"?"json":e;var i=this,n=j.liveurl_dir+"/"+e+"/events";A.each(t,function(e,t){if(t==="category"&&i.category_mode==="any"){n+="/category_mode/any"}if(t==="tag"&&i.tag_mode==="any"){n+="/tag_mode/any"}A.each(e,function(e){n+="/"+t+"/"+encodeURIComponent(e).replace(/'/g,"%27")})});if(a){n=n.replace(j.liveurl_dir+"/"+e+"/events","");n=a+"/"+e+n}else{n=window.location.protocol+"//"+window.location.host+n;if(e==="ical"&&T.webcal_feed_links){n="webcal://"+n.replace(/^https?:\/\//,"")}}return n}});var p=j.lwCalendar.DayView=function(e){this._cal=e;this.name="day_view";this.template=A.template(z("#lw_cal_day_template",L).html());this.is_today=false};A.extend(p.prototype,o,{render:function(e,t,a){var n=this,i="",s="",r="",l="",o;this.is_today=a.is_today;this.setViewClass(this.is_today?"today":"day");this._cal.getHeader().setTitle(a.title);this._cal.getHeader().insertScrollLinks(a.prev_date,a.next_date);this.insertDateSelector(a.date);if(z.isArray(a.events)&&a.events.length){for(o=0;o<a.events.length;o++){i+=this.event_template(this.formatEventObject(a.events[o]))}}else{i=this.getNoResultsTemplate({view:t})}if(z.isArray(a.single_events)&&a.single_events.length){for(o=0;o<a.single_events.length;o++){s+=this.event_template(this.formatEventObject(a.single_events[o]))}}else{s=this.getNoResultsTemplate({view:t})}if(z.isArray(a.repeating_events)&&a.repeating_events.length){for(o=0;o<a.repeating_events.length;o++){r+=this.event_template(this.formatEventObject(a.repeating_events[o]))}}A.each(a.upcoming_events,function(e,t){var a=n.getDateFromYmd(t);l+="<h4>
39"+n.getFormattedListDate(a)+"</h4>";for(var i=0;i<e.length;i++){l+=n.event_template(n.formatEventObject(e[i]))}});var c=this.getDateFromYmd(a.date);if(a.weather.description){var h=z.trim(a.weather.description);var _=h.indexOf(" ");if(-1!==_){a.weather.description=h.substr(_+1)+", "+h.substring(0,_)}}if(a.weather.location){var d=z.trim(a.weather.location);var u=d.indexOf(",");if(-1!==u){a.weather.location=d.substring(0,u)}}this.$events.html(this.template({feature:x.build(a.features),month:this.month_names_short[c.getMonth()],date:n.getFormattedListDate(c),day:c.getDate(),today_facts:a.today_facts&&typeof a.today_facts==="string"?a.today_facts:"",weather:a.weather.description!==undefined&&a.weather.location!==undefined?a.weather:"",events:i,single_events:s,repeating_events:r,event_count:a.events.length,upcoming_events:l}));this.show();if(z("#lw_cal_today_facts p").length){z("#lw_cal_today_facts").attr("role","list");z("#lw_cal_today_facts > p").attr("role","listitem")}},insertDateSelector:function(e){var t=this.getDateFromYmd(e),a=[],i="",n,s,r;var l={label:"",value:"",selected:false};for(var o=-4;o<5;o++){n=new Date(t.getTime());n.setDate(n.getDate()+o);s=this.getMdYFromDate(n);r=this.getYmdFromDate(n);if(o===0){a.push(A.extend({},l,{label:"Jump to Day",selected:true}));i+='<option selected="selected">Jump to Day</option>'}else{a.push(A.extend({},l,{label:s,value:r}));i+='<option value="'+r+'">'+s+"</option>"}}this._cal.getHeader().insertDateSelector(this.date_sel_template({dates:a,options:i}))}});var m=j.lwCalendar.HomeView=function(e){this._cal=e;this.name="home_view";this.is_today=false;var t=z("#lw_cal_home_template",L);if(t.length){this.template=A.template(t.html())}else{this.template=A.template(z("#lw_cal_day_template",L).html())}var a=z("#lw_cal_home_event_template",L);if(a.length){this.home_event_template=A.template(a.html())}};m.prototype.insertDateSelector=p.prototype.insertDateSelector;A.extend(m.prototype,o,{render:function(e,t,a){var n=this,i="",s=[],r="",l=this.home_event_template||this.event_template;this.setViewClass(t);if(!A.isEmpty(a)){this.is_today=a.is_today;this._cal.getHeader().setTitle(a.title);this._cal.getHeader().insertScrollLinks(a.prev_date,a.next_date);this.insertDateSelector(a.date)}if(z.isPlainObject(a.events)){A.each(a.events,function(e,t){if(z.isArray(e)){s=s.concat(e)}})}else if(A.isArray(a.events)){s=a.events}if(s.length){for(var o=0;o<s.length;o++){i+=l(this.formatEventObject(s[o]))}}else{i=this.getNoResultsTemplate({view:t})}A.each(a.upcoming_events,function(e,t){var a=n.getDateFromYmd(t);r+="<h4>"+n.getFormattedListDate(a)+"</h4>";for(var i=0;i<e.length;i++){r+=l(n.formatEventObject(e[i]))}});var c=a.date?this.getDateFromYmd(a.date):new Date;this.$events.html(this.template({month:this.month_names_short[c.getMonth()],day:c.getDate(),today_facts:"",weather:"",events:i,upcoming_events:r}));this.show()}});var v=j.lwCalendar.ListView=function(e){var a=this;this._cal=e;this.name="list_view";this.all_tmpl=A.template(z("#lw_cal_all_template",L).html()||"{{ events }}");this.week_tmpl=A.template(z("#lw_cal_week_template",L).html()||"{{ events }}");this.$body.on("click",".lw_cal_pagination > a",function(e){e.preventDefault();var t=z(this).hasClass("lw_cal_all")?true:false;a.showMore(t);return true})};A.extend(v.prototype,o,{render:function(e,t,a){var i=this._cal,n=a.title,s;if(a.date&&a.end_date){n=this.getDateRange(this.getDateFromYmd(a.start_date),this.getDateFromYmd(a.end_date))}this.setViewClass(t);this._cal.getHeader().setTitle(n);if("week"===t){i.getHeader().insertScrollLinks(a.prev_date,a.next_date);this.insertDateSelector(a.start_date)}else{i.getHeader().clearScrollLinks();i.getHeader().clearDateSelector()}var r="week"===t?this.week_tmpl:this.all_tmpl;if(a.events&&!z.isEmptyObject(a.events)||a.single_events&&!z.isEmptyObject(a.single_events)||a.repeating_events&&!z.isEmptyObject(a.repeating_events)){s={events:this.buildEventList(a.events),repeating_events:this.buildEventList(a.repeating_events),single_events:this.buildEventList(a.single_events)}}else{s={events:this.getNoResultsTemplate({view:t}),single_events:this.getNoResultsTemplate({view:t})}}if(a.event_count>a.per_page){this.page=1;this.per_page=a.per_page;this.count=a.event_count;this.events=a.events;this.$pagination=z("<p/>").addClass("lw_cal_pagination pagination-controls");this.$body.append(this.$pagination);var l=this.getPaginationMenu(this.count,this.per_page,this.page);if(l){this.$pagination.html(l)}else{this.$pagination.hide()}}this.$events.html(r(s));this.show()},close:function(e){if(this.$pagination&&this.$pagination.length){delete this.events;this.$pagination.remove();delete this.$pagination}},insertDateSelector:function(e){var a=this,t=[],i="",n=this.getDateFromYmd(e),s,r,l,o;var c=function(e,t){if(e.getMonth()===t.getMonth()){return a.month_names[e.getMonth()]+" "+e.getDate()+j.calendar.date_range_separator+t.getDate()+", "+e.getFullYear()}else{if(e.getFullYear()===t.getFullYear()){return a.month_names[e.getMonth()]+" "+e.getDate()+j.calendar.date_range_separator+a.month_names[t.getMonth()]+" "+t.getDate()+", "+e.getFullYear()}else{return a.month_names[e.getMonth()]+" "+e.getDate()+", "+e.getFullYear()+j.calendar.date_range_separator+a.month_names[t.getMonth()]+" "+t.getDate()+", "+t.getFullYear()}}};var h={label:"",value:"",selected:false};for(var _=-4;_<=4;_++){if(_===0){t.push(A.extend({},h,{label:"Jump to Week",selected:true}));i+='<option selected="selected">Jump to Week</option>'}else{s=new Date(n.getFullYear(),n.getMonth(),n.getDate()+7*_);r=new Date(s.getFullYear(),s.getMonth(),s.getDate()+6);l=c(s,r);o=this.getYmdFromDate(s);t.push(A.extend({},h,{label:l,value:o}));i+='<option value="'+o+'">'+l+"</option>"}}this._cal.getHeader().insertDateSelector(this.date_sel_template({dates:t,options:i}))}});var w=j.lwCalendar.SearchView=function(e){var a=this;this._cal=e;this.name="search_view";this.tmpl=A.template(z("#lw_cal_search_view_template",L).html()||"{{ events }}");var t=z("#lw_cal_search_event_template",L);if(t.length){this.event_template=A.template(t.html())}this.$body.on("click",".lw_cal_pagination > a",function(e){e.preventDefault();var t=z(this).hasClass("lw_cal_all")?true:false;a.showMore(t);return true});this.addSearchPastEventsCheckbox()};A.extend(w.prototype,o,{render:function(e,t,a){var i=this._cal;var n="Search";this.setViewClass(t);this._cal.getHeader().setTitle(n);i.getHeader().clearScrollLinks();i.getHeader().clearDateSelector();if(a.event_count>a.per_page){this.page=1;this.per_page=a.per_page;this.count=a.event_count;this.events=a.events;this.$pagination=z("<p/>").addClass("lw_cal_pagination pagination-controls");this.$body.append(this.$pagination);var s=this.getPaginationMenu(this.count,this.per_page,this.page);if(s){this.$pagination.html(s)}else{this.$pagination.hide()}}
39var r=e.getVar("search_past_events").length?true:false;this.$checkbox.show().find("input:checkbox").prop("checked",r);var l=a.events&&!z.isEmptyObject(a.events)?this.buildEventList(a.events):this.getNoResultsTemplate({view:t});this.$events.html(this.tmpl({events:l}));this.show()},addSearchPastEventsCheckbox:function(){var e='<label class="lw_cal_search_past_events">'+'<input type="checkbox"> Include past events'+"</label>";var t=this.$checkbox=z(e).insertAfter(this._cal.$now_showing);t.find("input:checkbox").on("click",function(e){if(z(e.currentTarget).prop("checked")){d.setVar("search_past_events","true")}else{d.clearVar("search_past_events")}d.load()})},close:function(e){var t=this;if(e.getView()!=="search"){e.clearVar("search_past_events");t.$checkbox.hide()}if(this.$pagination&&this.$pagination.length){delete this.events;this.$pagination.remove();delete this.$pagination}}});var y=j.lwCalendar.MonthView=function(e){this._cal=e;this.name="month_view";this.template=A.template(z("#lw_cal_month_template",L).html());this.day_template=A.template(z("#lw_cal_month_day_template",L).html());var t=z("#lw_cal_month_event_template",L);if(t.length){this.event_template=A.template(t.html())}};A.extend(y.prototype,o,{render:function(e,t,a){var n=this,s="<tr>",i=this.day_names.slice(0),r;this.setViewClass(t);this._cal.getHeader().setTitle(a.title);this._cal.getHeader().insertScrollLinks(a.prev_date,a.next_date);this.insertDateSelector(a.date);var l=a.days.length;if(T.week_start_offset>0){for(var o=0;o<T.week_start_offset;o++){r=i.shift();i.push(r)}}A.each(a.days,function(e,t){var a="";if(t!==0&&t+1!==l&&t%7===0){s+="</tr><tr>"}A.each(e.events,function(e,t){e=n.formatEventObject(e);e.time=n.getEventTimeRange(e,true,true);a+=n.event_template(e)});e.events=a;let i=n.getDateFromYmd(e.date);e.month=n.month_names[i.getMonth()];e.year=i.getFullYear();s+=n.day_template(e)});s+="</tr>";this.$events.html(n.template({week_days:"<th>"+i.join("</th><th>")+"</th>",days:s,events:this.buildEventList(a.events),repeating_events:this.buildEventList(a.repeating_events),single_events:this.buildEventList(a.single_events),caption:"Month view: "+a.title}));if(A.includes(T.exclude_view,"day")){this.$events.off("click",".lw_cal_date a");this.$events.on("click",".lw_cal_date a",function(){return false})}else{this.hideExcessEvents(a)}this.show()},insertDateSelector:function(e){var t=this.getDateFromYmd(e.substring(0,6)+"01"),a=[],i="",n,s;var r={label:"",value:"",selected:false};for(var l=-6;l<=6;l++){var o=new Date(t.getTime());o.setMonth(o.getMonth()+l);s=this.month_names[o.getMonth()]+" "+o.getFullYear();n=this.getYmdFromDate(o);if(l===0){a.push(A.extend({},r,{label:"Jump to Month",selected:true}));i+='<option selected="selected">Jump to Month</option>'}else{a.push(A.extend({},r,{label:s,value:n}));i+='<option value="'+n+'">'+s+"</option>"}}this._cal.getHeader().insertDateSelector(this.date_sel_template({dates:a,options:i}))},hideExcessEvents:function(l){var o=T.month_view_day_limit||2;this.$events.find("table#lw_cal_month_table > tbody > tr > td").each(function(e,t){var a=z(t),i=a.find(".lw_cal_event"),n=a.find(".lw_cal_date a").attr("href"),s=typeof l.days[e]!=="undefined"?l.days[e].event_count:0,r;if(o<i.length){i.eq(o-1).nextAll().hide()}r=i.filter(":visible");if(s&&s>r.length){a.append(z("<a />",{text:"and "+(s-r.length)+" more...",href:n,"aria-label":"and "+(s-r.length>1?s-r.length+" more events":"1 more event")+" on this day...",class:"lw_cal_show_day"}))}})}});var b=j.lwCalendar.EventView=function(I){var i=this;this._cal=I;this.name="event_view";this.$map=null;this.template=A.template(z("#lw_cal_event_detail_template",L).html());this.$body.on("click",".lw_cal_event_tags a",function(e){e.preventDefault();d.setVar("view","all");d.setVar("tags",z(this).text().toLowerCase());d.load();return false});this.$body.on("click",".lw_cal_event_edit a",function(e){e.preventDefault();var t=d.getVar("slug")[0],a=encodeURIComponent(i.getEventUrl(t,""));window.location=z(this).attr("href")+"&return_url="+a;return true});this.$events.on("click","#lw_cal_add_to_calendar > a:not(.lw-direct-link)",function(e){e.preventDefault();var t=z(this),a=t.closest("#lw_cal_add_to_calendar").find("ul");e.preventDefault();if(a.is(":visible")){t.removeClass("lw_active")}else{t.addClass("lw_active")}a.slideToggle(200);return true});this.render=function(e,t,a){var i=this;var n;if(a&&a.is_private){document.location.href="/livewhale/?login&url="+window.location.href;return false}if(!a||!a.event||!a.event.title){if(e.history.length>1){e.back()}else{e.clearVars();e.load()}return true}if(a.event.url){if(a.event.url===window.location.href){e.clearVars();e.load();return true}else if(0===a.event.url.indexOf(j.liveurl_dir+"/events/")){n=a.event.url.match(/\/events\/(\d+)/);if(z.isNumeric(n[1])){e.setVar("slug",n[1]);e.load(null,true,true)}}else{window.location.href=a.event.url}}if(j.lib.hasWebPSupport()){if(0!==a.event.image_src.indexOf("http")&&0!==a.event.image_src.indexOf("//")&&a.event.image_src.match(/\.jpe?g$/i)){a.event.image_src=a.event.image_src.replace(/\.jpe?g$/i,".webp")}}var s=a.event;if(!O||!e.is_first_load){this.updateMetaData(s)}s.logged_in=j.logged_in;s.date_range="";if(a.event.ts_start){s.date_range=this.getDateRangeFromTimestamps(s.ts_start,s.ts_end,s.tz_offset,s.tz2_offset)}s.date_title=this.getWeekDayAndDateFormatFromTimestamp(s.ts_start,s.tz_offset);var r=new R(s.ts_start,s.tz_offset);s.date_start=r.getShortDateString();s.date_start_day=r.getFormattedDate("d");s.date_start_month=r.getFormattedDate("F");s.date_start_month_short=r.getFormattedDate("M");s.date_start_year=r.getFormattedDate("Y");s.date_start_day_of_week=r.getFormattedDate("l");s.time=this.getEventTimeRange(s);s.time_start=r.getTimeString();s.datetime_start=r.getFormattedDate("o-m-dTH:i");s.timezone=this.getEventTimeZone(s);if(s.ts_end&&s.tz2_offset){var l=new R(s.ts_end,s.tz2_offset);s.date_end=l.getShortDateString();s.date_end_day=l.getFormattedDate("d");s.date_end_month=l.getFormattedDate("F");s.date_end_month_short=l.getFormattedDate("M");s.date_end_year=l.getFormattedDate("Y");s.date_end_day_of_week=l.getFormattedDate("l");s.time_end=l.getTimeString();s.datetime_end=l.getFormattedDate("o-m-dTH:i")}this.setViewClass(t);I.getHeader().setTitle(s.date_range);I.setDocumentTitle(z("<p>"+s.title+"</p>").text());I.getHeader().showBackLink(s.title);I.getHeader().clearDateSelector();s.ical_download_href="//"+window.location.hostname;s.ical_download_href+=j.liveurl_dir+"/ical/events";s.ical_all_series=s.ical_download_href+"/series_id/"+s.eid;s.ical_download_href+="/id/"+s.id+"/hide_repeats/true";s.add_to_google=i.getAddToGoogleLink(s);s.add_to_yahoo="";s.date_time=i.getEventDetailTimeRange(s);s.day_of_week=i.getDayOfWeek(s);var o=this.getSaveAndShareLinks(s.title,s.summary,s.image_src,r);var c=z("#lw_cal_event_share_icons",L);if(c.length){var h=A.template(c.html());s.share_links=h(o)}else{s.share_links=this.getDefaultSaveAndShareLinks(o)}if(!A.isEmpty(s.related_content)){var _=z("#lw_cal_event_related_content",L);if(_.length){var d=A.template(_.html());var u="";A.each(s.related_content,function(e){u+=d(e)});s.related_content=u}else{s.related_content=this.getDefaultRelatedContent(s.related_content)}}var f=(Y?Y:"")+E+"view/all/categories/";if(s.search_categories){s.categories=s.search_categories.split("|");var g=A.map(s.categories,function(e){e=z.trim(e);return'<a class="lw_cal_app_link" href="'+f+encodeURIComponent(e)+'">'+e+"</a>"});s.search_categories=g.join(", ")}
39if(A.isArray(s.category_classes)){s.category_classes=s.category_classes.join(" ")}if(A.isArray(s.category_audience_classes)){s.category_audience_classes=s.category_audience_classes.join(" ")}if(A.isArray(s.category_campus_classes)){s.category_campus_classes=s.category_campus_classes.join(" ")}if(A.isArray(s.categories)){var p=A.map(s.categories,function(e){return'<a class="lw_cal_app_link" href="'+f+encodeURIComponent(e)+'">'+e+"</a>"});s.category_links=p.join(", ")}if(A.isArray(s.categories_audience)){var m=A.map(s.categories_audience,function(e){return'<a class="lw_cal_app_link" href="'+f+encodeURIComponent(e)+'">'+e+"</a>"});s.category_audience_links=m.join(", ")}if(A.isArray(s.categories_campus)){var v=A.map(s.categories_campus,function(e){return'<a class="lw_cal_app_link" href="'+f+encodeURIComponent(e)+'">'+e+"</a>"});s.category_campus_links=v.join(", ")}var w=(Y?Y:"")+E+"view/all/tags/";var y;if(A.isArray(s.tags_calendar)){s.tags=s.tags_calendar;y=A.map(s.tags,function(e){return'<a class="lw_cal_app_link" href="'+w+encodeURIComponent(e)+'">'+e+"</a>"});s.tags_calendar=y.join(", ")}if(A.isArray(s.tags_global_calendar)){s.tags=s.tags_global_calendar;y=A.map(s.tags,function(e){return'<a class="lw_cal_app_link" href="'+w+encodeURIComponent(e)+'">'+e+"</a>"});s.tags_global_calendar=y.join(", ")}if(A.isArray(s.tags_starred_calendar)){s.tags=s.tags_starred_calendar;y=A.map(s.tags,function(e){return'<a class="lw_cal_app_link" href="'+w+encodeURIComponent(e)+'">'+e+"</a>"});s.tags_starred_calendar=y.join(", ")}if(s.summary&&s.description&&s.summary===s.description){s.summary=""}if(s.image){var b=z("#lw_cal_event_images_template",L);if(b.length){var k=b.html();if(k.match(" src ")){k='<div class="lw_event_image">{{ image }}</div>'}var D=A.template(k)}}this.event_data=s;var x=[];z.each(L.html().match(/{{\s*[\w\d_-]+\s*}}/g),function(e,t){t=z.trim(t.substring(2,t.length-2));x[t]=""});this.$events.html(i.template(A.extend(x,s,H)));if(this.$el.find("#lw_cal_hero").length){this.$el.addClass("lw_cal_has_hero")}this.$events.find(".lw_widget").each(function(e,t){j.lib.initWidget(t)});if(s.location_latitude&&s.location_longitude){var C=this.$events.find(".lw_cal_event_detail_map");var T=C.attr("data-aspect-ratio")?C.attr("data-aspect-ratio"):"1:1";C.lwGoogleMapsEmbed({api_key:livewhale.maps_api_key,latitude:s.location_latitude,longitude:s.location_longitude,aspect_ratio:T,title:"Map showing location of "+s.location})}if(s.has_registration){j.payments.init()}this.show();z(".lw_gallery").each(function(){z(".lw_widget_resources_js").each(function(){j.lib.loadJS(z(this).attr("data-href"))});z(".lw_widget_resources_css").each(function(){j.lib.loadCSS(z(this).attr("data-href"))})});if(typeof gapi!=="object"){this.loadPlusOneJS();var V=setInterval(function(){if(typeof gapi==="object"){gapi.plusone.go(i.$events.get(0));clearInterval(V)}},200)}else{gapi.plusone.go(this.$events.get(0))}if(livewhale.disqus_shortname){window.disqus_shortname=livewhale.disqus_shortname;window.disqus_identifier="lwcal_"+livewhale.disqus_shortname+"_"+s.id;window.disqus_url=window.location.origin+"/live/events/"+s.id;window.disqus_title=s.title+" / "+s.date_range;if(window.DISQUS){window.DISQUS.reset({reload:true})}else{var $=document.createElement("script");$.type="text/javascript";$.async=true;$.src="http://"+livewhale.disqus_shortname+".disqus.com/embed.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild($)}}var S=z("<div>"+s.description+"</div>");var F=S.find(".lw_widget_metadata");var M=[];if(F.length){z.each(F.find(".lw_widget_resources_js"),function(){if(z.inArray(z(this).attr("data-href"),M)===-1){U.append('<script src="'+z(this).attr("data-href")+'"><\/script>');M[M.length]=z(this).attr("data-href")}});z.each(F.find(".lw_widget_resources_css"),function(){if(z.inArray(z(this).attr("data-href"),M)===-1){U.append('<link rel="stylesheet" type="text/css" href="'+z(this).attr("data-href")+'" />');M[M.length]=z(this).attr("data-href")}});F.remove()}};this.loadPlusOneJS=function(){U.append('<script type="text/javascript" size="small" src="https://apis.google.com/js/plusone.js">{"parsetags": "explicit"}<\/script>')};this.close=function(e){if(e.getView()!==T.event_view_name){e.clearVar("slug")}this.$el.removeClass("lw_cal_has_hero")}};A.extend(b.prototype,o,{updateMetaData:function(e){e=e||{};var t;var a;if(e.ts_start){t=new Date(parseInt(e.ts_start,10)*1e3)}var i=e.summary;if(!i&&e.description){i=e.description.substring(0,128)}var n={title:e.title,type:"event",start_time:t.toISOString(),description:i,url:window.location.href};if(e.ts_end){a=new Date(parseInt(e.ts_end,10)*1e3);n.end_time=a.toISOString()}if(e.images&&e.images.length){var s=e.images[0];n.image=s.src;n["image:width"]=s.width;n["image:height"]=s.height}var r=z("head");r.find('meta[property^="og:"]').remove();A.each(n,function(e,t){if(e){e=z("<p>"+e+"</p>").text();r.append('<meta property="og:'+t+'" content="'+e+'">');if(t==="description"){var a=r.find('meta[name="description"]');if(a.length){a.attr("content",e)}else{r.append('<meta name="description" content="'+e+'">')}}}})},getEventData:function(){return this.event_data},getCalendarEmbedShareLink:function(){var e;e=window.location.protocol+"//"+window.location.hostname;e+=j.liveurl_dir+"/events/calendar-embed/"+d.getVar("slug")[0];return e},getFacebookShareLink:function(){var e=window.location.href;if(!O){e=this.getCalendarEmbedShareLink()}return"https://www.facebook.com/sharer.php?u="+encodeURIComponent(e)},getTwitterShareLink:function(e,t){var a=window.location.href;var i=this.month_names_short[t.getMonth()]+" "+t.getDate()+", "+e;return"https://twitter.com/intent/tweet?text="+encodeURIComponent(i)+"&url="+encodeURIComponent(a)},getSaveAndShareLinks:function(e,t,a,i){return{facebook:this.getFacebookShareLink(),twitter:this.getTwitterShareLink(e,i),url:window.location.href}},getDefaultSaveAndShareLinks:function(n){var s,r;r={twitter:"lw-icon-twitter-square",facebook:"lw-icon-facebook-square",permalink:"lw-icon-link",email:"lw-icon-e
39nvelope-o"};s='<div class="lw_widget_saveandshare"><ul>';z.each(["twitter","facebook","email","permalink"],function(e,t){var a=n[t]||"#",i=r[t]||"";s+='<li class="lw_item_'+(e+1)+" "+t+'">'+'<a href="'+a+'" target="_blank" aria-label="Share via '+t+'">'+'<span class="'+i+' lw-icon-2x"></span>'+'<span class="lw_sr_only">'+t+"</span>"+"</a>"+"</li>"});s+="</ul></div>";return s},getDefaultRelatedContent:function(e){if(!A.isArray(e)||!e.length)return"";var t="<ul>";A.each(e,function(e){t+='<li class="lw_related_'+e.type;if(e.doc_type){t+=" "+e.doc_type.toLowerCase()}t+='">';if(e.image_src){t+='<img src="'+e.image_src+'"/>'}t+='<a href="'+e.href+'" target="_blank">'+e.title;if(e.doc_type){t+=" <span>("+e.doc_type+")</span>"}t+="</a>"+"</li>"});t+="</ul>";return t},getEventDetailTimeRange:function(e){var t=e.user_offset&&e.tz_offset!==e.user_offset,a,i,n;if(e.is_multi_day){return this.getMultiDayEventTimeRange(e,false,false)}a=new R(e.ts_start,e.tz_offset);i=e.ts_end?new R(e.ts_end,e.tz2_offset):null;if(!e.is_all_day&&(i&&(a.getMonth()!==i.getMonth()||a.getDate()!==i.getDate()))){n='<span class="lw_cal_time_range">'+a.getTimeString(e.tz_format)+" to "+i.getTimeString(e.tz_format)+"</span> "+this.getDateRange(a,i);if(!T.disable_timezone&&(!T.hide_local_timezone||t)){n+=' <span class="lw_cal_tz_abbrv">'+e.tz_abbrv+"</span>"}}else{n=this.getEventTimeRange(e)}return n},getDayOfWeek:function(e){var t="",a,i;a=new R(e.ts_start,e.tz_offset);i=e.ts_end?new R(e.ts_end,e.tz2_offset):null;if(!i||a.getMonth()===i.getMonth()&&a.getDate()===i.getDate()){t=this.day_names[a.getDay()]}return t}});var k=j.lwCalendar.calView=A.extend({},o,{init:function(){var l=this,t=z("#lw_cal_sidebar",_),n=true;this.header=new g;if(false!==T.show_view_menu){new f(this)}if(!T.show_sidebar){z("#lw_cal_sidebar").hide()}z('<div class="lw_sr_only" id="lw_cal_aria" aria-live="polite"></div>').insertBefore(z("#lw_cal"));var e=z("#lw_cal_search");if(e.length){var a=A.template(z("#lw_cal_search_template",L).html());e.replaceWith(a())}var i=z("#lw_cal_subscribe");if(i.length){var s=A.template(z("#lw_cal_subscribe_template",L).html());i.replaceWith(s())}this.showing_template=A.template(z("#lw_cal_showing_template",L).html());this._month_view=null;this._home_view=null;this._day_view=null;this._list_view=null;this._search_view=null;this._event_view=null;this._feed_view=null;this._view=null;this._prev_view=null;this.$now_showing=z("#lw_cal_showing");var r=z('link[rel="canonical"]');if(!r.length){r=z('<link rel="canonical" href="'+document.location.href+'"/>').appendTo(z("head"))}var o="/";var c=document.title||"";if(c.indexOf("|")!==-1){o="|"}else if(c.indexOf("·")!==-1){o="·"}else if(c.indexOf("â¢")!==-1){o="â¢"}this.title_separator=o;this.page_title=c.indexOf(o)===-1?c:c.substr(c.lastIndexOf(o)+1).trim();U.on("calBeforeChange.lwcal",function(e,t,a,i){l.$events.addClass("lw_cal_loading");if(l._view&&z.isFunction(l._view.close)){l._view.close(t)}if(!T.enable_search_view&&(T.search_all_events_only&&t.getView()!=="all")){t.clearVar("search");t.clearVar("end_date")}});var h=z('head meta[property="og:image"],head meta[name="og:image"]');this.default_og_image=h.length?h.attr("content"):null;if(!T.show_sidebar)this.$el.addClass("no_sidebar");U.on("calChange.lwcal",function(e,t,a,i){l._view=l.getViewObjectFromViewName(a);if(n){_.find(".lw_spinner").remove()}if(l._prev_view&&l._prev_view.name!==l._view){U.trigger("calViewClose.lwcal",[l._prev_view])}l._prev_view=l._view;l._view.render(t,a,i);r.attr("href",window.location.href);if(j.logged_in){l.$events.find(".lw_cal_event").each(function(){var e=z(this),t=e.find(".lw_events_title"),a=e.attr("data-id"),i=encodeURIComponent(l.getEventUrl(e.attr("data-id"),t.text())),n="/livewhale/?events_edit&id="+a+"&return_url="+i,s='<a href="'+n+'" class = "lw_cal_edit_link"><i class="lw-icon-edit lw-icon-fw"></i><span class="lw_sr_only">Edit this event</span></a>';t.append(s)})}l.renderNowShowing(t,i);if(a!==T.event_view_name){l.setDocumentTitle()}U.trigger("calLoad.lwcal",[t,i]);n=false});this.$events.on("click",".lw_cal_event_list a:not(.lw_cal_edit_link,.lw_cal_location_link,.lw_cal_app_link,.external_url)",l.clickEventHandler);this.$events.on("click",".tz_editable",function(e){e.preventDefault();var t=z(this);if(t.hasClass("lwui-widget"))return true;e.stopPropagation();u.open(t)});U.on("change","#lw_cal_calendar select",function(){var e=z(this).val();if(e){document.location=e}});U.on("calInit.lwcal",function(){var e=d.getVar("groups"),t=z("#lw_cal_calendar select");if(e.length===1&&t.length){t.val(e[0])}});U.on("calLoad.lwcal",function(e,t){var a=parseInt(z("body").css("padding-top"));var i=_.offset().top-a;var n=z(document).scrollTop();var s=z("#lw_page");var r=getComputedStyle(document.body).getPropertyValue("--lwc-top-offset").trim();if(s.length){i=i-parseInt(s.css("margin-top"))}if(r){i=i-parseInt(r)}if(n>i){z("html, body").animate({scrollTop:i},250)}if(t.getView()===T.event_view_name){livewhale.frontend.initVideo(l.$events);if(z.lw.accordion){z(".lw_accordion").lw_accordion()}if(z.fn.saveandshare){z(".lw_widget_saveandshare .email a").saveandshare()}l.$events.initFrontendRegion()}return true});if(T.sidebar==="default"){z("#lw_cal_search",t).on("click",function(){t.addClass("lw_cal_sidebar_visible");U.on("click",function(e){if(!z(e.target).closest("#lw_cal_sidebar").length){t.removeClass("lw_cal_sidebar_visible");z(this).off(e)}return true})})}else if(T.sidebar==="original"){t.addClass("lw_cal_sidebar_hidden");_.addClass("lw_cal_original_sidebar");z("#lw_cal_search",t).on("click",function(){if(_.hasClass("lw_cal_month_view")){t.removeClass("lw_cal_sidebar_hidden");U.on("click",function(e){if(!z(e.target).closest("#lw_cal_sidebar").length){t.addClass("lw_cal_sidebar_hidden");z(this).off(e)}return true})}})}this.initEventHandlers();this.initEditDialog()}
39,getViewObjectFromViewName:function(e){var t;switch(e){case"home":t=this.getHomeView();break;case"today":case"day":t=this.getDayView();break;case"all":case"week":t=this.getListView();break;case"search":t=this.getSearchView();break;case"month":t=this.getMonthView();break;case T.event_view_name:t=this.getEventView();break;case"feed_builder":t=this.getFeedBuilderView();break;default:}return t},clickEventHandler:function(e){var t=z(this);var a=t.closest(".lw_cal_event");var i=t.attr("href");var n=t.attr("href");if(Y&&n.indexOf(Y)===0){n=n.substr(Y.length)}n=n.replace(/^(\/?#!?)/,"");var s=n.split("/");if(s&&s[0]!=="view"&&!A.includes(T.valid_views,s[0])){if(!j.lib.hasCurrentDomainAndTld(i)){e.preventDefault();window.open(i)}return true}e.preventDefault();var r;if(O){if(s.length===2){r=s[1]}}else{var l;if(a.length){var o=a.find("a[data-date]");if(o.length){i=o.attr("href");l=o.attr("data-date")}}r=i.substr(i.lastIndexOf("/")+1)}if(r){d.clearVars();d.setVar("slug",r);d.setVar("view","event");if(l){d.setVar("date",l)}d.load()}return true},getView:function(){return this._view},getMonthView:function(){if(null===this._month_view){this._month_view=new y(this)}return this._month_view},getHomeView:function(){if(null===this._home_view){this._home_view=new m(this)}return this._home_view},getDayView:function(){if(null===this._day_view){this._day_view=new p(this)}return this._day_view},getListView:function(){if(null===this._list_view){this._list_view=new v(this)}return this._list_view},getSearchView:function(){if(null===this._search_view){this._search_view=new w(this)}return this._search_view},getEventView:function(){if(null===this._event_view){this._event_view=new b(this)}return this._event_view},getFeedBuilderView:function(){if(null===this._feed_view){this._feed_view=new h(this)}return this._feed_view},getDefaultOgImage:function(){return this.default_og_image},getHeader:function(){return this.header},setDocumentTitle:function(e){if(!d.is_first_load||!O){e=e||this.header.getTitle();document.title=(e?e+" "+this.title_separator+" ":"")+this.page_title}},renderNowShowing:function(n,s){var e=this.showing_template;var t=n.getVar("search").length?n.getVar("search")[0]:"";var a=n.getView()==="all";var r=[];var i=["tags","categories","locations","groups","campus","audience"];A.each(i,function(e){var t=n.getVar(e);var a=[];if(e==="locations"){var i=[];if(z.isArray(j.calendar.locations)){i=j.calendar.locations}else if(z.isArray(s.location_filter_titles)){i=s.location_filter_titles}a=t;t=A.map(t,function(e){var t=A.find(i,{id:e});return t&&t.title?t.title:e})}if(t.length){r.push({name:e,values:t,keys:a})}});var l=n.getVar("date");var o,c;if(a&&l.length){o=this.getDateFromYmd(l[0]);var h=n.getVar("end_date");if(h.length){c=this.getDateFromYmd(h[0])}}var _=n.getVar("only_online").length?true:false;if(r.length||t||o||_){this.$now_showing.html(e(z.extend({view:n.getView(),filters:r,search_str:t,only_online:_,start_date:o,end_date:c},H))).show()}else{this.$now_showing.hide()}var d=(s.event_count>0?s.event_count:"No")+(a?" upcoming":"")+(_?" online":"")+" events found";if(o){d+=" from "+o;if(c){d+=" to "+c}}else if(!a){d+=" from "+z("#lw_cal_this_day").text()}if(t){d+=' matching search query "'+t+'"'}if(r){d+=" with ";var u=true;A.each(r,function(e){if(!u){d+=" and "}d+=" "+e.name+' "'+e.values.join(", ")+'"';u=false})}z("#lw_cal_aria").text(d);return true},initEventHandlers:function(){var t=this;this.feed_builder_vars={};U.on("click",".lw_build_feed_from_calendar",function(e){e.preventDefault();t.feed_builder_vars=d.vars;window.location.hash="#view/feed_builder";return true});U.on("click",".lw_cal_app_link",function(e){e.preventDefault();var t=z(this).attr("href");if(Y&&t.indexOf(Y)===0){t=t.substr(Y.length)}d.setVarsInRelativeUrl(t);d.load();return true});this.initSearchHandlers();if(T.placeholder){z("#lw_cal_search").attr("placeholder",T.placeholder)}this.$events.on("click",".lw_cal_date a",function(e){e.preventDefault();d.setVarsInRelativeUrl(z(this).attr("href"));d.load();return true});this.$events.on("click",".lw_cal_show_day",function(e){e.preventDefault();d.setVarsInRelativeUrl(z(this).attr("href"));d.load();return true});this.$events.on("click","a.lw_cal_show_all_categories",function(e){e.preventDefault();d.vars.categories=[];d.load();return true});this.$events.on("click","a.lw_cal_show_all_calendars",function(e){e.preventDefault();d.vars.calendars=[];d.load();return true});this.$events.on("click","a.lw_cal_show_all_events",function(e){e.preventDefault();d.setVar("view","all");d.load();return true});this.$events.on("click","a.lw_paginate_more, a.lw_paginate_total",function(e){e.preventDefault();if(z(e.target).hasClass("lw_paginate_total")){d.setVar("more","all")}else{var t=d.getVar("more");d.setVar("more",t.length?parseInt(t[0],10)+1:2)}d.load();return true});U.on("click","a.lw_cal_location_link",function(e){e.preventDefault();var t=z(e.currentTarget),a=z(e.target),i=t.attr("data-latitude"),n=t.attr("data-longitude"),s=t.attr("data-location"),r;if(a.hasClass("lwui-widget"))return true;e.stopPropagation();r=z("<div/>").attr("id","lw_cal_location_map");a.hoverbox({position:"left",autoOpen:true,distance:10,html:r,beforeOpen:function(){U.trigger("click")},open:function(){r.lwGoogleMapsEmbed({api_key:livewhale.maps_api_key,latitude:i,longitude:n,title:"Map showing location of "+s,zoom:17});r.after('<div class="lw_map_link"><a href="https://www.google.com/maps/place/'+encodeURIComponent(i+","+n)+'" class="lw_skip_link" target="_blank" >Open map in new window</a></div>');z(".lw_map_link").on("click","a",function(e){window.open(z(this).attr("href"),"_blank");return false})},close:function(){z(this).hoverbox("destroy")}});return true})},initSearchHandlers:function(){var i=this;var n=z("#lw_cal_search_form").off("submit").on("submit",function(e){e.preventDefault();var t=n.find('input[type="text"],input[type="search"]');var a=t.val();i.search(a);
39if(n.find(".lw_skip_link").length==0){n.append('<a href="#lw_cal_events" class="lw_skip_link">Skip to results</a>')}return false});U.on("calChange.lwcal",function(e,t){var a=t.getVar("search");var i=a.length?j.lib.htmlDecode(a[0]):"";n.find('input[type="text"],input[type="search"]').val(i)})},search:function(e){if(!e){d.clearVar("search")}d.clearVar("date");d.setVar("search",e);if(T.enable_search_view){d.setVar("view","search")}else if(T.search_all_events_only||d.getView()===T.event_view_name){d.setVar("view","all")}d.load()},initEditDialog:function(){if(!j.logged_in){z(".add_event").hide()}var t;U.on("click",".add_event",function(){if(!t){t=z('<div style="width:400px;"><h3 style="height:35px;">Add Event</h3><form method="post"><div style="height:35px;"><input type="text" name="title" placeholder="Event title"/></div><div style="height:35px;"><input type="text" class="lw_date" name="date" value="" placeholder="Date"/> at <input type="text" class="lw_time" name="time" value="" placeholder="Time"/></div><div><input type="button" name="save" value="Save"/> or <input type="button" name="cancel" value="Cancel"/></div></form></div>').addClass("add_event_overlay").appendTo("body").overlay({autoOpen:false,closeButton:false,destroyOnClose:false});var e=function(e,t){var a=document.createElement("script");a.type="text/javascript";if(a.readyState){a.onreadystatechange=function(){if(a.readyState==="loaded"||a.readyState==="complete"){a.onreadystatechange=null;t()}}}else{a.onload=function(){t()}}a.src=e;document.getElementsByTagName("head")[0].appendChild(a)};e(j.liveurl_dir+"/resource/js/livewhale/thirdparty/jqueryui/jquery-ui.js",function(){e(j.liveurl_dir+"/resource/js/livewhale/scripts/lwui/jquery.lw-timepicker.js",function(){if(!z.browser.msie||z.browser.version>=7){j.lib.initDatepicker(t.find("input.lw_date"));if(z.fn.timepicker){t.find("input.lw_time").timepicker({show24Hours:"euro"===j.timezone_format?true:false,startTime:"8:00am"})}}})});t.on("click",'input[name="cancel"]',function(){t.removeClass("is_open");t.overlay("close")});t.on("click",'input[name="save"]',function(){z.post(j.liveurl_dir+"/events/submit",z(this).parents("form").find(":input").serialize(),function(e){if(e.error){j.prompt("Save Error",e.error,"failure",{Okay:""})}else{t.removeClass("is_open");t.overlay("close");j.prompt("Save Successful","The event was saved successfully.","success",{Okay:""})}},"json")})}if(!t.hasClass("is_open")){t.addClass("is_open");t.overlay("open")}return false})}});var C=j.lwCalendar.subscriptionMenu={init:function(){var n=this,e,t,a,s;var i=this.group=j.group_title&&j.page.indexOf(j.group_directory)===0?j.group_title:T.group||"";a=z("#lw_cal_subscription_menu_template",L);if(a.length){t=A.template(z("#lw_cal_subscription_menu_template",L).html())}else{t=this.getDefaultTemplate()}if(t&&z.isFunction(t)){e=t({group:i,all_events_link:this.getLink("ical")})}var r=this.$el=z(e);this.$ul=r.find("ul");U.on("calChange.lwcal",function(e,t,a,i){n.refresh()});r.on("click","a[class^=lw_cal_sub]:not(.lw_clipboard)",function(e){window.open(z(this).attr("href"),"_blank");return false});r.on("click",".lw_clipboard",function(e){e.preventDefault();var t=z(this).attr("href"),a,i;if(-1===t.indexOf("http")&&-1===t.indexOf("webcal")){t=T.host+t}a=livewhale.lib.copyToClipboard(t);if(a){i=r.find(".lw_link_copied")}else{i=r.find(".lw_link_copy_failed")}i.css("opacity",1).fadeIn(200);setTimeout(function(){i.animate({opacity:.5},200)},1200);if(s){s.hoverbox("position")}return true});var l=z("#lw_cal_subscribe");if(l.length){var o=l.offset().left+l.width()<z("body").width()/2?"right":"left";var c=l.find(".lw_cal_subscribe_button").length?l.find(".lw_cal_subscribe_button"):l.find("a");s=c.hoverbox({position:o,title:"Subscribe to feeds",close:function(){r.find(".lw_link_copied").hide();r.find(".lw_link_copy_failed").hide()},html:r})}},getLink:function(e,t){var a=z(decodeURIComponent(d.getWidgetSyntax())),n=j.liveurl_dir+"/"+e+"/events",i=["group","exclude_group","tag","exclude_tag","exclude_subscription"],s=["groups","language","tags","audience","campus"],r="";var l={groups:"group",tags:"tag",audience:"categories_audience",campus:"categories_campus"};A.each(i,function(t){a.find("#"+t).each(function(){var e=encodeURIComponent(z(this).text()).replace(/'/g,"%27");if(e){n+="/"+t+"/"+e}})});if(t){n+="/category/"+encodeURIComponent(t)}z.each(s,function(e,t){var a=d.getVar(t);var i=l[t]||t;if("tag"===i&&a.length>1){n+="/tag_mode/any"}A.each(a,function(e){n+="/"+i+"/"+encodeURIComponent(e)})});if(livewhale.feed_suffix){n+=livewhale.feed_suffix}if(t){if(this.group){r=this.group+" "}r+=t+" Events"}else{r=(this.group?this.group:"All")+" Events"}n+="/header/"+encodeURIComponent(r);if(e==="ical"&&T.webcal_feed_links){n=n.replace(/^https?:\/\//,"");n="webcal://"+window.location.host+n}return n},getItem:function(e,t){var a=this.getLink("rss",t),i=this.getLink("ical",t),n;n="<li>"+'<span class="lw_cal_sub_cat">'+e+"</span> "+'<a class="lw_cal_sub_rss" target="new" aria-label="RSS for '+e+'" href="'+a+'" rel="nofollow">RSS</a> | '+'<a class="lw_cal_sub_ical" target="new" aria-label="ICAL for '+e+'" href="'+i+'" rel="nofollow">ICAL</a> | '+'<a class="lw_cal_sub_ical lw_clipboard" aria-label="Copy Link for ICAL for '+e+'" href="'+i+'" rel="nofollow">Copy Link</a>'+"</li>";return n},getCategoryItems:function(){var t=this;var a="";z("#lw_cal_category_selector ul > li label").each(function(){var e=z.trim(z(this).text());a+=t.getItem(e,e)}
39);return a},refresh:function(){var e=this.getItem("All Calendars"),t=d.getVar("groups"),a,i;if(t&&t.length===1){i=t[0]}else{i=j.group_title||T.group||""}if(i!==this.group){this.group=i;if(i){this.$el.find("> p:first-child strong").text(i)}else{a=this.$el.find("> p:first-child");a.find("strong").text(a.attr("data-default")||"Main Calendar")}}e+=this.getCategoryItems();var n=this.$el.find("a.lw_cal_sub");if(n.length){n.attr("href",this.getLink("ical"))}this.$ul.html(e)},getDefaultTemplate:function(e,t){return'<div id="lw_cal_subscription_menu">'+'<p data-default="Main Calendar">'+"Current calendar: <strong>{{ group }}</strong>"+"</p>"+'<p><a class="lw_cal_sub" href="{{ all_events_link }}">Subscribe to all {{ group }} events</a></p>'+'<p class="lw_link_copied" style="display: none; margin: 10px 0;">'+"Event feed link copied.<br/>Paste into any calendar app."+"</p>"+'<p class="lw_link_copy_fail" style="display: none; margin: 10px 0;">Unable to copy link!</p>'+'<h6 class="" style="margin: 10px 0;">Subscribe by event type:</h6>'+"<ul></ul>"+"</div>"}};var $=A.extend({},o,{init:function(){var e=this.$el=z("#lw_mini_cal");if(!e.length)return;this.year=null;this.month=null;this.$week_sel=z("<div/>").addClass("lw_week_select").hide();this.today=this.getYmdFromDate(new Date);this.sel_tr=null;var s=this;z('<div class="lw_sr_only" id="lw_mini_cal_header_aria" aria-live="polite"></div>').insertBefore(z("#lw_mini_cal"));e.on("click","h3 a,.lw_right,.lw_left",function(e){e.preventDefault();var t=z(this);if(t.hasClass("lw_left")){s.previous()}else if(t.hasClass("lw_right")){s.next()}return true});this.$in_focus=null;e.on("keydown","td",function(e){switch(e.which){case 13:e.preventDefault();s.selectDayInFocus();break;case 37:s.prevDayFocus();break;case 39:s.nextDayFocus();break;case 38:e.preventDefault();s.previousWeekFocus();break;case 40:e.preventDefault();s.nextWeekFocus();break}});e.on("click","td",function(e){e.preventDefault();var t=z(this),a=parseInt(t.text(),10),i=s.month,n=s.year;if(!a)return;if(t.hasClass("lw_prev_month")){if(i===1){i=12;n--}else{i--}}if(t.hasClass("lw_next_month")){if(i===12){i=1;n++}else{i++}}z("body").on("calMiniLoad.lwcal",s.focusCurrentDayLink);d.setVar("view",T.default_minical_view);d.clearVar("search");d.clearVar("search_period");d.setDate(n,i,a);d.load()});e.on("click",".lw_week_select",function(e){if(!s.sel_tr)return false;var t=z(s.sel_tr),i;t.children().each(function(e,t){var a=z(t).text();a=a.replace(/>/g,"");if(a){i=parseInt(a,10);return false}});if(i){d.setVar("view","week");d.clearVar("search");d.clearVar("search_period");d.setDate(s.year,s.month,i);d.load()}});e.on("mouseenter","tbody tr",function(e){s.sel_tr=this;var t=z(this).position().top+2;if(z.browser.msie&&parseInt(z.browser.version,10)===8){t+=15}s.$week_sel.show().css("top",t)});e.on("mouseleave","tbody,.lw_week_select",function(e){var t=z(e.toElement||e.relatedTarget);if(t.hasClass("lw_week_select"))return false;s.$week_sel.hide()});e.on("click","table a",function(e){e.preventDefault();return true});U.on("calChange.lwcal",function(e,t,a,i){s.data=i;s.view=a;s.render(null,null,null,a)});this.template=A.template(z("#lw_cal_mini_cal_template",L).html())},selectDayInFocus:function(){this.$in_focus.trigger("click")}
39,removeFocus:function(e){e.attr("aria-selected",false).attr("tabindex",-1).removeClass("lw_focus")},addFocus:function(e){e.attr("aria-selected",true).attr("tabindex",0).addClass("lw_focus").trigger("focus")},prevDayFocus:function(){var e=this.$in_focus;this.removeFocus(e);if(0===e.index()){var t=e.closest("tr");this.$in_focus=0===t.index()?t.siblings(":last").find("td:last"):t.prev().find("td:last")}else{this.$in_focus=e.prev()}this.addFocus(this.$in_focus)},nextDayFocus:function(){var e=this.$in_focus;this.removeFocus(e);if(6===e.index()){var t=e.closest("tr");this.$in_focus=t.closest("tbody").find("tr").length===t.index()+1?t.siblings(":first").find("td:first"):t.next().find("td:first")}else{this.$in_focus=e.next()}this.addFocus(this.$in_focus)},previousWeekFocus:function(){var e=this.$in_focus;this.removeFocus(e);var t=e.closest("tr");this.$in_focus=0===t.index()?t.siblings(":last").find("td").eq(e.index()):t.prev().find("td").eq(e.index());this.addFocus(this.$in_focus)},nextWeekFocus:function(){var e=this.$in_focus;this.removeFocus(e);var t=e.closest("tr");this.$in_focus=t.closest("tbody").find("tr").length===t.index()+1?t.siblings(":first").find("td").eq(e.index()):t.next().find("td").eq(e.index());this.addFocus(this.$in_focus)},focusPreviousMonthLink:function(){z("body").off("calMiniLoad.lwcal",this.focusNextMonthLink);z(".lw_left").trigger("focus")},focusNextMonthLink:function(){z("body").off("calMiniLoad.lwcal",this.focusNextMonthLink);z(".lw_right").trigger("focus")},focusCurrentDayLink:function(){z("body").off("calMiniLoad.lwcal",this.focusCurrentDayLink);z("#lw_mini_cal .selected.active").trigger("focus");if(z("#lw_mini_cal + .lw_skip_link").length==0){z("#lw_mini_cal").after('<a href="#lw_cal_events" class="lw_skip_link">Skip to results</a>')}},previous:function(){var e,t;if(1===this.month){t=12;e=this.year-1}else{t=this.month-1;e=this.year}z("body").on("calMiniLoad.lwcal",this.focusPreviousMonthLink);this.showMonth(e,t)},next:function(){var e,t;if(12===this.month){t=1;e=this.year+1}else{t=this.month+1;e=this.year}z("body").on("calMiniLoad.lwcal",this.focusNextMonthLink);this.showMonth(e,t)},showMonth:function(t,a){var i=this;var n=d.getVar("view")[0]||"day";if(T.mini_cal_heat_map){var e=j.liveurl_dir+"/calendar/month_events_per_day?year="+t+"&month="+a+d.getAjaxQueryString();z.ajax({url:e,dataType:"json",success:function(e){i.render(t,a,i.day,n,e)}})}else{this.render(t,a,this.day,n)}},getDates:function(){var e,t;var a=d.getVar("date").length?this.getDateFromYmd(d.getVar("date")[0]):new Date;switch(this.view){case"day":case T.event_view_name:e=a;t=e;break;case"week":e=a;t=new Date(e.getFullYear(),e.getMonth(),e.getDate());e.setDate(e.getDate()-e.getDay());t.setDate(e.getDate()+6);break;case"month":e=a;t=new Date(e.getFullYear(),e.getMonth()+1);t.setDate(e.getDate()-1);break;case"all":e=a;if(d.getVar("end_date").length){t=this.getDateFromYmd(d.getVar("end_date")[0])}else{t=new Date;t.setFullYear(5e3)}break;default:e=new Date;t=new Date;break}e.setHours(0,0,0,0);t.setHours(0,0,0,0);return[e,t]},render:function(_,d,e,t,a){var i=this.getDates(),u=i[0],f=i[1],n;if(!_||!d||!e){n=this.getYmdFromDate(u);_=parseInt(n.substr(0,4),10);d=parseInt(n.substr(4,2),10);e=parseInt(n.substr(6,2),10)}var s=d===1?12:d-1,r=d===1?_-1:_,g=this.getDaysInMonth(r,s),p=this.getDaysInMonth(_,d),l=new Date(_,d-1,1),o=l.getDay(),c=Math.ceil((p+o)/7),h=[],m=0-o,v=_.toString()+(d<10?"0"+d:d.toString()),w=this,y=a?a:this.data.month_day_cnt||null;this.year=_;this.month=d;this.day=e;this.sel_tr=null;var b;var k=V.prototype._pad;h=A.map(A.range(c),function(e){var t="",a,i,n;for(var s=0;s<7;s++){m++;n=v+(m<10?"0"+m:m.toString());i=[];if(T.mini_cal_heat_map&&y&&y[m]>0){i.push("has_items")}b=w.getDateFromYmd(_+k(d,2)+k(m,2));if(b.getTime()>=u.getTime()&&b.getTime()<=f.getTime()){i.push("selected")}if(w.today===n){i.push("today")}var r=_;var l=d-1;if(m<=0){i.push("lw_prev_month");a=g+m;if(0===d){l=11;r--}else{l--}}else if(m>p){i.push("lw_next_month");a=m-p;if(11===d){l=0;r++}else{l++}}else{i.push("active");i.push("d_"+m);a=m}var o=new Date(r,l,a);var c=new V(o);var h=c.format("F j, Y");t+='<td class="'+i.join(" ")+'" title="'+h+'" aria-label="'+h+'" role="gridcell" aria-selected="false" tabindex="-1">'+'<a href="#" tabindex="-1">'+a+"</a>"+"</td>"}return t});this.$el.html(this.template({mini_cal_body:"<tr>"+h.join("</tr><tr>")+"</tr>",mini_cal_header:this.month_names[d-1]+" "+_}));var D="<div>Mini calendar showing "+this.month_names[d-1]+" "+_+"</div>";if(z("#lw_mini_cal_header_aria").text()!=z(D).text()){z("#lw_mini_cal_header_aria").text(z(D).text())}var x=this.$el.find("td.selected").first();if(x.length){this.$in_focus=x}else{var C=this.$el.find("tbody td:first");this.$in_focus=C}this.$in_focus.attr("tabindex","0").attr("aria-selected","true").attr("aria-label",this.$in_focus.attr("aria-label")+". Use arrow keys to find a date, Enter to select a date.");this.$el.append(this.$week_sel);U.trigger("calMiniLoad.lwcal",[this,_,d,e])},getDaysInMonth:function(e,t){var a=0===e%4&&e%100||0===e%400?1:0;return t===2?28+a:31-(t-1)%7%2},selectDay:function(e){this.day=e;this.$el.find("td.selected").removeClass("selected");this.$el.find(".d_"+e).addClass("selected")},selectWeek:function(e){this.day=e;this.$el.find("td.selected").removeClass("selected");this.$el.find(".d_"+e).parent("tr").children("td").addClass("selected")}});var D={$el:null,$ul:null,init:function(e){var i=this;this.render();this.$el=z("#"+this.wrapper_id);if(!this.$el.length)return false;this.$ul=this.$("ul").on("click",'input[type="checkbox"]',z.proxy(this.select,this));if(z.isFunction(this.selectorInit())){this.selectorInit()}if(this.$ul.children().length){this.$el.removeClass("lw_hidden").show()}else{this.$el.hide()}U.on("calChange.lwcal",function(e,t,a){i.highlightSelected.apply(i);return true})},$:function(e){return this.$el.find(e)},addItem:function(e){d.appendVar(this.selector_key,e)},removeItem:function(e){d.removeVar(this.selector_key,e)}};var S=j.lwCalendar.tags=A.extend({selector_key:"tags",id_prefix:"lw_cal_tag_",wrapper_id:"lw_cal_tag_selector",visible:false,$ul:null,render:function(){var e,t;if(T.modular&&T.show_tags){e=z("#lw_cal_tag_selector");if(e.length&&j.calendar.tags){t=A.template(z("#lw_cal_tag_selector_template",L).html());e.replaceWith(t({tags:j.calendar.tags}))}}},selectorInit:function(){var t=this;this.$ul=this.$("ul");this.$toggle=this.$("#lw_cal_tag_toggle");this.$toggle.on("click",function(e){e.preventDefault();t.toggleVisibility();t.visible=true;return false});this.$ul.hide();if(window.location.hash.indexOf("tags/")!==-1){this.toggleVisibility()}},toggleVisibility:function(){if("show"===this.$toggle.text()){this.$toggle.text("hide").attr("aria-expanded",true)}else{this.$toggle.text("show").attr("aria-expanded",false)}this.$ul.slideToggle("medium")},select:function(e){if(!z(e.target).is("input[type=checkbox],label")){return true}var t=z(e.currentTarget).closest("li");var a=t.find("input");var i=a.length&&a.attr("value")!==undefined?a.val():z.trim(t.find("label").text());if(t.hasClass("selected")){t.removeClass("selected");this.removeItem(i)}else{t.addClass("selected");this.addItem(i)}
39z(".lw_cal_tag .lw_skip_link").remove();t.append('<a href="#lw_cal_events" class="lw_skip_link">Skip to results</a>');if(d.getView()===T.event_view_name){d.setVar("view","all");d.clearVar("slug")}U.trigger("lw.tagUpdated");d.load();return true},highlightSelected:function(){var s=d.getValue(this.selector_key);if(s&&s.length){this.$ul.children().each(function(e,t){var a=z(t);var i=a.find("input");var n=i.length&&i.attr("value")!==undefined?i.val():z.trim(a.find("label").text());if(z.isArray(s)&&-1!==z.inArray(n,s)){a.addClass("selected").find("input:checkbox").prop("checked",true)}else if(a.hasClass("selected")){a.removeClass("selected").find("input:checkbox").prop("checked",false)}})}else{this.$ul.children("li.selected").removeClass("selected").find("input:checkbox").prop("checked",false)}return true}},D);var F=j.lwCalendar.categories=A.extend({selector_key:"categories",id_prefix:"lw_cal_cat_",wrapper_id:"lw_cal_category_selector",render:function(){var e,t;if(T.modular&&T.show_categories){e=z("#lw_cal_category_selector");if(e.length&&j.calendar.categories){t=A.template(z("#lw_cal_category_selector_template",L).html());e.replaceWith(t({categories:j.calendar.categories}))}}},selectorInit:function(){if(T.exclusive_categories){z("<li/>").addClass("all").text("All").prependTo(this.$ul)}},select:function(e){if(T.exclusive_categories){this.select=this.selectCategory}else{this.select=this.toggleCategory}return this.select(e)},toggleCategory:function(e){var t=z(e.currentTarget).closest("li");if(!z(e.target).is("input[type=checkbox]")){return true}if(t.hasClass("selected")){this.deselectItem(t)}else{this.selectItem(t)}z(".lw_cal_selector .lw_skip_link").remove();t.append('<a href="#lw_cal_events" class="lw_skip_link">Skip to results</a>');if(d.getView()===T.event_view_name){d.setVar("view","all");d.clearVar("slug")}d.load();return true},selectCategory:function(e){var t=z(e.currentTarget).closest("li"),a=d.getView();if(!z(e.target).is("input[type=checkbox]")){return true}if(t.hasClass("selected"))return true;z(".lw_cal_selector .lw_skip_link").remove();t.append('<a href="#lw_cal_events" class="lw_skip_link">Skip to results</a>');d.clearVar("categories");d.clearVar("group");if("all"===a){d.setVar("view","day");d.clearVar("tags");d.clearVar("locations");d.clearVar("search");d.clearVar("search_period")}if(a===T.event_view_name){d.setVar("view","day");d.clearVar("slug")}if(!t.hasClass("all")){this.selectItem(t)}d.load();return true},selectItem:function(e){var t=e.find("input");var a=t.length&&t.val()?t.val():e.find("label").text();this.addItem(a)},deselectItem:function(e){var t=e.find("input");var a=t.length&&t.val()?t.val():e.find("label").text();this.removeItem(a)},highlightSelected:function(){var i=d.getValue(this.selector_key);if(i&&i.length){this.$ul.children().each(function(e,t){var a=z(t);if(z.isArray(i)&&-1!==z.inArray(z.trim(a.find("label").text()),i)){a.addClass("selected");a.find("input:checkbox").prop("checked",true)}else if(a.hasClass("selected")){a.removeClass("selected");a.find("input:checkbox").prop("checked",false)}})}else{this.$ul.children("li.selected").removeClass("selected").find("input:checkbox").prop("checked",false);if(T.exclusive_categories){this.$ul.children(".all").addClass("selected")}}return true}},D);var M=j.lwCalendar.audience=A.extend({selector_key:"audience",id_prefix:"lw_cal_cat_audience_",wrapper_id:"lw_cal_category_audience_selector",render:function(){var e,t;if(T.modular&&T.show_categories){e=z("#lw_cal_category_audience_selector");if(e.length&&j.calendar.categories){t=A.template(z("#lw_cal_category_audience_selector_template",L).html());e.replaceWith(t({audiences:j.calendar.categories_audience}))}}},selectorInit:function(){if(T.exclusive_categories){z("<li/>").addClass("all").text("All").prependTo(this.$ul)}},select:function(e){var t=z(e.currentTarget).closest("li");if(!z(e.target).is("input[type=checkbox]")){return true}if(t.hasClass("selected")){this.deselectItem(t)}else{this.selectItem(t)}z(".lw_cal_selector .lw_skip_link").remove();t.append('<a href="#lw_cal_events" class="lw_skip_link">Skip to results</a>');if(d.getView()===T.event_view_name){d.setVar("view","all");d.clearVar("slug")}d.load();return true},selectItem:function(e){var t=e.find("input");
39var a=t.length&&t.val()?t.val():e.find("label").text();this.addItem(a)},deselectItem:function(e){var t=e.find("input");var a=t.length&&t.val()?t.val():e.find("label").text();this.removeItem(a)},highlightSelected:function(){var i=d.getValue(this.selector_key);if(i&&i.length){this.$ul.children().each(function(e,t){var a=z(t);if(z.isArray(i)&&-1!==z.inArray(z.trim(a.find("label").text()),i)){a.addClass("selected");a.find("input:checkbox").prop("checked",true)}else if(a.hasClass("selected")){a.removeClass("selected");a.find("input:checkbox").prop("checked",false)}})}else{this.$ul.children("li.selected").removeClass("selected").find("input:checkbox").prop("checked",false);if(T.exclusive_categories){this.$ul.children(".all").addClass("selected")}}return true}},D);var I=j.lwCalendar.campus=A.extend({selector_key:"campus",id_prefix:"lw_cal_cat_campus_",wrapper_id:"lw_cal_category_campus_selector",render:function(){var e=z("#lw_cal_category_campus_selector");var t;if(e.length&&j.calendar.categories_campus){t=A.template(z("#lw_cal_category_campus_selector_template",L).html());e.replaceWith(t({campuses:j.calendar.categories_campus}))}},selectorInit:function(){if(T.exclusive_categories){z("<li/>").addClass("all").text("All").prependTo(this.$ul)}},select:function(e){var t=z(e.currentTarget).closest("li");if(!z(e.target).is("input[type=checkbox]")){return true}if(t.hasClass("selected")){this.deselectItem(t)}else{this.selectItem(t)}z(".lw_cal_selector .lw_skip_link").remove();t.append('<a href="#lw_cal_events" class="lw_skip_link">Skip to results</a>');if(d.getView()===T.event_view_name){d.setVar("view","all");d.clearVar("slug")}d.load();return true},selectItem:function(e){var t=e.find("input");var a=t.length&&t.val()?t.val():e.find("label").text();this.addItem(a)},deselectItem:function(e){var t=e.find("input");var a=t.length&&t.val()?t.val():e.find("label").text();this.removeItem(a)},highlightSelected:function(){var i=d.getValue(this.selector_key);if(i&&i.length){this.$ul.children().each(function(e,t){var a=z(t);if(z.isArray(i)&&-1!==z.inArray(z.trim(a.find("label").text()),i)){a.addClass("selected");a.find("input:checkbox").prop("checked",true)}else if(a.hasClass("selected")){a.removeClass("selected");a.find("input:checkbox").prop("checked",false)}})}else{this.$ul.children("li.selected").removeClass("selected").find("input:checkbox").prop("checked",false);if(T.exclusive_categories){this.$ul.children(".all").addClass("selected")}}return true}},D);var N=j.lwCalendar.locations=A.extend({selector_key:"locations",id_prefix:"lw_cal_loc_",wrapper_id:"lw_cal_location_selector",render:function(){var e,t;if(T.modular&&T.show_locations){e=z("#"+this.wrapper_id);if(e.length&&j.calendar.locations){t=A.template(z("#"+this.wrapper_id+"_template",L).html());e.replaceWith(t({locations:j.calendar.locations}))}}},selectorInit:function(){this.locations={};if(A.isArray(j.calendar.locations)&&j.calendar.locations.length){this.locations=A.reduce(j.calendar.locations,function(e,t){e[t.id]=t.title;return e},{})}if(T.exclusive_categories){z("<li/>").addClass("all").text("All").prependTo(this.$ul)}},getLocation:function(e){return this.locations[e]},select:function(e){if(!z(e.target).is("input[type=checkbox]")){return true}var t=z(e.currentTarget).closest("li"),a=t.find("input").val();if(t.hasClass("selected")){t.removeClass("selected");this.removeItem(a)}else{t.addClass("selected");this.addItem(a)}z(".lw_cal_selector .lw_skip_link").remove();t.append('<a href="#lw_cal_events" class="lw_skip_link">Skip to results</a>');if(d.getView()===T.event_view_name){d.setVar("view","all");d.clearVar("slug")}d.load();return true},highlightSelected:function(){var n=d.getValue(this.selector_key);if(n&&n.length){this.$ul.children().each(function(e,t){var a=z(t),i=a.find("input").val();if(z.isArray(n)&&-1!==z.inArray(i,n)){a.addClass("selected");a.find("input:checkbox").prop("checked",true)}else if(a.hasClass("selected")){a.removeClass("selected");a.find("input:checkbox").prop("checked",false)}})}else{this.$ul.children("li.selected").removeClass("selected").find("input:checkbox").prop("checked",false)}return true}},D);var W=j.lwCalendar.groups=A.extend({selector_key:"groups",id_prefix:"lw_cal_group_",wrapper_id:"lw_cal_group_selector",render:function(){var e,t;if(T.modular&&T.show_categories){e=z("#lw_cal_group_selector");if(e.length&&j.calendar.groups){t=A.template(z("#lw_cal_group_selector_template",L).html());e.replaceWith(t({groups:j.calendar.groups}))}}},selectorInit:function(){var a=this;this.$lis=this.$ul.children();this.group_cnt=this.$lis.length;this.$el.on("click",".select",function(e){var t=z(this);e.preventDefault();if(t.hasClass("all")){a.$lis.not(".selected").each(function(){a.selectItem(z(this))})}else{a.$lis.filter(".selected").each(function(){a.deselectItem(z(this))})}d.load();return true})},select:function(e){var t=z(e.currentTarget).closest("li");if(!z(e.target).is("input[type=checkbox]")){return true}if(t.hasClass("selected")){this.deselectItem(t)}else{this.selectItem(t)}
39z(".lw_cal_selector .lw_skip_link").remove();t.append('<a href="#lw_cal_events" class="lw_skip_link">Skip to results</a>');if(d.getView()===T.event_view_name){d.setVar("view","all");d.clearVar("slug")}d.load();return true},markAllSelected:function(){this.$ul.children().addClass("selected").find("input:checkbox").prop("checked",true)},markAllDeselected:function(){this.$ul.children().removeClass("selected").find("input:checkbox").prop("checked",false)},selectItem:function(e){if(e.hasClass("selected"))return;e.addClass("selected").find("input").prop("checked",true);var t=this.$lis.filter(".selected").length;if(t!==1&&t===this.group_cnt){d.clearVar("groups")}else{this.addItem(e.find("input").val())}},deselectItem:function(e){var t=this;if(!e.hasClass("selected"))return;e.removeClass("selected").find("input").prop("checked",false);var a=this.$lis.filter(".selected").length;if(a!==0&&a===this.group_cnt-1){this.$lis.filter(".selected").each(function(){t.addItem(z(this).find("input").val())})}else{this.removeItem(e.find("input").val())}},highlightSelected:function(){var i=d.getValue(this.selector_key);this.$ul.children().removeClass("selected").find("input:checkbox").prop("checked",false);if(i&&i.length){this.$ul.children().each(function(e,t){var a=z(t);if(z.isArray(i)&&-1!==z.inArray(z.trim(a.find("input[type=checkbox]").val()),i)){a.addClass("selected");a.find("input:checkbox").prop("checked",true)}})}return true}},D);var P=j.lwCalendar.onlineFilter=A.extend({selector_key:"only_online",id_prefix:"lw_cal_online_",wrapper_id:"lw_cal_online_selector",render:function(){var e=z("#lw_cal_online_selector");var t;if(e.length){t=A.template(z("#lw_cal_online_selector_template",L).html());e.replaceWith(t())}},selectorInit:z.noop,select:function(e){var t=z(e.currentTarget),a=z(e.currentTarget).closest("li");var i=t.prop("checked");if(i){d.setVar(this.selector_key,"true")}else{d.clearVar(this.selector_key)}z(".lw_cal_selector .lw_skip_link").remove();a.append('<a href="#lw_cal_events" class="lw_skip_link">Skip to results</a>');if(d.getView()===T.event_view_name){d.setVar("view","all");d.clearVar("slug")}d.load();return true},highlightSelected:function(){var e=d.getValue(this.selector_key);var t=e.length&&e[0]?true:false;var a=this.$el.find(":checkbox");if(t!==a.prop("checked")){a.prop("checked",t)}return true}},D);var q=j.lwCalendar.calendars={init:function(){var e,t;if(T.modular&&T.show_categories){e=z("#lw_cal_calendar_selector");if(e.length&&!A.isEmpty(j.calendar.calendars)){t=A.template(z("#lw_cal_calendar_selector_template",L).html());e.replaceWith(t({calendars:j.calendar.calendars}))}}}};var J=j.lwCalendar.loginLink={init:function(){var e,t;if(T.modular){e=z("#lw_cal_login_link");if(e.length){t=A.template(z("#lw_cal_login_link_template",L).html());e.replaceWith(t({livewhale:j}))}}}};if(z(".lw_msg_failure").length&&window.innerWidth&&window.innerWidth<=480){z(".lw_msg_failure").remove()}function B(){U.trigger("calBeforeInit.lwcal");k.init();F.init();M.init();I.init();S.init();W.init();q.init();P.init();N.init();C.init();$.init();J.init();d.init()}z(function(){B()})})(typeof livewhale!=="undefined"&&livewhale.jQuery?livewhale.jQuery:jQuery,window._);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.