(function(){return function(e,r,t){var a=Scanner.fromMessage(e);a.setLocale(r);var i,n,p,o,g,s,m,l,d,u,h,T,v,c,C,x=[];i=a.getSpan().next(t.name).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1\s+(.*)/,t.name),1),p=a.getSpan().next(t.reservationId).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1\s+(.*)</,t.reservationId),1),o=p.nextAnyTag("td").innerLink(),c=a.getSpan().next(t.departure).parentTag("table5").allInnerTags("tr5");var N=!1;for(T=1;T<c.length;T++)if(c[T].tagContents().innerRegExp(t.departure).exists())u=c[T].tagContents().innerRegExp(t.departure),h=u.previousAnyTag("th").tagContents();else if(/Trip \w{3,}/.test(""+c[T]))N=!1;else if(c[T].innerDate().exists()){u=c[T],v={},C=u.nextTag("td6").tagContents().innerCapture(/($<airline>[^\d]+)\s+($<flightNumber>\d+)/),v.airlineName=C.$airline,v.flightNumber=C.$flightNumber,v.airlineCode=/delta/gi.test(v.airlineName)?"DL":null,v.departureAirport=v.flightNumber.nextTag("td6").nextTag("td6").tagContents(),v.departureTime=a.getDetachedSpan(h+" "+v.departureAirport.nextTag("td6").tagContents()).lastInnerDate(),N&&(v.departureTime=modifyDate(v.departureTime,1)),v.arrivalAirport=v.departureAirport.nextTag("td6").nextTag("td6").tagContents(),n=(""+v.arrivalAirport.nextTag("td6").tagContents()).replace("N"," pm"),v.seatNumber=v.arrivalAirport.nextTag("td6").nextTag("td6").tagContents().innerCapture(regExpFormatted(/\1\s+(.*)/,t.seat),1);var f=!1;/\*\*/.test(n)?(n=n.replace("**","").replace(/\n/,""),N=!0,f=!0):/ on \w{3,}/.test(n)?(n=n.replace(/ on/i,""),N=!0,f=!0):n=h+" "+n,v.arrivalTime=a.getDetachedSpan(n).lastInnerDate(),N&&!f&&(v.arrivalTime=modifyDate(v.arrivalTime,1)),ASSERT(v.airlineName,v.flightNumber,v.departureAirport,v.departureTime,v.arrivalAirport,v.arrivalTime)&&x.push(v)}var A=[];for(T=0;T<x.length;T++){v=x[T];var y={"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:v.airlineName,airlineCode:v.airlineCode,flightNumber:v.flightNumber,departureAirportFuzzy:v.departureAirport,departureAirportCode:v.departureCode,departureTime:v.departureTime,arrivalAirportFuzzy:v.arrivalAirport,arrivalAirportCode:v.arrivalCode,arrivalTime:v.arrivalTime},underName:{"@type":"http://schema.org/Person",name:i},checkinUrl:o,reservationId:(""+p).trim(),reservationStatus:"http://schema.org/ReservationConfirmed",totalPrice:s,priceCurrency:m,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:g,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:v.seatNumber,seatingType:v.seatingType}}};valid(l,d)&&(y.programMembershipUsed={"@type":"http://schema.org/ProgramMembership",membershipNumber:l,programName:d}),A.push(y)}if(A.length)return A}}).call();