(function(){return function(e,r,t){if(!e||!r||!t)return CONTINUE;var a=Scanner.fromMessage(e);a.setLocale(r);var n,i,p,o,u,l,s,d,g,m,v,C=[],h=[],T=/\s\((\w{3})\)/;for(n=a.getSpan().next(t.reservationId).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1\s+(\d+)/,t.reservationId),1),i=a.getSpan().allInnerCapture(t.cabin,1),d=0;d<i.length;d++)v=i[d],g={},o=v.previousDate(),g.arrivalCode=o.previousAnyTag("tr").innerCapture(T,1),g.arrivalCode.isNullSpan_&&(g.arrivalCode=o.previousAnyTag("tr").previousAnyTag("tr").previousAnyTag("tr").innerCapture(T,1)),p=g.arrivalCode.previousDate(),g.departureCode=p.previousAnyTag("td").innerCapture(T,1),g.departureCode.isNullSpan_&&(g.departureCode=p.previousAnyTag("td").previousAnyTag("td").innerCapture(T,1)),m=g.departureCode.previousTag("td6").tagContents().innerCapture(/($<airline>.*)\s($<flightNumber>\d+)/),g.airlineName=m?m.$airline:null,g.flightNumber=m?m.$flightNumber:null,g.airlineName.previousAnyTag("td").innerCapture(t.date,1).exists()&&(u=g.airlineName.previousAnyTag("td").innerDate()),g.departureTime=combineDateAndTime(u,p),g.arrivalTime=combineDateAndTime(u,o),g.seatingType=a.getSpan().next(t.cabin).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1 (.+)/,t.cabin),2),ASSERT(g.departureCode,g.arrivalCode,g.airlineName,g.flightNumber,g.arrivalTime,g.departureTime)&&C.push(g);if(s=a.getSpan().next(t.passengers).collapseToEnd().withEnd(a.getSpan().next(t.passengerEnd).getStart()).allInnerTags("td6"))for(var c=a.getSpan().next(t.passengers).nextAnyTag("td");!regExpFormatted(/\1/,t.skipper).test(""+c.tagContents());){var y=c.tagContents().innerCapture(/($<name>[^\n]+)/),A=y?y.$name:null;c=c.nextAnyTag("td"),h.push(A)}else for(d=0;d<s.length;d++)l=s[d].tagContents().innerCapture(/(.*)/,1),h.push(l);for(var N=[],d=0;d<C.length;d++){g=C[d];for(var f=0;f<h.length;f++){var l=h[f];N.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:g.airlineName,airlineCode:g.airlineCode,flightNumber:g.flightNumber,departureAirportFuzzy:g.departureAirport,departureAirportCode:g.departureCode,departureTime:g.departureTime,arrivalAirportFuzzy:g.arrivalAirport,arrivalAirportCode:g.arrivalCode,arrivalTime:g.arrivalTime},underName:{"@type":"http://schema.org/Person",name:l},checkinUrl:g.checkinUrl,reservationId:n,reservationStatus:"http://schema.org/Reservation"+(g.reservationStatus||"Confirmed"),totalPrice:null,priceCurrency:null,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:null,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:null,seatingType:g.seatingType}}})}}return N.length?N:void 0}}).call();