// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,r,t){var a=Scanner.fromMessage(e);a.setLocale(r);var n,i,o,p,u,d,s,m,g,l,h,T=[],c=[];for(n=a.getSpan().next(t.name).nextTag("td5").nextTag("td5").tagContents(),u=n.nextDate(),d=u.nextTransitInformation();d.exists();)h={},h.airlineCode=d.innerCapture(/^(\D+)/,1),h.flightNumber=d.innerCapture(/(\d+)$/,1),s=d.next(/\s\(\w{2,3}\)/).parentAnyTag("td").tagContents(),m=s.previousAnyTag("td").innerDate(),g=s.nextAnyTag("tr").innerDate(),l=g.nextAnyTag("td").tagContents(),h.departureAirport=s.innerCapture(/(.*)\s\(/,1),h.departureCode=s.innerCapture(/\((\w{2,3})\)/,1),h.departureTime=combineDateAndTime(u,m),h.arrivalAirport=l.innerCapture(/(.*)\s\(/,1),h.arrivalCode=l.innerCapture(/\((\w{2,3})\)/,1),h.arrivalTime=combineDateAndTime(u,g),h.seatingType=l.nextTag("td5").tagContents(),ASSERT(h.airlineCode,h.flightNumber,h.departureCode,h.arrivalCode,h.departureTime,h.arrivalTime)&&T.push(h),d=d.nextTransitInformation();for(var C=0;C<T.length;C++){var h=T[C],v={"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:"Lufthansa",airlineCode:"LH",flightNumber:h.flightNumber,departureAirportFuzzy:h.departureAirport,departureAirportCode:h.departureCode,departureTime:h.departureTime,arrivalAirportFuzzy:h.arrivalAirport,arrivalAirportCode:h.arrivalCode,arrivalTime:h.arrivalTime},underName:{"@type":"http://schema.org/Person",name:n},checkinUrl:"",reservationId:i,reservationStatus:"http://schema.org/ReservationConfirmed",totalPrice:o,priceCurrency:p,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:i,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:"",seatingType:h.seatingType}}};c.push(v)}if(c.length)return c}}).call();