// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,n){if(!e||!t||!n)return CONTINUE;var a=Scanner.fromMessage(e);a.setLocale(t);var r,o,s,g,x,p,i,m,d,c,h,u;return r=a.getSpan().nextText(n.size).nextAnyTag("td").tagContents(),o=a.getSpan().nextText(n.number).nextAnyTag("td").tagContents(),m=a.getSpan().nextText(n.name).nextAnyTag("td").tagContents().innerCapture(regExpFormatted(/^[a-zA-Z]+\s(.+)/),1),p=a.getSpan().nextText(n.address).nextAddress(),x=a.getSpan().nextText(n.address).nextPhoneNumber(),h=a.getSpan().nextText(n.date).nextDate(),u=h.nextDate(),i=getFuzzyDate(a.getDetachedSpan(h+" "+u)),s=a.getSpan().nextText(n.number).nextText(n.restaurant).nextAnyTag("td").tagContents(),d=a.getSpan().nextText(n.cancel).nextLink(),ASSERT(r,s,i,m)?[{"@context":"http://schema.org","@type":"http://schema.org/FoodEstablishmentReservation",partySize:r,reservationId:o,reservationStatus:"http://schema.org/ReservationConfirmed",reservationFor:{"@type":"http://schema.org/FoodEstablishment",name:s,url:g,telephone:x,address:p},startTime:i,bookingAgent:{"@type":"http://schema.org/Organization",name:"Bookarestaurant",url:"http://www.bookarestaurant.com/"},underName:{"@type":"http://schema.org/Person",name:m},cancelReservationUrl:d,modifyReservationUrl:c}]:CONTINUE}}).call();