Google
Edit File: events-collection-f19095d8b31c7baa29e9-min.js
webpackJsonp([23],{0:function(t,x,a){a(2077);a(2076);a(438);a(1008);a(1059);a(1058);a(375);a(437);a(1060);a(952);a(184);a(220)},184:function(t,x){YUI.add("squarespace-spinner",function(a){a.namespace("Squarespace").Spinner=a.Base.create("Spinner",a.Widget,[],{renderUI:function(){this.get("boundingBox").addClass(this.get("color"));0<a.UA.ie&&10>a.UA.ie&&(this.get("contentBox").append(a.Node.create('<img class="sqs-ie-spinner" src="../../universal/images-v6/configuration/crappy-ie-spinner.gif"/>')),this.get("boundingBox").addClass("degraded")); var h=this.get("size");a.Lang.isNumber(h)||this.get("boundingBox").addClass(h)},spin:function(){this.get("boundingBox").show()},stop:function(){this.get("boundingBox").hide()},addClass:function(a){this.get("boundingBox").addClass(a)}},{CSS_PREFIX:"sqs-spin",NS:"spinner",ATTRS:{size:{value:"default",setter:function(h){a.Lang.isNumber(h)&&(this.set("width",h),this.set("height",h));return h}},color:{value:"light"}}})},"1.0",{requires:["base-build","widget"]})},220:function(t,x){YUI.add("squarespace-widgets-alert", function(a){a.namespace("Squarespace.Widgets");var h=a.Squarespace.Widgets.Alert=a.Base.create("alert",a.Squarespace.Widgets.Confirmation,[],{},{CSS_PREFIX:"sqs-widgets-confirmation",TYPE:a.Squarespace.Widgets.Confirmation.TYPE,ANCHOR:a.Squarespace.Widgets.Confirmation.ANCHOR,show:function(a){return new h(a)},ATTRS:{className:{value:"alert"},style:{value:a.Squarespace.Widgets.Confirmation.TYPE.CONFIRM_ONLY},"strings.confirm":{value:"Okay"}}})},"1.0",{requires:["base","squarespace-widgets-confirmation"]})}, 375:function(t,x){YUI.add("datatype-date-format",function(a,h){var c=function(q,d,a){"undefined"===typeof a&&(a=10);for(d+="";parseInt(q,10)<a&&1<a;a/=10)q=d+q;return q.toString()},g={formats:{a:function(a,d){return d.a[a.getDay()]},A:function(a,d){return d.A[a.getDay()]},b:function(a,d){return d.b[a.getMonth()]},B:function(a,d){return d.B[a.getMonth()]},C:function(a){return c(parseInt(a.getFullYear()/100,10),0)},d:["getDate","0"],e:["getDate"," "],g:function(a){return c(parseInt(g.formats.G(a)%100, 10),0)},G:function(a){var d=a.getFullYear(),c=parseInt(g.formats.V(a),10);a=parseInt(g.formats.W(a),10);a>c?d++:0===a&&52<=c&&d--;return d},H:["getHours","0"],I:function(a){a=a.getHours()%12;return c(0===a?12:a,0)},j:function(a){var d=new Date(""+a.getFullYear()+"/1/1 GMT");a=new Date(""+a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate()+" GMT")-d;a=parseInt(a/6E4/60/24,10)+1;return c(a,0,100)},k:["getHours"," "],l:function(a){a=a.getHours()%12;return c(0===a?12:a," ")},m:function(a){return c(a.getMonth()+ 1,0)},M:["getMinutes","0"],p:function(a,d){return d.p[12<=a.getHours()?1:0]},P:function(a,d){return d.P[12<=a.getHours()?1:0]},s:function(a,d){return parseInt(a.getTime()/1E3,10)},S:["getSeconds","0"],u:function(a){a=a.getDay();return 0===a?7:a},U:function(a){var d=parseInt(g.formats.j(a),10);a=6-a.getDay();d=parseInt((d+a)/7,10);return c(d,0)},V:function(a){var d=parseInt(g.formats.W(a),10),f=(new Date(""+a.getFullYear()+"/1/1")).getDay(),d=d+(4<f||1>=f?0:1);53===d&&4>(new Date(""+a.getFullYear()+ "/12/31")).getDay()?d=1:0===d&&(d=g.formats.V(new Date(""+(a.getFullYear()-1)+"/12/31")));return c(d,0)},w:"getDay",W:function(a){var d=parseInt(g.formats.j(a),10);a=7-g.formats.u(a);d=parseInt((d+a)/7,10);return c(d,0,10)},y:function(a){return c(a.getFullYear()%100,0)},Y:"getFullYear",z:function(a){a=a.getTimezoneOffset();var d=c(parseInt(Math.abs(a/60),10),0),g=c(Math.abs(a%60),0);return(0<a?"-":"+")+d+g},Z:function(a){var d=a.toString().replace(/^.*:\d\d( GMT[+-]\d+)? \(?([A-Za-z ]+)\)?\d*$/,"$2").replace(/[a-z ]/g, "");4<d.length&&(d=g.formats.z(a));return d},"%":function(a){return"%"}},aggregates:{c:"locale",D:"%m/%d/%y",F:"%Y-%m-%d",h:"%b",n:"\n",r:"%I:%M:%S %p",R:"%H:%M",t:"\t",T:"%H:%M:%S",x:"locale",X:"locale"},format:function(q,d){d=d||{};if(!a.Lang.isDate(q))return a.Lang.isValue(q)?q:"";var f,m;f=d.format||"%Y-%m-%d";m=a.Intl.get("datatype-date-format");for(var h=function(a,d){var c=g.aggregates[d];return"locale"===c?m[d]:c},v=function(d,f){var h=g.formats[f];switch(a.Lang.type(h)){case "string":return q[h](); case "function":return h.call(q,q,m);case "array":if("string"===a.Lang.type(h[0]))return c(q[h[0]](),h[1]);default:return f}};f.match(/%[cDFhnrRtTxX]/);)f=f.replace(/%([cDFhnrRtTxX])/g,h);f=f.replace(/%([aAbBCdegGHIjklmMpPsSuUVwWyYzZ%])/g,v);h=v=void 0;return f}};a.mix(a.namespace("Date"),g);a.namespace("DataType");a.DataType.Date=a.Date},"3.17.2",{lang:"ar ar-JO ca ca-ES da da-DK de de-AT de-DE el el-GR en en-AU en-CA en-GB en-IE en-IN en-JO en-MY en-NZ en-PH en-SG en-US es es-AR es-BO es-CL es-CO es-EC es-ES es-MX es-PE es-PY es-US es-UY es-VE fi fi-FI fr fr-BE fr-CA fr-FR hi hi-IN hu id id-ID it it-IT ja ja-JP ko ko-KR ms ms-MY nb nb-NO nl nl-BE nl-NL pl pl-PL pt pt-BR ro ro-RO ru ru-RU sv sv-SE th th-TH tr tr-TR vi vi-VN zh-Hans zh-Hans-CN zh-Hant zh-Hant-HK zh-Hant-TW".split(" ")})}, 437:function(t,x){YUI.add("datatype-date-math",function(a,h){var c=a.Lang;a.mix(a.namespace("Date"),{isValidDate:function(a){return c.isDate(a)&&isFinite(a)&&"Invalid Date"!=a&&!isNaN(a)&&null!=a?!0:!1},areEqual:function(a,c){return this.isValidDate(a)&&this.isValidDate(c)&&a.getTime()==c.getTime()},isGreater:function(a,c){return this.isValidDate(a)&&this.isValidDate(c)&&a.getTime()>c.getTime()},isGreaterOrEqual:function(a,c){return this.isValidDate(a)&&this.isValidDate(c)&&a.getTime()>=c.getTime()}, isInRange:function(a,c,d){return this.isGreaterOrEqual(a,c)&&this.isGreaterOrEqual(d,a)},addDays:function(a,c){return new Date(a.getTime()+864E5*c)},addMonths:function(a,c){var d=a.getFullYear(),f=a.getMonth()+c,d=Math.floor(d+f/12),f=(f%12+12)%12,m=new Date(a.getTime());m.setFullYear(d);m.setMonth(f);return m},addYears:function(a,c){var d=a.getFullYear()+c,f=new Date(a.getTime());f.setFullYear(d);return f},listOfDatesInMonth:function(a){if(!this.isValidDate(a))return[];var c=this.daysInMonth(a), d=a.getFullYear();a=a.getMonth();for(var f=[],m=1;m<=c;m++)f.push(new Date(d,a,m,12,0,0));return f},daysInMonth:function(a){if(!this.isValidDate(a))return 0;var c=a.getMonth(),d=[31,28,31,30,31,30,31,31,30,31,30,31];if(1!=c)return d[c];a=a.getFullYear();return 0===a%400?29:0===a%100?28:0===a%4?29:28}});a.namespace("DataType");a.DataType.Date=a.Date},"3.17.2",{requires:["yui-base"]})},438:function(t,x){YUI.add("datatype-date-parse",function(a,h){a.mix(a.namespace("Date"),{parse:function(c){c=new Date(+c|| c);return a.Lang.isDate(c)?c:null}});a.namespace("Parsers").date=a.Date.parse;a.namespace("DataType");a.DataType.Date=a.Date},"3.17.2")},952:function(t,x){YUI.add("squarespace-calendar-day-template",function(a){var h=a.Handlebars;(function(){var a=h.template;(h.templates=h.templates||{})["calendar-day.html"]=a(function(a,c,d,f,m){function h(a,d){return""}function v(a,k){var c,b,r;c='\n\t<div class="background';if((r=d["if"].call(a,(b=(b=(b=a.events,null==b||!1===b?b:b[0]),null==b||!1===b?b:b.structuredContent), null==b||!1===b?b:b.startDate),{hash:{},inverse:l.noop,fn:l.program(5,n,k),data:k}))||0===r)c+=r;return c+='">\n\t\t<a href="'+s((b=(b=(b=a.events,null==b||!1===b?b:b[0]),null==b||!1===b?b:b.fullUrl),typeof b===y?b.apply(a):b))+'" class="background-image-link"><img data-src="'+s((b=(b=(b=a.events,null==b||!1===b?b:b[0]),null==b||!1===b?b:b.assetUrl),typeof b===y?b.apply(a):b))+'" data-image-dimensions="'+s((b=(b=(b=a.events,null==b||!1===b?b:b[0]),null==b||!1===b?b:b.originalSize),typeof b===y?b.apply(a): b))+'" data-load="false" class="background-image"></a>\n\t</div>\n\t'}function n(a,d){return" background--iseventscollection"}function H(a,d){return" itemlist--iseventscollection"}function E(a,k){var c,b,r;c='\n\t<li class="item';if((b=d["if"].call(a,a.isMultiday,{hash:{},inverse:l.noop,fn:l.program(11,e,k),data:k}))||0===b)c+=b;if((b=d["if"].call(a,a.isSubsequentDayOfMultidayEvent,{hash:{},inverse:l.noop,fn:l.program(13,B,k),data:k}))||0===b)c+=b;c+='">\n\t\t<a href="';(b=d.fullUrl)?b=b.call(a,{hash:{}, data:k}):(b=a.fullUrl,b=typeof b===y?b.apply(a):b);c+=s(b)+'" class="item-link">\n\t\t\t<span class="item-time item-time--12hr">';r={hash:{},data:k};c+=s((b=d["calendar-compact-time-format"]||a["calendar-compact-time-format"],b?b.call(a,(b=a.structuredContent,null==b||!1===b?b:b.startDate),r):A.call(a,"calendar-compact-time-format",(b=a.structuredContent,null==b||!1===b?b:b.startDate),r)))+' </span>\n\t\t\t<span class="item-time item-time--24hr">';r={hash:{format:"%H:%M"},data:k};c+=s((b=d["date-format"]|| a["date-format"],b?b.call(a,(b=a.structuredContent,null==b||!1===b?b:b.startDate),r):A.call(a,"date-format",(b=a.structuredContent,null==b||!1===b?b:b.startDate),r)))+' </span>\n\t\t\t<span class="item-title">';(b=d.title)?b=b.call(a,{hash:{},data:k}):(b=a.title,b=typeof b===y?b.apply(a):b);c+=s(b)+"</span>\n\t\t\t";if((b=d["if"].call(a,a.isMultiday,{hash:{},inverse:l.noop,fn:l.program(15,D,k),data:k}))||0===b)c+=b;return c+"\n\t\t</a>\n\t</li>\n\t"}function e(a,d){return" item--multiday"}function B(a, d){return" item--ongoing"}function D(a,c){var k,b;k={hash:{format:"%b %e"},data:c};return k='<span class="item-enddate"> '+(s((b=d["date-format"]||a["date-format"],b?b.call(a,(b=a.structuredContent,null==b||!1===b?b:b.endDate),k):A.call(a,"date-format",(b=a.structuredContent,null==b||!1===b?b:b.endDate),k)))+"</span>")}function z(a,d){return" flyoutitemlist--iseventscollection"}function M(a,d){return" \n\t\tflyoutitemlist--hasmorecontent\n\t"}function u(a,k){var c,b,r;c="\n\t\t";r={hash:{},inverse:l.noop, fn:l.program(22,t,k),data:k};(b=d.events)?b=b.call(a,r):(b=a.events,b=typeof b===y?b.apply(a):b);d.events||(b=N.call(a,b,r));if(b||0===b)c+=b;return c+"\n\t"}function t(a,c){var k,b;k="\n\t\t\t";if((b=d["if"].call(a,a.excerpt,{hash:{},inverse:l.program(25,F,c),fn:l.program(23,x,c),data:c}))||0===b)k+=b;return k+"\n\t\t"}function x(a,d){return" \n\t\t\t\tflyoutitemlist--hasmorecontent\n\t\t\t"}function F(a,k){var c,b,r;c="\n\t\t\t\t";if((r=d["if"].call(a,(b=a.location,null==b||!1===b?b:b.addressLine1), {hash:{},inverse:l.noop,fn:l.program(26,C,k),data:k}))||0===r)c+=r;return c+"\n\t\t\t"}function C(a,d){return" \n\t\t\t\t\tflyoutitemlist--hasmorecontent\n\t\t\t\t"}function I(a,c){var e,b,f;e='\n\t<li class="flyoutitem';if((b=d["if"].call(a,a.isMultiday,{hash:{},inverse:l.noop,fn:l.program(29,J,c),data:c}))||0===b)e+=b;if((b=d["if"].call(a,a.isSubsequentDayOfMultidayEvent,{hash:{},inverse:l.noop,fn:l.program(31,K,c),data:c}))||0===b)e+=b;e+='">\n\t\t<h1 class="flyoutitem-title"><a href="';(b=d.fullUrl)? b=b.call(a,{hash:{},data:c}):(b=a.fullUrl,b=typeof b===y?b.apply(a):b);e+=s(b)+'" class="flyoutitem-link">';(b=d.title)?b=b.call(a,{hash:{},data:c}):(b=a.title,b=typeof b===y?b.apply(a):b);e+=s(b);if((b=d["if"].call(a,a.isMultiday,{hash:{},inverse:l.noop,fn:l.program(33,G,c),data:c}))||0===b)e+=b;e+=' <span class="flyoutitem-link-arrow"></span></a></h1>\n\t\t<div class="flyoutitem-datetime flyoutitem-datetime--12hr">\n\t\t\t';if((b=d["if"].call(a,a.isMultiday,{hash:{},inverse:l.program(37,L, c),fn:l.program(35,O,c),data:c}))||0===b)e+=b;e+='\n\t\t</div>\n\t\t<div class="flyoutitem-datetime flyoutitem-datetime--24hr">\n\t\t\t';if((b=d["if"].call(a,a.isMultiday,{hash:{},inverse:l.program(41,k,c),fn:l.program(39,w,c),data:c}))||0===b)e+=b;e+='\n\t\t</div>\n\t\t<div class="flyoutitem-location">\n\t\t\t';if((f=d["if"].call(a,(b=a.location,null==b||!1===b?b:b.addressTitle),{hash:{},inverse:l.noop,fn:l.program(43,r,c),data:c}))||0===f)e+=f;e+="\n\t\t\t";if((f=d["if"].call(a,(b=a.location,null== b||!1===b?b:b.addressLine1),{hash:{},inverse:l.noop,fn:l.program(45,Q,c),data:c}))||0===f)e+=f;e+="\n\t\t\t";if((f=d["if"].call(a,(b=a.location,null==b||!1===b?b:b.addressLine2),{hash:{},inverse:l.noop,fn:l.program(47,R,c),data:c}))||0===f)e+=f;e+="\n\t\t\t";if((f=d["if"].call(a,(b=a.location,null==b||!1===b?b:b.addressCountry),{hash:{},inverse:l.noop,fn:l.program(49,S,c),data:c}))||0===f)e+=f;e+="\n\t\t</div>\n\t\t";if((f=d["if"].call(a,a.excerpt,{hash:{},inverse:l.noop,fn:l.program(51,T,c),data:c}))|| 0===f)e+=f;return e+"\n\t</li>\n\t"}function J(a,d){return" flyoutitem--multiday"}function K(a,d){return" flyoutitem--ongoing"}function G(a,c){var k,b;k={hash:{format:"%b %e"},data:c};return k=' <span class="flyoutitem-enddate">'+(s((b=d["date-format"]||a["date-format"],b?b.call(a,(b=a.structuredContent,null==b||!1===b?b:b.endDate),k):A.call(a,"date-format",(b=a.structuredContent,null==b||!1===b?b:b.endDate),k)))+"</span>")}function O(a,c){var k,b,e;e={hash:{format:"%a, %b %e, %l:%M%P"},data:c};k= "\n\t\t\t\t"+(s((b=d["date-format"]||a["date-format"],b?b.call(a,(b=a.structuredContent,null==b||!1===b?b:b.startDate),e):A.call(a,"date-format",(b=a.structuredContent,null==b||!1===b?b:b.startDate),e)))+" – ");e={hash:{format:"%a, %b %e, %l:%M%P"},data:c};return k+=s((b=d["date-format"]||a["date-format"],b?b.call(a,(b=a.structuredContent,null==b||!1===b?b:b.endDate),e):A.call(a,"date-format",(b=a.structuredContent,null==b||!1===b?b:b.endDate),e)))+"\n\t\t\t"}function L(a,c){var k,b,e;e={hash:{format:"%l:%M%P"}, data:c};k="\n\t\t\t\t"+(s((b=d["date-format"]||a["date-format"],b?b.call(a,(b=a.structuredContent,null==b||!1===b?b:b.startDate),e):A.call(a,"date-format",(b=a.structuredContent,null==b||!1===b?b:b.startDate),e)))+" – ");e={hash:{format:"%l:%M%P"},data:c};return k+=s((b=d["date-format"]||a["date-format"],b?b.call(a,(b=a.structuredContent,null==b||!1===b?b:b.endDate),e):A.call(a,"date-format",(b=a.structuredContent,null==b||!1===b?b:b.endDate),e)))+"\n\t\t\t"}function w(a,c){var k,b,e;e={hash:{format:"%a, %b %e, %H:%M"}, data:c};k="\n\t\t\t\t"+(s((b=d["date-format"]||a["date-format"],b?b.call(a,(b=a.structuredContent,null==b||!1===b?b:b.startDate),e):A.call(a,"date-format",(b=a.structuredContent,null==b||!1===b?b:b.startDate),e)))+" – ");e={hash:{format:"%a, %b %e, %H:%M"},data:c};return k+=s((b=d["date-format"]||a["date-format"],b?b.call(a,(b=a.structuredContent,null==b||!1===b?b:b.endDate),e):A.call(a,"date-format",(b=a.structuredContent,null==b||!1===b?b:b.endDate),e)))+"\n\t\t\t"}function k(a,c){var k,b, e;e={hash:{format:"%H:%M"},data:c};k="\n\t\t\t\t"+(s((b=d["date-format"]||a["date-format"],b?b.call(a,(b=a.structuredContent,null==b||!1===b?b:b.startDate),e):A.call(a,"date-format",(b=a.structuredContent,null==b||!1===b?b:b.startDate),e)))+" – ");e={hash:{format:"%H:%M"},data:c};return k+=s((b=d["date-format"]||a["date-format"],b?b.call(a,(b=a.structuredContent,null==b||!1===b?b:b.endDate),e):A.call(a,"date-format",(b=a.structuredContent,null==b||!1===b?b:b.endDate),e)))+"\n\t\t\t"}function r(a, d){var c,b;return c=""+('<div class="flyoutitem-location-addresstitle">'+s((b=(b=a.location,null==b||!1===b?b:b.addressTitle),typeof b===y?b.apply(a):b))+"</div>")}function Q(a,d){var c,b;return c=""+('<div class="flyoutitem-location-address1">'+s((b=(b=a.location,null==b||!1===b?b:b.addressLine1),typeof b===y?b.apply(a):b))+"</div>")}function R(a,d){var c,b;return c=""+('<div class="flyoutitem-location-address2">'+s((b=(b=a.location,null==b||!1===b?b:b.addressLine2),typeof b===y?b.apply(a):b))+"</div>")} function S(a,c){var d,b;return d=""+('<div class="flyoutitem-location-addresscountry">'+s((b=(b=a.location,null==b||!1===b?b:b.addressCountry),typeof b===y?b.apply(a):b))+"</div>")}function T(a,c){var k,b;k='<div class="flyoutitem-excerpt">';(b=d.excerpt)?b=b.call(a,{hash:{},data:c}):(b=a.excerpt,b=typeof b===y?b.apply(a):b);if(b||0===b)k+=b;return k+"</div>"}this.compilerInfo=[4,">= 1.0.0"];d=this.merge(d,a.helpers);m=m||{};a="";var p,l=this,y="function",s=this.escapeExpression,A=d.helperMissing, N=d.blockHelperMissing;if((f=d["if"].call(c,(p=(p=c.events,null==p||!1===p?p:p[0]),null==p||!1===p?p:p.systemDataId),{hash:{},inverse:l.noop,fn:l.program(1,function(a,c){var k,b,e;k="\n\t";if((e=d["if"].call(a,(b=(b=a.events,null==b||!1===b?b:b[1]),null==b||!1===b?b:b.title),{hash:{},inverse:l.program(4,v,c),fn:l.program(2,h,c),data:c}))||0===e)k+=e;return k+"\n"},m),data:m}))||0===f)a+=f;f={hash:{format:"%a"},data:m};a=a+'\n\n<div class="marker">\n\t<div class="marker-dayname">'+(s((p=d["day-of-month-format"]|| c["day-of-month-format"],p?p.call(c,c.date,f):A.call(c,"day-of-month-format",c.date,f)))+'</div>\n\t<div class="marker-daynum">');f={hash:{format:"%e"},data:m};a+=s((p=d["day-of-month-format"]||c["day-of-month-format"],p?p.call(c,c.date,f):A.call(c,"day-of-month-format",c.date,f)))+"</div>\n</div>\n\n";if((f=d["if"].call(c,c.events,{hash:{},inverse:l.noop,fn:l.program(7,function(a,c){var k,b,e,r;k='\n<ul class="itemlist';if((e=d["if"].call(a,(b=(b=(b=a.events,null==b||!1===b?b:b[0]),null==b||!1=== b?b:b.structuredContent),null==b||!1===b?b:b.startDate),{hash:{},inverse:l.noop,fn:l.program(8,H,c),data:c}))||0===e)k+=e;k+='">\n\t';r={hash:{},inverse:l.noop,fn:l.program(10,E,c),data:c};(e=d.events)?e=e.call(a,r):(e=a.events,e=typeof e===y?e.apply(a):e);d.events||(e=N.call(a,e,r));if(e||0===e)k+=e;k+='\n</ul>\n\n<ul class="\n\tflyoutitemlist\n\t';if((e=d["if"].call(a,(b=(b=(b=a.events,null==b||!1===b?b:b[0]),null==b||!1===b?b:b.structuredContent),null==b||!1===b?b:b.startDate),{hash:{},inverse:l.noop, fn:l.program(17,z,c),data:c}))||0===e)k+=e;k+="\n\t";if((e=d["if"].call(a,(b=(b=a.events,null==b||!1===b?b:b[1]),null==b||!1===b?b:b.title),{hash:{},inverse:l.program(21,u,c),fn:l.program(19,M,c),data:c}))||0===e)k+=e;k+='\n">\n\t';r={hash:{},inverse:l.noop,fn:l.program(28,I,c),data:c};(e=d.events)?e=e.call(a,r):(e=a.events,e=typeof e===y?e.apply(a):e);d.events||(e=N.call(a,e,r));if(e||0===e)k+=e;return k+='\n</ul>\n\n<div class="itemcount">'+s((b=(b=a.events,null==b||!1===b?b:b.length),typeof b=== y?b.apply(a):b))+"</div>\n"},m),data:m}))||0===f)a+=f;return a+="\n"})})();a.Handlebars.registerPartial("calendar-day.html".replace("/","."),h.templates["calendar-day.html"])},"1.0",{requires:["handlebars-base"]})},1008:function(t,x,a){var h=a(125);YUI.add("squarespace-calendar-core-renderer",function(a){var g=function(a){return a.recordType===h.EVENT?a.structuredContent.startDate:a.addedOn};a.Squarespace.SquarespaceCalendar=a.Base.create("SquarespaceCalendar",a.Calendar,[],{initializer:function(){this._fetchEvents()}, bindUI:function(){a.Calendar.superclass.bindUI.call(this);this.before("dateChange",this._clearEvents,this);this.after("dateChange",this._fetchEvents,this);this.after("collectionIdChange",this._fetchEvents,this)},_clearEvents:function(){this.set("events",[])},_fetchEvents:function(){var d=this.get("date"),d=a.DataType.Date.format(d,{format:"%B-%Y",locale:"en"});a.Data.get({url:this._getFetchUrl(d),success:this._parseResponse,failure:this._handleResponseError},this)},_parseResponse:function(a){this.set("events", a)},_handleResponseError:function(d){console.error("Failed fetch data: "+d);new a.Squarespace.Widgets.Alert({"strings.title":"Server Request Failed","strings.message":"Failed to get calender data, "+d.message})},_getFetchUrl:function(d){var f=this.get("collectionId"),m=this.get("pageCollectionId");d="/api/open/GetItemsByMonth?collectionId="+f+"&month="+d;a.Lang.isValue(m)&&(d+="&pageCollectionId="+m);return d}},{ATTRS:{events:{value:[],validator:a.Lang.isArray},collectionId:{value:null,validator:a.Lang.isString}, pageCollectionId:{value:null,validator:a.Lang.isString}}});a.Squarespace.CalendarBaseRenderer=a.Base.create("CalendarBaseRenderer",a.Plugin.Base,[],{initializer:function(a){this.host=a.host;this.afterHostEvent("eventsChange",this._onEventsChange,this)},_onEventsChange:function(d){var f=null;a.Lang.isArray(d.newVal)&&0<d.newVal.length&&(f=a.bind(this._calendarFilterFunction,this));this.host.set("customRenderer",{rules:{all:"events"},filterFunction:f})},_calendarFilterFunction:function(a,c,m){m=this.host.get("events"); m=this._getEventsOfDay(m,a);this._sortEvents(m);this._renderDay(a,c,m)},_renderDay:function(a,c,m){0<m.length&&c.setStyle("background","gray")},_sortEvents:function(a){a.sort(function(a,d){var c=g(a);return g(d)-c})},_getEventsOfDay:function(d,f){var m=a.DataType.Date.format(f,{format:"%Y-%m-%d"});return a.Lang.isArray(d)&&0<d.length?a.Array.filter(d,function(a){return this._isEventPartOfDay(a,m)},this):[]},_isEventPartOfDay:function(d,f){var m,g;g=d.structuredContent;if(d.recordType!==h.EVENT)return m= a.Squarespace.DateUtils.dateFormat(d.addedOn,{format:"%Y-%m-%d"}),m===f;m=a.Squarespace.DateUtils.dateFormat(g.startDate,{format:"%Y-%m-%d"});g=a.Squarespace.DateUtils.dateFormat(g.endDate,{format:"%Y-%m-%d"});return f==m||f==g||new Date(f)>new Date(m)&&new Date(f)<new Date(g)?!0:!1},_getEventDisplayTime:function(d){d=g(d);return a.Squarespace.DateUtils.dateFormat(d,{format:"%l:%M%P"}).trim()},_isSameDay:function(d,f){if(d.recordType!==h.EVENT)return!0;var g=a.Squarespace.DateUtils.dateFormat(d.structuredContent.startDate, {format:"%Y-%m-%d"}),q=a.DataType.Date.format(f,{format:"%Y-%m-%d"});return g===q}},{NS:"calendarPlugin"});var q=a.namespace("Squarespace").SquarespaceCalendarRenderer=a.Base.create("squarespaceCalendarRenderer",a.Squarespace.CalendarBaseRenderer,[],{initializer:function(d){this._loadingSpinner=new a.Squarespace.Spinner({color:"dark",size:"extra-large",render:this.host.get("contentBox")});this.onceAfterHostEvent("eventsChange",this._renderCalendar);this._bindUI()},destructor:function(){this._resizeEvent.detach()}, _bindUI:function(){this._resizeEvent=a.on("resize",this._syncUI,a.config.win,this)},_syncUI:function(){this.host.get("contentBox").getDOMNode()&&(this._fitToContainer(),this._setupCells(),this.host.get("contentBox").hasClass(q.COMPACT_LAYOUT_CLASS)||this._loadImages(),this._setFlyoutHeights())},_onEventsChange:function(d){d=a.bind(this._calendarFilterFunction,this);this.host.set("customRenderer",{rules:{all:{all:{all:{0:"sunday",1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday"}}}}, filterFunction:d});this.get("isRendered")&&this._syncUI()},_calendarFilterFunction:function(a,c,g){q.superclass._calendarFilterFunction.apply(this,arguments);0<=g.indexOf("sunday")?c.addClass("sunday"):0<=g.indexOf("monday")?c.addClass("monday"):0<=g.indexOf("friday")?c.addClass("friday"):0<=g.indexOf("saturday")&&c.addClass("saturday")},_fitToContainer:function(){var a=this.host.get("contentBox");a.toggleClass(q.SMALL_LAYOUT_CLASS,770>=a.get("offsetWidth"));a.toggleClass(q.COMPACT_LAYOUT_CLASS,600>= a.get("offsetWidth"));a.toggleClass(q.TINY_LAYOUT_CLASS,300>=a.get("offsetWidth"))},_setupHeader:function(){this.host.get("contentBox").one(".yui3-calendar-header-label").wrap("<h1></h1>")},_setupCells:function(){var a=this.host.get("contentBox").one("table");a.setStyle("width",null);this.cellSpacing=parseInt(a.getComputedStyle("borderSpacing"),10);var c=7*parseInt((a.get("offsetWidth")-8*this.cellSpacing)/7,10)+8*this.cellSpacing;a.setStyle("width",c);a.all("td").setStyles({width:parseInt(c/7,10)- this.cellSpacing,height:parseInt(c/7,10)-this.cellSpacing})},_loadImages:function(){this.host.get("contentBox").all("img[data-src]").each(function(a){ImageLoader.load(a,{mode:"fill",load:!0})},this)},_setFlyoutHeights:function(){this.host.get("contentBox").all(".flyoutitemlist--hasmorecontent").each(function(a){var c=a.ancestor("tr"),g=this._getRowHeight(c),c=a.ancestor("tr:nth-child(4)")||a.ancestor("tr:nth-child(5)")||a.ancestor("tr:nth-child(6)")?this._getRowHeight(c.previous("tr")):this._getRowHeight(c.next("tr")); a.setStyle("height",g+c+this.cellSpacing)},this);this.host.get("contentBox").all("tr").removeAttribute("data-row-height")},_getRowHeight:function(a){if(a.getAttribute("data-row-height"))return parseInt(a.getAttribute("data-row-height"),10);var c=a.get("offsetHeight");a.setAttribute("data-row-height",c);return c},_renderCalendar:function(){this._setupHeader();this._syncUI();this._loadingSpinner&&this._loadingSpinner.destroy(!0);this.host.get("boundingBox").addClass("loaded");this.set("isRendered", !0)},_renderDay:function(a,c,g){this.setAttrs({date:a,node:c,events:this._groupEvents(g,a)});this._highlightToday();this._highlightDaysWithEvents();a=this._getTemplateInfo().template(this._getHBTemplateContext());c.empty().append(a)},_highlightToday:function(){var d=new Date,d=new Date(d.setMinutes(d.getMinutes()+a.Squarespace.DateUtils.getTimeOffsetToWebsiteTimezone(d)));this.get("date").setHours(0,0,0,0)===d.setHours(0,0,0,0)&&this.get("node").addClass(q.TODAY_CLASS)},_highlightDaysWithEvents:function(){0< this.get("events").length&&this.get("node").addClass(q.HAS_EVENT_CLASS)},_getTemplateInfo:function(){return{template:a.Squarespace.UITemplates.getCompiledTemplate(q.HANDLEBARS_TEMPLATE)}},_getHBTemplateContext:function(){return{date:this.get("date"),events:this.get("events")}},_groupEvents:function(d,f){var g=[],h=[];a.Array.each(d,function(a){this._isSameDay(a,f)?g.unshift(a):(a.isSubsequentDayOfMultidayEvent=!0,h.unshift(a));this._isMultidayEvent(a)&&(a.isMultiday=!0)},this);return h.concat(g)}, _isMultidayEvent:function(d){if(d.recordType===h.EVENT){var f=d.structuredContent;d=a.Squarespace.DateUtils.dateFormat(f.startDate,{format:"%d%m%Y"});f=a.Squarespace.DateUtils.dateFormat(f.endDate,{format:"%d%m%Y"});return d!==f}}},{NS:"calendarPlugin",TODAY_CLASS:"today",HAS_EVENT_CLASS:"has-event",SMALL_LAYOUT_CLASS:"small-layout",COMPACT_LAYOUT_CLASS:"compact-layout",TINY_LAYOUT_CLASS:"tiny-layout",HANDLEBARS_TEMPLATE:"calendar-day.html"});a.Handlebars.registerHelper("day-of-month-format",function(d, f){return a.DataType.Date.format(d,{format:f.hash.format||"%B %e, %Y"})});a.Handlebars.registerHelper("date-format",function(d,f){return a.Squarespace.DateUtils.dateFormat(d,{format:f.hash.format||"%B %e, %Y"})});a.Handlebars.registerHelper("calendar-compact-time-format",function(d){var f="PM"==a.Squarespace.DateUtils.dateFormat(d,{format:"%p"})?"p":"a";return 0===(new Date(d)).getMinutes()?a.Squarespace.DateUtils.dateFormat(d,{format:"%l"})+f:a.Squarespace.DateUtils.dateFormat(d,{format:"%l:%M"})+ f})},"1.0",{requires:"calendar node squarespace-attr-validators squarespace-calendar-day-template squarespace-date-utils squarespace-ui-base squarespace-spinner squarespace-widgets-alert".split(" ")})},1058:function(t,x){YUI.add("calendar-base",function(a,h){function c(){c.superclass.constructor.apply(this,arguments)}var g=a.ClassNameManager.getClassName,q=g("calendar","grid"),d=g("calendar","left-grid"),f=g("calendar","right-grid"),m=g("calendar","body"),t=g("calendar","header"),v=g("calendar","header-label"), n=g("calendar","weekdayrow"),H=g("calendar","weekday"),E=g("calendar","column-hidden"),e=g("calendar","day-selected"),B=g("calendar","selection-disabled"),D=g("calendar","row"),z=g("calendar","day"),M=g("calendar","prevmonth-day"),u=g("calendar","nextmonth-day"),x=g("calendar","anchor"),P=g("calendar","pane"),g=g("calendar","status"),F=a.Lang,C=F.sub,I=a.Array.each,J=a.Object.each,K=a.Array.indexOf,G=a.Object.hasKey,O=a.Object.setValue,L=a.Object.isEmpty,w=a.DataType.Date;a.CalendarBase=a.extend(c, a.Widget,{_paneProperties:{},_paneNumber:1,_calendarId:null,_selectedDates:{},_rules:{},_filterFunction:null,_storedDateCells:{},initializer:function(){this._paneProperties={};this._calendarId=a.guid("calendar");this._selectedDates={};L(this._rules)&&(this._rules={});this._storedDateCells={}},renderUI:function(){this.get("contentBox").appendChild(this._initCalendarHTML(this.get("date")));this.get("showPrevMonth")&&this._afterShowPrevMonthChange();this.get("showNextMonth")&&this._afterShowNextMonthChange(); this._renderCustomRules();this._renderSelectedDates();this.get("boundingBox").setAttribute("aria-labelledby",this._calendarId+"_header")},bindUI:function(){this.after("dateChange",this._afterDateChange);this.after("showPrevMonthChange",this._afterShowPrevMonthChange);this.after("showNextMonthChange",this._afterShowNextMonthChange);this.after("headerRendererChange",this._afterHeaderRendererChange);this.after("customRendererChange",this._afterCustomRendererChange);this.after("enabledDatesRuleChange", this._afterCustomRendererChange);this.after("disabledDatesRuleChange",this._afterCustomRendererChange);this.after("focusedChange",this._afterFocusedChange);this.after("selectionChange",this._renderSelectedDates);this._bindCalendarEvents()},_getSelectedDatesList:function(){var a=[];J(this._selectedDates,function(c){J(c,function(c){J(c,function(c){a.push(c)},this)},this)},this);return a},_getSelectedDatesInMonth:function(c){var e=c.getFullYear();c=c.getMonth();return G(this._selectedDates,e)&&G(this._selectedDates[e], c)?a.Object.values(this._selectedDates[e][c]):[]},_isNumInList:function(a,c){if("all"===c)return!0;for(var e=c.split(","),d=e.length,f;d--;)if(f=e[d].split("-"),2===f.length&&a>=parseInt(f[0],10)&&a<=parseInt(f[1],10)||1===f.length&&parseInt(e[d],10)===a)return!0;return!1},_getRulesForDate:function(a){var c=a.getFullYear(),e=a.getMonth(),d=a.getDate();a=a.getDay();var f=this._rules,g=[],p,l,h,B;for(p in f)if(this._isNumInList(c,p))if(F.isString(f[p]))g.push(f[p]);else for(l in f[p])if(this._isNumInList(e, l))if(F.isString(f[p][l]))g.push(f[p][l]);else for(h in f[p][l])if(this._isNumInList(d,h))if(F.isString(f[p][l][h]))g.push(f[p][l][h]);else for(B in f[p][l][h])this._isNumInList(a,B)&&F.isString(f[p][l][h][B])&&g.push(f[p][l][h][B]);return g},_matchesRule:function(a,c){return 0<=K(this._getRulesForDate(a),c)},_canBeSelected:function(a){var c=this.get("enabledDatesRule"),e=this.get("disabledDatesRule");return c?this._matchesRule(a,c):e?!this._matchesRule(a,e):!0},selectDates:function(a){w.isValidDate(a)? this._addDateToSelection(a):F.isArray(a)&&this._addDatesToSelection(a);return this},deselectDates:function(a){a?w.isValidDate(a)?this._removeDateFromSelection(a):F.isArray(a)&&this._removeDatesFromSelection(a):this._clearSelection();return this},_addDateToSelection:function(a,c){a=this._normalizeTime(a);if(this._canBeSelected(a)){var e=a.getFullYear(),d=a.getMonth(),f=a.getDate();G(this._selectedDates,e)?G(this._selectedDates[e],d)||(this._selectedDates[e][d]={}):(this._selectedDates[e]={},this._selectedDates[e][d]= {});this._selectedDates[e][d][f]=a;this._selectedDates=O(this._selectedDates,[e,d,f],a);c||this._fireSelectionChange()}},_addDatesToSelection:function(a){I(a,this._addDateToSelection,this);this._fireSelectionChange()},_addDateRangeToSelection:function(a,c){var e=6E4*(c.getTimezoneOffset()-a.getTimezoneOffset()),d=a.getTime(),f=c.getTime(),g;d>f?(g=d,d=f,f=g+e):f-=e;for(e=d;e<=f;e+=864E5)d=new Date(e),d.setHours(12),this._addDateToSelection(d,e);this._fireSelectionChange()},_removeDateFromSelection:function(a, c){var e=a.getFullYear(),d=a.getMonth(),f=a.getDate();G(this._selectedDates,e)&&(G(this._selectedDates[e],d)&&G(this._selectedDates[e][d],f))&&(delete this._selectedDates[e][d][f],c||this._fireSelectionChange())},_removeDatesFromSelection:function(a){I(a,this._removeDateFromSelection,this);this._fireSelectionChange()},_removeDateRangeFromSelection:function(a,c){for(var e=a.getTime(),d=c.getTime();e<=d;e+=864E5)this._removeDateFromSelection(new Date(e),e);this._fireSelectionChange()},_clearSelection:function(a){this._selectedDates= {};this.get("contentBox").all("."+e).removeClass(e).setAttribute("aria-selected",!1);a||this._fireSelectionChange()},_fireSelectionChange:function(){this.fire("selectionChange",{newSelection:this._getSelectedDatesList()})},_restoreModifiedCells:function(){var a=this.get("contentBox"),c;for(c in this._storedDateCells)a.one("#"+c).replace(this._storedDateCells[c]),delete this._storedDateCells[c]},_renderCustomRules:function(){this.get("contentBox").all("."+z+",."+u).removeClass(B).setAttribute("aria-disabled", !1);if(!L(this._rules)){var c,e;for(c=0;c<this._paneNumber;c++)e=w.addMonths(this.get("date"),c),e=w.listOfDatesInMonth(e),I(e,a.bind(this._renderCustomRulesHelper,this))}},_renderCustomRulesHelper:function(a){var c=this.get("enabledDatesRule"),e=this.get("disabledDatesRule"),d;d=this._getRulesForDate(a);0<d.length?((c&&0>K(d,c)||!c&&e&&0<=K(d,e))&&this._disableDate(a),F.isFunction(this._filterFunction)&&(c=this._dateToNode(a),this._storedDateCells[c.get("id")]=c.cloneNode(!0),this._filterFunction(a, c,d))):c&&this._disableDate(a)},_renderSelectedDates:function(){this.get("contentBox").all("."+e).removeClass(e).setAttribute("aria-selected",!1);var c,d;for(c=0;c<this._paneNumber;c++)d=w.addMonths(this.get("date"),c),d=this._getSelectedDatesInMonth(d),I(d,a.bind(this._renderSelectedDatesHelper,this))},_renderSelectedDatesHelper:function(a){this._dateToNode(a).addClass(e).setAttribute("aria-selected",!0)},_disableDate:function(a){this._dateToNode(a).addClass(B).setAttribute("aria-disabled",!0)}, _dateToNode:function(a){var c=a.getDate(),e=0,d=c%7;a=(12+a.getMonth()-this.get("date").getMonth())%12;var f=this._paneProperties[this._calendarId+"_pane_"+a].cutoffCol;switch(d){case 0:e=6<=f?12:5;break;case 1:e=6;break;case 2:e=0<f?7:0;break;case 3:e=1<f?8:1;break;case 4:e=2<f?9:2;break;case 5:e=3<f?10:3;break;case 6:e=4<f?11:4}return this.get("contentBox").one("#"+this._calendarId+"_pane_"+a+"_"+e+"_"+c)},_nodeToDate:function(a){a=a.get("id").split("_").reverse();var c=parseInt(a[2],10);a=parseInt(a[0], 10);var e=w.addMonths(this.get("date"),c),c=e.getFullYear(),e=e.getMonth();return new Date(c,e,a,12,0,0,0)},_bindCalendarEvents:function(){},_normalizeDate:function(a){return a?new Date(a.getFullYear(),a.getMonth(),1,12,0,0,0):null},_normalizeTime:function(a){return a?new Date(a.getFullYear(),a.getMonth(),a.getDate(),12,0,0,0):null},_getCutoffColumn:function(a,c){return 6-(this._normalizeDate(a).getDay()-c+7)%7},_turnPrevMonthOn:function(a){var c=a.get("id"),e=w.daysInMonth(w.addMonths(this._paneProperties[c].paneDate, -1)),d;this._paneProperties[c].hasOwnProperty("daysInPrevMonth")||(this._paneProperties[c].daysInPrevMonth=0);if(e!==this._paneProperties[c].daysInPrevMonth){this._paneProperties[c].daysInPrevMonth=e;for(d=5;0<=d;d--)a.one("#"+c+"_"+d+"_"+(d-5)).set("text",e--)}},_turnPrevMonthOff:function(a){var c=a.get("id"),e;this._paneProperties[c].daysInPrevMonth=0;for(e=5;0<=e;e--)a.one("#"+c+"_"+e+"_"+(e-5)).setContent(" ")},_cleanUpNextMonthCells:function(a){var c=a.get("id");a.one("#"+c+"_6_29").removeClass(u); a.one("#"+c+"_7_30").removeClass(u);a.one("#"+c+"_8_31").removeClass(u);a.one("#"+c+"_0_30").removeClass(u);a.one("#"+c+"_1_31").removeClass(u)},_turnNextMonthOn:function(a){var c=1,e=a.get("id"),d=this._paneProperties[e].daysInMonth,f=this._paneProperties[e].cutoffCol,g;for(g=d-22;g<f+7;g++)a.one("#"+e+"_"+g+"_"+(g+23)).set("text",c++).addClass(u);g=f;for(31===d&&1>=f?g=2:30===d&&0===f&&(g=1);g<f+7;g++)a.one("#"+e+"_"+g+"_"+(g+30)).set("text",c++).addClass(u)},_turnNextMonthOff:function(a){var c= a.get("id"),e=this._paneProperties[c].daysInMonth,d=this._paneProperties[c].cutoffCol,f;for(f=e-22;12>=f;f++)a.one("#"+c+"_"+f+"_"+(f+23)).setContent(" ").addClass(u);f=0;for(31===e&&1>=d?f=2:30===e&&0===d&&(f=1);12>=f;f++)a.one("#"+c+"_"+f+"_"+(f+30)).setContent(" ").addClass(u)},_afterShowNextMonthChange:function(){var a=this.get("contentBox").one("#"+this._calendarId+"_pane_"+(this._paneNumber-1));this._cleanUpNextMonthCells(a);this.get("showNextMonth")?this._turnNextMonthOn(a):this._turnNextMonthOff(a)}, _afterShowPrevMonthChange:function(){var a=this.get("contentBox").one("#"+this._calendarId+"_pane_0");this.get("showPrevMonth")?this._turnPrevMonthOn(a):this._turnPrevMonthOff(a)},_afterHeaderRendererChange:function(){this.get("contentBox").one("."+v).setContent(this._updateCalendarHeader(this.get("date")))},_afterCustomRendererChange:function(){this._restoreModifiedCells();this._renderCustomRules()},_afterDateChange:function(){var a=this.get("contentBox"),c=a.one("."+t).one("."+v),e=a.all("."+q), d=this.get("date"),f=0;a.setStyle("visibility","hidden");c.setContent(this._updateCalendarHeader(d));this._restoreModifiedCells();e.each(function(a){this._rerenderCalendarPane(w.addMonths(d,f++),a)},this);this._afterShowPrevMonthChange();this._afterShowNextMonthChange();this._renderCustomRules();this._renderSelectedDates();a.setStyle("visibility","inherit")},_initCalendarPane:function(e,d){var f=this.get("strings.very_short_weekdays")||"Su Mo Tu We Th Fr Sa".split(" "),g=a.Intl.get("datatype-date-format").A, h=this.get("strings.first_weekday")||0,B=this._getCutoffColumn(e,h),p=w.daysInMonth(e),l=" ".split(" "),m={},D,n,H;m.weekday_row="";for(D=h;D<=h+6;D++)m.weekday_row+=C(c.WEEKDAY_TEMPLATE,{short_weekdayname:f[D%7],weekdayname:g[D%7]});m.weekday_row_template=C(c.WEEKDAY_ROW_TEMPLATE,m);for(f=0;5>=f;f++)for(g=0;12>=g;g++){h=7*f-5+g;D=d+"_"+g+"_"+h;n=z;1>h?n=M:h>p&&(n=u);if(1>h||h>p)h=" ";H=g>=B&&g<B+7?"":E;l[f]+=C(c.CALDAY_TEMPLATE,{day_content:h,calendar_col_class:"calendar_col"+g,calendar_col_visibility_class:H, calendar_day_class:n,calendar_day_id:D})}m.body_template="";I(l,function(a){m.body_template+=C(c.CALDAY_ROW_TEMPLATE,{calday_row:a})});m.calendar_pane_id=d;m.calendar_pane_tabindex=this.get("tabIndex");m.pane_arialabel=w.format(e,{format:"%B %Y"});l=C(C(c.CALENDAR_GRID_TEMPLATE,m),c.CALENDAR_STRINGS);this._paneProperties[d]={cutoffCol:B,daysInMonth:p,paneDate:e};return l},_rerenderCalendarPane:function(a,c){var e=this.get("strings.first_weekday")||0,e=this._getCutoffColumn(a,e),d=w.daysInMonth(a), f=c.get("id"),g,h;c.setStyle("visibility","hidden");c.setAttribute("aria-label",w.format(a,{format:"%B %Y"}));for(g=0;12>=g;g++)if(h=c.all(".calendar_col"+g),h.removeClass(E),g<e||g>=e+7)h.addClass(E);else switch(g){case 0:h=c.one("#"+f+"_0_30");30<=d?(h.set("text","30"),h.removeClass(u).addClass(z)):(h.setContent(" "),h.removeClass(z).addClass(u));break;case 1:h=c.one("#"+f+"_1_31");31<=d?(h.set("text","31"),h.removeClass(u).addClass(z)):(h.setContent(" "),h.removeClass(z).addClass(u)); break;case 6:h=c.one("#"+f+"_6_29");29<=d?(h.set("text","29"),h.removeClass(u).addClass(z)):(h.setContent(" "),h.removeClass(z).addClass(u));break;case 7:h=c.one("#"+f+"_7_30");30<=d?(h.set("text","30"),h.removeClass(u).addClass(z)):(h.setContent(" "),h.removeClass(z).addClass(u));break;case 8:h=c.one("#"+f+"_8_31"),31<=d?(h.set("text","31"),h.removeClass(u).addClass(z)):(h.setContent(" "),h.removeClass(z).addClass(u))}this._paneProperties[f].cutoffCol=e;this._paneProperties[f].daysInMonth= d;this._paneProperties[f].paneDate=a;c.setStyle("visibility","inherit")},_updateCalendarHeader:function(c){var e="",d=this.get("headerRenderer");a.Lang.isString(d)?e=w.format(c,{format:d}):d instanceof Function&&(e=d.call(this,c));return e},_initCalendarHeader:function(a){return C(C(c.HEADER_TEMPLATE,{calheader:this._updateCalendarHeader(a),calendar_id:this._calendarId}),c.CALENDAR_STRINGS)},_initCalendarHTML:function(e){var d={},f=0,g,h;d.header_template=this._initCalendarHeader(e);d.calendar_id= this._calendarId;d.body_template=C(C(c.CONTENT_TEMPLATE,d),c.CALENDAR_STRINGS);h=d.body_template.replace(/\{calendar_grid_template\}/g,a.bind(function(){g=this._initCalendarPane(w.addMonths(e,f),d.calendar_id+"_pane_"+f);f++;return g},this));this._paneNumber=f;return h}},{CALENDAR_STRINGS:{calendar_grid_class:q,calendar_body_class:m,calendar_hd_class:t,calendar_hd_label_class:v,calendar_weekdayrow_class:n,calendar_weekday_class:H,calendar_row_class:D,calendar_day_class:z,calendar_dayanchor_class:x, calendar_pane_class:P,calendar_right_grid_class:f,calendar_left_grid_class:d,calendar_status_class:g},CONTENT_TEMPLATE:'<div class="yui3-g {calendar_pane_class}" id="{calendar_id}">{header_template}<div class="yui3-u-1">{calendar_grid_template}</div></div>',ONE_PANE_TEMPLATE:'<div class="yui3-g {calendar_pane_class}" id="{calendar_id}">{header_template}<div class="yui3-u-1">{calendar_grid_template}</div></div>',TWO_PANE_TEMPLATE:'<div class="yui3-g {calendar_pane_class}" id="{calendar_id}">{header_template}<div class="yui3-u-1-2"><div class = "{calendar_left_grid_class}">{calendar_grid_template}</div></div><div class="yui3-u-1-2"><div class = "{calendar_right_grid_class}">{calendar_grid_template}</div></div></div>', THREE_PANE_TEMPLATE:'<div class="yui3-g {calendar_pane_class}" id="{calendar_id}">{header_template}<div class="yui3-u-1-3"><div class="{calendar_left_grid_class}">{calendar_grid_template}</div></div><div class="yui3-u-1-3">{calendar_grid_template}</div><div class="yui3-u-1-3"><div class="{calendar_right_grid_class}">{calendar_grid_template}</div></div></div>',CALENDAR_GRID_TEMPLATE:'<table class="{calendar_grid_class}" id="{calendar_pane_id}" role="grid" aria-readonly="true" aria-label="{pane_arialabel}" tabindex="{calendar_pane_tabindex}"><thead>{weekday_row_template}</thead><tbody>{body_template}</tbody></table>', HEADER_TEMPLATE:'<div class="yui3-g {calendar_hd_class}"><div class="yui3-u {calendar_hd_label_class}" id="{calendar_id}_header" aria-role="heading">{calheader}</div></div>',WEEKDAY_ROW_TEMPLATE:'<tr class="{calendar_weekdayrow_class}" role="row">{weekday_row}</tr>',CALDAY_ROW_TEMPLATE:'<tr class="{calendar_row_class}" role="row">{calday_row}</tr>',WEEKDAY_TEMPLATE:'<th class="{calendar_weekday_class}" role="columnheader" aria-label="{weekdayname}">{short_weekdayname}</th>',CALDAY_TEMPLATE:'<td class="{calendar_col_class} {calendar_day_class} {calendar_col_visibility_class}" id="{calendar_day_id}" role="gridcell" tabindex="-1">{day_content}</td>', NAME:"calendarBase",ATTRS:{tabIndex:{value:1},date:{value:new Date,setter:function(a){a=this._normalizeDate(a);return w.areEqual(a,this.get("date"))?this.get("date"):a}},showPrevMonth:{value:!1},showNextMonth:{value:!1},strings:{valueFn:function(){return a.Intl.get("calendar-base")}},headerRenderer:{value:"%B %Y"},enabledDatesRule:{value:null},disabledDatesRule:{value:null},selectedDates:{readOnly:!0,getter:function(){return this._getSelectedDatesList()}},customRenderer:{lazyAdd:!1,value:{},setter:function(a){this._rules= a.rules;this._filterFunction=a.filterFunction}}}})},"3.17.2",{requires:["widget","datatype-date","datatype-date-math","cssgrids"],lang:"de en es es-AR fr hu it ja nb-NO nl pt-BR ru zh-Hans zh-Hans-CN zh-Hant zh-Hant-HK zh-HANT-TW".split(" "),skinnable:!0})},1059:function(t,x){YUI.add("calendar",function(a,h){function c(){c.superclass.constructor.apply(this,arguments)}var g=a.ClassNameManager.getClassName,q=g("calendar","day-selected"),d=g("calendar","day-highlighted"),f=g("calendar","day"),m=g("calendar", "prevmonth-day"),t=g("calendar","nextmonth-day"),v=g("calendar","grid"),n=a.DataType.Date,H=g("calendar","pane"),E=a.UA.os;a.Calendar=a.extend(c,a.CalendarBase,{_keyEvents:[],_highlightedDateNode:null,_lastSelectedDate:null,initializer:function(){this.plug(a.Plugin.CalendarNavigator);this._keyEvents=[];this._lastSelectedDate=this._highlightedDateNode=null},_bindCalendarEvents:function(){var a=this.get("contentBox").one("."+H);a.on("selectstart",this._preventSelectionStart);a.delegate("click",this._clickCalendar, "."+f+", ."+m+", ."+t,this);a.delegate("keydown",this._keydownCalendar,"."+v,this);a.delegate("focus",this._focusCalendarGrid,"."+v,this);a.delegate("focus",this._focusCalendarCell,"."+f,this);a.delegate("blur",this._blurCalendarGrid,"."+v+",."+f,this);this.after(["minimumDateChange","maximumDateChange"],this._afterCustomRendererChange)},_preventSelectionStart:function(a){a.preventDefault()},_highlightDateNode:function(a){this._unhighlightCurrentDateNode();a=this._dateToNode(a);a.focus();a.addClass(d)}, _unhighlightCurrentDateNode:function(){var a=this.get("contentBox").all("."+d);a&&a.removeClass(d)},_getGridNumber:function(a){a=a.get("id").split("_").reverse();return parseInt(a[0],10)},_blurCalendarGrid:function(){this._unhighlightCurrentDateNode()},_focusCalendarCell:function(a){this._highlightedDateNode=a.target;a.stopPropagation()},_focusCalendarGrid:function(){this._unhighlightCurrentDateNode();this._highlightedDateNode=null},_keydownCalendar:function(a){var c=this._getGridNumber(a.target), d=!this._highlightedDateNode?null:this._nodeToDate(this._highlightedDateNode),f=a.keyCode,g=0,h;switch(f){case 40:g=7;break;case 38:g=-7;break;case 37:g=-1;break;case 39:g=1;break;case 32:case 13:if(a.preventDefault(),this._highlightedDateNode)if(h=this.get("selectionMode"),"single"===h&&!this._highlightedDateNode.hasClass(q))this._clearSelection(!0),this._addDateToSelection(d);else if("multiple"===h||"multiple-sticky"===h)this._highlightedDateNode.hasClass(q)?this._removeDateFromSelection(d):this._addDateToSelection(d)}if(40=== f||38===f||37===f||39===f)d||(d=n.addMonths(this.get("date"),c),g=0),a.preventDefault(),a=n.addDays(d,g),c=this.get("date"),d=n.addMonths(this.get("date"),this._paneNumber-1),f=new Date(d),d.setDate(n.daysInMonth(d)),n.isInRange(a,c,d)?this._highlightDateNode(a):n.isGreater(c,a)?n.isGreaterOrEqual(this.get("minimumDate"),c)||(this.set("date",n.addMonths(c,-1)),this._highlightDateNode(a)):n.isGreater(a,d)&&!n.isGreaterOrEqual(f,this.get("maximumDate"))&&(this.set("date",n.addMonths(c,1)),this._highlightDateNode(a))}, _clickCalendar:function(a){var c=a.currentTarget,d=c.hasClass(f)&&!c.hasClass(m)&&!c.hasClass(t),g=c.hasClass(q);switch(this.get("selectionMode")){case "single":d&&!g&&(this._clearSelection(!0),this._addDateToSelection(this._nodeToDate(c)));break;case "multiple-sticky":d&&(g?this._removeDateFromSelection(this._nodeToDate(c)):this._addDateToSelection(this._nodeToDate(c)));break;case "multiple":d&&(!a.metaKey&&!a.ctrlKey&&!a.shiftKey?(this._clearSelection(!0),this._lastSelectedDate=this._nodeToDate(c), this._addDateToSelection(this._lastSelectedDate)):("macintosh"===E&&a.metaKey||"macintosh"!==E&&a.ctrlKey)&&!a.shiftKey?g?(this._removeDateFromSelection(this._nodeToDate(c)),this._lastSelectedDate=null):(this._lastSelectedDate=this._nodeToDate(c),this._addDateToSelection(this._lastSelectedDate)):("macintosh"===E&&a.metaKey||"macintosh"!==E&&a.ctrlKey)&&a.shiftKey?this._lastSelectedDate?(a=this._nodeToDate(c),this._addDateRangeToSelection(a,this._lastSelectedDate),this._lastSelectedDate=a):(this._lastSelectedDate= this._nodeToDate(c),this._addDateToSelection(this._lastSelectedDate)):a.shiftKey&&(this._lastSelectedDate?(a=this._nodeToDate(c),this._clearSelection(!0),this._addDateRangeToSelection(a,this._lastSelectedDate),this._lastSelectedDate=a):(this._clearSelection(!0),this._lastSelectedDate=this._nodeToDate(c),this._addDateToSelection(this._lastSelectedDate))))}d?this.fire("dateClick",{cell:c,date:this._nodeToDate(c)}):c.hasClass(m)?this.fire("prevMonthClick"):c.hasClass(t)&&this.fire("nextMonthClick")}, _canBeSelected:function(a){var d=this.get("minimumDate"),f=this.get("maximumDate");return d&&!n.isGreaterOrEqual(a,d)||f&&n.isGreater(a,f)?!1:c.superclass._canBeSelected.call(this,a)},_renderCustomRules:function(){c.superclass._renderCustomRules.call(this);var a=this.get("minimumDate"),d=this.get("maximumDate"),f=[],g,h;if(a||d){for(h=0;h<this._paneNumber;h++)g=n.addMonths(this.get("date"),h),f=f.concat(n.listOfDatesInMonth(g));if(a){g=0;for(h=f.length;g<h&&!n.isGreaterOrEqual(f[g],a);g++)this._disableDate(f[g])}if(d)for(g= f.length-1;0<=g;g--)if(n.isGreater(f[g],d))this._disableDate(f[g]);else break}},subtractMonth:function(a){this.set("date",n.addMonths(this.get("date"),-1));a&&a.halt();return this},subtractYear:function(a){this.set("date",n.addYears(this.get("date"),-1));a&&a.halt();return this},addMonth:function(a){this.set("date",n.addMonths(this.get("date"),1));a&&a.halt();return this},addYear:function(a){this.set("date",n.addYears(this.get("date"),1));a&&a.halt();return this}},{NAME:"calendar",ATTRS:{selectionMode:{value:"single"}, date:{value:new Date,lazyAdd:!1,setter:function(a){a=this._normalizeDate(a);var c=n.addMonths(a,this._paneNumber-1),d=this.get("minimumDate"),f=this.get("maximumDate");if((!d||n.isGreaterOrEqual(a,d))&&(!f||n.isGreaterOrEqual(f,c)))return a;if(d&&n.isGreater(d,a))return this._normalizeDate(d);if(f&&n.isGreater(c,f))return n.addMonths(this._normalizeDate(f),1-this._paneNumber)}},minimumDate:{value:null,setter:function(c){if(a.Lang.isDate(c)){var d=this.get("date"),f=this._normalizeTime(c);d&&!n.isGreaterOrEqual(d, f)&&this.set("date",c);return f}return null}},maximumDate:{value:null,setter:function(c){if(a.Lang.isDate(c)){var d=this.get("date");d&&!n.isGreaterOrEqual(c,n.addMonths(d,this._paneNumber-1))&&this.set("date",n.addMonths(this._normalizeDate(c),1-this._paneNumber));return this._normalizeTime(c)}return null}}}})},"3.17.2",{requires:["calendar-base","calendarnavigator"],skinnable:!0})},1060:function(t,x){YUI.add("calendarnavigator",function(a,h){function c(){c.superclass.constructor.apply(this,arguments)} var g=a.ClassNameManager.getClassName,q=a.Lang.sub,d=a.Node.create,f=g("calendar","header"),m=g("calendarnav","prevmonth"),t=g("calendarnav","nextmonth"),v=g("calendarnav","month-disabled"),n=a.DataType.Date;c.NS="navigator";c.NAME="pluginCalendarNavigator";c.ATTRS={shiftByMonths:{value:1}};c.CALENDARNAV_STRINGS={prev_month_class:m,next_month_class:t};c.PREV_MONTH_CONTROL_TEMPLATE='<a class="yui3-u {prev_month_class}" role="button" aria-label="{prev_month_arialabel}" tabindex="{control_tabindex}" />'; c.NEXT_MONTH_CONTROL_TEMPLATE='<a class="yui3-u {next_month_class}" role="button" aria-label="{next_month_arialabel}" tabindex="{control_tabindex}" />';a.extend(c,a.Plugin.Base,{_eventAttachments:{},_controls:{},initializer:function(){this._controls={};this._eventAttachments={};this.afterHostMethod("renderUI",this._initNavigationControls)},destructor:function(){},_focusNavigation:function(a){a.currentTarget.focus()},_subtractMonths:function(a){if("click"===a.type||"keydown"===a.type&&(13===a.keyCode|| 32===a.keyCode)){var c=this.get("host"),d=c.get("date");c.set("date",n.addMonths(d,-1*this.get("shiftByMonths")));a.preventDefault()}},_addMonths:function(a){if("click"===a.type||"keydown"===a.type&&(13===a.keyCode||32===a.keyCode)){var c=this.get("host"),d=c.get("date");c.set("date",n.addMonths(d,this.get("shiftByMonths")));a.preventDefault()}},_updateControlState:function(){var a=this.get("host"),c=a.get("date"),d=n.addMonths(c,a._paneNumber-1),f=a._normalizeDate(a.get("minimumDate")),a=a._normalizeDate(a.get("maximumDate")); n.areEqual(f,c)?(this._eventAttachments.prevMonth&&(this._eventAttachments.prevMonth.detach(),this._eventAttachments.prevMonth=!1),this._controls.prevMonth.hasClass(v)||this._controls.prevMonth.addClass(v).setAttribute("aria-disabled","true")):(this._eventAttachments.prevMonth||(this._eventAttachments.prevMonth=this._controls.prevMonth.on(["click","keydown"],this._subtractMonths,this)),this._controls.prevMonth.hasClass(v)&&this._controls.prevMonth.removeClass(v).setAttribute("aria-disabled","false")); n.areEqual(a,d)?(this._eventAttachments.nextMonth&&(this._eventAttachments.nextMonth.detach(),this._eventAttachments.nextMonth=!1),this._controls.nextMonth.hasClass(v)||this._controls.nextMonth.addClass(v).setAttribute("aria-disabled","true")):(this._eventAttachments.nextMonth||(this._eventAttachments.nextMonth=this._controls.nextMonth.on(["click","keydown"],this._addMonths,this)),this._controls.nextMonth.hasClass(v)&&this._controls.nextMonth.removeClass(v).setAttribute("aria-disabled","false")); this._controls.prevMonth.on(["click","keydown"],this._focusNavigation,this);this._controls.nextMonth.on(["click","keydown"],this._focusNavigation,this)},_renderPrevControls:function(){var a=d(q(c.PREV_MONTH_CONTROL_TEMPLATE,c.CALENDARNAV_STRINGS));a.on("selectstart",this.get("host")._preventSelectionStart);return a},_renderNextControls:function(){var a=d(q(c.NEXT_MONTH_CONTROL_TEMPLATE,c.CALENDARNAV_STRINGS));a.on("selectstart",this.get("host")._preventSelectionStart);return a},_initNavigationControls:function(){var a= this.get("host"),d=a.get("contentBox").one("."+f);c.CALENDARNAV_STRINGS.control_tabindex=a.get("tabIndex");c.CALENDARNAV_STRINGS.prev_month_arialabel="Go to previous month";c.CALENDARNAV_STRINGS.next_month_arialabel="Go to next month";this._controls.prevMonth=this._renderPrevControls();this._controls.nextMonth=this._renderNextControls();this._updateControlState();a.after(["dateChange","minimumDateChange","maximumDateChange"],this._updateControlState,this);d.prepend(this._controls.prevMonth);d.append(this._controls.nextMonth)}}); a.namespace("Plugin").CalendarNavigator=c},"3.17.2",{requires:["plugin","classnamemanager","datatype-date","node"],skinnable:!0})},2076:function(t,x){YUI.add("squarespace-events-collection-calendar",function(a){var h=a.namespace("Squarespace").EventsCollectionCalendar=a.Base.create("eventsCollectionCalendar",a.Squarespace.SquarespaceCalendar,[],{initializer:function(){this.set("_history",new a.History);this._addHistory()},destructor:function(){this._navClickEvent.detach();this._historyChangeEvent.detach()}, bindUI:function(){h.superclass.bindUI.call(this);this._navClickEvent=this.get("contentBox").delegate("click",this._addHistory,".yui3-calendarnav-prevmonth, .yui3-calendarnav-nextmonth",this);this._historyChangeEvent=a.on("history:change",function(c){c.src===a.HistoryHTML5.SRC_POPSTATE&&c.newVal.month&&this.set("date",c.newVal.month)},this)},_addHistory:function(){this.get("_history").addValue("month",this.get("date"),{url:this._makeUrlFromDate(this.get("date"))})},_makeUrlFromDate:function(c){c=a.DataType.Date.format(c, {format:"%B-%Y",locale:"en"});return a.config.win.location.pathname+"?view=calendar&month="+c},_preventSelectionStart:null},{ATTRS:{date:{valueFn:function(){var c=a.Squarespace.DateUtils.shiftForWebsiteTimezoneDisplay(new Date);if(a.Squarespace.Utils.isInDamaskFrame())return c;var g=a.QueryString.parse(location.search.substring(1)).month;return(g=g?a.Date.parse(g.split("-")[0]+" 1, "+g.split("-")[1]):null)||c}}}})},"1.0",{requires:"base node history datatype-date-parse squarespace-calendar-core-renderer squarespace-date-utils squarespace-util".split(" ")})}, 2077:function(t,x){YUI.add("squarespace-events-collection",function(a){a.namespace("Squarespace.EventsCollection").ListViewPlugin=a.Base.create("eventsCollectionListViewPlugin",a.Plugin.Base,[],{initializer:function(){this.set("thumbnails",this.get("host").all(".eventlist-column-thumbnail img[data-src]"));this.get("thumbnails").each(function(h){h.plug(a.Squarespace.Loader2,{load:!0,mode:"fill"})});this._syncUI();this._bindUI()},destructor:function(){this._resizeEvent&&this._resizeEvent.detach();this._tweakChangeEvent&& this._tweakChangeEvent.detach();this._tweakResetEvent&&this._tweakResetEvent.detach()},_bindUI:function(){this._resizeEvent=a.on("windowresize",function(){this._syncUI()},a.config.win,this);this._bindTweakEvents()},_syncUI:function(){this.get("thumbnails").each(function(a){a.fire("refresh")})},_bindTweakEvents:function(){this._tweakChangeEvent=a.Global.on("tweak:change",function(a){a=a.getName();("event-thumbnails"===a||"event-thumbnail-size"===a||"event-list-compact-view"===a||"event-show-past-events"=== a)&&this._syncUI()},this);this._tweakResetEvent=a.Global.on("tweak:reset",function(a){this._syncUI()},this)}},{NS:"eventsCollection"});a.config.win.Squarespace.onInitialize(a,function(){a.one(".sqs-events-collection-list")&&a.all(".sqs-events-collection-list").each(function(h){h.plug(a.Squarespace.EventsCollection.ListViewPlugin)});a.one(".sqs-events-collection-calendar")&&a.all(".sqs-events-collection-calendar").each(function(h){(new a.Squarespace.EventsCollectionCalendar({contentBox:h,collectionId:h.getAttribute("data-collection-id"), render:!0})).plug(a.Squarespace.SquarespaceCalendarRenderer)})});a.namespace("Squarespace").EventCollectionCalendar=a.Base.create("eventCollectionCalendar",a.Widget,[],{render:function(){(new a.Squarespace.EventsCollectionCalendar({contentBox:this.get("contentBox"),collectionId:a.config.win.Static.SQUARESPACE_CONTEXT.collectionId,render:!0})).plug(a.Squarespace.SquarespaceCalendarRenderer)}},{ATTRS:{}})},"1.0",{requires:["base","node","squarespace-events-collection-calendar","squarespace-image-loader"]})}});