(function(){return function(e,t,n){var r=Scanner.fromMessage(e);r.setLocale(t);var a,i,o,c,s,g,l,p,u,m,h,d,x;p=r.getSpan().next(n.bookingDetails).nextDate(),u=p.nextDate(),g=r.getSpan().next(n.confirmation).innerCapture(n.confirmation,1),o=r.getSpan().next(n.totalPrice).innerCapture(n.totalPrice),c=o.$price,s=o.$currency;var v;v=r.getSpan().nextTag("td1").nextTag("td1"),a=v.innerCapture(n.guestName,1),i=v.innerCapture(n.guestEmail,1);var C=r.getSpan().next(n.hotelDetails).nextAnyTag("td");if(m=C.innerCapture(n.hotelName,1),h=C.nextPhoneNumber(),n.isCancelled.test(e.subject)&&(l="Cancelled"),ASSERT(a,p,u,h))return[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:a,email:i},totalPrice:c,priceCurrency:s,checkinTime:p,checkoutTime:u,modifyReservationUrl:x,reservationStatus:"http://schema.org/Reservation"+(l||"Confirmed"),reservationId:g,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:m,url:null,telephone:h,address:d}}]}}).call();