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