Google
Edit File: tourdates-80110ebb995939429941-min.js
webpackJsonp([31],{0:function(p,s,b){b(3847);b(2395);b(664);b(598);b(1774);b(418);b(512);b(513);b(447);b(417);b(1903)},159:function(p,s){p.exports=function(b){return"string"===typeof b}},193:function(p,s){p.exports={INDEX:1,REDIRECT:2,NONE:3,VARIATION:4}},295:function(p,s,b){var h=b(400),e=b(310),k=b(159);p.exports=function(b){return!k(b)?!!b:h.test(b.replace(/ /g,"").replace(RegExp(e,"g"),""))}},296:function(p,s,b){var h=b(159),e=b(295);p.exports=function(b){b=h(b)?b.replace(/<[^>]+>/g,""): "";return e(b)}},310:function(p,s){p.exports="[\\u200B-\\u200D\\uFEFF]"},400:function(p,s){p.exports=/^[\s]*$/},409:function(p,s){p.exports={design:{title:"Gallery Design",description:"Gallery designs give you a variety of ways to display images.",type:"multiOption",defaultValue:"grid",options:{slideshow:{title:"Slideshow",values:{thumbnails:!0},icon:"slideshow"},slider:{title:"Carousel",values:{thumbnails:!1},icon:"carousel"},grid:{title:"Grid",values:{thumbnails:!1,autoplay:!1},icon:"grid"},stacked:{title:"Stacked", values:{thumbnails:!1,autoplay:!1},icon:"stacked"}}},autoplay:{type:"boolean",title:"Automatically Transition Between Slides",defaultValue:!1,onlyFor:["design:slideshow","design:slider","design:standard"]},"autoplay-duration":{type:"slider",title:"Autoplay Delay (Seconds)",description:"Seconds between autoplay transitions.",min:1,max:10,defaultValue:5,onlyFor:["autoplay:true"]},controls:{type:"boolean",defaultValue:!1,title:"Show Next and Previous Controls",onlyFor:["design:slideshow","design:slider", "design:standard"]},"auto-crop":{type:"boolean",title:"Automatically Crop Images",defaultValue:!0,onlyFor:["design:slideshow","design:standard"]},"aspect-ratio":{title:"Aspect Ratio",type:"select",defaultValue:"square",options:{square:{title:"1:1 Square"},standard:{title:"3:2 Standard"},"standard-vertical":{title:"2:3 Standard (Vertical)"},"four-three":{title:"4:3 Four-Three"},"three-four-vertical":{title:"3:4 Three-Four (Vertical)"},widescreen:{title:"16:9 Widescreen"},"anamorphic-widescreen":{title:"2.40 Anamorphic Widescreen"}}, onlyFor:["design:grid"]},"square-thumbs":{type:"boolean",title:"Crop Images",description:"Crop images to the aspect ratio.",defaultValue:!0,onlyFor:["design:grid","design:standard"]},thumbnails:{type:"boolean",defaultValue:!1,title:"Show Thumbnails",onlyFor:["design:slideshow"]},"thumbnail-strip-height":{type:"slider",title:"Thumbnail Strip Height",description:"Select the thumbnail strip height.",min:0,max:200,defaultValue:80,onlyFor:["thumbnails:true"]},"thumbnail-strip-margin":{type:"slider",title:"Thumbnail Strip Margin", description:"Select the distance between the main image and the thumbnail strip.",min:0,max:60,defaultValue:20,onlyFor:["thumbnails:true"]},"show-meta-basic":{type:"boolean",title:"Show Title and Description",defaultValue:!0,onlyFor:["design:stacked"]},"show-meta":{type:"boolean",title:"Show Title and Description",defaultValue:!0,onlyFor:["design:slideshow"]},"show-meta-only-title":{type:"boolean",title:"Show Title",description:"Show the title below the image",defaultValue:!1,onlyFor:["design:grid"]}, "meta-position":{title:"Title and Description Position",description:"Control the location of the Image's Title and Description.",type:"select",padding:[10,0],defaultValue:"bottom",options:{top:{title:"Top"},"top-left":{title:"Top Left"},"top-right":{title:"Top Right"},center:{title:"Center"},bottom:{title:"Bottom"},"bottom-left":{title:"Bottom Left"},"bottom-right":{title:"Bottom Right"}},onlyFor:["show-meta:true"]},"show-meta-on-hover":{type:"boolean",title:"Show on Hover",defaultValue:!1,description:"Show the title and description only on hover.", onlyFor:["show-meta:true"]},"active-alignment":{title:"Active Alignment",description:"Where does the active image align to in the slider.",type:"select",defaultValue:"center",options:{left:{title:"Left"},center:{title:"Center"},right:{title:"Right"}},onlyFor:["design:slider"]},"thumbnails-per-row":{type:"slider",title:"Thumbnails Per Row",description:"Choose the thumbnails per row.",min:1,max:10,defaultValue:4,onlyFor:["design:grid","design:standard"]},padding:{type:"slider",title:"Padding",description:"Padding around the gridded images.", min:0,max:50,defaultValue:20,onlyFor:["design:grid","design:autocolumns","design:standard"]},lightbox:{type:"boolean",defaultValue:!1,title:"Lightbox",description:"Clicking on the images will pop the image up in a lightbox.",onlyFor:["design:grid","design:autocolumns"]},lightboxTheme:{type:"select",defaultValue:"dark",title:"Lightbox Theme",options:{dark:{title:"Dark Overlay"},light:{title:"Light Overlay"}},onlyFor:["lightbox:true"]},"max-width":{type:"slider",title:"Max Width",description:"Maximum width for each column", min:100,max:300,defaultValue:300,onlyFor:["design:autocolumns"]},newWindow:{type:"boolean",defaultValue:!1,title:"Open Links in New Window",description:"Images with links will open in a new window.",onlyFor:["design:grid","design:autocolumns","design:standard"]}}},417:function(p,s){YUI.add("squarespace-ui-templates",function(b){var h=b.Base.create("UITemplates",b.Base,[],{render:function(e,b){var h=this.getCompiledTemplate(e);if(!h)throw Error(this.name+": Could not find UITemplate by the name of: "+ e+". Recompile templates?");return h(b||{})},renderAsNodeOrDocFrag:function(e,k){return b.Node.create(this.render(e,k))},getCompiledTemplate:function(e){var b=this.get("compiledTemplates")[e];if(!b)throw Error(this.name+": A template by the name "+e+" does not exist.");return b}},{ATTRS:{compiledTemplates:{readOnly:!0,getter:function(){var e=b.Handlebars.templates;if(!b.Lang.isObject(e))throw Error(this.name+": No templates are available. Have you loaded your template module?");return e}}}});b.namespace("Squarespace").UITemplates= new h},"1.0",{requires:["base","handlebars-base"]})},418:function(p,s){YUI.add("handlebars-base",function(b,h){var e=b.namespace("Handlebars");e.VERSION="1.0.0";e.COMPILER_REVISION=4;e.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:">= 1.0.0"};e.helpers={};e.partials={};var k=Object.prototype.toString;e.registerHelper=function(a,f,c){if("[object Object]"===k.call(a)){if(c||f)throw new e.Exception("Arg not supported with multiple helpers");e.Utils.extend(this.helpers,a)}else c&& (f.not=c),this.helpers[a]=f};e.registerPartial=function(a,f){"[object Object]"===k.call(a)?e.Utils.extend(this.partials,a):this.partials[a]=f};e.registerHelper("helperMissing",function(a){if(2!==arguments.length)throw Error("Missing helper: '"+a+"'");});e.registerHelper("blockHelperMissing",function(a,f){var c=f.inverse||function(){},b=f.fn,q=k.call(a);"[object Function]"===q&&(a=a.call(this));return!0===a?b(this):!1===a||null==a?c(this):"[object Array]"===q?0<a.length?e.helpers.each(a,f):c(this): b(a)});e.K=function(){};e.createFrame=Object.create||function(a){e.K.prototype=a;a=new e.K;e.K.prototype=null;return a};e.logger={DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,methodMap:{0:"debug",1:"info",2:"warn",3:"error"},log:function(a,f){if(e.logger.level<=a){var c=e.logger.methodMap[a];"undefined"!==typeof console&&console[c]&&console[c].call(console,f)}}};e.log=function(a,f){e.logger.log(a,f)};e.registerHelper("each",function(a,f){var c=f.fn,b=f.inverse,q=0,h="",m;"[object Function]"===k.call(a)&& (a=a.call(this));f.data&&(m=e.createFrame(f.data));if(a&&"object"===typeof a)if(a instanceof Array)for(var n=a.length;q<n;q++)m&&(m.index=q),h+=c(a[q],{data:m});else for(n in a)a.hasOwnProperty(n)&&(m&&(m.key=n),h+=c(a[n],{data:m}),q++);0===q&&(h=b(this));return h});e.registerHelper("if",function(a,f){"[object Function]"===k.call(a)&&(a=a.call(this));return!a||e.Utils.isEmpty(a)?f.inverse(this):f.fn(this)});e.registerHelper("unless",function(a,f){return e.helpers["if"].call(this,a,{fn:f.inverse,inverse:f.fn})}); e.registerHelper("with",function(a,f){"[object Function]"===k.call(a)&&(a=a.call(this));if(!e.Utils.isEmpty(a))return f.fn(a)});e.registerHelper("log",function(a,f){var c=f.data&&null!=f.data.level?parseInt(f.data.level,10):1;e.log(c,a)});var n="description fileName lineNumber message name number stack".split(" ");e.Exception=function(a){for(var f=Error.prototype.constructor.apply(this,arguments),c=0;c<n.length;c++)this[n[c]]=f[n[c]]};e.Exception.prototype=Error();e.SafeString=function(a){this.string= a};e.SafeString.prototype.toString=function(){return this.string.toString()};var m={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},c=/[&<>"'`]/g,a=/[&<>"'`]/,f=function(a){return m[a]||"&"};e.Utils={extend:function(a,f){for(var c in f)f.hasOwnProperty(c)&&(a[c]=f[c])},escapeExpression:function(b){if(b instanceof e.SafeString)return b.toString();if(null==b||!1===b)return"";b=b.toString();return!a.test(b)?b:b.replace(c,f)},isEmpty:function(a){return!a&&0!==a?!0:"[object Array]"=== k.call(a)&&0===a.length?!0:!1}};e.VM={template:function(a){var f={escapeExpression:e.Utils.escapeExpression,invokePartial:e.VM.invokePartial,programs:[],program:function(a,f,c){var b=this.programs[a];c?b=e.VM.program(a,f,c):b||(b=this.programs[a]=e.VM.program(a,f));return b},merge:function(a,f){var c=a||f;a&&f&&(c={},e.Utils.extend(c,f),e.Utils.extend(c,a));return c},programWithDepth:e.VM.programWithDepth,noop:e.VM.noop,compilerInfo:null};return function(c,b){b=b||{};var k=a.call(f,e,c,b.helpers, b.partials,b.data),h=f.compilerInfo||[],m=h[0]||1,n=e.COMPILER_REVISION;if(m!==n){if(m<n)throw"Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+e.REVISION_CHANGES[n]+") or downgrade your runtime to an older version ("+e.REVISION_CHANGES[m]+").";throw"Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+h[1]+").";}return k}},programWithDepth:function(a, f,c){var e=Array.prototype.slice.call(arguments,3),b=function(a,b){b=b||{};return f.apply(this,[a,b.data||c].concat(e))};b.program=a;b.depth=e.length;return b},program:function(a,f,c){var e=function(a,e){e=e||{};return f(a,e.data||c)};e.program=a;e.depth=0;return e},noop:function(){return""},invokePartial:function(a,f,c,b,k,h){b={helpers:b,partials:k,data:h};if(void 0===a)throw new e.Exception("The partial "+f+" could not be found");if(a instanceof Function)return a(c,b);if(e.compile)return k[f]= e.compile(a,{data:void 0!==h}),k[f](c,b);throw new e.Exception("The partial "+f+" could not be compiled when running in runtime-only mode");}};e.template=e.VM.template;e.VERSION+="-yui";e.revive=e.template;b.namespace("Template").Handlebars=e},"3.17.2",{requires:[]})},447:function(p,s){YUI.add("substitute",function(b,h){var e=b.Lang,k=/(~-(\d+)-~)/g,n=/\{LBRACE\}/g,m=/\{RBRACE\}/g,c=function(a,f,c,x){for(var v,h,q,w,p,s=[],z,C=a.length;;){v=a.lastIndexOf("{",C);if(0>v)break;h=a.indexOf("}",v);if(v+ 1>=h)break;w=z=a.substring(v+1,h);p=null;q=w.indexOf(" ");-1<q&&(p=w.substring(q+1),w=w.substring(0,q));q=f[w];c&&(q=c(w,q,p));e.isObject(q)?b.dump?e.isArray(q)?q=b.dump(q,parseInt(p,10)):(p=p||"",w=p.indexOf("dump"),-1<w&&(p=p.substring(4)),q=q.toString===Object.prototype.toString||-1<w?b.dump(q,parseInt(p,10)):q.toString()):q=q.toString():e.isUndefined(q)&&(q="~-"+s.length+"-~",s.push(z));a=a.substring(0,v)+q+a.substring(h+1);x||(C=v-1)}return a.replace(k,function(a,f,c){return"{"+s[parseInt(c, 10)]+"}"}).replace(n,"{").replace(m,"}")};b.substitute=c;e.substitute=c},"3.17.2",{requires:["yui-base"],optional:["dump"]})},512:function(p,s){YUI.add("squarespace-ss-widget",function(b){b.namespace("Squarespace.Widgets");var h=b.Squarespace.Widgets.SSWidget=b.Squarespace.SSWidget=b.Base.create("ssWidget",b.Widget,[],{delegatedEvents:{},initializer:function(e){this.LOG=new b.Squarespace.Debugger({name:this.name,output:!1});this._anims=new b.Squarespace.Anims;this.on("classNameChange",function(e){var b= this.get("boundingBox");b&&b.removeClass(e.prevVal).addClass(e.newVal)},this);this._events=[];this._timers=[]},destroy:function(e){if(!b.Lang.isBoolean(e)&&!this.get("destroyed")){var k=this.get("boundingBox"),n=this.get("contentBox");k&&k._node&&n&&n._node?e=!0:this.LOG.error("This widget's elements was improperly cleaned up!")}h.superclass.destroy.call(this,e)},destructor:function(){this._anims.destroy();b.detach(this.get("id")+"|*");for(this.detach(this.get("id")+"|*");0!==this._events.length;)this._events.shift().detach(); for(;0!==this._timers.length;)this._timers.shift().cancel();this._anims=null;this._timers=[];this._events=[];this.LOG=null},_registerEvent:function(){if(b.Lang.isArray(arguments[0]))this._registerEvent.apply(this,arguments[0]);else for(var e=0,k=arguments.length;e<k;e++)b.Lang.isValue(arguments[e])&&this._events.push(arguments[e])},_registerPointerEvent:function(e,k,h,m){e=b.Squarespace.Utils._attachPointerAction(e,k,h,m);this._registerEvent(e)},_registerAnim:function(e){this._anims.add(e)},_registerCallback:function(e, k){return b.bind(function(){this.get("destroyed")||e.apply(k||this,arguments)},this)},_registerTimer:function(e){this._timers.push(e);return e},renderUI:function(){var e=this.get("className");this.get("boundingBox").addClass(e);this.get("preventRenderTemplate")||this.get("contentBox").prepend(this.renderTemplate())},bindUI:function(){var e=this.get("id");this.after(e+"|stringsChange",function(e){e.noSyncUI||this.syncUI()},this);var k=this.get("boundingBox");b.Object.each(this.delegatedEvents,function(h, m){b.Object.each(h,function(c,a){k.delegate(e+"|"+a,this[c],m,this)},this)},this)},syncUI:function(){},_getTemplateInfo:function(){var e=h.TEMPLATE_TYPES,k=!1,n=this.constructor,m,c,a,f;m=function(){a=n.HANDLEBARS_TEMPLATE;c=n.TEMPLATE;f=(k=b.Lang.isValue(a))?e.HANDLEBARS:e.HTML};for(m();b.Lang.isUndefined(a)&&b.Lang.isUndefined(c);)n=n.superclass.constructor,m();m=k?b.Squarespace.UITemplates.getCompiledTemplate(a):function(){return b.Node.create(c)};return{type:f,template:m}},renderTemplate:function(){var e= h.TEMPLATE_TYPES,b=this._getTemplateInfo();return b.type===e.HANDLEBARS?(e=this._getHBTemplateContext(),b.template(e)):b.template()},getProperty:function(e){for(var h=this.constructor,n=this.constructor[e];b.Lang.isUndefined(n);){if(h.superclass)h=h.superclass.constructor;else break;if(b.Lang.isUndefined(h))break;n=h[e]}return n},_getHBTemplateContext:function(){return this.getAttrs()}},{CSS_PREFIX:"sqs-widget",HANDLEBARS_TEMPLATE:null,TEMPLATE:"",TEMPLATE_TYPES:{HANDLEBARS:"handlebars",HTML:"html"}, ATTRS:{className:{value:null},preventRenderTemplate:{value:!1,validator:b.Squarespace.AttrValidators.isBoolean}}})},"1.0",{requires:"base node squarespace-anims squarespace-attr-validators squarespace-debugger squarespace-template-helpers squarespace-ui-templates squarespace-util widget".split(" ")})},513:function(p,s,b){var h=b(26),e=b(43),k=b(87),n=b(193),m=b(409),c=b(296);YUI.add("squarespace-template-helpers",function(a){function f(l,a){return a?function(f){return f.recordType==l||f.promotedBlockType== a}:function(a){return a.recordType==l}}function b(l){return function(a){return a.promotedBlockType==l}}function x(l,a){return function(f,c,e){return c._LookUpStack("options")[l]==a}}var v={get:function(l,a){return"function"===typeof l.get?l.get(a):l[a]}},B={html:a.Squarespace.Escaping.escapeForHtml,htmltag:a.Squarespace.Escaping.escapeForHtmlTag,htmlattr:a.Squarespace.Escaping.escapeForHtmlTag,str:function(l){if(null===l||"undefined"===typeof l)return"";try{return l.toString()}catch(a){return"[JSONT: Can't format variable as string (typeof: "+ typeof l+").]"}},raw:function(l){return l},capitalize:function(l){return l.toUpperCase()},safe:function(l){return!l?"":l.replace(/<.*?>/g,"")},json:function(l){return a.JSON.stringify(l).replace(/<\/script>/g,'</scr"+"ipt>')},"json-pretty":function(l){return a.JSON.stringify(l,null,2).replace(/<\/script>/g,'</scr"+"ipt>')},smartypants:function(l){l=l.replace(/(^|[-\u2014\s(\["])'/g,"$1\u2018");l=l.replace(/'/g,"\u2019");l=l.replace(/(^|[-\u2014/\[(\u2018\s])"/g,"$1\u201c");l=l.replace(/"/g,"\u201d"); return l=l.replace(/--/g,"\u2014")},slugify:function(l){return!l?"":l.replace(/[^\-a-zA-Z0-9\s]+/ig,"").replace(/\s/g,"-").toLowerCase()},"url-encode":function(l){return encodeURIComponent(l)},"activate-twitter-links":function(l){return l.replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,'<a target="new" href="$1">$1</a>').replace(/(^| )@([a-zA-Z0-9_]+)/ig,'$1<a target="new" href="http://www.twitter.com/$2/">@$2</a>').replace(/(^| )#([a-zA-Z0-9_]+)/ig,function(l){return'<a target="new" href="http://www.twitter.com/search/'+ encodeURIComponent(l)+'">'+l+"</a>"})},count:function(l){var a=l.length;if(null==a&&"object"===typeof l)for(s in a=0,l)Object.prototype.hasOwnProperty.call(l,s)&&a++;return a||0},"audio-player":function(l){return'<script>Y.use(\'squarespace-audio-player-frontend\');\x3c/script><div class="squarespace-audio-player" data-audio-asset-url="'+l.structuredContent.audioAssetUrl+'" data-item-id="'+l.id+'" id="audio-player-'+l.id+'"></div>'},"social-button":function(l,f){var c=f._LookUpStack("website"),e= l.systemDataId||l.mainImageId||"",b=l.assetUrl||(l.mainImage?l.mainImage.assetUrl:"")||"";if(c&&c.shareButtonOptions&&0!==Object.keys(c.shareButtonOptions).length)return'<script>Y.use(\'squarespace-social-buttons\');\x3c/script><div class="squarespace-social-buttons button-style" data-system-data-id="'+e+'" data-asset-url="'+b+'" data-record-type="'+l.recordType+'" data-full-url="'+l.fullUrl+'" data-title="'+a.Squarespace.Escaping.escapeForHtmlTag(l.title)+'"></div>'},"social-button-inline":function(l, f){var c=f._LookUpStack("website"),e=l.systemDataId||l.mainImageId||"",b=l.assetUrl||(l.mainImage?l.mainImage.assetUrl:"")||"";if(c&&c.shareButtonOptions&&0!==Object.keys(c.shareButtonOptions).length)return'<script>Y.use(\'squarespace-social-buttons\');\x3c/script><span class="squarespace-social-buttons inline-style" data-system-data-id="'+e+'" data-asset-url="'+b+'" data-record-type="'+l.recordType+'" data-full-url="'+l.fullUrl+'" data-title="'+a.Squarespace.Escaping.escapeForHtmlTag(l.title)+'"></span>'}, "twitter-follow-button":function(l){l=l.userName||l.profileUrl.split("/").pop();return h("<script>Y.use('squarespace-follow-buttons', function(Y) { Y.on('domready', function() { Y.Squarespace.FollowButtonUtils.renderAll(); }); });\x3c/script><div class=\"squarespace-follow-button\" data-username=\"{userName}\"></div>",{userName:l})},comments:function(l,a){var f=a._LookUpStack("websiteSettings");return f&&f.disqusShortname?'<div class="squarespace-comments" id="disqus_thread"></div>':'<div class="squarespace-comments" id="comments-'+ l.id+'"></div>'},"comment-link":function(l,a){var f=a._LookUpStack("websiteSettings");return f&&f.disqusShortname?'<a href="'+l.fullUrl+'" class="sqs-comment-link sqs-disqus-comment-link" data-id="'+l.id+'"></a>':'<a href="'+l.fullUrl+"#comments-"+l.id+'" class="sqs-comment-link" data-id="'+l.id+'">'+(0===l.publicCommentCount?"No":l.publicCommentCount)+" Comment"+(1===l.publicCommentCount?"":"s")+"</a>"},"like-button":function(a,f){var c=f._LookUpStack("websiteSettings");if(c&&c.simpleLikingEnabled)return'<span class="sqs-simple-like" data-item-id="'+ a.id+'" data-like-count="'+a.likeCount+'"><span class="like-icon"></span><span class="like-count"></span></span>'},"comment-count":function(a){return(0===a.publicCommentCount?"No":a.publicCommentCount)+" Comment"+(1===a.publicCommentCount?"":"s")},"image-meta":function(l){if(l){var f="0.5,0.5";l.mediaFocalPoint&&(f=l.mediaFocalPoint.x+","+l.mediaFocalPoint.y);var c;l.title&&0<l.title.length&&(c=l.title);!c&&(l.body&&0<l.body.length)&&(c=l.body.replace(/<(?:.|\n)*?>/gm,""));!c&&(l.filename&&0<l.filename.length)&& (c=l.filename);c&&(c=a.Squarespace.Escaping.escapeForHtmlTag(c));return'data-image="'+l.assetUrl+'" data-src="'+l.assetUrl+'" data-image-dimensions="'+(l.originalSize||"")+'" data-image-focal-point="'+f+'" alt="'+c+'" '}},height:function(a){a=a.split("x");if(2!=a.length)return"Invalid source parameter. Pass in 'originalSize'.";parseInt(a[0],10);return parseInt(a[1],10)},width:function(a){a=a.split("x");if(2!=a.length)return"Invalid source parameter. Pass in 'originalSize'.";var f=parseInt(a[0], 10);parseInt(a[1],10);return f},moneyFormat:function(l){return a.Squarespace.Commerce.moneyFormat(l)},"money-format":function(l){return a.Squarespace.Commerce.moneyFormat(l)},"percentage-format":function(a){a=a.toFixed(3);var f=a.length;return"0"===a.charAt(f-1)?a.substring(0,f-1):a},"google-calendar-url":function(l){var f="http://www.google.com/calendar/event?action=TEMPLATE",c=new Date(l.startDate);c.setHours(c.getHours()+c.getTimezoneOffset()/60);var c=a.DataType.Date.format(c,{format:"%Y%m%dT%H%M%SZ"}), e=new Date(l.endDate);e.setHours(e.getHours()+e.getTimezoneOffset()/60);var e=a.DataType.Date.format(e,{format:"%Y%m%dT%H%M%SZ"}),b;l.location&&(b=l.location.addressLine1+", "+l.location.addressLine2+", "+l.location.addressCountry);f+="&text="+encodeURI(l.title);f+="&dates="+c+"/"+e;b&&(f+="&location="+b);return f},AbsUrl:function(a,f){return v.get("base-url")+"/"+a},"item-classes":function(l,f){f.hash&&(f=this);var c=["hentry"],e=v.get(f,"promotedBlockType");e&&(c.push("promoted"),c.push(B.slugify("promoted-block-"+ e)));if(e=v.get(f,"categories"))for(var b=0;b<e.length;b++)c.push(B.slugify("category-"+e[b]));if(e=v.get(f,"tags"))for(b=0;b<e.length;b++)c.push(B.slugify("tag-"+e[b]));(e=v.get(f,"author"))&&e.displayName&&c.push(B.slugify("author-"+e.displayName));c.push("post-type-"+v.get(f,"recordTypeLabel"));c.push("article-index-"+v.get(f,"@index"));v.get(f,"starred")&&c.push("featured");l.recordType===k.STORE_ITEM&&a.Squarespace.Commerce.onSale(l)&&c.push("on-sale");return c.join(" ")},round:function(a,f, c){return Math.round(parseFloat(a))},iter:function(a){return v.get(a,"@index")},"product-status":function(f){if(a.Squarespace.Commerce.soldOut(f))return'<div class="product-mark sold-out">sold out</div>';if(a.Squarespace.Commerce.onSale(f))return'<div class="product-mark sale">sale</div>'},"money-string":function(f){return a.Squarespace.Commerce.moneyString(f)},"product-price":function(f){return'<div class="product-price">'+a.Squarespace.Commerce.priceString(f)+"</div>"},"from-price":function(f){return a.Squarespace.Commerce.fromPrice(f)}, "normal-price":function(f){return a.Squarespace.Commerce.normalPrice(f)},"sale-price":function(f){return a.Squarespace.Commerce.salePrice(f)},"coupon-descriptor":function(f){return a.Squarespace.Commerce.couponDescriptor(f)},"variant-descriptor":function(f){return a.Squarespace.Commerce.variantFormat(f)},"color-weight":function(a){return a&&0<a.length&&7>=a.length?(a=a.replace("#",""),8388607.5<parseInt(a,16)?"light":"dark"):""},"summary-form-field":function(f){return a.Squarespace.Commerce.summaryFormFieldString(f)}}, q={"has-multiple?":function(a){return 1<a.length},"main-image?":function(a){return!!a.mainImageId||!!a.systemDataId},"child-images?":function(a){return a.items&&0<a.items.length&&(a=a.items[0],a.mainImageId||a.systemDataId)?!0:!1},"location?":function(a){return a.location&&a.location.mapLat&&a.location.mapLng},"excerpt?":function(a){return!c(a.excerpt&&(a.excerpt.html||a.excerpt)||"")},"comments?":function(a,f){var c=f._LookUpStack("websiteSettings"),e=1===a.commentState;!e&&0<a.publicCommentCount&& (e=!0);c&&!c.commentsEnabled&&(e=!1);return e},"collection?":function(a){return a.collection},"collection-page?":function(a){return a.collection&&a.collection.type===e.COLLECTION_TYPE_PAGE},"passthrough?":function(a){return a.passthrough&&a.sourceUrl&&""!==a.sourceUrl},"event?":function(a){return a.recordType==k.EVENT},"same-day?":function(a,f){try{var c=new TimezoneJS.Date(a.startDate,f.get("website.timeZone")),e=new TimezoneJS.Date(a.endDate,f.get("website.timeZone"));return c.getYear()==e.getYear()&& c.getMonth()==e.getMonth()&&c.getDate()==e.getDate()}catch(b){return!1}},"external-link?":function(a){return!!a.externalLink},"folder?":function(a){return a.collection&&a.collection.folder},"index?":function(f){return a.Object.getValue(f,["collection","folder","folderBehavior"])===n.INDEX},"variation?":function(f){return a.Object.getValue(f,["collection","folder","folderBehavior"])===n.VARIATION},"singular?":function(a){return 1===a},"plural?":function(a){return 1!==a},"disqus?":function(a,f){var c= f._LookUpStack("websiteSettings");return c&&c.disqusShortname},"serviceNameEmail?":function(a,f){return"email"===a.serviceName},"debug?":function(a,f){try{return f.get("debug")}catch(c){if("UndefinedVariable"==c.name)return!1;throw c;}},"calendar-view?":function(a,f){return!0===f._LookUpStack("calendarView")},"has-variants?":function(f){return a.Squarespace.Commerce.hasVariants(f)},"varied-prices?":function(f){return a.Squarespace.Commerce.variedPrices(f)},"on-sale?":function(f){return a.Squarespace.Commerce.onSale(f)}, "sold-out?":function(f){return a.Squarespace.Commerce.soldOut(f)}},w={text:k.TEXT,image:k.IMAGE,quote:k.QUOTE,gallery:k.GALLERY,link:k.LINK,chat:k.CHAT,audio:k.AUDIO,video:k.VIDEO,review:k.REVIEW,store_item:k.STORE_ITEM,event:k.EVENT,thread:k.THREAD,tweet:k.TWEET,rss:k.RSS,geo:k.CHECKIN,delicious:k.DELICIOUS,kbarticle:k.KBARTICLE};Object.keys(w).forEach(function(a){q[a+"?"]=f(w[a])});q["external-video?"]=f(k.VIDEO,"video");q["video?"]=f(k.VIDEO,"video");q["image?"]=f(k.IMAGE,"image");q["quote?"]= f(k.QUOTE,"quote");q["link?"]=f(k.LINK,"link");q["quote?"]=f(k.QUOTE,"quote");q["gallery?"]=f(k.GALLERY,"gallery");for(var p="map embed image code quote twitter link video foursquare instagram form".split(" "),s=0;s<p.length;s++){var z=p[s],C=z.charAt(0).toUpperCase()+z.slice(1);q["promoted"+C+"?"]=b(z)}q["redirect?"]=function(a){return a.folderBehavior==n.REDIRECT};q["clickable?"]=function(a,f,c){a=f._LookUpStack("folderBehavior");return"undefined"===typeof a?!0:a==n.INDEX||a==n.REDIRECT};for(var A in m)switch(p= m[A],p.type){case "select":for(var y in p.options)q["gallery-"+A+"-"+y+"?"]=x(A,y);break;case "boolean":q["gallery-"+A+"?"]=x(A,!0);break;case "slider":case "multiOption":break;default:console.log("Unknown type: "+type+", (opt: "+A+")")}q["gallery-meta?"]=function(a,f,c){return f._LookUpStack("options").controls||f._LookUpStack("options").indicators};a.namespace("Squarespace");a.Squarespace.HANDLEBARS_HELPERS={debug:function(){return function(a){a="DEBUG:\n========================\n"+JSON.stringify(this|| a,null,2);return a+"END DEBUG:\n========================\n"}},moneyFormat:function(f){return a.Squarespace.Commerce.moneyFormat(f)}};a.Squarespace.TEMPLATE_PREDICATES=q;a.Squarespace.TEMPLATE_PARAMETRIC_PREDICATES=[{name:"collectionTypeNameEquals?",func:function(a,f,c){return f.get("typeName")==c[0]}}];a.Squarespace.TEMPLATE_FORMATTERS=B;a.Squarespace.TEMPLATE_PREFIX_FORMATTERS=[{name:"output",func:function(a,f,c){return c.join(" ")}},{name:"video",func:function(f,c,e){var b=f.oembed||{};c=f.assetUrl; var D=f.mediaFocalPoint,g=!1,F=!1,x=f.colorData;if(e)for(var h=0;h<e.length;h++){var v=e[h];"load-false"===v?g=!0:"color-data"===v&&(F=!0)}e='<div class="sqs-video-wrapper" '+(g?'data-load="false" ':"")+'data-html="'+a.Squarespace.Escaping.escapeForHtmlTag(b.html)+'" data-provider-name="'+b.providerName+'">';f.overlay&&(b='<div class="sqs-video-overlay',f.mainImageId||f.systemDataId?(b=b+'" style="opacity: 0;">'+('<img data-load="false" data-image="'+c+'" data-src="'+c+'" data-image-dimensions="'+ (f.originalSize||"")+'" data-image-focal-point="'+(D?D.x+","+D.y:"0.5,0.5")+'" '),F&&x&&(b+='data-color-topleft="#'+x.topLeftAverage+'" data-color-topright="#'+x.topRightAverage+'" data-color-bottomleft="#'+x.bottomLeftAverage+'" data-color-bottomright="#'+x.bottomRightAverage+'" data-color-center="#'+x.centerAverage+'" '),b+="/>"):b+=' no-thumb" style="opacity: 0;">',b+='<div class="sqs-video-opaque"> </div><div class="sqs-video-icon"></div>',b+="</div>",e+=b);return e+"</div>"}},{name:"image-color", func:function(a,f,c){f="";a.colorData&&(f=0<c.length?(a=a.colorData[c[0]+"Average"])?2==c.length?c[1]+": #"+a:"#"+a:h("{sub1} not found: valid position-- topLeft, topRight, bottomLeft, bottomRight, center",{sub1:c[0]}):'data-color-topleft="#'+a.colorData.topLeftAverage+'" data-color-topright="#'+a.colorData.topRightAverage+'" data-color-bottomleft="#'+a.colorData.bottomLeftAverage+'" data-color-bottomright="#'+a.colorData.bottomRightAverage+'" data-color-center="#'+a.colorData.centerAverage+'" '); return f}},{name:"child-image-meta",func:function(f,c,e){f=f.items[e&&e[0]?e[0]:0];c="0.5,0.5";f.mediaFocalPoint&&(c=f.mediaFocalPoint.x+","+f.mediaFocalPoint.y);var b;f.title&&0<f.title.length&&(b=f.title);!b&&(f.body&&0<f.body.length)&&(b=f.body.replace(/<(?:.|\n)*?>/gm,""));!b&&(f.filename&&0<f.filename.length)&&(b=f.filename);b&&(b=a.Squarespace.Escaping.escapeForHtmlTag(b));return'data-image="'+f.assetUrl+'" data-src="'+f.assetUrl+'" data-image-dimensions="'+(f.originalSize||"")+'" data-image-focal-point="'+ c+'" alt="'+b+'" '}}];a.Squarespace.TEMPLATE_FORMATTERS.date=function(f,c,e){return!a.Lang.isNumber(c)?"Invalid date.":a.DataType.Date.format(new Date(c),{format:e})};for(var t in a.Squarespace.TEMPLATE_FORMATTERS)(function(f){a.Handlebars.registerHelper(f,function(c){return a.Squarespace.TEMPLATE_FORMATTERS[f].apply(this,[this].concat(Array.prototype.slice.call(arguments)))})})(t);for(var u in a.Squarespace.TEMPLATE_PREDICATES)(function(f){a.Handlebars.registerHelper("if-"+f.replace("?",""),function(c){return a.Handlebars.helpers["if"].call(this, function(){return a.Squarespace.TEMPLATE_PREDICATES[f](this)},c)})})(u);for(var r in a.Squarespace.HANDLEBARS_HELPERS)a.Handlebars.registerHelper(r,a.Squarespace.HANDLEBARS_HELPERS[r])},"1.0",{requires:["handlebars-base","json","squarespace-commerce-utils","squarespace-escaping-utils","substitute"]})},598:function(p,s){YUI.add("model",function(b,h){function e(){e.superclass.constructor.apply(this,arguments)}var k=YUI.namespace("Env.Model"),n=b.Lang,m=b.Array,c=b.Object,a="error";b.Model=b.extend(e, b.Base,{idAttribute:"id",_allowAdHocAttrs:!0,_isYUIModel:!0,initializer:function(a){this.changed={};this.lastChange={};this.lists=[]},destroy:function(a,c){var b=this;"function"===typeof a&&(c=a,a=null);b.onceAfter("destroy",function(){function e(h){h||m.each(b.lists.concat(),function(c){c.remove(b,a)});c&&c.apply(null,arguments)}a&&(a.remove||a["delete"])?b.sync("delete",a,e):e()});return e.superclass.destroy.call(b)},generateClientId:function(){k.lastId||(k.lastId=0);return this.constructor.NAME+ "_"+(k.lastId+=1)},getAsHTML:function(a){a=this.get(a);return b.Escape.html(n.isValue(a)?String(a):"")},getAsURL:function(a){a=this.get(a);return encodeURIComponent(n.isValue(a)?String(a):"")},isModified:function(){return this.isNew()||!c.isEmpty(this.changed)},isNew:function(){return!n.isValue(this.get("id"))},load:function(f,c){var e=this;"function"===typeof f&&(c=f,f={});f||(f={});e.sync("read",f,function(b,h){var k={options:f,response:h},m;b?(k.error=b,k.src="load",e.fire(a,k)):(e._loadEvent|| (e._loadEvent=e.publish("load",{preventable:!1})),m=k.parsed=e._parse(h),e.setAttrs(m,f),e.changed={},e.fire("load",k));c&&c.apply(null,arguments)});return e},parse:function(f){if("string"===typeof f)try{return b.JSON.parse(f)}catch(c){return this.fire(a,{error:c,response:f,src:"parse"}),null}return f},save:function(f,c){var e=this;"function"===typeof f&&(c=f,f={});f||(f={});e._validate(e.toJSON(),function(b){b?c&&c.call(null,b):e.sync(e.isNew()?"create":"update",f,function(b,h){var k={options:f, response:h},m;b?(k.error=b,k.src="save",e.fire(a,k)):(e._saveEvent||(e._saveEvent=e.publish("save",{preventable:!1})),h&&(m=k.parsed=e._parse(h),e.setAttrs(m,f)),e.changed={},e.fire("save",k));c&&c.apply(null,arguments)})});return e},set:function(a,c,e){var b={};b[a]=c;return this.setAttrs(b,e)},setAttrs:function(a,e){var h=this.idAttribute,k,m,n,p;e=b.merge(e);p=e._transaction={};"id"!==h&&(a=b.merge(a),c.owns(a,h)?a.id=a[h]:c.owns(a,"id")&&(a[h]=a.id));for(m in a)c.owns(a,m)&&this._setAttr(m,a[m], e);if(!c.isEmpty(p)){h=this.changed;n=this.lastChange={};for(m in p)c.owns(p,m)&&(k=p[m],h[m]=k.newVal,n[m]={newVal:k.newVal,prevVal:k.prevVal,src:k.src||null});e.silent||(this._changeEvent||(this._changeEvent=this.publish("change",{preventable:!1})),e.changed=n,this.fire("change",e))}return this},sync:function(){var a=m(arguments,0,!0).pop();"function"===typeof a&&a()},toJSON:function(){var a=this.getAttrs();delete a.clientId;delete a.destroyed;delete a.initialized;"id"!==this.idAttribute&&delete a.id; return a},undo:function(a,e){var b=this.lastChange,h=this.idAttribute,k={},n;a||(a=c.keys(b));m.each(a,function(a){c.owns(b,a)&&(a=a===h?"id":a,n=!0,k[a]=b[a].prevVal)});return n?this.setAttrs(k,e):this},validate:function(a,c){c&&c()},addAttr:function(a,c,b){var h=this.idAttribute,k;h&&a===h&&(h=this._isLazyAttr("id")||this._getAttrCfg("id"),k=c.value===c.defaultValue?null:c.value,n.isValue(k)||(k=h.value===h.defaultValue?null:h.value,n.isValue(k)||(k=n.isValue(c.defaultValue)?c.defaultValue:h.defaultValue)), c.value=k,h.value!==k&&(h.value=k,this._isLazyAttr("id")?this._state.add("id","lazy",h):this._state.add("id","value",k)));return e.superclass.addAttr.apply(this,arguments)},_parse:function(a){return this.parse(a)},_validate:function(c,e){function b(k){n.isValue(k)?(h.fire(a,{attributes:c,error:k,src:"validate"}),e(k)):e()}var h=this;1===h.validate.length?b(h.validate(c,b)):h.validate(c,b)},_setAttrVal:function(a,c,b,h,k,m){var n=e.superclass._setAttrVal.apply(this,arguments),p=k&&k._transaction,s= m&&m.initializing;n&&(p&&!s)&&(p[a]={newVal:this.get(a),prevVal:b,src:k.src||null});return n}},{NAME:"model",ATTRS:{clientId:{valueFn:"generateClientId",readOnly:!0},id:{value:null}}})},"3.17.2",{requires:["base-build","escape","json-parse"]})},664:function(p,s){YUI.add("model-list",function(b,h){function e(){e.superclass.constructor.apply(this,arguments)}var k=b.Attribute.prototype,n=b.Lang,m=b.Array;b.ModelList=b.extend(e,b.Base,{model:b.Model,_isYUIModelList:!0,initializer:function(c){c||(c={}); var a=this.model=c.model||this.model;"string"===typeof a&&((this.model=b.Object.getValue(b,a.split(".")))||b.error("ModelList: Model class not found: "+a));this.publish("add",{defaultFn:this._defAddFn});this.publish("reset",{defaultFn:this._defResetFn});this.publish("remove",{defaultFn:this._defRemoveFn});this.after("*:idChange",this._afterIdChange);this._clear();c.items&&this.add(c.items,{silent:!0})},destructor:function(){this._clear()},add:function(c,a){var f=c._isYUIModelList;return f||n.isArray(c)? m.map(f?c.toArray():c,function(c,f){var e=a||{};"index"in e&&(e=b.merge(e,{index:e.index+f}));return this._add(c,e)},this):this._add(c,a)},create:function(c,a,f){var e=this;"function"===typeof a&&(f=a,a={});a||(a={});c._isYUIModel||(c=new this.model(c));e.fire("create",b.merge(a,{model:c}));return c.save(a,function(b){b||e.add(c,a);f&&f.apply(null,arguments)})},each:function(c,a){var f=this._items.concat(),e,b,h;e=0;for(h=f.length;e<h;e++)b=f[e],c.call(a||b,b,e,this);return this},filter:function(c, a){var f=[],e=this._items,b,h,k;"function"===typeof c&&(a=c,c={});b=0;for(k=e.length;b<k;++b)h=e[b],a.call(this,h,b,this)&&f.push(h);return c.asList?(e=new this.constructor({model:this.model}),f.length&&e.add(f,{silent:!0}),e):f},get:function(c){return this.attrAdded(c)?k.get.apply(this,arguments):this.invoke("get",c)},getAsHTML:function(c){return this.attrAdded(c)?b.Escape.html(k.get.apply(this,arguments)):this.invoke("getAsHTML",c)},getAsURL:function(c){return this.attrAdded(c)?encodeURIComponent(k.get.apply(this, arguments)):this.invoke("getAsURL",c)},getByClientId:function(c){return this._clientIdMap[c]||null},getById:function(c){return this._idMap[c]||null},invoke:function(c){var a=[this._items,c].concat(m(arguments,1,!0));return m.invoke.apply(m,a)},load:function(c,a){var f=this;"function"===typeof c&&(a=c,c={});c||(c={});this.sync("read",c,function(e,b){var h={options:c,response:b},k;e?(h.error=e,h.src="load",f.fire("error",h)):(f._loadEvent||(f._loadEvent=f.publish("load",{preventable:!1})),k=h.parsed= f._parse(b),f.reset(k,c),f.fire("load",h));a&&a.apply(null,arguments)});return this},map:function(c,a){return m.map(this._items,c,a)},parse:function(c){if("string"===typeof c)try{return b.JSON.parse(c)||[]}catch(a){return this.fire("error",{error:a,response:c,src:"parse"}),null}return c||[]},remove:function(c,a){var f=c._isYUIModelList;return f||n.isArray(c)?(c=m.map(f?c.toArray():c,function(a){return n.isNumber(a)?this.item(a):a},this),m.map(c,function(c){return this._remove(c,a)},this)):this._remove(c, a)},reset:function(c,a){c||(c=[]);a||(a={});var f=b.merge({src:"reset"},a);c=c._isYUIModelList?c.toArray():m.map(c,function(a){return a._isYUIModel?a:new this.model(a)},this);f.models=c;a.silent?this._defResetFn(f):(this.comparator&&c.sort(b.bind(this._sort,this)),this.fire("reset",f));return this},some:function(c,a){var f=this._items.concat(),e,b,h;e=0;for(h=f.length;e<h;e++)if(b=f[e],c.call(a||b,b,e,this))return!0;return!1},sort:function(c){if(!this.comparator)return this;var a=this._items.concat(); c||(c={});a.sort(b.rbind(this._sort,this,c));a=b.merge(c,{models:a,src:"sort"});c.silent?this._defResetFn(a):this.fire("reset",a);return this},sync:function(){var c=m(arguments,0,!0).pop();"function"===typeof c&&c()},toArray:function(){return this._items.concat()},toJSON:function(){return this.map(function(c){return c.toJSON()})},_add:function(c,a){var f;a||(a={});c._isYUIModel||(c=new this.model(c));f=c.get("id");if(this._clientIdMap[c.get("clientId")]||n.isValue(f)&&this._idMap[f])this.fire("error", {error:"Model is already in the list.",model:c,src:"add"});else return f=b.merge(a,{index:"index"in a?a.index:this._findIndex(c),model:c}),a.silent?this._defAddFn(f):this.fire("add",f),c},_attachList:function(c){c.lists.push(this);c.addTarget(this)},_clear:function(){m.each(this._items,this._detachList,this);this._clientIdMap={};this._idMap={};this._items=[]},_compare:function(c,a){return c<a?-1:c>a?1:0},_detachList:function(c){var a=m.indexOf(c.lists,this);-1<a&&(c.lists.splice(a,1),c.removeTarget(this))}, _findIndex:function(c){var a=this._items,f=a.length,e=0,b,h;if(!this.comparator||!f)return f;for(h=this.comparator(c);e<f;)b=e+f>>1,c=a[b],0>this._compare(this.comparator(c),h)?e=b+1:f=b;return e},_parse:function(c){return this.parse(c)},_remove:function(c,a){var e;a||(a={});n.isNumber(c)?(e=c,c=this.item(e)):e=this.indexOf(c);if(-1===e||!c)this.fire("error",{error:"Model is not in the list.",index:e,model:c,src:"remove"});else return e=b.merge(a,{index:e,model:c}),a.silent?this._defRemoveFn(e):this.fire("remove", e),c},_sort:function(c,a,e){c=this._compare(this.comparator(c),this.comparator(a));return 0===c?c:e&&e.descending?-c:c},_afterIdChange:function(c){var a=c.newVal,e=c.prevVal;c=c.target;if(n.isValue(e))if(this._idMap[e]===c)delete this._idMap[e];else return;else if(-1===this.indexOf(c))return;n.isValue(a)&&(this._idMap[a]=c)},_defAddFn:function(e){var a=e.model,f=a.get("id");this._clientIdMap[a.get("clientId")]=a;n.isValue(f)&&(this._idMap[f]=a);this._attachList(a);this._items.splice(e.index,0,a)}, _defRemoveFn:function(e){var a=e.model,f=a.get("id");this._detachList(a);delete this._clientIdMap[a.get("clientId")];n.isValue(f)&&delete this._idMap[f];this._items.splice(e.index,1)},_defResetFn:function(e){"sort"===e.src?this._items=e.models.concat():(this._clear(),e.models.length&&this.add(e.models,{silent:!0}))}},{NAME:"modelList"});b.augment(e,b.ArrayList)},"3.17.2",{requires:"array-extras array-invoke arraylist base-build escape json-parse model".split(" ")})},1774:function(p,s){YUI.add("squarespace-hb-compare", function(b){b.Handlebars.registerHelper("if_eq",function(b,e){return b==e.hash.compare?e.fn(this):e.inverse(this)});b.Handlebars.registerHelper("unless_eq",function(b,e){return b==e.hash.compare?e.inverse(this):e.fn(this)});b.Handlebars.registerHelper("if_gt",function(b,e){return b>e.hash.compare?e.fn(this):e.inverse(this)});b.Handlebars.registerHelper("unless_gt",function(b,e){return b>e.hash.compare?e.inverse(this):e.fn(this)});b.Handlebars.registerHelper("if_lt",function(b,e){return b<e.hash.compare? e.fn(this):e.inverse(this)});b.Handlebars.registerHelper("unless_lt",function(b,e){return b<e.hash.compare?e.inverse(this):e.fn(this)});b.Handlebars.registerHelper("if_gteq",function(b,e){return b>=e.hash.compare?e.fn(this):e.inverse(this)});b.Handlebars.registerHelper("unless_gteq",function(b,e){return b>=e.hash.compare?e.inverse(this):e.fn(this)});b.Handlebars.registerHelper("if_lteq",function(b,e){return b<=e.hash.compare?e.fn(this):e.inverse(this)});b.Handlebars.registerHelper("unless_lteq",function(b, e){return b<=e.hash.compare?e.inverse(this):e.fn(this)})},"1.0",{requires:["handlebars-base"]})},1903:function(p,s){YUI.add("squarespace-tourdates-bandsintown-list-template",function(b){var h=b.Handlebars;(function(){var e=h.template;(h.templates=h.templates||{})["tourdates-bandsintown-list.html"]=e(function(e,b,h,c,a){function f(a,e){var c="",g,b;if((b=h["if"].call(a,(g=e,null==g||!1===g?g:g.index),{hash:{},inverse:t.noop,fn:t.program(3,p,e),data:e}))||0===b)c+=b;c+='\n {\n "@context": "http://schema.org",\n "@type": "MusicEvent",\n "name": "'+ r((g=(g=a.lineup,null==g||!1===g?g:g[0]),typeof g===u?g.apply(a):g))+" @ "+r((g=(g=a.venue,null==g||!1===g?g:g.name),typeof g===u?g.apply(a):g))+" in "+r((g=(g=a.venue,null==g||!1===g?g:g.city),typeof g===u?g.apply(a):g))+", "+r((g=(g=a.venue,null==g||!1===g?g:g.country),typeof g===u?g.apply(a):g))+'",\n "url" : "http://www.bandsintown.com/';b={hash:{},data:e};c+=r((g=h["url-encode-patch"]||a["url-encode-patch"],g?g.call(a,(g=a.lineup,null==g||!1===g?g:g[0]),b):l.call(a,"url-encode-patch",(g= a.lineup,null==g||!1===g?g:g[0]),b)))+'",\n "startDate": "';(b=h.datetime)?b=b.call(a,{hash:{},data:e}):(b=a.datetime,b=typeof b===u?b.apply(a):b);c+=r(b)+'",\n "location": {\n "@type": "Place",\n "name": "'+r((g=(g=a.venue,null==g||!1===g?g:g.name),typeof g===u?g.apply(a):g))+'",\n "address": {\n "@type": "PostalAddress",\n "addressCountry": "'+r((g=(g=a.venue,null==g||!1===g?g:g.country),typeof g===u?g.apply(a):g))+'",\n "addressLocality": "'+ r((g=(g=a.venue,null==g||!1===g?g:g.city),typeof g===u?g.apply(a):g))+'",\n "addressRegion": "'+r((g=(g=a.venue,null==g||!1===g?g:g.region),typeof g===u?g.apply(a):g))+'"\n },\n "geo": {\n "@type": "GeoCoordinates",\n "latitude": '+r((g=(g=a.venue,null==g||!1===g?g:g.latitude),typeof g===u?g.apply(a):g))+',\n "longitude": '+r((g=(g=a.venue,null==g||!1===g?g:g.longitude),typeof g===u?g.apply(a):g))+'\n }\n },\n "performer": [\n {\n "@type": "MusicGroup",\n "name": "'+ r((g=(g=a.lineup,null==g||!1===g?g:g[0]),typeof g===u?g.apply(a):g))+'",\n "sameAs": "http://www.bandsintown.com"\n }\n ],\n "offers": [\n ';if((b=h.each.call(a,a.offers,{hash:{},inverse:t.noop,fn:t.program(5,x,e),data:e}))||0===b)c+=b;return c+"\n ]\n }\n "}function p(a,e){return","}function x(a,e){var c,g;c="\n ";if((g=h["if"].call(a,null==e||!1===e?e:e.index,{hash:{},inverse:t.noop,fn:t.program(3,p,e),data:e}))||0===g)c+=g;c+='\n {\n "@type": "'; (g=h.type)?g=g.call(a,{hash:{},data:e}):(g=a.type,g=typeof g===u?g.apply(a):g);c+=r(g)+'",\n "url": "';(g=h.url)?g=g.call(a,{hash:{},data:e}):(g=a.url,g=typeof g===u?g.apply(a):g);c+=r(g)+'",\n "availability": "';(g=h.status)?g=g.call(a,{hash:{},data:e}):(g=a.status,g=typeof g===u?g.apply(a):g);return c+=r(g)+'",\n "category": "primary"\n }\n '}function s(a,e){var c,g,b;c='\n\n <li class="tour-item">\n\n <div class="tour-timeframe" data-tour-datetime="'; (g=h.datetime)?g=g.call(a,{hash:{},data:e}):(g=a.datetime,g=typeof g===u?g.apply(a):g);c+=r(g)+'">\n <div class="tour-date">';b={hash:{format:"date"},data:e};c+=r((g=h["tourdates-bit-datetime"]||a["tourdates-bit-datetime"],g?g.call(a,a.datetime,b):l.call(a,"tourdates-bit-datetime",a.datetime,b)))+'</div>\n <div class="tour-weekday">';b={hash:{format:"weekday"},data:e};c+=r((g=h["tourdates-bit-datetime"]||a["tourdates-bit-datetime"],g?g.call(a,a.datetime,b):l.call(a,"tourdates-bit-datetime", a.datetime,b)))+'</div>\n </div>\n <div class="tour-venue">\n <a href="https://bandsintown.com/event/';(b=h.id)?b=b.call(a,{hash:{},data:e}):(b=a.id,b=typeof b===u?b.apply(a):b);c+=r(b)+"?artist=";b={hash:{},data:e};c+=r((g=h["url-encode-patch"]||a["url-encode-patch"],g?g.call(a,(g=a.lineup,null==g||!1===g?g:g[0]),b):l.call(a,"url-encode-patch",(g=a.lineup,null==g||!1===g?g:g[0]),b)))+'" class="tour-venue-link" target="_blank">\n <div class="tour-venue-name">'+r((g= (g=a.venue,null==g||!1===g?g:g.name),typeof g===u?g.apply(a):g))+"</div>\n ";b={hash:{compare:1},inverse:t.noop,fn:t.program(9,B,e),data:e};if((b=(g=h.if_gt||a.if_gt,g?g.call(a,(g=a.lineup,null==g||!1===g?g:g.length),b):l.call(a,"if_gt",(g=a.lineup,null==g||!1===g?g:g.length),b)))||0===b)c+=b;c+='\n </div>\n </a>\n <div class="tour-location">\n <a href="https://bandsintown.com/event/';(b=h.id)?b=b.call(a,{hash:{},data:e}):(b=a.id,b=typeof b===u?b.apply(a): b);c+=r(b)+"?artist=";b={hash:{},data:e};c+=r((g=h["url-encode-patch"]||a["url-encode-patch"],g?g.call(a,(g=a.lineup,null==g||!1===g?g:g[0]),b):l.call(a,"url-encode-patch",(g=a.lineup,null==g||!1===g?g:g[0]),b)))+'" class="tour-venue-link" target="_blank">\n ';b={hash:{},inverse:t.program(15,H,e),fn:t.program(13,G,e),data:e};if((b=(g=h["equals-string"]||a["equals-string"],g?g.call(a,(g=a.venue,null==g||!1===g?g:g.country),"United States",b):l.call(a,"equals-string",(g=a.venue,null==g|| !1===g?g:g.country),"United States",b)))||0===b)c+=b;c+='\n </a>\n </div>\n <div class="tour-actions">\n ';if((b=h.each.call(a,a.offers,{hash:{},inverse:t.noop,fn:t.program(17,z,e),data:e}))||0===b)c+=b;return c+"\n </div>\n\n </li>\n\n "}function B(a,e){var c,b;c='\n <div class="tour-lineup">\n ';if((b=h.each.call(a,a.lineup,{hash:{},inverse:t.noop,fn:t.program(10,q,e),data:e}))||0===b)c+=b;return c+"\n </div>\n "} function q(a,e){var c,b,f;c="\n ";f={hash:{compare:0},inverse:t.noop,fn:t.program(11,w,e),data:e};if((f=(b=h.if_gt||a.if_gt,b?b.call(a,(b=e,null==b||!1===b?b:b.index),f):l.call(a,"if_gt",(b=e,null==b||!1===b?b:b.index),f)))||0===f)c+=f;return c+"\n "}function w(a,e){var c;return c=""+('\n <div class="tour-lineup-item">'+r(typeof a===u?a.apply(a):a)+"</div>\n ")}function G(a,e){var c,b;return c=""+("\n "+r((b=(b=a.venue,null==b|| !1===b?b:b.city),typeof b===u?b.apply(a):b))+", "+r((b=(b=a.venue,null==b||!1===b?b:b.region),typeof b===u?b.apply(a):b))+"\n ")}function H(a,b){var e,c;return e=""+("\n "+r((c=(c=a.venue,null==c||!1===c?c:c.city),typeof c===u?c.apply(a):c))+", "+r((c=(c=a.venue,null==c||!1===c?c:c.country),typeof c===u?c.apply(a):c))+"\n ")}function z(a,c){var b,e,f;b="\n ";f={hash:{},inverse:t.noop,fn:t.program(18,C,c),data:c};if((f=(e=h["equals-string"]||a["equals-string"], e?e.call(a,a.status,"available",f):l.call(a,"equals-string",a.status,"available",f)))||0===f)b+=f;return b+"\n "}function C(a,c){var b,e,f;b='\n <a href="';(e=h.url)?e=e.call(a,{hash:{},data:c}):(e=a.url,e=typeof e===u?e.apply(a):e);b+=r(e)+'" class="sqs-editable-button tour-button';f={hash:{},inverse:t.noop,fn:t.program(19,A,c),data:c};if((f=(e=h["equals-string"]||a["equals-string"],e?e.call(a,a.type,"Sold Out",f):l.call(a,"equals-string",a.type,"Sold Out",f)))||0===f)b+=f; b+='" target="_blank">\n ';(f=h.type)?f=f.call(a,{hash:{},data:c}):(f=a.type,f=typeof f===u?f.apply(a):f);return b+=r(f)+"\n </a>\n "}function A(a,e){return" tour-button--soldout"}this.compilerInfo=[4,">= 1.0.0"];h=this.merge(h,e.helpers);a=a||{};var y,t=this,u="function",r=this.escapeExpression,l=h.helperMissing,E=h.blockHelperMissing;e='<script type="application/ld+json">\n';if((c=h["if"].call(b,(y=b.tourdates,null==y||!1===y?y:y.length),{hash:{},inverse:t.noop, fn:t.program(1,function(a,e){var b,c,l;b="\n[\n ";l={hash:{},inverse:t.noop,fn:t.program(2,f,e),data:e};(c=h.tourdates)?c=c.call(a,l):(c=a.tourdates,c=typeof c===u?c.apply(a):c);h.tourdates||(c=E.call(a,c,l));if(c||0===c)b+=c;return b+"\n]\n"},a),data:a}))||0===c)e+=c;e+='\n\x3c/script>\n\n<ul class="tour-list">\n\n ';if((c=h["if"].call(b,(y=b.tourdates,null==y||!1===y?y:y.length),{hash:{},inverse:t.program(21,function(a,c){return'\n\n <li class="tour-item-no-results"></li>\n\n '},a),fn:t.program(7, function(a,c){var b,e,f;b="\n\n ";f={hash:{},inverse:t.noop,fn:t.program(8,s,c),data:c};(e=h.tourdates)?e=e.call(a,f):(e=a.tourdates,e=typeof e===u?e.apply(a):e);h.tourdates||(e=E.call(a,e,f));if(e||0===e)b+=e;return b+"\n\n "},a),data:a}))||0===c)e+=c;return e+"\n\n</ul>\n"})})();b.Handlebars.registerPartial("tourdates-bandsintown-list.html".replace("/","."),h.templates["tourdates-bandsintown-list.html"])},"1.0",{requires:["handlebars-base"]})},2395:function(p,s,b){b(2);YUI.add("squarespace-widgets-tourdates-bandsintown", function(b){function e(a){return[["%2F","%252F"],["%3F","%253F"],["*","%252A"]].reduce(function(a,b){return a.replace(b[0],b[1])},encodeURIComponent(a))}function k(a,b,e){a+="";b+="";for(var c=a.length;c<e;c++)a=b+a;return a}function n(a){return[a.getFullYear(),k(a.getMonth()+1,0,2),k(a.getDate(),0,2)].join("-")}var m=b.Base.create("bandsInTownTourDatesListModel",b.ModelList,[],{sync:function(a,c,k){if("read"!==a)console.warn("Unsupported sync action: "+a);else{k=b.Lang.isFunction(k)?k:function(){}; a="squarespace-"+b.Object.getValue(Static,["SQUARESPACE_CONTEXT","website","identifier"]);c=e(this.get("artistId"));var m;"upcoming"===this.get("timeframe")?m="upcoming":"dateRange"===this.get("timeframe")&&(m=n(new Date(this.get("startDate")))+","+n(new Date(this.get("endDate"))));this.get("artistId")||(c=encodeURIComponent("Morrissey"),m="2015-11-01,2015-12-31");this._getData("https://rest.bandsintown.com/artists/"+c+"/events?app_id="+a+"&date="+m).then(function(a){k(null,a)}).catch(function(a){k(a)})}}, _getData:function(a){return b.Squarespace.Promises.create(function(c,e){var k=new XMLHttpRequest;k.open("GET",a,!0);k.responseType="text";k.send();k.onreadystatechange=b.bind(function(){if(4===k.readyState&&200===k.status){k.response||e("Bandsintown tourdates request failed!");try{c(JSON.parse(k.response.replace(/\\'/g,"'")))}catch(a){console.log("Bad JSON from Bands In Town:",a.message),e(a)}}},this);k.onerror=b.bind(function(){e("Bandsintown tourdates request failed!")},this)},this)}},{ATTRS:{artistId:{value:null}, timeframe:{value:null},startDate:{value:null},endDate:{value:null}}});b.namespace("Squarespace.Widgets");var c=b.Squarespace.Widgets.BandsInTownTourDatesList=b.Base.create("bandsInTownTourDatesList",b.Squarespace.SSWidget,[],{initializer:function(){var a=this.get("boundingBox"),e=new b.Squarespace.Spinner({size:30,color:"dark",render:a});this._registerEvent(b.on("domready",function(){this.get("modelList").load(b.bind(function(){this.set("loaded",!0);a.addClass("loaded");e.destroy();this.get("artistId")|| (this.get("boundingBox").setAttribute("data-block-state","uninitialized"),this.get("boundingBox").addClass("sqs-block-is-placeholder"))},this))},this))},bindUI:function(){c.superclass.bindUI.call(this);this.after("loadedChange",this.renderTemplateAgain,this);this._registerEvent(b.on("windowresize",function(){this.adjustLayout()},b.config.win,this))},adjustLayout:function(){var a=this.get("boundingBox");a.getDOMNode()&&a.toggleClass("tourblock-has-small-container",450>a.get("offsetWidth"))},renderTemplateAgain:function(){this.adjustLayout(); this.get("contentBox").empty().append(this.renderTemplate());this.appendStructuredData()},appendStructuredData:function(){var a=document.createElement("script");a.type="application/ld+json";a.text=this.get("contentBox").one("script").get("innerHTML");b.one("head").append(a)},_getHBTemplateContext:function(){return{tourdates:this.get("modelList").toJSON()}}},{CSS_PREFIX:"sqs-tourdates-bandsintown-list",HANDLEBARS_TEMPLATE:"tourdates-bandsintown-list.html",ATTRS:{artistId:{value:null},timeframe:{value:null}, startDate:{value:null},endDate:{value:null},modelList:{valueFn:function(){return new m(this.getAttrs(["artistId","timeframe","startDate","endDate"]))}},loaded:{value:!1}}});b.Handlebars.registerHelper("tourdates-bit-datetime",function(a,b){var e=a.match(/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*)?)([zZ]|([+\-])(\d\d):?(\d\d))?$/)[1];d=new Date(e+"Z");var e="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),c="Sun Mon Tue Wed Thu Fri Sat".split(" ");if("date"===b.hash.format)return e[d.getUTCMonth()]+ " "+d.getUTCDate();if("weekday"===b.hash.format)return c[d.getUTCDay()]});b.Handlebars.registerHelper("equals-string",function(a,e,c){return b.Handlebars.helpers["if"].call(this,function(){return a==e.toString()},c)});b.Handlebars.registerHelper("url-encode",function(a){return encodeURIComponent(a)});b.Handlebars.registerHelper("url-encode-patch",e)},"1.0",{requires:"jsonp model-list squarespace-hb-compare squarespace-promises squarespace-spinner squarespace-ss-widget squarespace-tourdates-bandsintown-list-template".split(" ")})}, 3847:function(p,s){YUI.add("squarespace-tourdates",function(b){var h;b.config.win.Squarespace.onInitialize(b,function(){h=[];b.all(".sqs-block-tourdates[data-block-json]").each(function(e){var k=JSON.parse(e.getAttribute("data-block-json"));e=(new b.Squarespace.Widgets.BandsInTownTourDatesList({artistId:k.artistId,timeframe:k.timeframe,startDate:k.startDate,endDate:k.endDate})).render(e);h.push(e)})});b.config.win.Squarespace.onDestroy(b,function(){h.forEach(function(b){b.destroy&&b.destroy()});b.all(".sqs-block-tourdates[data-block-json]").each(function(b){b.empty()}); h=null})},"1.0",{requires:["squarespace-widgets-tourdates-bandsintown"]})}});