(function(){return function(e,t,r){var a=Scanner.fromMessage(e);a.setLocale(t);var n,s,i,p,o,g=[],d=a.getSpan(),u=d.next(/De\s\w+\s\(\w+\).*?\w+\s+\(\w+\)/).innerCapture(/De\s(\w+)\s\((\w+)\).*?(\w+)\s+\((\w+)\)/);n=d.next(/De\s\w+\s\(\w+\).*?\w+\s+\(\w+\)/).nextTag("td3").tagContents();for(var l=d.next(r.passenger).nextTag("table2",2).allInnerTagsFiltered("td2"),h=[],m=0;m<l.length;m++)r.adult.test(l[m])&&h.push({name:l[m-1]});for(var c=a.getSpan().next(r.duration),v=a.getSpan().next(r.depart),x=!1;c.exists();){v.parentTag("td2");p=v.nextDate(),o=p.nextDate(),s=p.nextTag("td5",2).tagContents();var w=s.split("\n")[1].trim();s=s.split("\n")[0].trim(),i=o.nextTag("td5",3).innerCapture(/-\s*([^\s]+)/,1),w=w.getString();for(var m=0;m<h.length;m++)ASSERT(n,o,p)&&g.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:s,airlineCode:w.substr(0,2),flightNumber:w.substr(2),departureAirportFuzzy:x?u[3]:u[1],departureAirportCode:x?u[4]:u[2],departureTime:p,arrivalAirportFuzzy:x?u[1]:u[3],arrivalAirportCode:x?u[2]:u[4],arrivalTime:o},underName:{"@type":"http://schema.org/Person",name:h[m].name},reservationId:n,reservationStatus:"http://schema.org/ReservationConfirmed",reservedTicket:{"@type":"http://schema.org/Ticket",ticketedSeat:{"@type":"http://schema.org/Seat",seatingType:i}}});x=!0,v=v.next(r.depart),c=c.next(r.duration)}return g}}).call();