(function(){return function(t,e,n){var a=Scanner.fromMessage(t);a.setLocale(e);var r,s,o,g,i,c,p,x=a.getSpan();if("1"===n.version?(o=x.nextTag("table2").allInnerTags("td2"),r=o[3].tagContents().innerCapture(/(.*) <http/,1),c=x.nextDate(),g=o[6].tagContents(),g=/\n(.*)\n(.*)/.exec(g)[2],s=c.nextLink()):x.nextTag("table3").innerDate().exists()?(o=x.nextTag("table3"),r=o.nextAnyTag("td").tagContents(),c=o.nextDate(),g=o.nextAnyTag("td").nextAnyTag("td").tagContents(),g=/\n(.*)\n(.*)/.exec(g)[2],s=o.nextLink()):(c=a.getSpan().nextDate(),r=a.getSpan().withStart(c.parentAnyTag("td").tagContents().getStart()).withEnd(c.getStart()).trim(),g=a.getSpan().nextAddress()),ASSERT(r,c)){var d={"@context":"http://schema.org","@type":"http://schema.org/EventReservation",reservationStatus:"http://schema.org/ReservationConfirmed",reservationFor:{name:r,url:s,"@type":"http://schema.org/SocialEvent",startDate:c,description:i,location:{"@type":"http://schema.org/Place",address:g}}};return valid(p)&&(d.reservationFor.endDate=p),[d]}return CONTINUE}}).call();