(function(){return function(e,t,r){function a(e){return/AMERICAN\s*(?:AIRLINES)?/i.test(""+e)?"AA":/US AIRWAYS/i.test(""+e)?"US":""}var n=Scanner.fromMessage(e);n.setLocale(t);var i,o,p,m,g,s,d,l,u,h,A,c,T,v,y,C=[];for(n.getSpan().nextText(r.travelerInformation).nextTag("table2").allInnerTags("tr2"),l=n.getSpan().allInnerCapture(regExpFormatted(/(\1)/,r.date),1),m=0;m<l.length;m++)g=l[m].nextAnyTag("td").tagContents().innerDate(),h=g.next(r.flight).nextAnyTag("td").tagContents(),A=a(h),s=h.nextAnyTag("td").tagContents(),T=s.next(r.departure).nextAnyTag("td").tagContents(),c=combineDateAndTime(g,T.nextAnyTag("td").tagContents()),y=T.next(r.arrival).nextAnyTag("td").tagContents(),v=combineDateAndTime(g,y.nextAnyTag("td").tagContents()),d=y.next(r.name).nextAnyTag("td").tagContents(),u=d.nextAnyTag("td").nextAnyTag("td").tagContents(),ASSERT(s,A,T,y,c,v)&&C.push({airlineName:h,airlineCode:A,flightNumber:s,reservationId:i,departureAirport:T,departureTime:c,arrivalAirport:y,arrivalTime:v,passengerName:d,seatingType:u});i=n.getSpan().innerCapture(regExpFormatted(/\1\s([^\[\s]*)/,r.reservationId),1);var x=[];for(m=0;m<C.length;m++){var N=C[m],b={},f={"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:N.airlineName,airlineCode:N.airlineCode||"AA",flightNumber:N.flightNumber,departureAirportFuzzy:N.departureAirport,departureAirportCode:N.departureCode,departureTime:N.departureTime,arrivalAirportFuzzy:N.arrivalAirport,arrivalAirportCode:N.arrivalCode,arrivalTime:N.arrivalTime},underName:{"@type":"http://schema.org/Person",name:N.passengerName},checkinUrl:o,reservationId:i,reservationStatus:"http://schema.org/ReservationConfirmed",totalPrice:b.totalPrice,priceCurrency:p,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:b.ticketNumber,ticketedSeat:{"@type":"http://schema.org/Seat",seatingType:N.seatingType,seatNumber:b.seat}}};valid(b.membershipNumber)&&(f.programMembershipUsed={"@type":"http://schema.org/ProgramMembership",membershipNumber:b.membershipNumber,programName:b.programName}),x.push(f)}if(x.length)return x}}).call();