(function(){return function(e,t,r){var a=Scanner.fromMessage(e);a.setLocale(t);var n,i,p,o,g,d,s,u=[],l=[];o=a.getSpan().next(r.reservationId).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1\s(.*)/,r.reservationId),1);var m="avianca",T="AV",A=a.getSpan().allInnerCapture(r.leg,1);for(d=0;d<A.length;d++){var h={},v=A[d].nextDate();s=A[d].next(r.departure),h.departureTime=combineDateAndTime(v,s.nextAnyTag("td").innerDate()),h.departureAirport=s.nextAnyTag("td").nextAnyTag("td").tagContents(),s=A[d].next(r.arrival),h.arrivalTime=combineDateAndTime(v,s.nextAnyTag("td").innerDate()),h.arrivalAirport=s.nextAnyTag("td").nextAnyTag("td").tagContents(),h.flightNumber=s.next(r.airline).nextAnyTag("td").tagContents().innerCapture(/\w(\d+)/,1),h.seatingType=s.next(r.seatingType).nextAnyTag("td").tagContents().innerCapture(/([^<\s]+)/,1),ASSERT(h.departureTime,h.arrivalTime,h.flightNumber,h.departureAirport,h.arrivalAirport)&&l.push(h)}for(d=0;d<l.length;d++){n=l[d];u.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:m,airlineCode:T,flightNumber:n.flightNumber,departureAirportFuzzy:n.departureAirport,departureAirportCode:n.departureAirportCode,departureTime:n.departureTime,arrivalAirportFuzzy:n.arrivalAirport,arrivalAirportCode:n.arrivalAirportCode,arrivalTime:n.arrivalTime},underName:{"@type":"http://schema.org/Person",name:e.to},reservationId:o,reservationStatus:"http://schema.org/ReservationConfirmed",totalPrice:i,priceCurrency:p,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:g,ticketedSeat:{"@type":"http://schema.org/Seat",seatingType:n.seatingType}}})}if(u.length)return u}}).call();