// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,a){if(!e||!t||!a)return CONTINUE;var n=loadHelper("seatme.com-microdata-parser.js"),r=n(e),o=Scanner.fromMessage(e);if(o.setLocale(t),r)return delete r[0].modifiedTime,r[0].startTime=o.getSpan().innerDate(),r[0]["@context"]="http://schema.org",r[0].reservationStatus="http://schema.org/ReservationCancelled",r;var i,s,m,p,c,l,d,h,g,u,S;return i=o.getSpan().innerCapture(a.underNameLabel,1),g=o.getSpan().nextText(a.confirmUrlLabel).nextLink(),c=o.getSpan().nextText(a.urlLabel).nextLink(),p=o.getSpan().innerCapture(a.partySize,1),m=o.getSpan().innerCapture(a.name,1),"ja_JP"===t?(l=o.getSpan().innerCapture(/(?:, )?($<day>\d+)[\u6708|\u65e5]?\s+($<month>\d+)[\u6708|\u65e5]\s+(?:\D*)?($<time>\d{2}\:\d{2})/),l=o.getDetachedSpan(""+l.$day+"/"+l.$month+" "+l.$time).innerDate()):l=o.getSpan().nextDate(),ASSERT(m,l,i)?[{"@context":"http://schema.org","@type":"http://schema.org/FoodEstablishmentReservation",partySize:p,reservationId:s,reservationStatus:"http://schema.org/ReservationCancelled",reservationFor:{"@type":"http://schema.org/FoodEstablishment",name:m,url:c,telephone:d,address:h},startTime:l,bookingAgent:{"@type":"http://schema.org/Organization",name:"SeatMe",url:"https://www.seatme.yelp.com/"},underName:{"@type":"http://schema.org/Person",name:i},confirmReservationUrl:g,cancelReservationUrl:S,modifyReservationUrl:u}]:void 0}}).call();