(function(){return function(e,r,t){var a=Scanner.fromMessage(e);a.setLocale(r);var i,n,o,p,s,l,m,u,c,d=a.getSpan();i=d.innerCapture(regExpFormatted(/\1 (.*)/,t.underPersonName_prefix),1),n=d.innerCapture(regExpFormatted(/\1 (.*)/,t.underPersonEmail_prefix),1),d.innerCapture(regExpFormatted(/\1 (.*)/,t.underPersonPhone_prefix),1),o=d.innerCapture(regExpFormatted(/\1 (.*)/,t.reservationId_prefix),1);var g=""+d.nextText(t.totalPrice_prefix).nextTag("td4").tagContents();if(p=g.substring(1),s=g[0],m=u=c=d.nextText(t.checkinUrl_prefix).nextLink(),!((""+d.nextText(t.isHotelEmail)).length>0)){var h=[],v=[];h=d.nextText(t.reservationForBlock_prefix).nextTag("table4").allInnerTags("tr4");var x=d.innerCapture(regExpFormatted(/\1 (.*) [0-9] P\./,t.airportCode_prefix),1).split(" - ");return function(e,r){e.forEach(function(e,t){var i=e.allInnerTags("td4");if(1===i.length&&0!==(""+i[0].tagContents()).length){e=i[0];var n,o,p,s,l,m,u,c,d,g,h,v=(""+e.tagContents()).split("\n");n=l=v[0].trim(),o=v[3].split("-")[0].trim(),m=v[3].split("-")[1].trim(),p=n+", "+o,p=getFuzzyDate(a.getDetachedSpan(p).firstDate()),u=l+", "+m,u=getFuzzyDate(a.getDetachedSpan(u).firstDate()),s=v[4].split("-")[0].trim(),c=v[4].split("-")[1].trim(),Date.parse(u)<Date.parse(p)&&(u=modifyDate(u,1));var f=/^([a-zA-Z0-9]+) ([a-zA-Z0-9]+) (.*)/.exec(v[2]);d=f[1],g=f[2],h=f[3],r({airlineName:h,airlineCode:d,flightNumber:g,departureDateTime:p,departureAirport:s,departureAirportCode:(""+x[t/2]).toUpperCase(),arrivalDateTime:u,arrivalAirport:c,arrivalAirportCode:(""+x[t/2+1]).toUpperCase()})}})}(h,function(e){ASSERT(e.flightNumber,e.departureAirport,e.arrivalAirport)&&v.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:e.airlineName,airlineCode:e.airlineCode,flightNumber:e.flightNumber,departureAirportFuzzy:e.departureAirport,departureAirportCode:e.departureAirportCode,departureTime:e.departureDateTime,arrivalAirportFuzzy:e.arrivalAirport,arrivalAirportCode:e.arrivalAirportCode,arrivalTime:e.arrivalDateTime},underName:{"@type":"http://schema.org/Person",name:i},checkinUrl:m,reservationId:o,reservationStatus:"http://schema.org/ReservationConfirmed",totalPrice:p,priceCurrency:s,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:l,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:e.seatNumber,seatingType:e.seatType}}})}),v.length>=1?v:CONTINUE}var f,C,T,y,A,F,N="Confirmed",D=d.nextText(t.reservationForBlock_prefix).nextTag("table4").nextTag("td4").tagContents().innerCapture(regExpFormatted(/(.*)\n\n(.*)\n(.*)\n(.*)/));if(T=D[1],f=D[2],C=D[3],F=D[4],ASSERT(f,C,T))return[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:i,email:n},totalPrice:p,priceCurrency:s,checkinTime:f,checkoutTime:C,modifyReservationUrl:u,cancelReservationUrl:c,reservationStatus:"http://schema.org/Reservation"+N,reservationId:o,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:T,url:y,telephone:A,address:F}}]}}).call();