(function(){return function(e,r,t){var a=Scanner.fromMessage(e),i=a.getSpan();a.setLocale(r);var n,l;n=i.nextText(t.reservationIdPrefix).parentTag("td1").tagContents().innerCapture(regExpFormatted(/\1(.+)/,t.reservationIdPrefix),1);var o,p,d,s,u,g,h,m,v={},c=[],T=i.nextText(t.itineraryHeader).nextTag("table1").allInnerTagsFiltered("tr1");T.shift(),T.shift();for(var f=0;f<T.length;f++){v={};T[f].allInnerTagsFiltered("td1");[,s,p,g,m,u,h]=(""+T[f].allInnerTagsFiltered("td1")).match(/([0-9A-Z]{2})(\d+),(.+?),(.+?),(.+?),(.+?),/),v.airlineCode=s,v.flightNumber=p,v.departureAirport=g,v.arrivalAirport=m,v.departureTime=getFuzzyDate(a.getDetachedSpan(""+u)),v.arrivalTime=getFuzzyDate(a.getDetachedSpan(""+h)),ASSERT(v.departureAirport,v.arrivalAirport,v.departureTime,v.arrivalTime,v.airlineCode,v.flightNumber)&&c.push(v)}var C=[],x=i.nextText(t.itineraryHeader).nextTag("table1").nextTag("table1").allInnerTagsFiltered("tr1");for(x.shift(),f=0;f<x.length;f++)v={},[,o]=x[f].innerCapture(/(.+)\s\s\s\[\/td1\](\s?)\[td1\]/),v.name=o,C.push(v);d=i.nextText(t.totalCostPrefix).parentTag("td1").tagContents().innerCapture(regExpFormatted(/\1(.+)\n/,t.totalCostPrefix),1);var y=d.innerCapture(/([\d,.-]+)/,1),F=d.innerCapture(/([^\d,.-\w]+)/,1).trim();null!==F&&0!==(""+F).length||(F=d.innerCapture(/([^\d,.-]+)/,1).trim());var A,b=[];for(f=0;f<c.length;f++)for(var z=c[f],N=0;N<C.length;N++){var S=C[N];A={"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:z.airlineName,airlineCode:z.airlineCode,flightNumber:z.flightNumber,departureAirportFuzzy:z.departureAirport,departureAirportCode:z.departureCode,departureTime:z.departureTime,arrivalAirportFuzzy:z.arrivalAirport,arrivalAirportCode:z.arrivalCode,arrivalTime:z.arrivalTime},underName:{"@type":"http://schema.org/Person",name:S.name},checkinUrl:l,reservationId:n,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:S.ticketNumber,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:"",seatingType:""}},totalPrice:y,priceCurrency:F,reservationStatus:"http://schema.org/ReservationConfirmed"},b.push(A)}if(b.length)return b}}).call();