(function(){return function(e,r,t){var a=Scanner.fromMessage(e);a.setLocale(r);var i,n,p,m,o,l,u,h,s,g,d,c,v,C,N=[];u=a.getSpan(),n=u.next(t.reservationId).innerCapture(t.reservationId,1),C=u.innerCapture(t.seating_type,1);var y,f=[];do{if(y?y=y.next(t.name_ticket):(y=u.next(t.name_ticket),0===(""+y).length&&(y=u.next(t.name_alt))),m=y.innerCapture(t.name_ticket,2),0===(""+m).length&&(m=y.innerCapture(t.name_alt,1).trim()),i=y.innerCapture(t.name_ticket,1),not(m))return CONTINUE;f.push({name:m,seats:{},seatingType:{},ticket:i})}while(0!==(""+y.next(t.name_ticket)).length);var x;do{x=x?x.next(t.flightSummary):u.next(t.flightSummary),o=x.innerCapture(t.flightSummary),d=x.next(t.departure).innerCapture(t.departure).$airportAddress,g=d.nextRegExp(/.+/).replace(/\-/,"").innerDate(),v=x.next(t.arrival).innerCapture(t.arrival).$airportAddress,c=v.nextRegExp(/.+/).replace(/\-/,"").innerDate(),s=o.$airlineCode,h=o.$airlineName,l=o.$flightNumber,ASSERT(s,l,d,g,v,c)&&N.push({reservationId:n,airlineName:h,airlineCode:s,flightNumber:l,departureAirport:d,departureTime:g,arrivalAirport:v,arrivalTime:c})}while(0!==(""+x.next(t.flightSummary)).length);for(var b=[],k=0;k<N.length;k++)for(var T=N[k],A=0;A<f.length;A++){var S=f[A],_={"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:T.airlineName,airlineCode:T.airlineCode,flightNumber:T.flightNumber,departureAirportFuzzy:T.departureAirport,departureAirportCode:T.departureCode,departureTime:T.departureTime,arrivalAirportFuzzy:T.arrivalAirport,arrivalAirportCode:T.arrivalCode,arrivalTime:T.arrivalTime},underName:{"@type":"http://schema.org/Person",name:S.name},checkinUrl:p,reservationId:T.reservationId,reservationStatus:"http://schema.org/ReservationConfirmed",totalPrice:null,priceCurrency:null,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:S.ticket,ticketedSeat:{"@type":"http://schema.org/Seat",seatingType:C}}};valid(S.membershipNumber,S.programName)&&(_.programMembershipUsed={"@type":"http://schema.org/ProgramMembership",membershipNumber:S.membershipNumber,programName:S.programName}),b.push(_)}if(b.length)return b}}).call();