(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,s,u,l,d,g,v,m,T=[],C=[],h=/\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++){m=i[d],g={},o=m.previousDate();var y=!1;/\s*\d?\d:\d\d\s*(?:am|pm)?/i.test(o)||(o=m.previousDate().previousDate());/\+1 day/.test(m.previousDate().previousDate().parentAnyTag("td").tagContents())&&(y=!0),g.arrivalCode=o.previousAnyTag("tr").innerCapture(h,1),g.arrivalCode.isNullSpan_&&(g.arrivalCode=o.previousAnyTag("tr").previousAnyTag("tr").previousAnyTag("tr").innerCapture(h,1)),p=g.arrivalCode.previousDate(),/\+1 day/.test(p)&&(p=p.replace(/(.*)\s\+1 day.*/,"$1")),g.departureCode=p.previousAnyTag("td").innerCapture(h,1),v=g.departureCode.previousTag("td6").tagContents().innerCapture(/($<airline>.*)\s($<flightNumber>\d+)/),g.airlineName=v?v.$airline:null,g.flightNumber=v?v.$flightNumber:null,g.departureAirport=m.parentAnyTag("td").previousAnyTag("td").nextTag("table8").tagContents().innerCapture(/([^\n]+)\s/,1).trim(),g.arrivalAirport=m.parentAnyTag("td").previousAnyTag("td").nextTag("table8").nextTag("table8").tagContents().innerCapture(/([^\n]+)\s/,1).trim(),g.airlineCode=m.parentAnyTag("td").previousAnyTag("td").previousAnyTag("td").tagContents().innerCapture(/([^\n\d]+)\s/,1),g.airlineName.previousAnyTag("td").innerCapture(t.date,1).exists()&&(s=g.airlineName.previousAnyTag("td").innerDate()),g.departureTime=combineDateAndTime(s,p),g.arrivalTime=y?modifyDate(combineDateAndTime(s,o),1):combineDateAndTime(s,o),ASSERT(g.departureCode,g.arrivalCode,g.airlineName,g.flightNumber,g.arrivalTime,g.departureTime)&&T.push(g)}for(l=a.getSpan().next(t.passengers).collapseToEnd().withEnd(a.getSpan().next(t.passengerEnd).getStart()).allInnerTags("td6"),void 0!==l&&0!==l.length||l.push(a.getSpan().next(t.traveler).nextAnyTag("td").tagContents().innerCapture(/([^\n]+)\s[\n]+/,1).trim()),d=0;d<l.length;d++)u=l[d].tagContents().innerCapture(/(.*)/,1),C.push(u);for(var c=[],d=0;d<T.length;d++){g=T[d];for(var A=0;A<C.length;A++){var u=C[A];c.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:u.trim()},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 c.length?c:void 0}}).call();