(function(){return function(e,t,a){var n=Scanner.fromMessage(e);n.setLocale(t);var r,s,o,i,g,d,p,c=n.getSpan(),l=c.next(a.hotelCancelled).exists()?"Cancelled":"Confirmed",h=c.next(a.hotelServices).previousTag("table5").previousTag("table5").previousTag("table5");""+h||"Cancelled"!==l||(h=c.next(a.hotelCancelled).previousTag("table5").previousTag("table5")),s=h.nextAnyTag("td").tagContents();var u=h.nextAnyTag("td").nextAnyTag("td").tagContents().getString().split("-");d=u[0],d=getFuzzyDate(n.getDetachedSpan(d).firstDate()),p=u[1],p=getFuzzyDate(n.getDetachedSpan(p).firstDate()),g=c.innerCapture(regExpFormatted(/\1 (\w+)/,a.reservationId_prefix),1);var m=""+h.next(a.hotelAddress_prefix).parentAnyTag("td").tagContents();if("Confirmed"===l&&(r=h.next(a.underPersonName_prefix).nextTag("td8").nextTag("td8").tagContents().split("\n")[0].trim()),i=n.getDetachedSpan(m).firstAddress(),""+i||(i=n.getDetachedSpan(m).innerCapture(/>([\s\w\,]+?)</,1).trim()),o=/Tel: ([()\w\s-]+)/.exec(m)[1],ASSERT(s,i,d))return[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:r},checkinTime:d,checkoutTime:p,reservationStatus:"http://schema.org/Reservation"+l,reservationId:g,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:s,telephone:o,address:i}}]}}).call();