(function(){return function(e,r,a){var t=Scanner.fromMessage(e);t.setLocale(r);for(var i,n,p,l,o,u,v=[],d=[],m=t.getSpan(),s=m.next(a.service).previousAnyTag("table");!s.isNullSpan_;){var g={},c=s.allInnerTagsFiltered("td6"),p=c[0].innerCapture(/($<a>[^\d]+)($<b>\d+)/);g.airlineCode=p?p.$a:null,g.flightNumber=p?p.$b:null;var n=t.getDetachedSpan(s.nextTag("td5").tagContents().replace(/\u00AD/g,"").innerCapture(/.+?,\xa0([^\n]+)/,1).split(".").reverse().join("-")).innerDate(),l=c[2].replace(/[\u200B-\u200D\uFEFF\u00AD]/g,"");g.departureTime=combineDateAndTime(n,l),g.departureAirport=c[3];var o=c[4].replace(/[\u200B-\u200D\uFEFF\u00AD]/g,"");g.arrivalTime=combineDateAndTime(n,o),Date.parse(g.departureTime)>Date.parse(g.arrivalTime)&&(g.arrivalTime=modifyDate(g.arrivalTime,1)),g.arrivalAirport=c[5],ASSERT(g.departureTime,g.arrivalAirport,g.arrivalTime,g.departureAirport)&&v.push(g),s=s.next(a.service).next(a.service).previousAnyTag("table")}for(var T=0;T<v.length;T++){var u=v[T];d.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:"Lufthansa",airlineCode:u.airlineCode,flightNumber:u.flightNumber,departureAirportFuzzy:u.departureAirport,departureAirportCode:u.departureCode,departureTime:u.departureTime,arrivalAirportFuzzy:u.arrivalAirport,arrivalAirportCode:u.arrivalCode,arrivalTime:u.arrivalTime},reservationId:i,reservationStatus:"http://schema.org/ReservationConfirmed"})}if(d.length)return d}}).call();