// 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,p,s,x,g,m,i,l,d,c;return s=a.getSpan().nextText(n.name).collapseToEnd().nextRegExp(regExpFormatted(/(.*)\n/)).trim(),r=a.getSpan().nextText(n.number).nextRegExp(regExpFormatted(/\d+/)),o=a.getSpan().nextText(n.restaurant).collapseToEnd().nextRegExp(regExpFormatted(/(.*)\n/)).trim(),x=a.getSpan().nextText(n.website).nextLink(),g=a.getSpan().nextText(n.phone).collapseToEnd().nextRegExp(regExpFormatted(/(.*)\n/)).trim(),i=a.getSpan().nextText(n.address).collapseToEnd().nextRegExp(regExpFormatted(/(.*)\n/)).trim(),c=a.getSpan().nextText(n.date).nextDate(),p=a.getDetachedSpan(c+" "+c.nextDate()),ASSERT(r,o,p,s)?[{"@context":"http://schema.org","@type":"http://schema.org/FoodEstablishmentReservation",partySize:r,reservationId:m,reservationStatus:"http://schema.org/ReservationCancelled",reservationFor:{"@type":"http://schema.org/FoodEstablishment",name:o,url:x,telephone:g,address:i},startTime:p,bookingAgent:{"@type":"http://schema.org/Organization",name:"MyTable",url:"https://www.mytable.com"},underName:{"@type":"http://schema.org/Person",name:s},cancelReservationUrl:l,modifyReservationUrl:d}]:CONTINUE}}).call();