(function(){return function(e,r,t){var a=Scanner.fromMessage(e);a.setLocale(r);var n,i=a.getSpan(),l="Confirmed",o=[],p=[];n=i.next(t.reservationId_prefix).parentAnyTag("td").innerCapture(regExpFormatted(/\1\s*([^\s\[]+)/,t.reservationId_prefix),1);var m;if(m=i.next(t.dep).parentAnyTag("table"),null===m.innerCapture(regExpFormatted(/\1\s+($<name>[^\(\)]+)\s\(($<code>.+)\)/,t.airport))){m=i.next(t.dep).parentTag("table5").allInnerTagsFiltered("td5");var u,d,s,g,x,v,T=m[1].innerCapture(regExpFormatted(/($<first>.+)\s.\s($<second>.+)/));null===T?(T=m[1].innerCapture(regExpFormatted(/\1\s+($<name>[^\(\)]+)\s\(($<code>.+)\)/,t.airport)),u=T?T.$name:null,v=x?x.$code:null,s=combineDateAndTime(m[2].nextDate(),m[3].nextDate()),m=i.next(t.ari).parentAnyTag("table").previousTag("table5").allInnerTagsFiltered("td5"),T=m[1].innerCapture(regExpFormatted(/\1\s+($<name>[^\(\)]+)\s\(($<code>.+)\)/,t.airport)),d=T?T.$name:null,v=x?x.$code:null,g=combineDateAndTime(m[2].nextDate(),m[3].nextDate()),ASSERT(n,u,d,s)&&o.push({airlineName:"volotea",departureTime:s,flightNumber:v,departureAirport:u,arrivalTime:g,arrivalAirport:d})):(u=T?T.$first:null,d=T?T.$second:null,s=combineDateAndTime(m[2].nextDate(),m[3].nextDate()),g=combineDateAndTime(m[2].nextDate(),m[4].nextDate()),x=m[5].innerCapture(regExpFormatted(/\1\s($<flight>.+)\s(<$number>.+)/,t.flightNum)),v=x?x.$number:null,i.next(t.ari).isNullSpan_?ASSERT(n,u,d,s)&&o.push({airlineName:"volotea",departureTime:s,flightNumber:v,departureAirport:u,arrivalTime:g,arrivalAirport:d}):(ASSERT(n,u,d,s)&&o.push({airlineName:"volotea",departureTime:s,flightNumber:v,departureAirport:u,arrivalTime:g,arrivalAirport:d}),m=i.next(t.ari).parentTag("table5").allInnerTagsFiltered("td5"),T=m[1].innerCapture(regExpFormatted(/($<first>.+)\s.\s($<second>.+)/)),u=T?T.$first:null,d=T?T.$second:null,s=combineDateAndTime(m[2].nextDate(),m[3].nextDate()),g=combineDateAndTime(m[2].nextDate(),m[4].nextDate()),x=m[5].innerCapture(regExpFormatted(/\1\s($<flight>.+)\s(<$number>.+)/,t.flightNum)),v=x?x.$number:null,ASSERT(n,u,d,s)&&o.push({airlineName:"volotea",departureTime:s,flightNumber:v,departureAirport:u,arrivalTime:g,arrivalAirport:d})))}else{var A,h=m.innerCapture(regExpFormatted(/\1\s+($<name>[^\(\)]+)\s\(($<code>.+)\)/,t.airport)),c=h?h.$name:null,$=h?h.$code:null,s=combineDateAndTime(m.nextDate(),m.nextDate().nextDate()),f=i.next(t.ari).parentAnyTag("table"),h=f.innerCapture(regExpFormatted(/\1\s+($<name>[^\(\)]+)\s\(($<code>.+)\)/,t.airport)),b=h?h.$name:null,D=h?h.$code:null,g=combineDateAndTime(f.nextDate(),f.nextDate().nextDate());A=i.next(t.flightNum).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1\s(\d+)/,t.flightNum),1),ASSERT(n,c,b,s)&&o.push({airlineName:"volotea",departureTime:s,flightNumber:A,departureAirport:c,departureCode:$,arrivalTime:g,arrivalAirport:b,arrivalCode:D})}var p=[];if(i.next(t.pass).isNullSpan_)p.push(i.next(/(?:Madame\/Monsieur(?: M\.\/Mme\.)?)|(?:Merci pour votre r\xe9servation Celine)/).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1\s([^,]+),? votre/,/Madame\/Monsieur/),1));else for(var C=i.next(t.pass).nextAnyTag("table"),N=C.next(t.passager).nextAnyTag("td").tagContents();!N.isNullSpan_;)p.push(N),N=N.nextAnyTag("td").next(t.passager).nextAnyTag("td").tagContents();for(var F=[],E=0;E<o.length;E++)for(var y=0;y<p.length;y++){var S=o[E];F.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:S.airlineName,flightNumber:S.flightNumber,departureAirportFuzzy:S.departureAirport,departureAirportCode:S.departureCode,departureTime:S.departureTime,arrivalAirportFuzzy:S.arrivalAirport,arrivalAirportCode:S.arrivalCode,arrivalTime:S.arrivalTime},underName:{"@type":"http://schema.org/Person",name:p[y]},reservationId:n,reservationStatus:"http://schema.org/Reservation"+l})}return F}}).call();