(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var r,g,i,o,s,p,c,x,u,d,l,m,C,T,h,y,S,E;if(!n.emailTitelConfirmation.test(e.subject)&&!n.emailTitelCancellation.test(e.subject))return CONTINUE;s=a.getSpan().nextRegExp(n.reservationId).parentAnyTag("td").tagContents().innerCapture(n.reservationId,1),r=a.getSpan().nextRegExp(n.guestName).nextAnyTag("td").tagContents(),g=a.getSpan().nextRegExp(n.guestEmail).nextAnyTag("td").tagContents(),x=getFuzzyDate(a.getSpan().nextRegExp(n.checkInDate).nextAnyTag("td").tagContents()),c=getFuzzyDate(a.getSpan().nextRegExp(n.checkInTime).nextAnyTag("td").tagContents()),l=getFuzzyDate(a.getSpan().nextRegExp(n.checkOutDate).nextAnyTag("td").tagContents()),d=getFuzzyDate(a.getSpan().nextRegExp(n.checkOutTime).nextAnyTag("td").tagContents()),u=getFuzzyDate(a.getDetachedSpan(x+" "+c).innerDate()),m=getFuzzyDate(a.getDetachedSpan(l+" "+d).innerDate());var R=a.getSpan().nextRegExp(n.price).nextAnyTag("td").tagContents();i=R.innerCapture(/([\d,.]+)/,1),o=R.innerCapture(/([^\d,.]+)/,1).trim(),S=a.getSpan().nextRegExp(n.modifyUrl).nextLink();var f=a.getSpan().nextRegExp(n.hotelInfo).nextTag("table3").nextTag("table3").nextAnyTag("td").tagContents();if(T=f.innerCapture(regExpFormatted(/(.+)\s?<.+>/),1),y=f.innerAddress(),h=f.innerPhoneNumber(),C=f.innerLink(),n.emailTitelConfirmation.test(e.subject)){if(!ASSERT(r,s,u,m,y))return CONTINUE;p="Confirmed"}if(n.emailTitelCancellation.test(e.subject)){if(!ASSERT(r,s,u,m,y))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:u,checkoutTime:m,modifyReservationUrl:S,cancelReservationUrl:E,reservationStatus:"http://schema.org/Reservation"+(p||"Confirmed"),reservationId:s,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:T,url:C,telephone:h,address:y}}]}}).call();