var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opens = _____WB$wombat$assign$function_____("opens");
webpackJsonp([25],{0:function(s,u,c){c(2420);c(1706);c(464);c(284);c(1223);c(1317)},284:function(s,u){YUI.add("model",function(c,l){function b(){b.superclass.constructor.apply(this,arguments)}var k=YUI.namespace("Env.Model"),n=c.Lang,f=c.Array,a=c.Object,h="error";c.Model=c.extend(b,c.Base,{idAttribute:"id",_allowAdHocAttrs:!0,_isYUIModel:!0,initializer:function(a){this.changed={};this.lastChange={};this.lists=[]},destroy:function(a,h){var c=this;"function"===typeof a&&(h=a,a=null);c.onceAfter("destroy",
function(){function b(w){w||f.each(c.lists.concat(),function(h){h.remove(c,a)});h&&h.apply(null,arguments)}a&&(a.remove||a["delete"])?c.sync("delete",a,b):b()});return b.superclass.destroy.call(c)},generateClientId:function(){k.lastId||(k.lastId=0);return this.constructor.NAME+"_"+(k.lastId+=1)},getAsHTML:function(a){a=this.get(a);return c.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()||
!a.isEmpty(this.changed)},isNew:function(){return!n.isValue(this.get("id"))},load:function(a,c){var p=this;"function"===typeof a&&(c=a,a={});a||(a={});p.sync("read",a,function(b,f){var k={options:a,response:f},l;b?(k.error=b,k.src="load",p.fire(h,k)):(p._loadEvent||(p._loadEvent=p.publish("load",{preventable:!1})),l=k.parsed=p._parse(f),p.setAttrs(l,a),p.changed={},p.fire("load",k));c&&c.apply(null,arguments)});return p},parse:function(a){if("string"===typeof a)try{return c.JSON.parse(a)}catch(z){return this.fire(h,
{error:z,response:a,src:"parse"}),null}return a},save:function(a,c){var p=this;"function"===typeof a&&(c=a,a={});a||(a={});p._validate(p.toJSON(),function(b){b?c&&c.call(null,b):p.sync(p.isNew()?"create":"update",a,function(b,f){var w={options:a,response:f},k;b?(w.error=b,w.src="save",p.fire(h,w)):(p._saveEvent||(p._saveEvent=p.publish("save",{preventable:!1})),f&&(k=w.parsed=p._parse(f),p.setAttrs(k,a)),p.changed={},p.fire("save",w));c&&c.apply(null,arguments)})});return p},set:function(a,h,c){var b=
{};b[a]=h;return this.setAttrs(b,c)},setAttrs:function(t,h){var b=this.idAttribute,f,k,l,n;h=c.merge(h);n=h._transaction={};"id"!==b&&(t=c.merge(t),a.owns(t,b)?t.id=t[b]:a.owns(t,"id")&&(t[b]=t.id));for(k in t)a.owns(t,k)&&this._setAttr(k,t[k],h);if(!a.isEmpty(n)){b=this.changed;l=this.lastChange={};for(k in n)a.owns(n,k)&&(f=n[k],b[k]=f.newVal,l[k]={newVal:f.newVal,prevVal:f.prevVal,src:f.src||null});h.silent||(this._changeEvent||(this._changeEvent=this.publish("change",{preventable:!1})),h.changed=
l,this.fire("change",h))}return this},sync:function(){var a=f(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(h,c){var b=this.lastChange,k=this.idAttribute,l={},n;h||(h=a.keys(b));f.each(h,function(h){a.owns(b,h)&&(h=h===k?"id":h,n=!0,l[h]=b[h].prevVal)});return n?this.setAttrs(l,c):this},validate:function(a,h){h&&h()},addAttr:function(a,
h,c){var f=this.idAttribute,k;f&&a===f&&(f=this._isLazyAttr("id")||this._getAttrCfg("id"),k=h.value===h.defaultValue?null:h.value,n.isValue(k)||(k=f.value===f.defaultValue?null:f.value,n.isValue(k)||(k=n.isValue(h.defaultValue)?h.defaultValue:f.defaultValue)),h.value=k,f.value!==k&&(f.value=k,this._isLazyAttr("id")?this._state.add("id","lazy",f):this._state.add("id","value",k)));return b.superclass.addAttr.apply(this,arguments)},_parse:function(a){return this.parse(a)},_validate:function(a,c){function f(k){n.isValue(k)?
(b.fire(h,{attributes:a,error:k,src:"validate"}),c(k)):c()}var b=this;1===b.validate.length?f(b.validate(a,f)):b.validate(a,f)},_setAttrVal:function(a,h,c,f,k,l){var n=b.superclass._setAttrVal.apply(this,arguments),s=k&&k._transaction,u=l&&l.initializing;n&&(s&&!u)&&(s[a]={newVal:this.get(a),prevVal:c,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"]})},464:function(s,u){YUI.add("model-list",
function(c,l){function b(){b.superclass.constructor.apply(this,arguments)}var k=c.Attribute.prototype,n=c.Lang,f=c.Array;c.ModelList=c.extend(b,c.Base,{model:c.Model,_isYUIModelList:!0,initializer:function(a){a||(a={});var h=this.model=a.model||this.model;"string"===typeof h&&((this.model=c.Object.getValue(c,h.split(".")))||c.error("ModelList: Model class not found: "+h));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();a.items&&this.add(a.items,{silent:!0})},destructor:function(){this._clear()},add:function(a,h){var b=a._isYUIModelList;return b||n.isArray(a)?f.map(b?a.toArray():a,function(a,b){var f=h||{};"index"in f&&(f=c.merge(f,{index:f.index+b}));return this._add(a,f)},this):this._add(a,h)},create:function(a,h,f){var b=this;"function"===typeof h&&(f=h,h={});h||(h={});a._isYUIModel||(a=new this.model(a));b.fire("create",c.merge(h,{model:a}));return a.save(h,
function(c){c||b.add(a,h);f&&f.apply(null,arguments)})},each:function(a,h){var c=this._items.concat(),f,b,k;f=0;for(k=c.length;f<k;f++)b=c[f],a.call(h||b,b,f,this);return this},filter:function(a,h){var c=[],f=this._items,b,k,l;"function"===typeof a&&(h=a,a={});b=0;for(l=f.length;b<l;++b)k=f[b],h.call(this,k,b,this)&&c.push(k);return a.asList?(f=new this.constructor({model:this.model}),c.length&&f.add(c,{silent:!0}),f):c},get:function(a){return this.attrAdded(a)?k.get.apply(this,arguments):this.invoke("get",
a)},getAsHTML:function(a){return this.attrAdded(a)?c.Escape.html(k.get.apply(this,arguments)):this.invoke("getAsHTML",a)},getAsURL:function(a){return this.attrAdded(a)?encodeURIComponent(k.get.apply(this,arguments)):this.invoke("getAsURL",a)},getByClientId:function(a){return this._clientIdMap[a]||null},getById:function(a){return this._idMap[a]||null},invoke:function(a){var h=[this._items,a].concat(f(arguments,1,!0));return f.invoke.apply(f,h)},load:function(a,h){var c=this;"function"===typeof a&&
(h=a,a={});a||(a={});this.sync("read",a,function(f,b){var k={options:a,response:b},l;f?(k.error=f,k.src="load",c.fire("error",k)):(c._loadEvent||(c._loadEvent=c.publish("load",{preventable:!1})),l=k.parsed=c._parse(b),c.reset(l,a),c.fire("load",k));h&&h.apply(null,arguments)});return this},map:function(a,h){return f.map(this._items,a,h)},parse:function(a){if("string"===typeof a)try{return c.JSON.parse(a)||[]}catch(h){return this.fire("error",{error:h,response:a,src:"parse"}),null}return a||[]},remove:function(a,
h){var c=a._isYUIModelList;return c||n.isArray(a)?(a=f.map(c?a.toArray():a,function(a){return n.isNumber(a)?this.item(a):a},this),f.map(a,function(a){return this._remove(a,h)},this)):this._remove(a,h)},reset:function(a,h){a||(a=[]);h||(h={});var b=c.merge({src:"reset"},h);a=a._isYUIModelList?a.toArray():f.map(a,function(a){return a._isYUIModel?a:new this.model(a)},this);b.models=a;h.silent?this._defResetFn(b):(this.comparator&&a.sort(c.bind(this._sort,this)),this.fire("reset",b));return this},some:function(a,
h){var c=this._items.concat(),f,b,k;f=0;for(k=c.length;f<k;f++)if(b=c[f],a.call(h||b,b,f,this))return!0;return!1},sort:function(a){if(!this.comparator)return this;var h=this._items.concat();a||(a={});h.sort(c.rbind(this._sort,this,a));h=c.merge(a,{models:h,src:"sort"});a.silent?this._defResetFn(h):this.fire("reset",h);return this},sync:function(){var a=f(arguments,0,!0).pop();"function"===typeof a&&a()},toArray:function(){return this._items.concat()},toJSON:function(){return this.map(function(a){return a.toJSON()})},
_add:function(a,h){var f;h||(h={});a._isYUIModel||(a=new this.model(a));f=a.get("id");if(this._clientIdMap[a.get("clientId")]||n.isValue(f)&&this._idMap[f])this.fire("error",{error:"Model is already in the list.",model:a,src:"add"});else return f=c.merge(h,{index:"index"in h?h.index:this._findIndex(a),model:a}),h.silent?this._defAddFn(f):this.fire("add",f),a},_attachList:function(a){a.lists.push(this);a.addTarget(this)},_clear:function(){f.each(this._items,this._detachList,this);this._clientIdMap=
{};this._idMap={};this._items=[]},_compare:function(a,h){return a<h?-1:a>h?1:0},_detachList:function(a){var h=f.indexOf(a.lists,this);-1<h&&(a.lists.splice(h,1),a.removeTarget(this))},_findIndex:function(a){var h=this._items,c=h.length,f=0,b,k;if(!this.comparator||!c)return c;for(k=this.comparator(a);f<c;)b=f+c>>1,a=h[b],0>this._compare(this.comparator(a),k)?f=b+1:c=b;return f},_parse:function(a){return this.parse(a)},_remove:function(a,f){var b;f||(f={});n.isNumber(a)?(b=a,a=this.item(b)):b=this.indexOf(a);
if(-1===b||!a)this.fire("error",{error:"Model is not in the list.",index:b,model:a,src:"remove"});else return b=c.merge(f,{index:b,model:a}),f.silent?this._defRemoveFn(b):this.fire("remove",b),a},_sort:function(a,f,c){a=this._compare(this.comparator(a),this.comparator(f));return 0===a?a:c&&c.descending?-a:a},_afterIdChange:function(a){var f=a.newVal,c=a.prevVal;a=a.target;if(n.isValue(c))if(this._idMap[c]===a)delete this._idMap[c];else return;else if(-1===this.indexOf(a))return;n.isValue(f)&&(this._idMap[f]=
a)},_defAddFn:function(a){var f=a.model,c=f.get("id");this._clientIdMap[f.get("clientId")]=f;n.isValue(c)&&(this._idMap[c]=f);this._attachList(f);this._items.splice(a.index,0,f)},_defRemoveFn:function(a){var f=a.model,c=f.get("id");this._detachList(f);delete this._clientIdMap[f.get("clientId")];n.isValue(c)&&delete this._idMap[c];this._items.splice(a.index,1)},_defResetFn:function(a){"sort"===a.src?this._items=a.models.concat():(this._clear(),a.models.length&&this.add(a.models,{silent:!0}))}},{NAME:"modelList"});
c.augment(b,c.ArrayList)},"3.17.2",{requires:"array-extras array-invoke arraylist base-build escape json-parse model".split(" ")})},1223:function(s,u){YUI.add("squarespace-hb-compare",function(c){c.Handlebars.registerHelper("if_eq",function(c,b){return c==b.hash.compare?b.fn(this):b.inverse(this)});c.Handlebars.registerHelper("unless_eq",function(c,b){return c==b.hash.compare?b.inverse(this):b.fn(this)});c.Handlebars.registerHelper("if_gt",function(c,b){return c>b.hash.compare?b.fn(this):b.inverse(this)});
c.Handlebars.registerHelper("unless_gt",function(c,b){return c>b.hash.compare?b.inverse(this):b.fn(this)});c.Handlebars.registerHelper("if_lt",function(c,b){return c<b.hash.compare?b.fn(this):b.inverse(this)});c.Handlebars.registerHelper("unless_lt",function(c,b){return c<b.hash.compare?b.inverse(this):b.fn(this)});c.Handlebars.registerHelper("if_gteq",function(c,b){return c>=b.hash.compare?b.fn(this):b.inverse(this)});c.Handlebars.registerHelper("unless_gteq",function(c,b){return c>=b.hash.compare?
b.inverse(this):b.fn(this)});c.Handlebars.registerHelper("if_lteq",function(c,b){return c<=b.hash.compare?b.fn(this):b.inverse(this)});c.Handlebars.registerHelper("unless_lteq",function(c,b){return c<=b.hash.compare?b.inverse(this):b.fn(this)})},"1.0",{requires:["handlebars-base"]})},1317:function(s,u){YUI.add("squarespace-tourdates-bandsintown-list-template",function(c){var l=c.Handlebars;(function(){var c=l.template;(l.templates=l.templates||{})["tourdates-bandsintown-list.html"]=c(function(c,b,
f,a,h){function l(a,c){var b;return(b=f["if"].call(a,a.errors,{hash:{},inverse:m.program(5,p,c),fn:m.program(3,s,c),data:c}))||0===b?b:""}function s(a,c){return""}function p(a,c){var b="",e,g;if((g=f["if"].call(a,(e=c,null==e||!1===e?e:e.index),{hash:{},inverse:m.noop,fn:m.program(6,w,c),data:c}))||0===g)b+=g;b+='\n  {\n      "@context": "http://schema.org",\n      "@type": "MusicEvent",\n      "name": "';(g=f.title)?g=g.call(a,{hash:{},data:c}):(g=a.title,g=typeof g===q?g.apply(a):g);b+=r(g)+'",\n      "image": "'+
r((e=(e=(e=a.artists,null==e||!1===e?e:e[0]),null==e||!1===e?e:e.image_url),typeof e===q?e.apply(a):e))+'",\n      "startDate": "';(g=f.datetime)?g=g.call(a,{hash:{},data:c}):(g=a.datetime,g=typeof g===q?g.apply(a):g);b+=r(g)+'",\n      "url": "';(g=f.ticket_url)?g=g.call(a,{hash:{},data:c}):(g=a.ticket_url,g=typeof g===q?g.apply(a):g);b+=r(g)+'",\n      "location": {\n          "@type": "Place",\n          "name": "'+r((e=(e=a.venue,null==e||!1===e?e:e.name),typeof e===q?e.apply(a):e))+'",\n          "address": {\n              "@type": "PostalAddress",\n              "addressCountry": "'+
r((e=(e=a.venue,null==e||!1===e?e:e.country),typeof e===q?e.apply(a):e))+'",\n              "addressLocality": "'+r((e=(e=a.venue,null==e||!1===e?e:e.city),typeof e===q?e.apply(a):e))+'",\n              "addressRegion": ""\n          },\n          "geo": {\n              "@type": "GeoCoordinates",\n              "latitude": '+r((e=(e=a.venue,null==e||!1===e?e:e.latitude),typeof e===q?e.apply(a):e))+',\n              "longitude": '+r((e=(e=a.venue,null==e||!1===e?e:e.longitude),typeof e===q?e.apply(a):
e))+'\n          }\n      },\n      "performer": [\n          {\n              "@type": "MusicGroup",\n              "name": "'+r((e=(e=(e=a.artists,null==e||!1===e?e:e[0]),null==e||!1===e?e:e.name),typeof e===q?e.apply(a):e))+'",\n              "sameAs": "http://www.bandsintown.com"\n          }\n      ],\n      "offers": [\n          {\n              "@type": "Offer",\n              "url": "';(g=f.ticket_url)?g=g.call(a,{hash:{},data:c}):(g=a.ticket_url,g=typeof g===q?g.apply(a):g);b+=r(g)+'",\n              "availability": "';
g={hash:{},inverse:m.noop,fn:m.program(8,u,c),data:c};if((g=(e=f["equals-string"]||a["equals-string"],e?e.call(a,a.ticket_status,"available",g):x.call(a,"equals-string",a.ticket_status,"available",g)))||0===g)b+=g;g={hash:{},inverse:m.noop,fn:m.program(10,A,c),data:c};if((g=(e=f["equals-string"]||a["equals-string"],e?e.call(a,a.ticket_status,"unavailable",g):x.call(a,"equals-string",a.ticket_status,"unavailable",g)))||0===g)b+=g;return b+'",\n              "category": "primary"\n          }\n      ]\n  }\n  '}
function w(a,c){return","}function u(a,c){return"InStock"}function A(a,c){return"SoldOUT"}function B(a,c){var b,e;b="\n\n      ";if((e=f["if"].call(a,a.errors,{hash:{},inverse:m.program(17,E,c),fn:m.program(14,C,c),data:c}))||0===e)b+=e;return b+"\n\n    "}function C(a,c){var b,e;b="\n\n        ";if((e=f.each.call(a,a.errors,{hash:{},inverse:m.noop,fn:m.program(15,D,c),data:c}))||0===e)b+=e;return b+"\n\n      "}function D(a,c){var b;return b=""+('\n        <li class="tour-item-error">\n          <div class="state-message">'+
r(typeof a===q?a.apply(a):a)+"</div>\n        </li>\n        ")}function E(a,c){var b,e,g;b='\n\n        <li class="tour-item">\n\n          <div class="tour-timeframe" data-tour-datetime="';(e=f.datetime)?e=e.call(a,{hash:{},data:c}):(e=a.datetime,e=typeof e===q?e.apply(a):e);b+=r(e)+'">\n            <div class="tour-date">';g={hash:{format:"date"},data:c};b+=r((e=f["tourdates-bit-datetime"]||a["tourdates-bit-datetime"],e?e.call(a,a.datetime,g):x.call(a,"tourdates-bit-datetime",a.datetime,g)))+'</div>\n            <div class="tour-weekday">';
g={hash:{format:"weekday"},data:c};b+=r((e=f["tourdates-bit-datetime"]||a["tourdates-bit-datetime"],e?e.call(a,a.datetime,g):x.call(a,"tourdates-bit-datetime",a.datetime,g)))+'</div>\n          </div>\n\n          <div class="tour-venue">\n            <a href="';(g=f.facebook_rsvp_url)?g=g.call(a,{hash:{},data:c}):(g=a.facebook_rsvp_url,g=typeof g===q?g.apply(a):g);b+=r(g)+'" class="tour-venue-link" target="_blank">\n            \n              <div class="tour-venue-name">'+r((e=(e=a.venue,null==
e||!1===e?e:e.name),typeof e===q?e.apply(a):e))+"</div>\n\n              ";g={hash:{compare:1},inverse:m.noop,fn:m.program(18,F,c),data:c};if((g=(e=f.if_gt||a.if_gt,e?e.call(a,(e=a.artists,null==e||!1===e?e:e.length),g):x.call(a,"if_gt",(e=a.artists,null==e||!1===e?e:e.length),g)))||0===g)b+=g;b+='\n\n            </a>\n          </div>\n\n          <div class="tour-location"><a href="';(g=f.facebook_rsvp_url)?g=g.call(a,{hash:{},data:c}):(g=a.facebook_rsvp_url,g=typeof g===q?g.apply(a):g);b+=r(g)+
'" class="tour-location-link" target="_blank">';(g=f.formatted_location)?g=g.call(a,{hash:{},data:c}):(g=a.formatted_location,g=typeof g===q?g.apply(a):g);b+=r(g)+'</a></div>\n\n          <div class="tour-actions">\n            <a href="';if((g=f["if"].call(a,a.ticket_url,{hash:{},inverse:m.program(24,G,c),fn:m.program(22,H,c),data:c}))||0===g)b+=g;b+='" class="tour-button tour-button--ticket ';g={hash:{},inverse:m.noop,fn:m.program(26,I,c),data:c};if((g=(e=f["equals-string"]||a["equals-string"],
e?e.call(a,a.ticket_type,"Sold Out",g):x.call(a,"equals-string",a.ticket_type,"Sold Out",g)))||0===g)b+=g;b+=" ";if((g=f["if"].call(a,a.ticket_url,{hash:{},inverse:m.program(28,J,c),fn:m.program(3,s,c),data:c}))||0===g)b+=g;b+=' sqs-editable-button " target="';if((g=f["if"].call(a,a.ticket_url,{hash:{},inverse:m.program(32,K,c),fn:m.program(30,L,c),data:c}))||0===g)b+=g;b+='">';(g=f.ticket_type)?g=g.call(a,{hash:{},data:c}):(g=a.ticket_type,g=typeof g===q?g.apply(a):g);b+=r(g)+'</a>\n            <a href="';
(g=f.facebook_rsvp_url)?g=g.call(a,{hash:{},data:c}):(g=a.facebook_rsvp_url,g=typeof g===q?g.apply(a):g);return b+=r(g)+'" class="tour-button tour-button--rsvp sqs-editable-button" target="_blank"></a>\n          </div>\n\n        </li>\n      \n      '}function F(a,c){var b,e;b='\n              <div class="tour-lineup">\n                ';if((e=f.each.call(a,a.artists,{hash:{},inverse:m.noop,fn:m.program(19,M,c),data:c}))||0===e)b+=e;return b+"\n              </div>\n              "}function M(a,
c){var b,e,g;b="\n                  ";g={hash:{compare:0},inverse:m.noop,fn:m.program(20,N,c),data:c};if((g=(e=f.if_gt||a.if_gt,e?e.call(a,(e=c,null==e||!1===e?e:e.index),g):x.call(a,"if_gt",(e=c,null==e||!1===e?e:e.index),g)))||0===g)b+=g;return b+"\n                "}function N(a,c){var b,e;b='\n                  <div class="tour-lineup-item">';(e=f.name)?e=e.call(a,{hash:{},data:c}):(e=a.name,e=typeof e===q?e.apply(a):e);return b+=r(e)+"</div>\n                  "}function H(a,c){var b;(b=f.ticket_url)?
b=b.call(a,{hash:{},data:c}):(b=a.ticket_url,b=typeof b===q?b.apply(a):b);return r(b)}function G(a,c){return"#"}function I(a,c){return"tour-button--soldout"}function J(a,c){return"tour-button--disabled"}function L(a,c){return"_blank"}function K(a,c){return"_self"}this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,c.helpers);h=h||{};var v,m=this,q="function",r=this.escapeExpression,x=f.helperMissing,y=f.blockHelperMissing;c='<script type="application/ld+json">\n';if((a=f["if"].call(b,(v=b.data,null==
v||!1===v?v:v.length),{hash:{},inverse:m.noop,fn:m.program(1,function(a,c){var b,e,g;b="\n[\n  ";g={hash:{},inverse:m.noop,fn:m.program(2,l,c),data:c};(e=f.data)?e=e.call(a,g):(e=a.data,e=typeof e===q?e.apply(a):e);f.data||(e=y.call(a,e,g));if(e||0===e)b+=e;return b+"\n]\n"},h),data:h}))||0===a)c+=a;c+='\n\x3c/script>\n\n<ul class="tour-list">\n\n  ';if((a=f["if"].call(b,(v=b.data,null==v||!1===v?v:v.length),{hash:{},inverse:m.program(34,function(a,c){return'\n\n      <li class="tour-item-no-results"></li>\n\n  '},
h),fn:m.program(12,function(a,c){var b,e,g;b="\n\n    ";g={hash:{},inverse:m.noop,fn:m.program(13,B,c),data:c};(e=f.data)?e=e.call(a,g):(e=a.data,e=typeof e===q?e.apply(a):e);f.data||(e=y.call(a,e,g));if(e||0===e)b+=e;return b+"\n\n  "},h),data:h}))||0===a)c+=a;return c+"\n\n</ul>"})})();c.Handlebars.registerPartial("tourdates-bandsintown-list.html".replace("/","."),l.templates["tourdates-bandsintown-list.html"])},"1.0",{requires:["handlebars-base"]})},1706:function(s,u){YUI.add("squarespace-widgets-tourdates-bandsintown",
function(c){var l=c.Base.create("bandsInTownTourDatesListModel",c.ModelList,[],{sync:function(b,n,f){if("read"===b){b="squarespace-"+c.Object.getValue(Static,["SQUARESPACE_CONTEXT","website","identifier"]);n=encodeURIComponent(this.get("artistId"));var a=c.DataType.Date.format(new Date(this.get("startDate")),{format:"%Y-%m-%d"}),h=c.DataType.Date.format(new Date(this.get("endDate")),{format:"%Y-%m-%d"}),l;"upcoming"===this.get("timeframe")?l="upcoming":"dateRange"===this.get("timeframe")&&(l=a+","+
h);l="http://api.bandsintown.com/artists/"+n+"/events.json?api_version=2.0&app_id="+b+"&date="+l+"&callback={callback}";f=c.Lang.isFunction(f)?f:function(){};c.jsonp(l,{on:{success:function(a){a.errors&&(a=[a]);f(null,a)},failure:function(){f("Request failed!");console.log("Request failed!")},timeout:function(){f("Request timed out.");console.log("Request timed out.")}},timeout:1E4})}else console.warn("Unsupported sync action: "+b)}},{ATTRS:{artistId:{value:null},timeframe:{value:null},startDate:{value:null},
endDate:{value:null}}});c.namespace("Squarespace.Widgets");var b=c.Squarespace.Widgets.BandsInTownTourDatesList=c.Base.create("bandsInTownTourDatesList",c.Squarespace.SSWidget,[],{initializer:function(){var b=this.get("boundingBox"),l=new c.Squarespace.Spinner({size:30,color:"dark",render:b});this._registerEvent(c.on("domready",function(){this.get("modelList").load(c.bind(function(){this.set("loaded",!0);b.addClass("loaded");l.destroy()},this))},this))},bindUI:function(){b.superclass.bindUI.call(this);
this.after("loadedChange",this.renderTemplateAgain,this);this._registerEvent(c.on("windowresize",function(){this.adjustLayout()},c.config.win,this))},adjustLayout:function(){var c=this.get("boundingBox");c.toggleClass("tourblock-has-small-container",450>c.get("offsetWidth"))},renderTemplateAgain:function(){this.adjustLayout();this.get("contentBox").empty().append(this.renderTemplate());this.appendStructuredData()},appendStructuredData:function(){var b=document.createElement("script");b.type="application/ld+json";
b.text=this.get("contentBox").one("script").get("innerHTML");c.one("head").append(b)},_getHBTemplateContext:function(){return{data: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 l(this.getAttrs(["artistId","timeframe","startDate","endDate"]))}},loaded:{value:!1}}});c.Handlebars.registerHelper("tourdates-bit-datetime",
function(c,b){var f=c.match(/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*)?)([zZ]|([+\-])(\d\d):?(\d\d))?$/)[1];d=new Date(f+"Z");var f="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),a="Sun Mon Tue Wed Thu Fri Sat".split(" ");if("date"===b.hash.format)return f[d.getUTCMonth()]+" "+d.getUTCDate();if("weekday"===b.hash.format)return a[d.getUTCDay()]});c.Handlebars.registerHelper("equals-string",function(b,l,f){return c.Handlebars.helpers["if"].call(this,function(){return b==l.toString()},f)})},"1.0",
{requires:"jsonp model-list squarespace-hb-compare squarespace-spinner squarespace-ss-widget squarespace-tourdates-bandsintown-list-template".split(" ")})},2420:function(s,u){YUI.add("squarespace-tourdates",function(c){var l;c.config.win.Squarespace.onInitialize(c,function(){l=[];c.all(".sqs-block-tourdates[data-block-json]").each(function(b){var k=JSON.parse(b.getAttribute("data-block-json"));b=(new c.Squarespace.Widgets.BandsInTownTourDatesList({artistId:k.artistId,timeframe:k.timeframe,startDate:k.startDate,
endDate:k.endDate})).render(b);l.push(b)})});c.config.win.Squarespace.onDestroy(c,function(){l.forEach(function(b){b.destroy&&b.destroy()});c.all(".sqs-block-tourdates[data-block-json]").each(function(b){b.empty()});l=null})},"1.0",{requires:["squarespace-widgets-tourdates-bandsintown"]})}});

}