(function(){return function(t,e,r){t.plain=t.plain.replace(RegExp(String.fromCharCode("0x200b"),"g"),"");var a=Scanner.fromMessage(t);a.setLocale(e);var n,i,o;try{n=a.getSpan().next(r.totalPrice).nextTag("td4").tagContents().innerCapture(/([\d,]+\.\d+)\s*([^ ]+)/)[1],i=a.getSpan().next(r.totalPrice).nextTag("td4").tagContents().innerCapture(/([\d,]+\.\d+)\s*([^ ]+)/)[2]}catch(t){}var g,p,s,l=[],d=a.getSpan().next(r.reservationIdentifier).nextAnyTag("td").nextAnyTag("td").tagContents().innerCapture(/([^(]+)/,1).trim();d.exists()||(d=a.getSpan().next(r.reservationIdentifier).nextAnyTag("td").tagContents());var u=a.getSpan().next(r.passengerName).tagContents(),T=a.getSpan().nextText(r.ticketNumberPrefix).parentAnyTag("td").tagContents().innerCapture(/:(.*)/,1);o=a.getSpan().next(r.legMarker).parentAnyTag("table").previousTag("table5");for(var c=a.getSpan().getString().match(r.legMarkerCounter).length;c--;){g=o.nextTag("td5").nextTag("td5").tagContents(),p=g.getString().substr(0,2),g=g.getString().substr(2),s=o.nextTag("table5").nextTag("td5").tagContents().innerCapture(r.flightNameExtractor,1);var x,C,m=o.next(r.ticketClass).innerCapture(r.ticketClass,1),v=o.previousTag("table4").previousTag("table4"),h=v.nextTag("td4").nextTag("td4").replace(/\./g,"").innerDate(),y=v.nextTag("table5").nextTag("td5"),b=y.tagContents().innerDate();x=y.nextTag("td5").tagContents().innerCapture(r.locationExtractor)[1],C=y.nextTag("td5").tagContents().innerCapture(r.locationExtractor)[2],y=y.nextTag("td5").nextTag("td5").nextTag("td5");var A,S,f=y.tagContents().innerDate();A=y.nextTag("td5").tagContents().innerCapture(r.locationExtractor)[1],S=y.nextTag("td5").tagContents().innerCapture(r.locationExtractor)[2],f=combineDateAndTime(h,f),b=combineDateAndTime(h,b),ASSERT(s,p,g,C,x,b)&&l.push({airlineName:s,airlineCode:p,flightNumber:g,departureAirportCode:C,departureAirportFuzzy:x,departureTime:b,arrivalAirportFuzzy:A,arrivalAirportCode:S,arrivalTime:f,seatingType:m}),o=o.nextTag("table4"),o=o.next(r.legMarker).parentAnyTag("table").previousTag("table5")}for(var z=[],N=0;N<l.length;N++){var o=l[N];z.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:o.airlineName,airlineCode:o.airlineCode,flightNumber:o.flightNumber,departureAirportFuzzy:o.departureAirportFuzzy,departureAirportCode:o.departureAirportCode,departureTime:o.departureTime,arrivalAirportFuzzy:o.arrivalAirportFuzzy,arrivalAirportCode:o.arrivalAirportCode,arrivalTime:o.arrivalTime},underName:{"@type":"http://schema.org/Person",name:u},totalPrice:n,priceCurrency:i,reservationId:d,reservationStatus:"http://schema.org/ReservationConfirmed",reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:T,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:o.seatNumber,seatingType:o.seatingType}}})}return z}}).call();