(function(){return function(e,r,t){if(!e||!r||!t)return CONTINUE;var a=Scanner.fromMessage(e);a.setLocale(r);var i,n,o,l,s,p,d,m,g,h,u,c,v,T,f,C,A,y,b=a.getSpan(),x=[],F={};for(n=b.withInterval(b.nextText(t.reservationId).getEnd(),b.nextText(t.reservationIdPostFix).getStart()).trim(),s=b.nextText(t.passengerDetails).parentTag("table3").allInnerTagsFiltered("td3"),s.shift(),A=0;A<s.length;A++)l=""+s[A],F[""+l]={name:l};for(0===s.length&&(l=" ",F[""+l]={name:l}),p=s=b.nextText(t.flightDetails).parentTag("table3").allInnerTagsFiltered("tr3"),p.shift(),p.shift(),A=0;A<p.length;A++){var I=p[A].allInnerTagsFiltered("td3");d=I[0],I[1],g=I[2],u=I[3],T=I[4],h=I[5],v=p[A].lastInnerDate(),h=combineDateAndTime(g,h),v=combineDateAndTime(g,v),ASSERT(d,h,v)&&x.push({airlineCode:m,flightNumber:d,departureTime:h,departureCode:c,departureAirport:u.trim(),arrivalTime:v,arrivalCode:f,arrivalAirport:T.trim(),passengers:F})}var N=[];for(A=0;A<x.length;A++){var S=x[A],k=Object.keys(S.passengers);for(y=0;y<k.length;y++){C=S.passengers[k[y]];N.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:"Copa Airlines",airlineCode:"CM",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:C.name},checkinUrl:o,reservationId:n,reservationStatus:"http://schema.org/ReservationConfirmed",totalPrice:"",priceCurrency:"",reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:i,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:"",seatingType:""}}})}}return N.length?N:void 0}}).call();