(function(){return function(e,t,r){var a=Scanner.fromMessage(e);a.setLocale(t);var n,i,p,s,o,l,g,u,c,h,m=[],d=[];r=r.typeOne;var f=a.getSpan().next(r.flightPrefix);f.next(r.confirm).nextTag("td6").nextTag("td6").tagContents();for(var v=f.next(r.passengerPrefix).nextTag("table7").allInnerTagsFiltered("td7"),T=0;T<v.length;){var x="";if(T+2<v.length){var C=v[T+2].innerCapture(r.ticketNumber);x=null!=C?C[1]:""}if(!r.altPassenger.test(v[T+1]))break;d.push({name:v[T].split("\n")[0],ticketNumber:x}),T+=3}if([r.depart,r.return].forEach(function(e){for(var t=f.next(e).nextTag("table7").allInnerTagsFiltered("td7"),a=f.next(e).parentTag("td6").nextDate(),v=0;v<t.length;){if(l=t[v],c=t[v+1],g=t[v+3].innerCapture(/(\w+)/,1),o=t[v+3].innerCapture(/(\d{1,2}\s*h?\s*\d{1,2})/,1),o=combineDateAndTime(a,o),h=t[v+4].innerCapture(/(\w+)/,1),u=t[v+4].innerCapture(/(\d{1,2}\s*h?\s*\d{1,2})/,1),u=combineDateAndTime(a,u),s=t[v+5].innerCapture(/(\d+)/,1),i=t[v+5].innerCapture(/(\w+\s\w+)/,1),"Air France"==i&&(p="AF"),n=r.classPrefix.test(t[v+6].getString())?t[v+6].innerCapture(/\S+\s(\S+)/i,1):"",ASSERT(s,o,h))for(var T=0;T<d.length;T++)m.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:i,airlineCode:p,flightNumber:s,departureAirportFuzzy:l,departureAirportCode:g,departureTime:o,arrivalAirportFuzzy:c,arrivalAirportCode:h,arrivalTime:u},underName:{"@type":"http://schema.org/Person",name:d[T].name},reservationStatus:"http://schema.org/ReservationConfirmed",reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:d[T].ticketNumber,ticketedSeat:{"@type":"http://schema.org/Seat",seatingType:n}}});v+=8}}),m.length)return m}}).call();