// 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,i,m,p,d,g,h,u,c;return c=a.getSpan().nextTag("table3").nextTag("table3").innerTag("td3").nextTag("td3").tagContents().innerCapture(regExpFormatted(/($<underName>.*)\n($<startTime>.*)\n($<partySize>\d+)\n($<reservationId>\d+)/)),c&&(i=c.$underName,s=c.$startTime,r=c.$partySize,d=c.$reservationId),c=a.getSpan().nextText(n.restaurant).nextTag("td3").tagContents().innerCapture(/($<name>.*)\n($<address>[^]+?)\s+($<phoneNumber>[\d +]+)\s+See menus, map & more/),c&&(o=c.$name,g=c.$address,p=c.$phoneNumber),h=a.getSpan().nextText(n.cancel).nextLink(),u=a.getSpan().nextText(n.modify).nextLink(),ASSERT(r,o,s,i)?[{"@context":"http://schema.org","@type":"http://schema.org/FoodEstablishmentReservation",partySize:r,reservationId:d,reservationStatus:"http://schema.org/ReservationConfirmed",reservationFor:{"@type":"http://schema.org/FoodEstablishment",name:o,url:m,telephone:p,address:g},startTime:s,bookingAgent:{"@type":"http://schema.org/Organization",name:"TopTable",url:"https://www.toptable.co.uk"},underName:{"@type":"http://schema.org/Person",name:i},cancelReservationUrl:h,modifyReservationUrl:u}]:CONTINUE}}).call();