(function(){return function(e,t,n,a){if(!(e&&t&&n&&a))return CONTINUE;var r=Scanner.fromMessage(e);if(r.setLocale(t),loadHelper("opentable-restaurant-invitation-check.js")(e))return STOP;var o,p,x,s,g,i,h,T,d,l;return x=r.getSpan().nextText(n.hour),x=getFuzzyDate(r.getDetachedSpan((""+r.getSpan().withInterval(x.nextText("\n").getEnd(),x.nextText("\n").nextText("\n").getStart())).replace(/[^\d\sa-zA-z:]+/g,"").replace(/\s+/g," ").replace(/^(\d+)\s(\d+)\s/,"$1/$2/"))),p=r.getSpan().nextText(n.restaurant).nextText(n.restaurant),p=r.getSpan().withInterval(p.nextText("\n").getEnd(),p.nextText("\n").nextText("\n").getStart()),T=r.getDetachedSpan((""+r.getSpan().nextText(n.phone).previousText(""+p).collapseToEnd().withEnd(r.getSpan().nextText(n.phone).previousText("\n").getStart()).trim()).replace(/(\n)/g," ")),i=r.getSpan().nextText(n.phone).nextPhoneNumber().innerCapture(regExpFormatted(/([\d\(\)\-\s]+)/),1).trim(),i.exists()||(i=r.getSpan().nextText(n.phone),i=r.getSpan().withInterval(i.nextText("\n").getEnd(),i.nextText("\n").nextText("\n").getStart())),o=r.getSpan().nextText(n.person),o=r.getSpan().withInterval(o.previousText("\n").getEnd(),o.nextText("\n").getStart()).innerCapture(regExpFormatted(/(\d+)/),1),s=r.getSpan().innerCapture(regExpFormatted(/(.*) \1/,n.invitation),1),ASSERT(o,p,x,s)?[{"@context":"http://schema.org","@type":"http://schema.org/FoodEstablishmentReservation",partySize:o,reservationId:h,reservationStatus:"http://schema.org/ReservationConfirmed",reservationFor:{"@type":"http://schema.org/FoodEstablishment",name:p,url:g,telephone:i,address:T},startTime:x,bookingAgent:{"@type":"http://schema.org/Organization",name:"OpenTable",url:"https://"+a},underName:{"@type":"http://schema.org/Person",name:s},cancelReservationUrl:d,modifyReservationUrl:l}]:CONTINUE}}).call();