// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var r,o,s,p,i,l,u,g,m,h,d,c,v;if(r=a.getSpan().innerCapture(n.nameCapture,1),s=r.nextTag("td2").nextTag("td2").tagContents(),l=s.innerCapture(/^($<name>.*?) <($<url>.*)>/),p=l?l.$name:null,u=l?l.$url:null,m=getFuzzyDate(s),i=s.innerCapture(n.partySizeCapture,1),s=s.nextTag("td2").nextTag("td2").tagContents().innerCapture(/^($<address>[^]+?)\n($<phone>[-+\d() ]+)\n\n/),d=s?s.$address:null,h=s?s.$phone:null,ASSERT(i,p,m,r))return[{"@context":"http://schema.org","@type":"http://schema.org/FoodEstablishmentReservation",partySize:i,reservationId:o,reservationStatus:"http://schema.org/Reservation"+(g||"Pending"),reservationFor:{"@type":"http://schema.org/FoodEstablishment",name:p,url:u,telephone:h,address:d},startTime:m,bookingAgent:{"@type":"http://schema.org/Organization",name:"OpenTable",url:"http://www.opentable.com/"},underName:{"@type":"http://schema.org/Person",name:r},cancelReservationUrl:v,modifyReservationUrl:c}]}}).call();