(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var r,g,i,o,s,p,c,l,m,x,d,C,u,h;if(!n.emailTitelConfirmation.test(a.getSpan().tagContents())&&!n.emailTitelCancelConfirmation.test(a.getSpan().tagContents()))return CONTINUE;s=a.getSpan().nextRegExp(n.reservationId).nextAnyTag("td").tagContents(),r=a.getSpan().innerCapture(n.guestName,1),g=a.getSpan().nextRegExp(n.guestEmail).nextAnyTag("td").tagContents(),c=a.getSpan().nextRegExp(n.checkInDate).nextAnyTag("td").tagContents(),c=getFuzzyDate(c),l=a.getSpan().nextRegExp(n.checkOutDate).nextAnyTag("td").tagContents(),l=getFuzzyDate(l);var T=a.getSpan().nextRegExp(n.price).nextAnyTag("td").tagContents();if(i=T.innerCapture(/([\d,.]+)/,1),o=T.innerCapture(/([^\d,.]+)/,1).trim(),x=a.getSpan().nextRegExp(n.hotelAddress).previousAnyTag("td").tagContents(),C=a.getSpan().nextRegExp(n.hotelAddress).nextAnyTag("td").tagContents(),d=a.getSpan().nextRegExp(n.hotelPhone).nextAnyTag("td").tagContents(),u=h=a.getSpan().nextRegExp(n.modifyUrl).nextLink(),n.emailTitelConfirmation.test(e.subject)){if(!ASSERT(r,s,c,l,C))return CONTINUE;p="Confirmed"}if(n.emailTitelCancelConfirmation.test(e.subject)){if(!ASSERT(r,s,c,l,C))return CONTINUE;p="Cancelled"}return[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:r,email:g},totalPrice:i,priceCurrency:o,checkinTime:c,checkoutTime:l,modifyReservationUrl:u,cancelReservationUrl:h,reservationStatus:"http://schema.org/Reservation"+(p||"Confirmed"),reservationId:s,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:x,url:m,telephone:d,address:C}}]}}).call();