(function(){return function(e,r,t){var a=Scanner.fromMessage(e);a.setLocale(r);var i,n,p,l,o,s,m,u,d,g,h=[],c=[],v=[],T="easyjet",C=t.cancelled.test(e.plain)?"Cancelled":"Confirmed";for(m=regExpFormatted(/\1\s*(.*)/,t.reservationId).exec(e.subject)[1],p=a.getSpan().allInnerCapture(t.itinerary,1),d=0;d<p.length;d++){var A={},f=RegExp("(?:Da)?($<departure>[\\w\\s\xe1]+)\\s(?:\\(.*\\)\\s)?\\1\\s($<arrival>[^\\(]+?)(?:"+t.flexible+"|$|\\()"),b=p[d].nextTag("td5").tagContents().innerCapture(regExpFormatted(f,t.to));A.departureAirport=b.$departure.trim(),A.arrivalAirport=b.$arrival.trim();var x=p[d].nextTag("td6").tagContents().innerCapture(/($<airlineCode>[A-Z]+)?($<flightNumber>\d+)/);A.flightNumber=x.$flightNumber,A.airlineCode=x.$airlineCode;var y=p[d].next(t.departure).nextAnyTag("td");(""+y).match(/mrt/)&&(y=y.replace(/mrt/,"maart").innerDate()),A.departureTime=y.innerDate();var N=p[d].next(t.arrival).nextAnyTag("td");for((""+N).match(/mrt/)&&(N=N.replace(/mrt/,"maart").innerDate()),A.arrivalTime=N.innerDate(),c=[],i=p[d].nextTag("table5").nextTag("table5").allInnerTags("tr5"),g=0;g<i.length;g++){n={};var S=i[g].allInnerTags("td5");n.name=S[0].tagContents(),n.seat=S[1].tagContents().innerCapture(/\b(\d+\w+)\b/,1),ASSERT(n.name)&&c.push(n)}A.passengers=c,ASSERT(A.departureTime,A.arrivalTime,A.flightNumber,A.departureAirport,A.arrivalAirport)&&v.push(A)}for(d=0;d<v.length;d++)for(l=v[d],c=l.passengers,g=0;g<c.length;g++){n=c[g];var $={"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:T,airlineCode:"U2",flightNumber:l.flightNumber,departureAirportFuzzy:l.departureAirport,departureAirportCode:l.departureAirportCode,departureTime:l.departureTime,arrivalAirportFuzzy:l.arrivalAirport,arrivalAirportCode:l.arrivalAirportCode,arrivalTime:l.arrivalTime},underName:{"@type":"http://schema.org/Person",name:n.name},reservationId:m,reservationStatus:"http://schema.org/Reservation"+C,totalPrice:o,priceCurrency:s,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:u,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:n.seat}}};h.push($)}if(h.length)return h}}).call();